PageSourceSearch

https://coir.ps/cp/javascript/vendors.js?1790723121

js coir.ps collected 2026-10-05 06:05:54 UTC 2,762,510 bytes, 51 lines download raw bytes

vendor: 15,435 bytes, line 1
1(globalThis.webpackChunkPlesk||=[]).push([["vendors"],[,,,,,,,(e,t,r)=>{"use strict";var n=r(8),i=r(64).includes,o=r(12),a=r(73),s=o(function(){return!Array(1).includes()}),l=o(function(){return[,1].includes(void 0,1)});n({target:"Array",proto:!0,forced:s||l},{includes:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}}),a("includes")},(e,t,r)=>{"use strict";var n=r(9),i=r(10).f,o=r(48),a=r(52),s=r(42),l=r(60),c=r(72);e.exports=function(e,t){var r,u,p,d,h,f=e.target,m=e.global,g=e.stat;if(r=m?n:g?n[f]||s(f,{}):n[f]&&n[f].prototype)for(u in t){if(d=t[u],p=e.dontCallGetSet?(h=i(r,u))&&h.value:r[u],!c(m?u:f+(g?".":"#")+u,e.forced)&&void 0!==p){if(typeof d==typeof p)continue;l(d,p)}(e.sham||p&&p.sham)&&o(d,"sham",!0),a(r,u,d,e)}}},function(e){"use strict";var t=function(e){return e&&e.Math===Math&&e};e.exports=t("object"==typeof globalThis&&globalThis)||t("object"==typeof window&&window)||t("object"==typeof self&&self)||t("object"==typeof globalThis&&globalThis)||t("object"==typeof this&&this)||function(){return this}()||Function("return this")()},(e,t,r)=>{"use strict";var n=r(11),i=r(13),o=r(15),a=r(16),s=r(17),l=r(23),c=r(43),u=r(46),p=Object.getOwnPropertyDescriptor;t.f=n?p:function(e,t){if(e=s(e),t=l(t),u)try{return p(e,t)}catch(e){}if(c(e,t))return a(!i(o.f,e,t),e[t])}},(e,t,r)=>{"use strict";var n=r(12);e.exports=!n(function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]})},e=>{"use strict";e.exports=function(e){try{return!!e()}catch(e){return!0}}},(e,t,r)=>{"use strict";var n=r(14),i=Function.prototype.call;e.exports=n?i.bind(i):function(){return i.apply(i,arguments)}},(e,t,r)=>{"use strict";var n=r(12);e.exports=!n(function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")})},(e,t)=>{"use strict";var r={}.propertyIsEnumerable,n=Object.getOwnPropertyDescriptor,i=n&&!r.call({1:2},1);t.f=i?function(e){var t=n(this,e);return!!t&&t.enumerable}:r},e=>{"use strict";e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},(e,t,r)=>{"use strict";var n=r(18),i=r(21);e.exports=function(e){return n(i(e))}},(e,t,r)=>{"use strict";var n=r(19),i=r(12),o=r(20),a=Object,s=n("".split);e.exports=i(function(){return!a("z").propertyIsEnumerable(0)})?function(e){return"String"===o(e)?s(e,""):a(e)}:a},(e,t,r)=>{"use strict";var n=r(14),i=Function.prototype,o=i.call,a=n&&i.bind.bind(o,o);e.exports=n?a:function(e){return function(){return o.apply(e,arguments)}}},(e,t,r)=>{"use strict";var n=r(19),i=n({}.toString),o=n("".slice);e.exports=function(e){return o(i(e),8,-1)}},(e,t,r)=>{"use strict";var n=r(22),i=TypeError;e.exports=function(e){if(n(e))throw new i("Can't call method on "+e);return e}},e=>{"use strict";e.exports=function(e){return null==e}},(e,t,r)=>{"use strict";var n=r(24),i=r(27);e.exports=function(e){var t=n(e,"string");return i(t)?t:t+""}},(e,t,r)=>{"use strict";var n=r(13),i=r(25),o=r(27),a=r(34),s=r(37),l=r(38),c=TypeError,u=l("toPrimitive");e.exports=function(e,t){if(!i(e)||o(e))return e;var r,l=a(e,u);if(l){if(void 0===t&&(t="default"),r=n(l,e,t),!i(r)||o(r))return r;throw new c("Can't convert object to primitive value")}return void 0===t&&(t="number"),s(e,t)}},(e,t,r)=>{"use strict";var n=r(26);e.exports=function(e){return"object"==typeof e?null!==e:n(e)}},e=>{"use strict";var t="object"==typeof document&&document.all;e.exports=void 0===t&&void 0!==t?function(e){return"function"==typeof e||e===t}:function(e){return"function"==typeof e}},(e,t,r)=>{"use strict";var n=r(28),i=r(26),o=r(29),a=r(30),s=Object;e.exports=a?function(e){return"symbol"==typeof e}:function(e){var t=n("Symbol");return i(t)&&o(t.prototype,s(e))}},(e,t,r)=>{"use strict";var n=r(9),i=r(26);e.exports=function(e,t){return arguments.length<2?(r=n[e],i(r)?r:void 0):n[e]&&n[e][t];var r}},(e,t,r)=>{"use strict";var n=r(19);e.exports=n({}.isPrototypeOf)},(e,t,r)=>{"use strict";var n=r(31);e.exports=n&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},(e,t,r)=>{"use strict";var n=r(32),i=r(12),o=r(9).String;e.exports=!!Object.getOwnPropertySymbols&&!i(function(){var e=Symbol("symbol detection");return!o(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&n&&n<41})},(e,t,r)=>{"use strict";var n,i,o=r(9),a=r(33),s=o.process,l=o.Deno,c=s&&s.versions||l&&l.version,u=c&&c.v8;u&&(i=(n=u.split("."))[0]>0&&n[0]<4?1:+(n[0]+n[1])),!i&&a&&(!(n=a.match(/Edge\/(\d+)/))||n[1]>=74)&&(n=a.match(/Chrome\/(\d+)/))&&(i=+n[1]),e.exports=i},(e,t,r)=>{"use strict";var n=r(9).navigator,i=n&&n.userAgent;e.exports=i?String(i):""},(e,t,r)=>{"use strict";var n=r(35),i=r(22);e.exports=function(e,t){var r=e[t];return i(r)?void 0:n(r)}},(e,t,r)=>{"use strict";var n=r(26),i=r(36),o=TypeError;e.exports=function(e){if(n(e))return e;throw new o(i(e)+" is not a function")}},e=>{"use strict";var t=String;e.exports=function(e){try{return t(e)}catch(e){return"Object"}}},(e,t,r)=>{"use strict";var n=r(13),i=r(26),o=r(25),a=TypeError;e.exports=function(e,t){var r,s;if("string"===t&&i(r=e.toString)&&!o(s=n(r,e)))return s;if(i(r=e.valueOf)&&!o(s=n(r,e)))return s;if("string"!==t&&i(r=e.toString)&&!o(s=n(r,e)))return s;throw new a("Can't convert object to primitive value")}},(e,t,r)=>{"use strict";var n=r(9),i=r(39),o=r(43),a=r(45),s=r(31),l=r(30),c=n.Symbol,u=i("wks"),p=l?c.for||c:c&&c.withoutSetter||a;e.exports=function(e){return o(u,e)||(u[e]=s&&o(c,e)?c[e]:p("Symbol."+e)),u[e]}},(e,t,r)=>{"use strict";var n=r(40),i=Object.create||Object;e.exports=function(e,t){return n[e]||(n[e]=t||i(null))}},(e,t,r)=>{"use strict";var n=r(41),i=r(9),o=r(42),a="__core-js_shared__",s=e.exports=i[a]||o(a,{});(s.versions||(s.versions=[])).push({version:"3.50.0",mode:n?"pure":"global",copyright:"© 2013–2025 Denis Pushkarev (zloirock.ru), 2025–2026 CoreJS Company (core-js.io). All rights reserved.",license:"https://github.com/zloirock/core-js/blob/v3.50.0/LICENSE",source:"https://github.com/zloirock/core-js"})},e=>{"use strict";e.exports=!1},(e,t,r)=>{"use strict";var n=r(9),i=Object.defineProperty;e.exports=function(e,t){try{i(n,e,{value:t,configurable:!0,writable:!0})}catch(r){n[e]=t}return t}},(e,t,r)=>{"use strict";var n=r(19),i=r(44),o=n({}.hasOwnProperty);e.exports=Object.hasOwn||function(e,t){return o(i(e),t)}},(e,t,r)=>{"use strict";var n=r(21),i=Object;e.exports=function(e){return i(n(e))}},(e,t,r)=>{"use strict";var n=r(19),i=0,o=Math.random(),a=n(1.1.toString);e.exports=function(e){return"Symbol("+(void 0===e?"":e)+")_"+a(++i+o,36)}},(e,t,r)=>{"use strict";var n=r(11),i=r(12),o=r(47);e.exports=!n&&!i(function(){return 7!==Object.defineProperty(o("div"),"a",{get:function(){return 7}}).a})},(e,t,r)=>{"use strict";var n=r(9),i=r(25),o=n.document,a=i(o)&&i(o.createElement);e.exports=function(e){return a?o.createElement(e):{}}},(e,t,r)=>{"use strict";var n=r(11),i=r(49),o=r(16);e.exports=n?function(e,t,r){return i.f(e,t,o(1,r))}:function(e,t,r){return e[t]=r,e}},(e,t,r)=>{"use strict";var n=r(11),i=r(46),o=r(50),a=r(51),s=r(23),l=TypeError,c=Object.defineProperty,u=Object.getOwnPropertyDescriptor,p="enumerable",d="configurable",h="writable";t.f=n?o?function(e,t,r){if(a(e),t=s(t),a(r),"function"==typeof e&&"prototype"===t&&"value"in r&&h in r&&!r[h]){var n=u(e,t);n&&n[h]&&(e[t]=r.value,r={configurable:d in r?r[d]:n[d],enumerable:p in r?r[p]:n[p],writable:!1})}return c(e,t,r)}:c:function(e,t,r){if(a(e),t=s(t),a(r),i)try{return c(e,t,r)}catch(e){}if("get"in r||"set"in r)throw new l("Accessors not supported");return"value"in r&&(e[t]=r.value),e}},(e,t,r)=>{"use strict";var n=r(11),i=r(12);e.exports=n&&i(function(){return 42!==Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype})},(e,t,r)=>{"use strict";var n=r(25),i=String,o=TypeError;e.exports=function(e){if(n(e))return e;throw new o(i(e)+" is not an object")}},(e,t,r)=>{"use strict";var n=r(26),i=r(49),o=r(53),a=r(42);e.exports=function(e,t,r,s){s||(s={});var l=s.enumerable,c=void 0!==s.name?s.name:t;if(n(r)&&o(r,c,s),s.global)l?e[t]=r:a(t,r);else{try{s.unsafe?e[t]&&(l=!0):delete e[t]}catch(e){}l?e[t]=r:i.f(e,t,{value:r,enumerable:!1,configurable:!s.nonConfigurable,writable:!s.nonWritable})}return e}},(e,t,r)=>{"use strict";var n=r(19),i=r(12),o=r(26),a=r(43),s=r(11),l=r(54).CONFIGURABLE,c=r(55),u=r(56),p=u.enforce,d=u.get,h=String,f=Object.defineProperty,m=n("".slice),g=n("".replace),y=n([].join),b=s&&!i(function(){return 8!==f(function(){},"length",{value:8}).length}),v=String(String).split("String"),_=e.exports=function(e,t,r){"Symbol("===m(h(t),0,7)&&(t="["+g(h(t),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),r&&r.getter&&(t="get "+t),r&&r.setter&&(t="set "+t),(!a(e,"name")||l&&e.name!==t)&&(s?f(e,"name",{value:t,configurable:!0}):e.name=t),b&&r&&a(r,"arity")&&e.length!==r.arity&&f(e,"length",{value:r.arity});try{r&&a(r,"constructor")&&r.constructor?s&&f(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(e){}var n=p(e);return a(n,"source")||(n.source=y(v,"string"==typeof t?t:"")),e};Function.prototype.toString=_(function(){return o(this)&&d(this).source||c(this)},"toString")},(e,t,r)=>{"use strict";var n=r(11),i=r(43),o=Function.prototype,a=n&&Object.getOwnPropertyDescriptor,s=i(o,"name"),l=s&&"something"===function(){}.name,c=s&&(!n||n&&a(o,"name").configurable);e.exports={EXISTS:s,PROPER:l,CONFIGURABLE:c}},(e,t,r)=>{"use strict";var n=r(19),i=r(26),o=r(40),a=n(Function.toString);i(o.inspectSource)||(o.inspectSource=function(e){return a(e)}),e.exports=o.inspectSource},(e,t,r)=>{"use strict";var n,i,o,a=r(57),s=r(9),l=r(25),c=r(48),u=r(43),p=r(40),d=r(58),h=r(59),f="Object already initialized",m=s.TypeError,g=s.WeakMap;if(a||p.state){var y=p.state||(p.state=new g);y.get=y.get,y.has=y.has,y.set=y.set,n=function(e,t){if(y.has(e))throw new m(f);return t.facade=e,y.set(e,t),t},i=function(e){return y.get(e)||{}},o=function(e){return y.has(e)}}else{var b=d("state");h[b]=!0,n=function(e,t){if(u(e,b))throw new m(f);return t.facade=e,c(e,b,t),t},i=function(e){return u(e,b)?e[b]:{}},o=function(e){return u(e,b)}}e.exports={set:n,get:i,has:o,enforce:function(e){return o(e)?i(e):n(e,{})},getterFor:function(e){return function(t){var r;if(!l(t)||(r=i(t)).type!==e)throw new m("Incompatible receiver, "+e+" required");return r}}}},(e,t,r)=>{"use strict";var n=r(9),i=r(26),o=n.WeakMap;e.exports=i(o)&&/native code/.test(String(o))},(e,t,r)=>{"use strict";var n=r(39),i=r(45),o=n("keys");e.exports=function(e){return o[e]||(o[e]=i(e))}},e=>{"use strict";e.exports={}},(e,t,r)=>{"use strict";var n=r(43),i=r(61),o=r(10),a=r(49);e.exports=function(e,t,r){for(var s=i(t),l=a.f,c=o.f,u=0;u<s.length;u++){var p=s[u];n(e,p)||r&&n(r,p)||l(e,p,c(t,p))}}},(e,t,r)=>{"use strict";var n=r(28),i=r(19),o=r(62),a=r(71),s=r(51),l=i([].concat);e.exports=n("Reflect","ownKeys")||function(e){var t=o.f(s(e)),r=a.f;return r?l(t,r(e)):t}},(e,t,r)=>{"use strict";var n=r(63),i=r(70).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return n(e,i)}},(e,t,r)=>{"use strict";var n=r(19),i=r(43),o=r(17),a=r(64).indexOf,s=r(59),l=n([].push);e.exports=function(e,t){var r,n=o(e),c=0,u=[];for(r in n)!i(s,r)&&i(n,r)&&l(u,r);for(;t.length>c;)i(n,r=t[c++])&&(~a(u,r)||l(u,r));return u}},(e,t,r)=>{"use strict";var n=r(17),i=r(65),o=r(68),a=function(e){return function(t,r,a){var s=n(t),l=o(s);if(0===l)return!e&&-1;var c,u=i(a,l);if(e&&r!=r){for(;l>u;)if((c=s[u++])!=c)return!0}else for(;l>u;u++)if((e||u in s)&&s[u]===r)return e||u||0;return!e&&-1}};e.exports={includes:a(!0),indexOf:a(!1)}},(e,t,r)=>{"use strict";var n=r(66),i=Math.max,o=Math.min;e.exports=function(e,t){var r=n(e);return r<0?i(r+t,0):o(r,t)}},(e,t,r)=>{"use strict";var n=r(67);e.exports=function(e){var t=+e;return t!=t||0===t?0:n(t)}},e=>{"use strict";var t=Math.ceil,r=Math.floor;e.exports=Math.trunc||function(e){var n=+e;return(n>0?r:t)(n)}},(e,t,r)=>{"use strict";var n=r(69);e.exports=function(e){return n(e.length)}},(e,t,r)=>{"use strict";var n=r(66),i=Math.min;e.exports=function(e){var t=n(e);return t>0?i(t,9007199254740991):0}},e=>{"use strict";e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},(e,t)=>{"use strict";t.f=Object.getOwnPropertySymbols},(e,t,r)=>{"use strict";var n=r(12),i=r(26),o=/#|\.prototype\./,a=function(e,t){var r=l[s(e)];return r===u||r!==c&&(i(t)?n(t):!!t)},s=a.normalize=function(e){return String(e).replace(o,".").toLowerCase()},l=a.data={},c=a.NATIVE="N",u=a.POLYFILL="P";e.exports=a},(e,t,r)=>{"use strict";var n=r(38),i=r(74),o=r(49).f,a=n("unscopables"),s=Array.prototype;void 0===s[a]&&o(s,a,{configurable:!0,value:i(null)}),e.exports=function(e){s[a][e]=!0}},(e,t,r)=>{"use strict";var n,i=r(51),o=r(75),a=r(70),s=r(59),l=r(77),c=r(47),u=r(58),p="prototype",d="script",h=u("IE_PROTO"),f=function(){},m=function(e){return"<"+d+">"+e+"</"+d+">"},g=function(e){e.write(m("")),e.close();var t=e.parentWindow.Object;return e=null,t},y=function(){try{n=new ActiveXObject("htmlfile")}catch(e){}var e,t,r;y="undefined"!=typeof document?document.domain&&n?g(n):(t=c("iframe"),r="java"+d+":",t.style.display="none",l.appendChild(t),t.src=String(r),(e=t.contentWindow.document).open(),e.write(m("document.F=Object")),e.close(),e.F):g(n);for(var i=a.length;i--;)delete y[p][a[i]];return y()};s[h]=!0,e.exports=Object.create||function(e,t){var r;return null!==e?(f[p]=i(e),r=new f,f[p]=null,r[h]=e):r=y(),void 0===t?r:o.f(r,t)}},(e,t,r)=>{"use strict";var n=r(11),i=r(50),o=r(49),a=r(51),s=r(17),l=r(76);t.f=n&&!i?Object.defineProperties:function(e,t){a(e);for(var r,n=s(t),i=l(t),c=i.length,u=0;c>u;)o.f(e,r=i[u++],n[r]);return e}},(e,t,r)=>{"use strict";var n=r(63),i=r(70);e.exports=Object.keys||function(e){return n(e,i)}},(e,t,r)=>{"use strict";var n=r(28);e.exports=n("document","documentElement")},(e,t,r)=>{"use strict";var n=r(11),i=r(79),o=r(80),a=r(81);n&&!o.correct&&(i(RegExp.prototype,"flags",{configurable:!0,get:a}),o.correct=!0)},(e,t,r)=>{"use strict";var n=r(53),i=r(49);e.exports=function(e,t,r){return r.get&&n(r.get,t,{getter:!0}),r.set&&n(r.set,t,{setter:!0}),i.f(e,t,r)}},(e,t,r)=>{"use strict";var n=r(9),i=r(12),o=n.RegExp,a=!i(function(){var e=!0;try{o(".","d")}catch(t){e=!1}var t={},r="",n=e?"dgimsy":"gimsy",i=function(e,n){Object.defineProperty(t,e,{get:function(){return r+=n,!0}})},a={dotAll:"s",global:"g",ignoreCase:"i",multiline:"m",sticky:"y"};for(var s in e&&(a.hasIndices="d"),a)i(s,a[s]);return Object.getOwnPropertyDescriptor(o.prototype,"flags").get.call(t)!==n||r!==n});e.exports={correct:a}},(e,t,r)=>{"use strict";var n=r(51);e.exports=function(){var e=n(this),t="";return e.hasIndices&&(t+="d"),e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.unicodeSets&&(t+="v"),e.sticky&&(t+="y"),t}},(e,t,r)=>{"use strict";r(83),r(93)},(e,t,r)=>{"use strict";var n=r(8),i=r(9),o=r(84).clear;n({global:!0,bind:!0,enumerable:!0,forced:i.clearImmediate!==o},{clearImmediate:o})},(e,t,r)=>{"use strict";var n,i,o,a,s=r(9),l=r(85),c=r(86),u=r(26),p=r(43),d=r(12),h=r(77),f=r(88),m=r(47),g=r(89),y=r(90),b=r(91),v=s.setImmediate,_=s.clearImmediate,S=s.process,E=s.Dispatch,T=s.Function,w=s.MessageChannel,x=s.String,O=0,I={},A="onreadystatechange";d(function(){n=s.location});var k=function(e){if(p(I,e)){var t=I[e];delete I[e],t()}},R=function(e){return function(){k(e)}},C=function(e){k(e.data)},P=function(e){s.postMessage(x(e),n.protocol+"//"+n.host)};v&&_||(v=function(e){g(arguments.length,1);
1var t=u(e)?e:T(e),r=f(arguments,1);return I[++O]=function(){l(t,void 0,r)},i(O),O},_=function(e){delete I[e]},b?i=function(e){S.nextTick(R(e))}:E&&E.now?i=function(e){E.now(R(e))}:w&&!y?(a=(o=new w).port2,o.port1.onmessage=C,i=c(a.postMessage,a)):s.addEventListener&&u(s.postMessage)&&!s.importScripts&&n&&"file:"!==n.protocol&&!d(P)?(i=P,s.addEventListener("message",C,!1)):i=A in m("script")?function(e){h.appendChild(m("script"))[A]=function(){h.removeChild(this),k(e)}}:function(e){setTimeout(R(e),0)}),e.exports={set:v,clear:_}},(e,t,r)=>{"use strict";var n=r(14),i=Function.prototype,o=i.apply,a=i.call;e.exports="object"==typeof Reflect&&Reflect.apply||(n?a.bind(o):function(){return a.apply(o,arguments)})},(e,t,r)=>{"use strict";var n=r(87),i=r(35),o=r(14),a=n(n.bind);e.exports=function(e,t){return i(e),void 0===t?e:o?a(e,t):function(){return e.apply(t,arguments)}}},(e,t,r)=>{"use strict";var n=r(20),i=r(19);e.exports=function(e){if("Function"===n(e))return i(e)}},(e,t,r)=>{"use strict";var n=r(19);e.exports=n([].slice)},e=>{"use strict";var t=TypeError;e.exports=function(e,r){if(e<r)throw new t("Not enough arguments");return e}},(e,t,r)=>{"use strict";var n=r(33);e.exports=/ipad|iphone|ipod/i.test(n)&&/applewebkit/i.test(n)},(e,t,r)=>{"use strict";var n=r(92);e.exports="NODE"===n},(e,t,r)=>{"use strict";var n=r(9),i=r(33),o=r(20),a=function(e){return i.slice(0,e.length)===e};e.exports=a("Bun/")?"BUN":a("Cloudflare-Workers")?"CLOUDFLARE":a("Deno/")?"DENO":a("Node.js/")?"NODE":n.Bun&&"string"==typeof Bun.version?"BUN":n.Deno&&"object"==typeof Deno.version?"DENO":"process"===o(n.process)?"NODE":n.window&&n.document?"BROWSER":"REST"},(e,t,r)=>{"use strict";var n=r(8),i=r(9),o=r(84).set,a=r(94),s=i.setImmediate?a(o,!1):o;n({global:!0,bind:!0,enumerable:!0,forced:i.setImmediate!==s},{setImmediate:s})},(e,t,r)=>{"use strict";var n,i=r(9),o=r(85),a=r(26),s=r(92),l=r(33),c=r(88),u=r(89),p=i.Function,d=/MSIE .\./.test(l)||"BUN"===s&&((n=i.Bun.version.split(".")).length<3||"0"===n[0]&&(n[1]<3||"3"===n[1]&&"0"===n[2]));e.exports=function(e,t){var r=t?2:1;return d?function(n,i){var s=u(arguments.length,1)>r,l=a(n)?n:p(n),d=s?c(arguments,r):[],h=s?function(){o(l,this,d)}:l;return t?e(h,i):e(h)}:e}},,,,,(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>i});var n=r(100);function i(e,t,r){return(t=(0,n.default)(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>o});var n=r(101),i=r(102);function o(e){var t=(0,i.default)(e,"string");return"symbol"==(0,n.default)(t)?t:t+""}},(e,t,r)=>{"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}r.r(t),r.d(t,{default:()=>n})},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>i});var n=r(101);function i(e,t){if("object"!=(0,n.default)(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,t||"default");if("object"!=(0,n.default)(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}},,,,,(e,t,r)=>{"use strict";r.r(t),r.d(t,{ErrorCode:()=>o,FormatError:()=>a,IntlMessageFormat:()=>m,InvalidValueError:()=>s,InvalidValueTypeError:()=>l,MissingValueError:()=>c,PART_TYPE:()=>u,default:()=>g,formatToParts:()=>d,isFormatXMLElementFn:()=>p});var n=r(108),i=r(109);let o=function(e){return e.MISSING_VALUE="MISSING_VALUE",e.INVALID_VALUE="INVALID_VALUE",e.MISSING_INTL_API="MISSING_INTL_API",e}({});var a=class extends Error{constructor(e,t,r){super(e),this.code=t,this.originalMessage=r}toString(){return`[formatjs Error: ${this.code}] ${this.message}`}},s=class extends a{constructor(e,t,r,n){super(`Invalid values for "${e}": "${t}". Options are "${Object.keys(r).join('", "')}"`,"INVALID_VALUE",n)}},l=class extends a{constructor(e,t,r){super(`Value for "${e}" must be of type ${t}`,"INVALID_VALUE",r)}}
1,c=class extends a{constructor(e,t){super(`The intl string context variable "${e}" was not provided to the string "${t}"`,"MISSING_VALUE",t)}};let u=function(e){return e[e.literal=0]="literal",e[e.object=1]="object",e}({});function p(e){return"function"==typeof e}function d(e,t,r,n,o,u,h){if(1===e.length&&(0,i.isLiteralElement)(e[0]))return[{type:0,value:e[0].value}];const f=[];for(const m of e){if((0,i.isLiteralElement)(m)){f.push({type:0,value:m.value});continue}if((0,i.isPoundElement)(m)){"number"==typeof u&&f.push({type:0,value:r.getNumberFormat(t).format(u)});continue}const{value:e}=m;if(!o||!(e in o))throw new c(e,h);let g=o[e];if((0,i.isArgumentElement)(m))g&&"string"!=typeof g&&"number"!=typeof g&&"bigint"!=typeof g||(g="string"==typeof g||"number"==typeof g||"bigint"==typeof g?String(g):""),f.push({type:"string"==typeof g?0:1,value:g});else{if((0,i.isDateElement)(m)){const e="string"==typeof m.style?n.date[m.style]:(0,i.isDateTimeSkeleton)(m.style)?m.style.parsedOptions:void 0;f.push({type:0,value:r.getDateTimeFormat(t,e).format(g)});continue}if((0,i.isTimeElement)(m)){const e="string"==typeof m.style?n.time[m.style]:(0,i.isDateTimeSkeleton)(m.style)?m.style.parsedOptions:n.time.medium;f.push({type:0,value:r.getDateTimeFormat(t,e).format(g)});continue}if((0,i.isNumberElement)(m)){const e="string"==typeof m.style?n.number[m.style]:(0,i.isNumberSkeleton)(m.style)?m.style.parsedOptions:void 0;if(e&&e.scale){const t=e.scale||1;if("bigint"==typeof g){if(!Number.isInteger(t))throw new TypeError(`Cannot apply fractional scale ${t} to bigint value. Scale must be an integer when formatting bigint.`);g*=BigInt(t)}else g*=t}f.push({type:0,value:r.getNumberFormat(t,e).format(g)});continue}if((0,i.isTagElement)(m)){const{children:e,value:i}=m,a=o[i];if(!p(a))throw new l(i,"function",h);let s=a(d(e,t,r,n,o,u).map(e=>e.value));Array.isArray(s)||(s=[s]),f.push(...s.map(e=>({type:"string"==typeof e?0:1,value:e})))}if((0,i.isSelectElement)(m)){const e=g,i=(Object.prototype.hasOwnProperty.call(m.options,e)?m.options[e]:void 0)||m.options.other;if(!i)throw new s(m.value,g,Object.keys(m.options),h);f.push(...d(i.value,t,r,n,o));continue}if((0,i.isPluralElement)(m)){const e=`=${g}`;let i=Object.prototype.hasOwnProperty.call(m.options,e)?m.options[e]:void 0;if(!i){if(!Intl.PluralRules)throw new a('Intl.PluralRules is not available in this environment.\nTry polyfilling it using "@formatjs/intl-pluralrules"\n',"MISSING_INTL_API",h);const e="bigint"==typeof g?Number(g):g,n=r.getPluralRules(t,{type:m.pluralType}).select(e-(m.offset||0));i=(Object.prototype.hasOwnProperty.call(m.options,n)?m.options[n]:void 0)||m.options.other}if(!i)throw new s(m.value,g,Object.keys(m.options),h);const l="bigint"==typeof g?Number(g):g;f.push(...d(i.value,t,r,n,o,l-(m.offset||0)));continue}}}return(m=f).length<2?m:m.reduce((e,t)=>{const r=e[e.length-1];return r&&0===r.type&&0===t.type?r.value+=t.value:e.push(t),e},[]);var m}function h(e,t){return t?Object.keys(e).reduce((r,n)=>{var i,o;return r[n]=(i=e[n],(o=t[n])?{...i,...o,...Object.keys(i).reduce((e,t)=>(e[t]={...i[t],...o[t]},e),{})}:i),r},{...e}):e}function f(e){return{create:()=>({get:t=>e[t],set(t,r){e[t]=r}})}}var m=class e{constructor(t,r=e.defaultLocale,i,o){if(this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=e=>{const t=this.formatToParts(e);if(1===t.length)return t[0].value;const r=t.reduce((e,t)=>(e.length&&0===t.type&&"string"==typeof e[e.length-1]?e[e.length-1]+=t.value:e.push(t.value),e),[]);return r.length<=1?r[0]||"":r},this.formatToParts=e=>d(this.ast,this.locales,this.formatters,this.formats,e,void 0,this.message),this.resolvedOptions=()=>({locale:this.resolvedLocale?.toString()||Intl.NumberFormat.supportedLocalesOf(this.locales)[0]}),this.getAst=()=>this.ast,this.locales=r,this.resolvedLocale=e.resolveLocale(r),"string"==typeof t){if(this.message=t,!e.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");const{...r}=o||{};this.ast=e.__parse(t,{...r,locale:this.resolvedLocale})}else this.ast=t;if(!Array.isArray(this.ast))throw new TypeError("A message must be provided as a String or AST.");this.formats=h(e.formats,i),this.formatters=o&&o.formatters||function(e={number:{},dateTime:{},pluralRules:{}}){return{getNumberFormat:(0,n.memoize)((...e)=>new Intl.NumberFormat(...e),{cache:f(e.number),strategy:n.strategies.variadic}),getDateTimeFormat:(0,n.memoize)((...e)=>new Intl.DateTimeFormat(...e),{cache:f(e.dateTime),strategy:n.strategies.variadic}),getPluralRules:(0,n.memoize)((...e)=>new Intl.PluralRules(...e),{cache:f(e.pluralRules),strategy:n.strategies.variadic})}}(this.formatterCache)}static{this.memoizedDefaultLocale=null}static get defaultLocale(){return e.memoizedDefaultLocale||(e.memoizedDefaultLocale=(new Intl.NumberFormat).resolvedOptions().locale),e.memoizedDefaultLocale}static{this.resolveLocale=e=>{if(void 0===Intl.Locale)return;const t=Intl.NumberFormat.supportedLocalesOf(e);return t.length>0?new Intl.Locale(t[0]):new Intl.Locale("string"==typeof e?e:e[0])}}static{this.__parse=i.parse}static{this.formats={number:{integer:{maximumFractionDigits:0},currency:{style:"currency"},percent:{style:"percent"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}}}},g=m},(e,t,r)=>{"use strict";function n(e,t){const r=t&&t.cache?t.cache:u,n=t&&t.serializer?t.serializer:l;return(t&&t.strategy?t.strategy:s)(e,{cache:r,serializer:n})}function i(e,t,r,n){const i=null==(o=n)||"number"==typeof o||"boolean"==typeof o?n:r(n);var o;let a=t.get(i);return void 0===a&&(a=e.call(this,n),t.set(i,a)),a}function o(e,t,r){const n=Array.prototype.slice.call(arguments,3),i=r(n);let o=t.get(i);return void 0===o&&(o=e.apply(this,n),t.set(i,o)),o}function a(e,t,r,n,i){return r.bind(t,e,n,i)}
1function s(e,t){return a(e,this,1===e.length?i:o,t.cache.create(),t.serializer)}r.r(t),r.d(t,{memoize:()=>n,strategies:()=>p});const l=function(){return JSON.stringify(arguments)};var c=class{constructor(){this.cache=Object.create(null)}get(e){return this.cache[e]}set(e,t){this.cache[e]=t}};const u={create:function(){return new c}},p={variadic:function(e,t){return a(e,this,o,t.cache.create(),t.serializer)},monadic:function(e,t){return a(e,this,i,t.cache.create(),t.serializer)}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{SKELETON_TYPE:()=>a,TYPE:()=>o,_Parser:()=>H,createLiteralElement:()=>b,createNumberElement:()=>v,isArgumentElement:()=>l,isDateElement:()=>u,isDateTimeSkeleton:()=>y,isLiteralElement:()=>s,isNumberElement:()=>c,isNumberSkeleton:()=>g,isPluralElement:()=>h,isPoundElement:()=>f,isSelectElement:()=>d,isStructurallySame:()=>B,isTagElement:()=>m,isTimeElement:()=>p,parse:()=>j});var n=r(110);let i=function(e){return e[e.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",e[e.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",e[e.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",e[e.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",e[e.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",e[e.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",e[e.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",e[e.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",e[e.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",e[e.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",e[e.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",e[e.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",e[e.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",e[e.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",e[e.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",e[e.INVALID_TAG=23]="INVALID_TAG",e[e.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",e[e.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",e[e.UNCLOSED_TAG=27]="UNCLOSED_TAG",e}({}),o=function(e){return e[e.literal=0]="literal",e[e.argument=1]="argument",e[e.number=2]="number",e[e.date=3]="date",e[e.time=4]="time",e[e.select=5]="select",e[e.plural=6]="plural",e[e.pound=7]="pound",e[e.tag=8]="tag",e}({}),a=function(e){return e[e.number=0]="number",e[e.dateTime=1]="dateTime",e}({});function s(e){return 0===e.type}function l(e){return 1===e.type}function c(e){return 2===e.type}function u(e){return 3===e.type}function p(e){return 4===e.type}function d(e){return 5===e.type}function h(e){return 6===e.type}function f(e){return 7===e.type}function m(e){return 8===e.type}function g(e){return!(!e||"object"!=typeof e||0!==e.type)}function y(e){return!(!e||"object"!=typeof e||1!==e.type)}function b(e){return{type:0,value:e}}function v(e,t){return{type:2,value:e,style:t}}const _=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,S={"001":["H","h"],419:["h","H","hB","hb"],AC:["H","h","hb","hB"],AD:["H","hB"],AE:["h","hB","hb","H"],AF:["H","hb","hB","h"],AG:["h","hb","H","hB"],AI:["H","h","hb","hB"],AL:["h","H","hB"],AM:["H","hB"],AO:["H","hB"],AR:["h","H","hB","hb"],AS:["h","H"],AT:["H","hB"],AU:["h","hb","H","hB"],AW:["H","hB"],AX:["H"],AZ:["H","hB","h"],BA:["H","hB","h"],BB:["h","hb","H","hB"],BD:["h","hB","H"],BE:["H","hB"],BF:["H","hB"],BG:["H","hB","h"],BH:["h","hB","hb","H"],BI:["H","h"],BJ:["H","hB"],BL:["H","hB"],BM:["h","hb","H","hB"],BN:["hb","hB","h","H"],BO:["h","H","hB","hb"],BQ:["H"],BR:["H","hB"],BS:["h","hb","H","hB"],BT:["h","H"],BW:["H","h","hb","hB"],BY:["H","h"],BZ:["H","h","hb","hB"],CA:["h","hb","H","hB"],CC:["H","h","hb","hB"],CD:["hB","H"],CF:["H","h","hB"],CG:["H","hB"],CH:["H","hB","h"],CI:["H","hB"],CK:["H","h","hb","hB"],CL:["h","H","hB","hb"],CM:["H","h","hB"],CN:["H","hB","hb","h"],CO:["h","H","hB","hb"],CP:["H"],CR:["h","H","hB","hb"],CU:["h","H","hB","hb"],CV:["H","hB"],CW:["H","hB"],CX:["H","h","hb","hB"],CY:["h","H","hb","hB"],CZ:["H"],DE:["H","hB"],DG:["H","h","hb","hB"],DJ:["h","H"],DK:["H"],DM:["h","hb","H","hB"],DO:["h","H","hB","hb"],DZ:["h","hB","hb","H"],EA:["H","h","hB","hb"],EC:["h","H","hB","hb"],EE:["H","hB"],EG:["h","hB","hb","H"],EH:["h","hB","hb","H"],ER:["h","H"],ES:["H","hB","h","hb"],ET:["hB","hb","h","H"],FI:["H"],FJ:["h","hb","H","hB"],FK:["H","h","hb","hB"],FM:["h","hb","H","hB"],FO:["H","h"],FR:["H","hB"],GA:["H","hB"],GB:["H","h","hb","hB"],GD:["h","hb","H","hB"],GE:["H","hB","h"],GF:["H","hB"],GG:["H","h","hb","hB"],GH:["h","H"],GI:["H","h","hb","hB"],GL:["H","h"],GM:["h","hb","H","hB"],GN:["H","hB"],GP:["H","hB"],GQ:["H","hB","h","hb"],GR:["h","H","hb","hB"],GS:["H","h","hb","hB"],GT:["h","H","hB","hb"],GU:["h","hb","H","hB"],GW:["H","hB"],GY:["h","hb","H","hB"],HK:["h","hB","hb","H"],HN:["h","H","hB","hb"],HR:["H","hB"],HU:["H","h"],IC:["H","h","hB","hb"],ID:["H"],IE:["H","h","hb","hB"],IL:["H","hB"],IM:["H","h","hb","hB"],IN:["h","H"],IO:["H","h","hb","hB"],IQ:["h","hB","hb","H"],IR:["hB","H"],IS:["H"],IT:["H","hB"],JE:["H","h","hb","hB"],JM:["h","hb","H","hB"],JO:["h","hB","hb","H"],JP:["H","K","h"],KE:["hB","hb","H","h"],KG:["H","h","hB","hb"],KH:["hB","h","H","hb"],KI:["h","hb","H","hB"],KM:["H","h","hB","hb"],KN:["h","hb","H","hB"],KP:["h","H","hB","hb"],KR:["h","H","hB","hb"],KW:["h","hB","hb","H"],KY:["h","hb","H","hB"],KZ:["H","hB"],LA:["H","hb","hB","h"],LB:["h","hB","hb","H"],LC:["h","hb","H","hB"],LI:["H","hB","h"],LK:["H","h","hB","hb"],LR:["h","hb","H","hB"],LS:["h","H"],LT:["H","h","hb","hB"],LU:["H","h","hB"],LV:["H","hB","hb","h"],LY:["h","hB","hb","H"],MA
1:["H","h","hB","hb"],MC:["H","hB"],MD:["H","hB"],ME:["H","hB","h"],MF:["H","hB"],MG:["H","h"],MH:["h","hb","H","hB"],MK:["H","h","hb","hB"],ML:["H"],MM:["hB","hb","H","h"],MN:["H","h","hb","hB"],MO:["h","hB","hb","H"],MP:["h","hb","H","hB"],MQ:["H","hB"],MR:["h","hB","hb","H"],MS:["H","h","hb","hB"],MT:["H","h"],MU:["H","h"],MV:["H","h"],MW:["h","hb","H","hB"],MX:["h","H","hB","hb"],MY:["hb","hB","h","H"],MZ:["H","hB"],NA:["h","H","hB","hb"],NC:["H","hB"],NE:["H"],NF:["H","h","hb","hB"],NG:["H","h","hb","hB"],NI:["h","H","hB","hb"],NL:["H","hB"],NO:["H","h"],NP:["H","h","hB"],NR:["H","h","hb","hB"],NU:["H","h","hb","hB"],NZ:["h","hb","H","hB"],OM:["h","hB","hb","H"],PA:["h","H","hB","hb"],PE:["h","H","hB","hb"],PF:["H","h","hB"],PG:["h","H"],PH:["h","hB","hb","H"],PK:["h","hB","H"],PL:["H","h"],PM:["H","hB"],PN:["H","h","hb","hB"],PR:["h","H","hB","hb"],PS:["h","hB","hb","H"],PT:["H","hB"],PW:["h","H"],PY:["h","H","hB","hb"],QA:["h","hB","hb","H"],RE:["H","hB"],RO:["H","hB"],RS:["H","hB","h"],RU:["H"],RW:["H","h"],SA:["h","hB","hb","H"],SB:["h","hb","H","hB"],SC:["H","h","hB"],SD:["h","hB","hb","H"],SE:["H"],SG:["h","hb","H","hB"],SH:["H","h","hb","hB"],SI:["H","hB"],SJ:["H"],SK:["H"],SL:["h","hb","H","hB"],SM:["H","h","hB"],SN:["H","h","hB"],SO:["h","H"],SR:["H","hB"],SS:["h","hb","H","hB"],ST:["H","hB"],SV:["h","H","hB","hb"],SX:["H","h","hb","hB"],SY:["h","hB","hb","H"],SZ:["h","hb","H","hB"],TA:["H","h","hb","hB"],TC:["h","hb","H","hB"],TD:["h","H","hB"],TF:["H","h","hB"],TG:["H","hB"],TH:["H","h"],TJ:["H","h"],TL:["H","hB","hb","h"],TM:["H","h"],TN:["h","hB","hb","H"],TO:["h","H"],TR:["H","hB"],TT:["h","hb","H","hB"],TW:["hB","hb","h","H"],TZ:["hB","hb","H","h"],UA:["H","hB","h"],UG:["hB","hb","H","h"],UM:["h","hb","H","hB"],US:["h","hb","H","hB"],UY:["h","H","hB","hb"],UZ:["H","hB","h"],VA:["H","h","hB"],VC:["h","hb","H","hB"],VE:["h","H","hB","hb"],VG:["h","hb","H","hB"],VI:["h","hb","H","hB"],VN:["H","h"],VU:["h","H"],WF:["H","hB"],WS:["h","H"],XK:["H","hB","h"],YE:["h","hB","hb","H"],YT:["H","hB"],ZA:["H","h","hb","hB"],ZM:["h","hb","H","hB"],ZW:["H","h"],"af-ZA":["H","h","hB","hb"],"ar-001":["h","hB","hb","H"],"ca-ES":["H","h","hB"],"en-001":["h","hb","H","hB"],"en-HK":["h","hb","H","hB"],"en-IL":["H","h","hb","hB"],"en-MY":["h","hb","H","hB"],"es-BR":["H","h","hB","hb"],"es-ES":["H","h","hB","hb"],"es-GQ":["H","h","hB","hb"],"fr-CA":["H","h","hB"],"gl-ES":["H","h","hB"],"gu-IN":["hB","hb","h","H"],"hi-IN":["hB","h","H"],"it-CH":["H","h","hB"],"it-IT":["H","h","hB"],"kn-IN":["hB","h","H"],"ku-SY":["H","hB"],"ml-IN":["hB","h","H"],"mr-IN":["hB","hb","h","H"],"pa-IN":["hB","hb","h","H"],"ta-IN":["hB","h","hb","H"],"te-IN":["hB","h","H"],"zu-ZA":["H","hB","hb","h"]};function E(e){let t=e.hourCycle;if(void 0===t&&e.hourCycles&&e.hourCycles.length&&(t=e.hourCycles[0]),t)switch(t){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw new Error("Invalid hourCycle")}const r=e.language;let n;return"root"!==r&&(n=e.maximize().region),(S[n||""]||S[r||""]||S[`${r}-001`]||S["001"])[0]}const T=new RegExp(`^${_.source}*`),w=new RegExp(`${_.source}*$`);function x(e,t){return{start:e,end:t}}const O=!!Object.fromEntries,I=!!String.prototype.trimStart,A=!!String.prototype.trimEnd,k=O?Object.fromEntries:function(e){const t={};for(const[r,n]of e)t[r]=n;return t},R=I?function(e){return e.trimStart()}:function(e){return e.replace(T,"")},C=A?function(e){return e.trimEnd()}:function(e){return e.replace(w,"")},P=new RegExp("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");var D=class{constructor(e,t={}){this.message=e,this.position={offset:0,line:1,column:1},this.ignoreTag=!!t.ignoreTag,this.locale=t.locale,this.requiresOtherClause=!!t.requiresOtherClause,this.shouldParseSkeletons=!!t.shouldParseSkeletons}parse(){if(0!==this.offset())throw Error("parser can only be used once");if(this.message.length>0){const e=this.message.charCodeAt(0);if(35!==e&&39!==e&&60!==e&&123!==e&&125!==e){const e=function(e){if(0===e.length)return null;let t=1,r=1;for(let n=0;n<e.length;){const i=e.charCodeAt(n);switch(i){case 35:case 39:case 60:case 123:case 125:return null}if(10===i)t++,r=1,n++;else if(r++,i>=55296&&i<=56319&&n+1<e.length){const t=e.charCodeAt(n+1);n+=t>=56320&&t<=57343?2:1}else n++}return{offset:e.length,line:t,column:r}}(this.message);if(e){const t=this.clonePosition();return this.position=e,{val:[{type:0,value:this.message,location:x(t,this.clonePosition())}],err:null}}}}return this.parseMessage(0,"",!1)}parseMessage(e,t,r){let n=[];for(;!this.isEOF();){const i=this.char();if(123===i){const t=this.parseArgument(e,r);if(t.err)return t;n.push(t.val)}else{if(125===i&&e>0)break;if(35!==i||"plural"!==t&&"selectordinal"!==t){if(60===i&&!this.ignoreTag&&47===this.peek()){if(r)break;return this.error(26,x(this.clonePosition(),this.clonePosition()))}if(60===i&&!this.ignoreTag&&M(this.peek()||0)){const r=this.parseTag(e,t);if(r.err)return r;n.push(r.val)}else{const r=this.parseLiteral(e,t);if(r.err)return r;n.push(r.val)}}else{const e=this.clonePosition();this.bump(),n.push({type:7,location:x(e,this.clonePosition())})}}}return{val:n,err:null}}parseTag(e,t){const r=this.clonePosition();this.bump();const n=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:0,value:`<${n}/>`,location:x(r,this.clonePosition())},err:null};if(this.bumpIf(">")){const i=this.parseMessage(e+1,t,!0);if(i.err)return i;const o=i.val,a=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!M(this.char()))return this.error(23,x(a,this.clonePosition()));const e=this.clonePosition();return n!==this.parseTagName()?this.error(26,x(e,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:8,value:n,children:o,location:x(r,this.clonePosition())},err:null}:this.error(23,x(a,this.clonePosition())))}return this.error(27,x(r,this.clonePosition()))}return this.error(23,x(r,this.clonePosition()))}parseTagName(){const e=this.offset();for(this.bump();!this.isEOF()&&N(this.char());)this.bump();return this.message.slice(e,this.offset())}parseLiteral(e,t){const r=this.clonePosition();let n="";for(;;){const r=this.tryParseQuote(t);if(r){n+=r;
1continue}const i=this.tryParseUnquoted(e,t);if(i){n+=i;continue}const o=this.tryParseLeftAngleBracket();if(!o)break;n+=o}return{val:{type:0,value:n,location:x(r,this.clonePosition())},err:null}}tryParseLeftAngleBracket(){return this.isEOF()||60!==this.char()||!this.ignoreTag&&(M(e=this.peek()||0)||47===e)?null:(this.bump(),"<");var e}tryParseQuote(e){if(this.isEOF()||39!==this.char())return null;switch(this.peek()){case 39:return this.bump(),this.bump(),"'";case 123:case 60:case 62:case 125:break;case 35:if("plural"===e||"selectordinal"===e)break;return null;default:return null}this.bump();const t=[this.char()];for(this.bump();!this.isEOF();){const e=this.char();if(39===e){if(39!==this.peek()){this.bump();break}t.push(39),this.bump()}else t.push(e);this.bump()}return String.fromCodePoint(...t)}tryParseUnquoted(e,t){if(this.isEOF())return null;const r=this.char();return 60===r||123===r||35===r&&("plural"===t||"selectordinal"===t)||125===r&&e>0?null:(this.bump(),String.fromCodePoint(r))}parseArgument(e,t){const r=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(1,x(r,this.clonePosition()));if(125===this.char())return this.bump(),this.error(2,x(r,this.clonePosition()));let n=this.parseIdentifierIfPossible().value;if(!n)return this.error(3,x(r,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(1,x(r,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:1,value:n,location:x(r,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(1,x(r,this.clonePosition())):this.parseArgumentOptions(e,t,n,r);default:return this.error(3,x(r,this.clonePosition()))}}parseIdentifierIfPossible(){const e=this.clonePosition(),t=this.offset(),r=(n=this.message,i=t,P.lastIndex=i,P.exec(n)[1]??"");var n,i;const o=t+r.length;return this.bumpTo(o),{value:r,location:x(e,this.clonePosition())}}parseArgumentOptions(e,t,r,i){let o=this.clonePosition(),a=this.parseIdentifierIfPossible().value,s=this.clonePosition();switch(a){case"":return this.error(4,x(o,s));case"number":case"date":case"time":{this.bumpSpace();let e=null;if(this.bumpIf(",")){this.bumpSpace();const t=this.clonePosition(),r=this.parseSimpleArgStyleIfPossible();if(r.err)return r;const n=C(r.val);if(0===n.length)return this.error(6,x(this.clonePosition(),this.clonePosition()));e={style:n,styleLocation:x(t,this.clonePosition())}}const t=this.tryParseArgumentClose(i);if(t.err)return t;const o=x(i,this.clonePosition());if(e&&e.style.startsWith("::")){let t=R(e.style.slice(2));if("number"===a){const n=this.parseNumberSkeletonFromString(t,e.styleLocation);return n.err?n:{val:{type:2,value:r,location:o,style:n.val},err:null}}{if(0===t.length)return this.error(10,o);let i=t;this.locale&&(i=function(e,t){let r="";for(let n=0;n<e.length;n++){const i=e.charAt(n);if("j"===i){let o=0;for(;n+1<e.length&&e.charAt(n+1)===i;)o++,n++;let a=1+(1&o),s=o<2?1:3+(o>>1),l="a",c=E(t);for("H"!=c&&"k"!=c||(s=0);s-- >0;)r+=l;for(;a-- >0;)r=c+r}else r+="J"===i?"H":i}return r}(t,this.locale));return{val:{type:"date"===a?3:4,value:r,location:o,style:{type:1,pattern:i,location:e.styleLocation,parsedOptions:this.shouldParseSkeletons?(0,n.parseDateTimeSkeleton)(i):{}}},err:null}}}return{val:{type:"number"===a?2:"date"===a?3:4,value:r,location:o,style:e?.style??null},err:null}}case"plural":case"selectordinal":case"select":{const n=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(12,x(n,{...n}));this.bumpSpace();let o=this.parseIdentifierIfPossible(),s=0;if("select"!==a&&"offset"===o.value){if(!this.bumpIf(":"))return this.error(13,x(this.clonePosition(),this.clonePosition()));this.bumpSpace();const e=this.tryParseDecimalInteger(13,14);if(e.err)return e;this.bumpSpace(),o=this.parseIdentifierIfPossible(),s=e.val}const l=this.tryParsePluralOrSelectOptions(e,a,t,o);if(l.err)return l;const c=this.tryParseArgumentClose(i);if(c.err)return c;const u=x(i,this.clonePosition());return"select"===a?{val:{type:5,value:r,options:k(l.val),location:u},err:null}:{val:{type:6,value:r,options:k(l.val),offset:s,pluralType:"plural"===a?"cardinal":"ordinal",location:u},err:null}}default:return this.error(5,x(o,s))}}tryParseArgumentClose(e){return this.isEOF()||125!==this.char()?this.error(1,x(e,this.clonePosition())):(this.bump(),{val:!0,err:null})}parseSimpleArgStyleIfPossible(){let e=0;const t=this.clonePosition();for(;!this.isEOF();)switch(this.char()){case 39:{this.bump();let e=this.clonePosition();if(!this.bumpUntil("'"))return this.error(11,x(e,this.clonePosition()));this.bump();break}case 123:e+=1,this.bump();break;case 125:if(!(e>0))return{val:this.message.slice(t.offset,this.offset()),err:null};e-=1;break;default:this.bump()}return{val:this.message.slice(t.offset,this.offset()),err:null}}parseNumberSkeletonFromString(e,t){let r=[];try{r=(0,n.parseNumberSkeletonFromString)(e)}catch{return this.error(7,t)}return{val:{type:0,tokens:r,location:t,parsedOptions:this.shouldParseSkeletons?(0,n.parseNumberSkeleton)(r):{}},err:null}}tryParsePluralOrSelectOptions(e,t,r,n){let i=!1;const o=[],a=new Set;let{value:s,location:l}=n;for(;;){if(0===s.length){const e=this.clonePosition();if("select"===t||!this.bumpIf("="))break;{const t=this.tryParseDecimalInteger(16,19);if(t.err)return t;l=x(e,this.clonePosition()),s=this.message.slice(e.offset,this.offset())}}if(a.has(s))return this.error("select"===t?21:20,l);"other"===s&&(i=!0),this.bumpSpace();const n=this.clonePosition();if(!this.bumpIf("{"))return this.error("select"===t?17:18,x(this.clonePosition(),this.clonePosition()));const c=this.parseMessage(e+1,t,r);if(c.err)return c;const u=this.tryParseArgumentClose(n);if(u.err)return u;o.push([s,{value:c.val,location:x(n,this.clonePosition())}]),a.add(s),this.bumpSpace(),({value:s,location:l}=this.parseIdentifierIfPossible())}return 0===o.length?this.error("select"===t?15:16,x(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!i?this.error(22,x(this.clonePosition(),this.clonePosition())):{val:o,err:null}}tryParseDecimalInteger(e,t){let r=1;const n=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(r=-1);let i=!1,o=0;for(;!this.isEOF();){const e=this.char();if(!(e>=48&&e<=57))break;i=!0,o=10*o+(e-48),this.bump()}const a=x(n,this.clonePosition());return i?(o*=r,Number.isSafeInteger(o)?{val:o,err:null}:this.error(t,a)):this.error(e,a)}offset(){return this.position.offset}isEOF(){return this.offset()===this.message.length}clonePosition(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}}char(){const e=this.position.offset;if(e>=this.message.length)throw Error("out of bound");const t=this.message.codePointAt(e);if(void 0===t)throw Error(`Offset ${e} is at invalid UTF-16 code unit boundary`);return t}error(e,t){return{val:null,err:{kind:e,message:this.message,location:t}}}bump(){if(this.isEOF())return;const e=this.char();
110===e?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=e<65536?1:2)}bumpIf(e){if(this.message.startsWith(e,this.offset())){for(let t=0;t<e.length;t++)this.bump();return!0}return!1}bumpUntil(e){const t=this.offset(),r=this.message.indexOf(e,t);return r>=0?(this.bumpTo(r),!0):(this.bumpTo(this.message.length),!1)}bumpTo(e){if(this.offset()>e)throw Error(`targetOffset ${e} must be greater than or equal to the current offset ${this.offset()}`);for(e=Math.min(e,this.message.length);;){const t=this.offset();if(t===e)break;if(t>e)throw Error(`targetOffset ${e} is at invalid UTF-16 code unit boundary`);if(this.bump(),this.isEOF())break}}bumpSpace(){for(;!this.isEOF()&&L(this.char());)this.bump()}peek(){if(this.isEOF())return null;const e=this.char(),t=this.offset();return this.message.charCodeAt(t+(e>=65536?2:1))??null}};function M(e){return e>=97&&e<=122||e>=65&&e<=90}function N(e){return 45===e||46===e||e>=48&&e<=57||95===e||e>=97&&e<=122||e>=65&&e<=90||183==e||e>=192&&e<=214||e>=216&&e<=246||e>=248&&e<=893||e>=895&&e<=8191||e>=8204&&e<=8205||e>=8255&&e<=8256||e>=8304&&e<=8591||e>=11264&&e<=12271||e>=12289&&e<=55295||e>=63744&&e<=64975||e>=65008&&e<=65533||e>=65536&&e<=983039}function L(e){return e>=9&&e<=13||32===e||133===e||e>=8206&&e<=8207||8232===e||8233===e}function F(e,t=new Map){e.forEach(e=>{if(l(e)||u(e)||p(e)||c(e))if(t.has(e.value)){const r=t.get(e.value);if(r!==e.type&&6!==r&&5!==r)throw new Error(`Variable ${e.value} has conflicting types`)}else t.set(e.value,e.type);(h(e)||d(e))&&(t.set(e.value,e.type),Object.keys(e.options).forEach(r=>{F(e.options[r].value,t)})),m(e)&&(t.set(e.value,e.type),F(e.children,t))})}function B(e,t){const r=new Map,n=new Map;return F(e,r),F(t,n),r.size!==n.size?{success:!1,error:new Error(`Different number of variables: [${Array.from(r.keys()).join(", ")}] vs [${Array.from(n.keys()).join(", ")}]`)}:Array.from(r.entries()).reduce((e,[t,r])=>{if(!e.success)return e;const i=n.get(t);return null==i?{success:!1,error:new Error(`Missing variable ${t} in message`)}:i!==r?{success:!1,error:new Error(`Variable ${t} has conflicting types: ${o[r]} vs ${o[i]}`)}:e},{success:!0})}function U(e){e.forEach(e=>{if(delete e.location,d(e)||h(e))for(const t in e.options)delete e.options[t].location,U(e.options[t].value);else c(e)&&g(e.style)||(u(e)||p(e))&&y(e.style)?delete e.style.location:m(e)&&U(e.children)})}function j(e,t={}){t={shouldParseSkeletons:!0,requiresOtherClause:!0,...t};const r=new D(e,t).parse();if(r.err){const e=SyntaxError(i[r.err.kind]);throw e.location=r.err.location,e.originalMessage=r.err.message,e}return t?.captureLocation||U(r.val),r.val}const H=D},(e,t,r)=>{"use strict";r.r(t),r.d(t,{parseDateTimeSkeleton:()=>i,parseNumberSkeleton:()=>g,parseNumberSkeletonFromString:()=>a});const n=/(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;function i(e){const t={};return e.replace(n,e=>{const r=e.length;switch(e[0]){case"G":t.era=4===r?"long":5===r?"narrow":"short";break;case"y":t.year=2===r?"2-digit":"numeric";break;case"Y":case"u":case"U":case"r":throw new RangeError("`Y/u/U/r` (year) patterns are not supported, use `y` instead");case"q":case"Q":throw new RangeError("`q/Q` (quarter) patterns are not supported");case"M":case"L":t.month=["numeric","2-digit","short","long","narrow"][r-1];break;case"w":case"W":throw new RangeError("`w/W` (week) patterns are not supported");case"d":t.day=["numeric","2-digit"][r-1];break;case"D":case"F":case"g":throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case"E":t.weekday=4===r?"long":5===r?"narrow":"short";break;case"e":if(r<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][r-3];break;case"c":if(r<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][r-3];break;case"a":t.hour12=!0;break;case"b":case"B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":t.hourCycle="h12",t.hour=["numeric","2-digit"][r-1];break;case"H":t.hourCycle="h23",t.hour=["numeric","2-digit"][r-1];break;case"K":t.hourCycle="h11",t.hour=["numeric","2-digit"][r-1];break;case"k":t.hourCycle="h24",t.hour=["numeric","2-digit"][r-1];break;case"j":case"J":case"C":throw new RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");case"m":t.minute=["numeric","2-digit"][r-1];break;case"s":t.second=["numeric","2-digit"][r-1];break;case"S":case"A":throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":t.timeZoneName=r<4?"short":"long";break;case"Z":case"O":case"v":case"V":case"X":case"x":throw new RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead")}return""}),t}const o=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;function a(e){if(0===e.length)throw new Error("Number skeleton cannot be empty");const t=e.split(o).filter(e=>e.length>0),r=[];for(const e of t){let t=e.split("/");if(0===t.length)throw new Error("Invalid number skeleton");const[n,...i]=t;for(const e of i)if(0===e.length)throw new Error("Invalid number skeleton");r.push({stem:n,options:i})}return r}function s(e){return e.replace(/^(.*?)-/,"")}const l=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,c=/^(@+)?(\+|#+)?[rs]?$/g,u=/(\*)(0+)|(#+)(0+)|(0+)/g,p=/^(0+)$/;function d(e){const t={};return"r"===e[e.length-1]?t.roundingPriority="morePrecision":"s"===e[e.length-1]&&(t.roundingPriority="lessPrecision"),e.replace(c,function(e,r,n){return"string"!=typeof n?(t.minimumSignificantDigits=r.length,t.maximumSignificantDigits=r.length):"+"===n?t.minimumSignificantDigits=r.length:"#"===r[0]?t.maximumSignificantDigits=r.length:(t.minimumSignificantDigits=r.length,t.maximumSignificantDigits=r.length+("string"==typeof n?n.length:0)),""}),t}function h(e){switch(e){case"sign-auto":return{signDisplay:"auto"};case"sign-accounting":case"()":return{currencySign:"accounting"};case"sign-always":case"+!":return{signDisplay:"always"};case"sign-accounting-always":case"()!":return{signDisplay:"always",currencySign:"accounting"};case"sign-except-zero":case"+?":return{signDisplay:"exceptZero"};case"sign-accounting-except-zero":case"()?":return{signDisplay:"exceptZero",currencySign:"accounting"};case"sign-never":case"+_":return{signDisplay:"never"}}}function f(e){let t;if("E"===e[0]&&"E"===e[1]?(t={notation:"engineering"},e=e.slice(2)):"E"===e[0]&&(t={notation:"scientific"},e=e.slice(1)),t){const r=e.slice(0,2);if("+!"===r?(t.signDisplay="always",e=e.slice(2)):"+?"===r&&(t.signDisplay="exceptZero",e=e.slice(2)),!p.test(e))throw new Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}function m(e){const t=h(e);return t||{}}function g(e){let t={};for(const r of e){switch(r.stem){case"percent":case"%":t.style="percent";continue;case"%x100":t.style="percent",t.scale=100;continue;case"currency":t.style="currency",t.currency=r.options[0];continue;case"group-off":case",_":t.useGrouping=!1;continue;case"precision-integer":case".":t.maximumFractionDigits=0;continue;case"measure-unit":case"unit":t.style="unit",t.unit=s(r.options[0]);continue;case"compact-short":case"K":t.notation="compact",t.compactDisplay="short";continue;case"compact-long":case"KK":t.notation="compact",t.compactDisplay="long";continue;
1case"scientific":t={...t,notation:"scientific",...r.options.reduce((e,t)=>({...e,...m(t)}),{})};continue;case"engineering":t={...t,notation:"engineering",...r.options.reduce((e,t)=>({...e,...m(t)}),{})};continue;case"notation-simple":t.notation="standard";continue;case"unit-width-narrow":t.currencyDisplay="narrowSymbol",t.unitDisplay="narrow";continue;case"unit-width-short":t.currencyDisplay="code",t.unitDisplay="short";continue;case"unit-width-full-name":t.currencyDisplay="name",t.unitDisplay="long";continue;case"unit-width-iso-code":t.currencyDisplay="symbol";continue;case"scale":t.scale=parseFloat(r.options[0]);continue;case"rounding-mode-floor":t.roundingMode="floor";continue;case"rounding-mode-ceiling":t.roundingMode="ceil";continue;case"rounding-mode-down":t.roundingMode="trunc";continue;case"rounding-mode-up":t.roundingMode="expand";continue;case"rounding-mode-half-even":t.roundingMode="halfEven";continue;case"rounding-mode-half-down":t.roundingMode="halfTrunc";continue;case"rounding-mode-half-up":t.roundingMode="halfExpand";continue;case"integer-width":if(r.options.length>1)throw new RangeError("integer-width stems only accept a single optional option");r.options[0].replace(u,function(e,r,n,i,o,a){if(r)t.minimumIntegerDigits=n.length;else{if(i&&o)throw new Error("We currently do not support maximum integer digits");if(a)throw new Error("We currently do not support exact integer digits")}return""});continue}if(p.test(r.stem)){t.minimumIntegerDigits=r.stem.length;continue}if(l.test(r.stem)){if(r.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");r.stem.replace(l,function(e,r,n,i,o,a){return"*"===n?t.minimumFractionDigits=r.length:i&&"#"===i[0]?t.maximumFractionDigits=i.length:o&&a?(t.minimumFractionDigits=o.length,t.maximumFractionDigits=o.length+a.length):(t.minimumFractionDigits=r.length,t.maximumFractionDigits=r.length),""});const e=r.options[0];"w"===e?t={...t,trailingZeroDisplay:"stripIfInteger"}:e&&(t={...t,...d(e)});continue}if(c.test(r.stem)){t={...t,...d(r.stem)};continue}const e=h(r.stem);e&&(t={...t,...e});const n=f(r.stem);n&&(t={...t,...n})}return t}},,,(e,t,r)=>{"use strict";r.r(t),r.d(t,{Firehose:()=>b});var n=r(114),i=r(115),o=r(175),a=r(176),s=r(177),l=r(178),c=r(179),u=r(180),p=r(181),d=r(182),h=r(183),f=r(184),m=r(185),g=r(186);const y={CreateDeliveryStreamCommand:i.CreateDeliveryStreamCommand,DeleteDeliveryStreamCommand:o.DeleteDeliveryStreamCommand,DescribeDeliveryStreamCommand:a.DescribeDeliveryStreamCommand,ListDeliveryStreamsCommand:s.ListDeliveryStreamsCommand,ListTagsForDeliveryStreamCommand:l.ListTagsForDeliveryStreamCommand,PutRecordCommand:u.PutRecordCommand,PutRecordBatchCommand:c.PutRecordBatchCommand,StartDeliveryStreamEncryptionCommand:p.StartDeliveryStreamEncryptionCommand,StopDeliveryStreamEncryptionCommand:d.StopDeliveryStreamEncryptionCommand,TagDeliveryStreamCommand:h.TagDeliveryStreamCommand,UntagDeliveryStreamCommand:f.UntagDeliveryStreamCommand,UpdateDestinationCommand:m.UpdateDestinationCommand};class b extends g.FirehoseClient{}(0,n.createAggregatedClient)(y,b)},(e,t,r)=>{"use strict";r.r(t),r.d(t,{createAggregatedClient:()=>n});const n=(e,t,r)=>{for(const[r,n]of Object.entries(e)){const e=async function(e,t,r){const i=new n(e);if("function"==typeof t)this.send(i,t);else{if("function"!=typeof r)return this.send(i,t);if("object"!=typeof t)throw new Error("Expected http options but got "+typeof t);this.send(i,t||{},r)}},i=(r[0].toLowerCase()+r.slice(1)).replace(/Command$/,"");t.prototype[i]=e}const{paginators:n={},waiters:i={}}=r??{};for(const[e,r]of Object.entries(n))void 0===t.prototype[e]&&(t.prototype[e]=function(e={},t,...n){return r({...t,client:this},e,...n)});for(const[e,r]of Object.entries(i))void 0===t.prototype[e]&&(t.prototype[e]=async function(e={},t,...n){let i=t;return"number"==typeof t&&(i={maxWaitTime:t}),r({...i,client:this},e,...n)})}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{CreateDeliveryStreamCommand:()=>o});var n=r(116),i=r(170);class o extends((0,n.command)(n._ep0,n._mw0,"CreateDeliveryStream",i.CreateDeliveryStream$)){}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{_ep0:()=>s,_mw0:()=>l,command:()=>a});var n=r(117),i=r(125),o=r(169);const a=(0,n.makeBuilder)(o.commonParams,"Firehose_20150804","FirehoseClient",i.getEndpointPlugin),s={},l=(e,t,r,n)=>[]},(e,t,r)=>{"use strict";r.r(t),r.d(t,{makeBuilder:()=>i});var n=r(118);function i(e,t,r,i){return function(o,a,s,l,c={}){const u=Object.assign({},e,o);return n.Command.classBuilder().ep(u).m(function(e,t,r,n){const o=a.call(this,e,t,r,n);
1return o.unshift(i(r,e.getEndpointParameterInstructions())),o}).s(t,s,c).n(r,s.charAt(0).toUpperCase()+s.slice(1)+"Command").sc(l).build()}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{Command:()=>a});var n=r(119),i=r(120),o=r(121);class a{middlewareStack=(0,i.constructStack)();schema;static classBuilder(){return new s}resolveMiddlewareWithContext(e,t,r,{middlewareFn:i,clientName:o,commandName:a,inputFilterSensitiveLog:s,outputFilterSensitiveLog:l,smithyContext:c,additionalContext:u,CommandCtor:p}){for(const n of i.bind(this)(p,e,t,r))this.middlewareStack.use(n);const d=e.concat(this.middlewareStack),{logger:h}=t,f={logger:h,clientName:o,commandName:a,inputFilterSensitiveLog:s,outputFilterSensitiveLog:l,[n.SMITHY_CONTEXT_KEY]:{commandInstance:this,...c},...u},{requestHandler:m}=t;let g=r??{};return c.eventStream&&(g={isEventStream:!0,...g}),d.resolve(e=>m.handle(e.request,g),f)}}class s{_init=()=>{};_ep={};_middlewareFn=()=>[];_commandName="";_clientName="";_additionalContext={};_smithyContext={};_inputFilterSensitiveLog=void 0;_outputFilterSensitiveLog=void 0;_serializer=null;_deserializer=null;_operationSchema;init(e){this._init=e}ep(e){return this._ep=e,this}m(e){return this._middlewareFn=e,this}s(e,t,r={}){return this._smithyContext={service:e,operation:t,...r},this}c(e={}){return this._additionalContext=e,this}n(e,t){return this._clientName=e,this._commandName=t,this}f(e=e=>e,t=e=>e){return this._inputFilterSensitiveLog=e,this._outputFilterSensitiveLog=t,this}ser(e){return this._serializer=e,this}de(e){return this._deserializer=e,this}sc(e){return this._operationSchema=e,this._smithyContext.operationSchema=e,this}build(){const e=this;let t;return t=class extends a{input;static getEndpointParameterInstructions(){return e._ep}constructor(...[t]){super(),this.input=t??{},e._init(this),this.schema=e._operationSchema}resolveMiddleware(r,n,i){const a=e._operationSchema,s=a?.[4]??a?.input,l=a?.[5]??a?.output;return this.resolveMiddlewareWithContext(r,n,i,{CommandCtor:t,middlewareFn:e._middlewareFn,clientName:e._clientName,commandName:e._commandName,inputFilterSensitiveLog:e._inputFilterSensitiveLog??(a?o.schemaLogFilter.bind(null,s):e=>e),outputFilterSensitiveLog:e._outputFilterSensitiveLog??(a?o.schemaLogFilter.bind(null,l):e=>e),smithyContext:e._smithyContext,additionalContext:e._additionalContext})}serialize=e._serializer;deserialize=e._deserializer}}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{SMITHY_CONTEXT_KEY:()=>n});const n="__smithy_context"},(e,t,r)=>{"use strict";r.r(t),r.d(t,{constructStack:()=>o});const n=(e,t)=>{const r=[];if(e&&r.push(e),t)for(const e of t)r.push(e);return r},i=(e,t)=>`${e||"anonymous"}${t&&t.length>0?` (a.k.a. ${t.join(",")})`:""}`,o=()=>{let e=[],t=[],r=!1;const l=new Set,c=r=>(e.forEach(e=>{r.add(e.middleware,{...e})}),t.forEach(e=>{r.addRelativeTo(e.middleware,{...e})}),r.identifyOnResolve?.(d.identifyOnResolve()),r),u=e=>{const t=[];return e.before.forEach(e=>{0===e.before.length&&0===e.after.length?t.push(e):t.push(...u(e))}),t.push(e),e.after.reverse().forEach(e=>{0===e.before.length&&0===e.after.length?t.push(e):t.push(...u(e))}),t},p=(r=!1)=>{const o=[],l=[],c={};e.forEach(e=>{const t={...e,before:[],after:[]};for(const e of n(t.name,t.aliases))c[e]=t;o.push(t)}),t.forEach(e=>{const t={...e,before:[],after:[]};for(const e of n(t.name,t.aliases))c[e]=t;l.push(t)}),l.forEach(e=>{if(e.toMiddleware){const t=c[e.toMiddleware];if(void 0===t){if(r)return;throw new Error(`${e.toMiddleware} is not found when adding ${i(e.name,e.aliases)} middleware ${e.relation} ${e.toMiddleware}`)}"after"===e.relation&&t.after.push(e),"before"===e.relation&&t.before.push(e)}});var p;return(p=o,p.sort((e,t)=>a[t.step]-a[e.step]||s[t.priority||"normal"]-s[e.priority||"normal"])).map(u).reduce((e,t)=>(e.push(...t),e),[])},d={add:(t,r={})=>{const{name:o,override:a,aliases:s}=r,c={step:"initialize",priority:"normal",middleware:t,...r},u=n(o,s);if(u.length>0){if(u.some(e=>l.has(e))){if(!a)throw new Error(`Duplicate middleware name '${i(o,s)}'`);for(const t of u){const r=e.findIndex(e=>e.name===t||e.aliases?.some(e=>e===t));if(-1===r)continue;const n=e[r];if(n.step!==c.step||c.priority!==n.priority)throw new Error(`"${i(n.name,n.aliases)}" middleware with ${n.priority} priority in ${n.step} step cannot be overridden by "${i(o,s)}" middleware with ${c.priority} priority in ${c.step} step.`);e.splice(r,1)}}for(const e of u)l.add(e)}e.push(c)},addRelativeTo:(e,r)=>{const{name:o,override:a,aliases:s}=r,c={middleware:e,...r},u=n(o,s);if(u.length>0){if(u.some(e=>l.has(e))){if(!a)throw new Error(`Duplicate middleware name '${i(o,s)}'`);for(const e of u){const r=t.findIndex(t=>t.name===e||t.aliases?.some(t=>t===e));if(-1===r)continue;const n=t[r];
vendor: 6,021 bytes, line 1
1if(n.toMiddleware!==c.toMiddleware||n.relation!==c.relation)throw new Error(`"${i(n.name,n.aliases)}" middleware ${n.relation} "${n.toMiddleware}" middleware cannot be overridden by "${i(o,s)}" middleware ${c.relation} "${c.toMiddleware}" middleware.`);t.splice(r,1)}}for(const e of u)l.add(e)}t.push(c)},clone:()=>c(o()),use:e=>{e.applyToStack(d)},remove:r=>"string"==typeof r?(r=>{let i=!1;const o=e=>{const t=n(e.name,e.aliases);if(t.includes(r)){i=!0;for(const e of t)l.delete(e);return!1}return!0};return e=e.filter(o),t=t.filter(o),i})(r):(r=>{let i=!1;const o=e=>{if(e.middleware===r){i=!0;for(const t of n(e.name,e.aliases))l.delete(t);return!1}return!0};return e=e.filter(o),t=t.filter(o),i})(r),removeByTag:r=>{let i=!1;const o=e=>{const{tags:t,name:o,aliases:a}=e;if(t&&t.includes(r)){const e=n(o,a);for(const t of e)l.delete(t);return i=!0,!1}return!0};return e=e.filter(o),t=t.filter(o),i},concat:e=>{const t=c(o());return t.use(e),t.identifyOnResolve(r||t.identifyOnResolve()||(e.identifyOnResolve?.()??!1)),t},applyToStack:c,identify:()=>p(!0).map(e=>{const t=e.step??e.relation+" "+e.toMiddleware;return i(e.name,e.aliases)+" - "+t}),identifyOnResolve:e=>("boolean"==typeof e&&(r=e),r),resolve:(e,t)=>{for(const r of p().map(e=>e.middleware).reverse())e=r(e,t);return r&&console.log(d.identify()),e}};return d},a={initialize:5,serialize:4,build:3,finalizeRequest:2,deserialize:1},s={high:3,normal:2,low:1}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{schemaLogFilter:()=>o});var n=r(122);const i="***SensitiveInformation***";function o(e,t){if(null==t)return t;const r=n.NormalizedSchema.of(e);if(r.getMergedTraits().sensitive)return i;if(r.isListSchema()){if(!!r.getValueSchema().getMergedTraits().sensitive)return i}else if(r.isMapSchema()){if(!!r.getKeySchema().getMergedTraits().sensitive||!!r.getValueSchema().getMergedTraits().sensitive)return i}else if(r.isStructSchema()&&"object"==typeof t){const e=t,n={};for(const[t,i]of r.structIterator())null!=e[t]&&(n[t]=o(i,e[t]));return n}return t}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{NormalizedSchema:()=>c,isStaticSchema:()=>d,simpleSchemaCacheN:()=>s,simpleSchemaCacheS:()=>l});var n=r(123),i=r(124);const o=Symbol.for("@smithy/nor-struct-it"),a=Symbol.for("@smithy/ns"),s=[],l={};class c{ref;memberName;static symbol=Symbol.for("@smithy/nor");symbol=c.symbol;name;schema;_isMemberSchema;traits;memberTraits;normalizedTraits;constructor(e,t){this.ref=e,this.memberName=t;const r=[];let o=e,a=e;for(this._isMemberSchema=!1;p(o);)r.push(o[1]),o=o[0],a=(0,n.deref)(o),this._isMemberSchema=!0;if(r.length>0){this.memberTraits={};for(let e=r.length-1;e>=0;--e){const t=r[e];Object.assign(this.memberTraits,(0,i.translateTraits)(t))}}else this.memberTraits=0;if(a instanceof c){const e=this.memberTraits;return Object.assign(this,a),this.memberTraits=Object.assign({},e,a.getMemberTraits(),this.getMemberTraits()),this.normalizedTraits=void 0,void(this.memberName=t??a.memberName)}if(this.schema=(0,n.deref)(a),d(this.schema)?(this.name=`${this.schema[1]}#${this.schema[2]}`,this.traits=this.schema[3]):(this.name=this.memberName??String(a),this.traits=0),this._isMemberSchema&&!t)throw new Error(`@smithy/core/schema - NormalizedSchema member init ${this.getName(!0)} missing member name.`)}static[Symbol.hasInstance](e){const t=this.prototype.isPrototypeOf(e);if(!t&&"object"==typeof e&&null!==e){return e.symbol===this.symbol}return t}static of(e){const t="function"==typeof e||"object"==typeof e&&null!==e;if("number"==typeof e){if(s[e])return s[e]}else if("string"==typeof e){if(l[e])return l[e]}else if(t&&e[a])return e[a];const r=(0,n.deref)(e);if(r instanceof c)return r;if(p(r)){const[t,n]=r;if(t instanceof c)return Object.assign(t.getMergedTraits(),(0,i.translateTraits)(n)),t;throw new Error(`@smithy/core/schema - may not init unwrapped member schema=${JSON.stringify(e,null,2)}.`)}const o=new c(r);return t?e[a]=o:"string"==typeof r?l[r]=o:"number"==typeof r?s[r]=o:o}getSchema(){const e=this.schema;return Array.isArray(e)&&0===e[0]?e[4]:e}getName(e=!1){const{name:t}=this;return!e&&t&&t.includes("#")?t.split("#")[1]:t||void 0}getMemberName(){return this.memberName}isMemberSchema(){return this._isMemberSchema}isListSchema(){const e=this.getSchema();return"number"==typeof e?e>=64&&e<128:1===e[0]}isMapSchema(){const e=this.getSchema();return"number"==typeof e?e>=128&&e<=255:2===e[0]}isStructSchema(){const e=this.getSchema();if("object"!=typeof e)return!1;const t=e[0];return 3===t||-3===t||4===t}isUnionSchema(){const e=this.getSchema();return"object"==typeof e&&4===e[0]}isBlobSchema(){const e=this.getSchema();return 21===e||42===e}isTimestampSchema(){const e=this.getSchema();return"number"==typeof e&&e>=4&&e<=7}isUnitSchema(){return"unit"===this.getSchema()}isDocumentSchema(){return 15===this.getSchema()}isStringSchema(){return 0===this.getSchema()}isBooleanSchema(){return 2===this.getSchema()}isNumericSchema(){return 1===this.getSchema()}isBigIntegerSchema(){return 17===this.getSchema()}isBigDecimalSchema(){return 19===this.getSchema()}isStreaming(){const{streaming:e}=this.getMergedTraits();return!!e||42===this.getSchema()}isIdempotencyToken(){return!!this.getMergedTraits().idempotencyToken}getMergedTraits(){return this.normalizedTraits??(this.normalizedTraits={...this.getOwnTraits(),...this.getMemberTraits()})}getMemberTraits(){return(0,i.translateTraits)(this.memberTraits)}getOwnTraits(){return(0,i.translateTraits)(this.traits)}getKeySchema(){const[e,t]=[this.isDocumentSchema(),this.isMapSchema()];if(!e&&!t)throw new Error(`@smithy/core/schema - cannot get key for non-map: ${this.getName(!0)}`);const r=this.getSchema();return u([e?15:r[4]??0,0],"key")}getValueSchema(){const e=this.getSchema(),[t,r,n]=[this.isDocumentSchema(),this.isMapSchema(),this.isListSchema()],i="number"==typeof e?63&e:e&&"object"==typeof e&&(r||n)?e[3+e[0]]:t?15:void 0;if(null!=i)return u([i,0],r?"value":"member");throw new Error(`@smithy/core/schema - ${this.getName(!0)} has no value member.`)}getMemberSchema(e){const t=this.getSchema();
1if(this.isStructSchema()&&t[4].includes(e)){const r=t[4].indexOf(e),n=t[5][r];return u(p(n)?n:[n,0],e)}if(this.isDocumentSchema())return u([15,0],e);throw new Error(`@smithy/core/schema - ${this.getName(!0)} has no member=${e}.`)}getMemberSchemas(){const e={};try{for(const[t,r]of this.structIterator())e[t]=r}catch(e){}return e}getEventStreamMember(){if(this.isStructSchema())for(const[e,t]of this.structIterator())if(t.isStreaming()&&t.isStructSchema())return e;return""}*structIterator(){if(this.isUnitSchema())return;if(!this.isStructSchema())throw new Error("@smithy/core/schema - cannot iterate non-struct schema.");const e=this.getSchema(),t=e[4].length;let r=e[o];if(r&&t===r.length)yield*r;else{r=Array(t);for(let n=0;n<t;++n){const t=e[4][n],i=u([e[5][n],0],t);yield r[n]=[t,i]}e[o]=r}}}function u(e,t){if(e instanceof c)return Object.assign(e,{memberName:t,_isMemberSchema:!0});return new c(e,t)}const p=e=>Array.isArray(e)&&2===e.length,d=e=>Array.isArray(e)&&e.length>=5},(e,t,r)=>{"use strict";r.r(t),r.d(t,{deref:()=>n});const n=e=>"function"==typeof e?e():e},(e,t,r)=>{"use strict";r.r(t),r.d(t,{traitsCache:()=>n,translateTraits:()=>i});const n=[];function i(e){if("object"==typeof e)return e;if(n[e|=0])return n[e];const t={};let r=0;for(const n of["httpLabel","idempotent","idempotencyToken","sensitive","httpPayload","httpResponseCode","httpQueryParams"])1==(e>>r++&1)&&(t[n]=1);return n[e]=t}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{BinaryDecisionDiagram:()=>c.BinaryDecisionDiagram,EndpointCache:()=>u.EndpointCache,customEndpointFunctions:()=>f.customEndpointFunctions,decideEndpoint:()=>p.decideEndpoint,endpointMiddleware:()=>y,getEndpointFromInstructions:()=>m,getEndpointPlugin:()=>b,isIpAddress:()=>d.isIpAddress,isValidHostLabel:()=>h.isValidHostLabel,resolveEndpointConfig:()=>g,toEndpointV1:()=>l.toEndpointV1});var n=r(126),i=r(127),o=r(134),a=r(136),s=r(137),l=r(130),c=r(139),u=r(140),p=r(141),d=r(159),h=r(154),f=r(147);const m=(0,i.bindGetEndpointFromInstructions)(n.getEndpointFromConfig),g=(0,s.bindResolveEndpointConfig)(n.getEndpointFromConfig),y=(0,o.bindEndpointMiddleware)(n.getEndpointFromConfig),b=(0,a.bindGetEndpointPlugin)(n.getEndpointFromConfig)},(e,t,r)=>{"use strict";r.r(t),r.d(t,{getEndpointFromConfig:()=>n});const n=async e=>{}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{bindGetEndpointFromInstructions:()=>a,resolveParams:()=>s});var n=r(128),i=r(129),o=r(130);function a(e){return async(t,r,n,i)=>{if(!n.isCustomEndpoint&&!n.ignoreConfiguredEndpointUrls){let t;t=n.serviceConfiguredEndpoint?await n.serviceConfiguredEndpoint():await e(n.serviceId),t&&(n.endpoint=()=>Promise.resolve((0,o.toEndpointV1)(t)),n.isCustomEndpoint=!0,i?.logger?.debug?.(`@smithy/core/endpoints - resolved endpoint from config: ${t}`))}const a=await s(t,r,n);if("function"!=typeof n.endpointProvider)throw new Error("config.endpointProvider is not set.");const l=n.endpointProvider(a,i);if(n.isCustomEndpoint&&n.endpoint){const e=await n.endpoint();if(e?.headers){l.headers??={};for(const[t,r]of Object.entries(e.headers))l.headers[t]=Array.isArray(r)?r:[r]}}return l}}const s=async(e,t,r)=>{const o={},a=t?.getEndpointParameterInstructions?.()||{};for(const[t,n]of Object.entries(a))switch(n.type){case"staticContextParams":o[t]=n.value;break;case"contextParams":o[t]=e[n.name];break;case"clientContextParams":case"builtInParams":o[t]=await(0,i.createConfigValueProvider)(n.name,t,r,"builtInParams"!==n.type)();break;case"operationContextParams":o[t]=n.get(e);break;default:throw new Error("Unrecognized endpoint parameter instruction: "+JSON.stringify(n))}return 0===Object.keys(a).length&&Object.assign(o,r),"s3"===String(r.serviceId).toLowerCase()&&await(0,n.resolveParamsForS3)(o),o}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{DOT_PATTERN:()=>s,S3_HOSTNAME_PATTERN:()=>l,isArnBucketName:()=>u,isDnsCompatibleBucketName:()=>c,resolveParamsForS3:()=>n});const n=async e=>{const t=e?.Bucket||"";if("string"==typeof e.Bucket&&(e.Bucket=t.replace(/#/g,encodeURIComponent("#")).replace(/\?/g,encodeURIComponent("?"))),u(t)){if(!0===e.ForcePathStyle)throw new Error("Path-style addressing cannot be used with ARN buckets")}else(!c(t)||-1!==t.indexOf(".")&&!String(e.Endpoint).startsWith("http:")||t.toLowerCase()!==t||t.length<3)&&(e.ForcePathStyle=!0);return e.DisableMultiRegionAccessPoints&&(e.disableMultiRegionAccessPoints=!0,e.DisableMRAP
1=!0),e},i=/^[a-z0-9][a-z0-9.-]{1,61}[a-z0-9]$/,o=/(\d+\.){3}\d+/,a=/\.\./,s=/\./,l=/^(.+\.)?s3(-fips)?(\.dualstack)?[.-]([a-z0-9-]+)\./,c=e=>i.test(e)&&!o.test(e)&&!a.test(e),u=e=>{const[t,r,n,,,i]=e.split(":"),o="arn"===t&&e.split(":").length>=6,a=Boolean(o&&r&&n&&i);if(o&&!a)throw new Error(`Invalid ARN: ${e} was an invalid ARN.`);return a}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{createConfigValueProvider:()=>n});const n=(e,t,r,n=!1)=>{const i=async()=>{let i;if(n){const n=r.clientContextParams,o=n?.[e];i=o??r[e]??r[t]}else i=r[e]??r[t];return"function"==typeof i?i():i};return"credentialScope"===e||"CredentialScope"===t?async()=>{const e="function"==typeof r.credentials?await r.credentials():r.credentials;return e?.credentialScope??e?.CredentialScope}:"accountId"===e||"AccountId"===t?async()=>{const e="function"==typeof r.credentials?await r.credentials():r.credentials;return e?.accountId??e?.AccountId}:"endpoint"===e||"endpoint"===t?async()=>{if(!1===r.isCustomEndpoint)return;const e=await i();if(e&&"object"==typeof e){if("url"in e)return e.url.href;if("hostname"in e){const{protocol:t,hostname:r,port:n,path:i}=e;return`${t}//${r}${n?":"+n:""}${i}`}}return e}:i}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{toEndpointV1:()=>o});var n=r(131),i=r(132);const o=e=>{if("object"==typeof e){if("url"in e){const t=(0,i.parseUrl)(e.url);if(e.headers){t.headers={};for(const r in e.headers)(0,n.hasOwn)(e.headers,r)&&(t.headers[r.toLowerCase()]=e.headers[r].join(", "))}return t}return e}return(0,i.parseUrl)(e)}},(e,t,r)=>{"use strict";function n(e,t){return Object.prototype.hasOwnProperty.call(e,t)}r.r(t),r.d(t,{hasOwn:()=>n})},(e,t,r)=>{"use strict";r.r(t),r.d(t,{parseUrl:()=>i});var n=r(133);const i=e=>{if("string"==typeof e)return i(new URL(e));const{hostname:t,pathname:r,port:o,protocol:a,search:s}=e;let l;return s&&(l=(0,n.parseQueryString)(s)),{hostname:t,port:o?parseInt(o):void 0,protocol:a,path:r,query:l}}},(e,t,r)=>{"use strict";function n(e){const t={};if(e=e.replace(/^\?/,""))for(const r of e.split("&")){let[e,n=null]=r.split("=");e=decodeURIComponent(e),n&&(n=decodeURIComponent(n)),e in t?Array.isArray(t[e])?t[e].push(n):t[e]=[t[e],n]:t[e]=n}return t}r.r(t),r.d(t,{parseQueryString:()=>n})},(e,t,r)=>{"use strict";r.r(t),r.d(t,{bindEndpointMiddleware:()=>o});var n=r(135),i=r(127);function o(e){const t=(0,i.bindGetEndpointFromInstructions)(e);return({config:e,instructions:r})=>(i,o)=>async a=>{e.isCustomEndpoint&&function(e,t,r){e.__smithy_context?e.__smithy_context.features||(e.__smithy_context.features={}):e.__smithy_context={features:{}},e.__smithy_context.features[t]=r}(o,"ENDPOINT_OVERRIDE","N");const s=await t(a.input,{getEndpointParameterInstructions:()=>r},{...e},o);o.endpointV2=s,o.authSchemes=s.properties?.authSchemes;const l=o.authSchemes?.[0];if(l){o.signing_region=l.signingRegion,o.signing_service=l.signingName;const e=(0,n.getSmithyContext)(o),t=e?.selectedHttpAuthScheme?.httpAuthOption;t&&(t.signingProperties=Object.assign(t.signingProperties||{},{signing_region:l.signingRegion,signingRegion:l.signingRegion,signing_service:l.signingName,signingName:l.signingName,signingRegionSet:l.signingRegionSet},l.properties))}return i({...a})}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{getSmithyContext:()=>i});var n=r(119);const i=e=>e[n.SMITHY_CONTEXT_KEY]||(e[n.SMITHY_CONTEXT_KEY]={})},(e,t,r)=>{"use strict";r.r(t),r.d(t,{bindGetEndpointPlugin:()=>o,endpointMiddlewareOptions:()=>i});var n=r(134);const i={step:"serialize",tags:["ENDPOINT_PARAMETERS","ENDPOINT_V2","ENDPOINT"],name:"endpointV2Middleware",override:!0,relation:"before",toMiddleware:"serializerMiddleware"};function o(e){const t=(0,n.bindEndpointMiddleware)(e);return(e,r)=>({applyToStack:n=>{n.addRelativeTo(t({config:e,instructions:r}),i)}})}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{bindResolveEndpointConfig:()=>o});var n=r(138),i=r(130);function o(e){return t=>{const r=t.tls??!0,{endpoint:o,useDualstackEndpoint:a,useFipsEndpoint:s}=t,l=null!=o?async()=>(0,i.toEndpointV1)(await(0,n.normalizeProvider)(o)()):void 0,c=!!o,u=Object.assign(t,{endpoint:l,tls:r,isCustomEndpoint:c,useDualstackEndpoint:(0,n.normalizeProvider)(a??!1),useFipsEndpoint:(0,n.normalizeProvider)(s??!1),ignoreConfiguredEndpointUrls:!!t.ignoreConfiguredEndpointUrls});let p;return u.serviceConfiguredEndpoint=async()=>(t.serviceId&&!p&&(p=e(t.serviceId)),p),u}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{normalizeProvider:()=>n});const n=e=>{if("function"==typeof e)return e;const t=Promise.resolve(e);return()=>t}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{BinaryDecisionDiagram:()=>n});
1class n{nodes;root;conditions;results;constructor(e,t,r,n){this.nodes=e,this.root=t,this.conditions=r,this.results=n}static from(e,t,r,i){return new n(e,t,r,i)}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{EndpointCache:()=>n});class n{capacity;data=new Map;parameters=[];constructor({size:e,params:t}){this.capacity=e??50,t&&(this.parameters=t)}get(e,t){const r=this.hash(e);if(!1===r)return t();if(!this.data.has(r)){if(this.data.size>this.capacity+10){const e=this.data.keys();let t=0;for(;;){const{value:r,done:n}=e.next();if(this.data.delete(r),n||++t>10)break}}this.data.set(r,t())}return this.data.get(r)}size(){return this.data.size}hash(e){let t="";const{parameters:r}=this;if(0===r.length)return!1;for(const n of r){const r=String(e[n]??"");if(r.includes("|;"))return!1;t+=r+"|;"}return t}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{decideEndpoint:()=>u});var n=r(142),i=r(143),o=r(146),a=r(166),s=r(167),l=r(168);const c=1e8,u=(e,t)=>{const{nodes:r,root:u,results:p,conditions:d}=e;let h=u;const f={},m={referenceRecord:f,endpointParams:t.endpointParams,logger:t.logger};for(;1!==h&&-1!==h&&h<c;){const e=3*(Math.abs(h)-1),[t,n,o]=[r[e],r[e+1],r[e+2]],[a,s,l]=d[t],c=(0,i.evaluateCondition)({fn:a,assign:l,argv:s},m);if(c.toAssign){const{name:e,value:t}=c.toAssign;f[e]=t}h=h>=0===c.result?n:o}if(h>=c){const e=p[h-c];if(-1===e[0]){const[,t]=e;throw new n.EndpointError((0,o.evaluateExpression)(t,"Error",m))}const[t,r,i]=e;return{url:(0,l.getEndpointUrl)(t,m),properties:(0,s.getEndpointProperties)(r,m),headers:(0,a.getEndpointHeaders)(i??{},m)}}throw new n.EndpointError("No matching endpoint.")}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{EndpointError:()=>n});class n extends Error{constructor(e){super(e),this.name="EndpointError"}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{evaluateCondition:()=>s});var n=r(144),i=r(145),o=r(142),a=r(146);const s=(e,t)=>{const{assign:r}=e;if(r&&r in t.referenceRecord)throw new o.EndpointError(`'${r}' is already defined in Reference Record.`);const s=(0,a.callFunction)(e,t);t.logger?.debug?.(`${n.debugId} evaluateCondition: ${(0,i.toDebugString)(e)} = ${(0,i.toDebugString)(s)}`);const l=""===s||!!s;return null!=r?{result:l,toAssign:{name:r,value:s}}:{result:l}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{debugId:()=>n});const n="endpoints"},(e,t,r)=>{"use strict";function n(e){return"object"!=typeof e||null==e?e:"ref"in e?`$${n(e.ref)}`:"fn"in e?`${e.fn}(${(e.argv||[]).map(n).join(", ")})`:JSON.stringify(e,null,2)}r.r(t),r.d(t,{toDebugString:()=>n})},(e,t,r)=>{"use strict";r.r(t),r.d(t,{callFunction:()=>c,evaluateExpression:()=>l,group:()=>u});var n=r(142),i=r(147),o=r(148),a=r(164),s=r(165);const l=(e,t,r)=>{if("string"==typeof e)return(0,a.evaluateTemplate)(e,r);if(e.fn)return u.callFunction(e,r);if(e.ref)return(0,s.getReferenceValue)(e,r);throw new n.EndpointError(`'${t}': ${String(e)} is not a string, function or reference.`)},c=({fn:e,argv:t},r)=>{const n=Array(t.length);for(let e=0;e<n.length;++e){const i=t[e];n[e]="boolean"==typeof i||"number"==typeof i?i:u.evaluateExpression(i,"arg",r)}const a=e.indexOf(".");if(-1!==a){const t=i.customEndpointFunctions[e.slice(0,a)],r=t?.[e.slice(a+1)];if("function"==typeof r)return r(...n)}const s=o.endpointFunctions[e];if("function"==typeof s)return s(...n);throw new Error(`function ${e} not loaded in endpointFunctions.`)},u={evaluateExpression:l,callFunction:c}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{customEndpointFunctions:()=>n});const n={}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{endpointFunctions:()=>m});var n=r(149),i=r(150),o=r(151),a=r(153),s=r(154),l=r(155),c=r(156),u=r(157),p=r(160),d=r(161),h=r(162),f=r(163);const m={booleanEquals:n.booleanEquals,coalesce:i.coalesce,getAttr:o.getAttr,isSet:a.isSet,isValidHostLabel:s.isValidHostLabel,ite:l.ite,not:c.not,parseURL:u.parseURL,split:p.split,stringEquals:d.stringEquals,substring:h.substring,uriEncode:f.uriEncode}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{booleanEquals:()=>n});const n=(e,t)=>e===t},(e,t,r)=>{"use strict";function n(...e){for(const t of e)if(null!=t)return t}r.r(t),r.d(t,{coalesce:()=>n})},(e,t,r)=>{"use strict";r.r(t),r.d(t,{getAttr:()=>o});var n=r(142),i=r(152);const o=(e,t)=>(0,i.getAttrPathList)(t).reduce((r,i)=>{if("object"!=typeof r)throw new n.EndpointError(`Index '${i}' in '${t}' not found in '${JSON.stringify(e)}'`);if(Array.isArray(r)){const e=parseInt(i);return r[e<0?r.length+e:e]}return r[i]},e)},(e,t,r)=>{"use strict";r.r(t),r.d(t,{getAttrPathList:()=>i});var n=r(142);const i=e=>{const t=e.split("."),r=[];for(const i of t){const t=i.indexOf("[");if(-1!==t){if(i.indexOf("]")!==i.length-1)throw new n.EndpointError(`Path: '${e}' does not end with ']'`);const o=i.slice(t+1,-1);if(Number.isNaN(parseInt(o)))throw new n.EndpointError(`Invalid array index: '${o}' in path: '${e}'`);0!==t&&r.push(i.slice(0,t)),r.push(o)}else r.push(i)}return r}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{isSet:()=>n});const n=e=>null!=e},(e,t,r)=>{"use strict";r.r(t),r.d(t,{isValidHostLabel:()=>i});const n=new RegExp("^(?!.*-$)(?!-)[a-zA-Z0-9-]{1,63}$"),i=(e,t=!1)=>
1{if(!t)return n.test(e);const r=e.split(".");for(const e of r)if(!i(e))return!1;return!0}},(e,t,r)=>{"use strict";function n(e,t,r){return e?t:r}r.r(t),r.d(t,{ite:()=>n})},(e,t,r)=>{"use strict";r.r(t),r.d(t,{not:()=>n});const n=e=>!e},(e,t,r)=>{"use strict";r.r(t),r.d(t,{parseURL:()=>a});var n=r(158),i=r(159);const o={[n.EndpointURLScheme.HTTP]:80,[n.EndpointURLScheme.HTTPS]:443},a=e=>{const t=(()=>{try{if(e instanceof URL)return e;if("object"==typeof e&&"hostname"in e){const{hostname:t,port:r,protocol:n="",path:i="",query:o={}}=e,a=new URL(`${n}//${t}${r?`:${r}`:""}${i}`);return a.search=Object.entries(o).map(([e,t])=>`${e}=${t}`).join("&"),a}return new URL(e)}catch(e){return null}})();if(!t)return console.error(`Unable to parse ${JSON.stringify(e)} as a whatwg URL.`),null;const r=t.href,{host:a,hostname:s,pathname:l,protocol:c,search:u}=t;if(u)return null;const p=c.slice(0,-1);if(!Object.values(n.EndpointURLScheme).includes(p))return null;const d=(0,i.isIpAddress)(s);return{scheme:p,authority:`${a}${r.includes(`${a}:${o[p]}`)||"string"==typeof e&&e.includes(`${a}:${o[p]}`)?`:${o[p]}`:""}`,path:l,normalizedPath:l.endsWith("/")?l:`${l}/`,isIp:d}}},(e,t,r)=>{"use strict";var n;r.r(t),r.d(t,{EndpointURLScheme:()=>n}),function(e){e.HTTP="http",e.HTTPS="https"}(n||(n={}))},(e,t,r)=>{"use strict";r.r(t),r.d(t,{isIpAddress:()=>i});const n=new RegExp("^(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}$"),i=e=>n.test(e)||e.startsWith("[")&&e.endsWith("]")},(e,t,r)=>{"use strict";function n(e,t,r){if(1===r)return[e];if(""===e)return[""];const n=e.split(t);return 0===r?n:n.slice(0,r-1).concat(n.slice(1).join(t))}r.r(t),r.d(t,{split:()=>n})},(e,t,r)=>{"use strict";r.r(t),r.d(t,{stringEquals:()=>n});const n=(e,t)=>e===t},(e,t,r)=>{"use strict";r.r(t),r.d(t,{substring:()=>n});const n=(e,t,r,n)=>null==e||t>=r||e.length<r||/[^\u0000-\u007f]/.test(e)?null:n?e.substring(e.length-r,e.length-t):e.substring(t,r)},(e,t,r)=>{"use strict";r.r(t),r.d(t,{uriEncode:()=>n});const n=e=>encodeURIComponent(e).replace(/[!*'()]/g,e=>`%${e.charCodeAt(0).toString(16).toUpperCase()}`)},(e,t,r)=>{"use strict";r.r(t),r.d(t,{evaluateTemplate:()=>i});var n=r(151);const i=(e,t)=>{const r=[],{referenceRecord:i,endpointParams:o}=t;let a=0;for(;a<e.length;){const t=e.indexOf("{",a);if(-1===t){r.push(e.slice(a));break}r.push(e.slice(a,t));const s=e.indexOf("}",t);if(-1===s){r.push(e.slice(t));break}"{"===e[t+1]&&"}"===e[s+1]&&(r.push(e.slice(t+1,s)),a=s+2);const l=e.substring(t+1,s);if(l.includes("#")){const[e,t]=l.split("#");r.push((0,n.getAttr)(i[e]??o[e],t))}else r.push(i[l]??o[l]);a=s+1}return r.join("")}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{getReferenceValue:()=>n});const n=({ref:e},t)=>t.referenceRecord[e]??t.endpointParams[e]},(e,t,r)=>{"use strict";r.r(t),r.d(t,{getEndpointHeaders:()=>o});var n=r(142),i=r(146);const o=(e,t)=>Object.entries(e??{}).reduce((e,[r,o])=>(e[r]=o.map(e=>{const o=(0,i.evaluateExpression)(e,"Header value entry",t);if("string"!=typeof o)throw new n.EndpointError(`Header '${r}' value '${o}' is not a string`);return o}),e),{})},(e,t,r)=>{"use strict";r.r(t),r.d(t,{getEndpointProperties:()=>o,getEndpointProperty:()=>a,group:()=>s});var n=r(142),i=r(164);const o=(e,t)=>Object.entries(e).reduce((e,[r,n])=>(e[r]=s.getEndpointProperty(n,t),e),{}),a=(e,t)=>{if(Array.isArray(e))return e.map(e=>a(e,t));switch(typeof e){case"string":return(0,i.evaluateTemplate)(e,t);case"object":if(null===e)throw new n.EndpointError(`Unexpected endpoint property: ${e}`);return s.getEndpointProperties(e,t);case"boolean":return e;default:throw new n.EndpointError("Unexpected endpoint property type: "+typeof e)}},s={getEndpointProperty:a,getEndpointProperties:o}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{getEndpointUrl:()=>o});var n=r(142),i=r(146);const o=(e,t)=>{const r=(0,i.evaluateExpression)(e,"Endpoint URL",t);if("string"==typeof r)try{return new URL(r)}catch(e){throw console.error(`Failed to construct URL with ${r}`,e),e}throw new n.EndpointError("Endpoint URL must be a string, got "+typeof r)}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{commonParams:()=>i,resolveClientEndpointParameters:()=>n});const n=e=>Object.assign(e,{useDualstackEndpoint:e.useDualstackEndpoint??!1,useFipsEndpoint:e.useFipsEndpoint??!1,defaultSigningName:"firehose"}),i={UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{AmazonOpenSearchServerlessBufferingHints$:()=>Dr,AmazonOpenSearchServerlessDestinationConfiguration$:()=>Mr,AmazonOpenSearchServerlessDestinationDescription$:()=>Nr,AmazonOpenSearchServerlessDestinationUpdate$:()=>Lr,AmazonOpenSearchServerlessRetryOptions$:()=>Fr,AmazonopensearchserviceBufferingHints$:()=>Br,AmazonopensearchserviceDestinationConfiguration$:()=>Ur,AmazonopensearchserviceDestinationDescription$:()=>jr,AmazonopensearchserviceDestinationUpdate$:()=>Hr,AmazonopensearchserviceRetryOptions$:()=>Vr,AuthenticationConfiguration$:()=>
1zr,BufferingHints$:()=>Gr,CatalogConfiguration$:()=>qr,CloudWatchLoggingOptions$:()=>$r,ConcurrentModificationException$:()=>sr,CopyCommand$:()=>Wr,CreateDeliveryStream$:()=>uo,CreateDeliveryStreamInput$:()=>Yr,CreateDeliveryStreamOutput$:()=>Kr,DataFormatConversionConfiguration$:()=>on,DatabaseColumnList$:()=>Jr,DatabaseList$:()=>Qr,DatabaseSnapshotInfo$:()=>Xr,DatabaseSourceAuthenticationConfiguration$:()=>Zr,DatabaseSourceConfiguration$:()=>en,DatabaseSourceDescription$:()=>tn,DatabaseSourceVPCConfiguration$:()=>rn,DatabaseTableList$:()=>nn,DeleteDeliveryStream$:()=>po,DeleteDeliveryStreamInput$:()=>an,DeleteDeliveryStreamOutput$:()=>sn,DeliveryStreamDescription$:()=>ln,DeliveryStreamEncryptionConfiguration$:()=>cn,DeliveryStreamEncryptionConfigurationInput$:()=>un,DescribeDeliveryStream$:()=>ho,DescribeDeliveryStreamInput$:()=>pn,DescribeDeliveryStreamOutput$:()=>dn,Deserializer$:()=>hn,DestinationDescription$:()=>fn,DestinationTableConfiguration$:()=>mn,DirectPutSourceConfiguration$:()=>gn,DirectPutSourceDescription$:()=>yn,DocumentIdOptions$:()=>bn,DynamicPartitioningConfiguration$:()=>vn,ElasticsearchBufferingHints$:()=>_n,ElasticsearchDestinationConfiguration$:()=>Sn,ElasticsearchDestinationDescription$:()=>En,ElasticsearchDestinationUpdate$:()=>Tn,ElasticsearchRetryOptions$:()=>wn,EncryptionConfiguration$:()=>xn,ExtendedS3DestinationConfiguration$:()=>On,ExtendedS3DestinationDescription$:()=>In,ExtendedS3DestinationUpdate$:()=>An,FailureDescription$:()=>kn,FirehoseServiceException$:()=>or,HiveJsonSerDe$:()=>Rn,HttpEndpointBufferingHints$:()=>Cn,HttpEndpointCommonAttribute$:()=>Pn,HttpEndpointConfiguration$:()=>Dn,HttpEndpointDescription$:()=>Mn,HttpEndpointDestinationConfiguration$:()=>Nn,HttpEndpointDestinationDescription$:()=>Ln,HttpEndpointDestinationUpdate$:()=>Fn,HttpEndpointRequestConfiguration$:()=>Bn,HttpEndpointRetryOptions$:()=>Un,IcebergDestinationConfiguration$:()=>jn,IcebergDestinationDescription$:()=>Hn,IcebergDestinationUpdate$:()=>Vn,InputFormatConfiguration$:()=>zn,InvalidArgumentException$:()=>lr,InvalidKMSResourceException$:()=>cr,InvalidSourceException$:()=>ur,KMSEncryptionConfig$:()=>$n,KinesisStreamSourceConfiguration$:()=>Gn,KinesisStreamSourceDescription$:()=>qn,LimitExceededException$:()=>pr,ListDeliveryStreams$:()=>fo,ListDeliveryStreamsInput$:()=>Wn,ListDeliveryStreamsOutput$:()=>Yn,ListTagsForDeliveryStream$:()=>mo,ListTagsForDeliveryStreamInput$:()=>Kn,ListTagsForDeliveryStreamOutput$:()=>Jn,MSKSourceConfiguration$:()=>Qn,MSKSourceDescription$:()=>Xn,OpenXJsonSerDe$:()=>Zn,OrcSerDe$:()=>ei,OutputFormatConfiguration$:()=>ti,ParquetSerDe$:()=>ri,PartitionField$:()=>ni,PartitionSpec$:()=>ii,ProcessingConfiguration$:()=>oi,Processor$:()=>ai,ProcessorParameter$:()=>si,PutRecord$:()=>go,PutRecordBatch$:()=>yo,PutRecordBatchInput$:()=>li,PutRecordBatchOutput$:()=>ci,PutRecordBatchResponseEntry$:()=>ui,PutRecordInput$:()=>pi,PutRecordOutput$:()=>di,RedshiftDestinationConfiguration$:()=>fi,RedshiftDestinationDescription$:()=>mi,RedshiftDestinationUpdate$:()=>gi,RedshiftRetryOptions$:()=>yi,ResourceInUseException$:()=>dr,ResourceNotFoundException$:()=>hr,RetryOptions$:()=>bi,S3DestinationConfiguration$:()=>vi,S3DestinationDescription$:()=>_i,S3DestinationUpdate$:()=>Si,SchemaConfiguration$:()=>Ei,SchemaEvolutionConfiguration$:()=>Ti,SecretsManagerConfiguration$:()=>wi,Serializer$:()=>xi,ServiceUnavailableException$:()=>fr,SnowflakeBufferingHints$:()=>Oi,SnowflakeDestinationConfiguration$:()=>Ii,SnowflakeDestinationDescription$:()=>Ai,SnowflakeDestinationUpdate$:()=>ki,SnowflakeRetryOptions$:()=>Ri,SnowflakeRoleConfiguration$:()=>Ci,SnowflakeVpcConfiguration$:()=>Pi,SourceDescription$:()=>Di,SplunkBufferingHints$:()=>Mi,SplunkDestinationConfiguration$:()=>Ni,SplunkDestinationDescription$:()=>Li,SplunkDestinationUpdate$:()=>Fi,SplunkRetryOptions$:()=>Bi,StartDeliveryStreamEncryption$:()=>bo,StartDeliveryStreamEncryptionInput$:()=>Ui,StartDeliveryStreamEncryptionOutput$:()=>ji,StopDeliveryStreamEncryption$:()=>vo,StopDeliveryStreamEncryptionInput$:()=>Hi,StopDeliveryStreamEncryptionOutput$:()=>Vi,TableCreationConfiguration$:()=>zi,Tag$:()=>Gi,TagDeliveryStream$:()=>_o,TagDeliveryStreamInput$:()=>qi,TagDeliveryStreamOutput$:()=>$i,UntagDeliveryStream$:()=>So,UntagDeliveryStreamInput$:()=>Wi,UntagDeliveryStreamOutput$:()=>Yi,UpdateDestination$:()=>Eo,UpdateDestinationInput$:()=>Ki,UpdateDestinationOutput$:()=>Ji,VpcConfiguration$:()=>Qi,VpcConfigurationDescription$:()=>Xi,_Record$:()=>hi,errorTypeRegistries:()=>mr});var n=r(171),i=r(172),o=r(173);const a="AuthenticationConfiguration",s="AmazonopensearchserviceDestinationConfiguration",l="AmazonopensearchserviceDestinationDescription",c="AmazonopensearchserviceDestinationUpdate",u="AppendOnl
1y",p="AmazonOpenSearchServerlessDestinationConfiguration",d="AmazonOpenSearchServerlessDestinationDescription",h="AmazonOpenSearchServerlessDestinationUpdate",f="AccountUrl",m="BucketARN",g="BufferingHints",y="BlockSizeBytes",b="CatalogConfiguration",v="ContentColumnName",_="CopyCommand",S="CollectionEndpoint",E="ClusterEndpoint",T="CompressionFormat",w="ClusterJDBCURL",x="CustomTimeZone",O="CloudWatchLoggingOptions",I="Columns",A="Compression",k="Databases",R="DomainARN",C="DataFormatConversionConfiguration",P="DestinationId",D="DocumentIdOptions",M="DurationInSeconds",N="DataLoadingOption",L="DynamicPartitioningConfiguration",F="DirectPutSourceConfiguration",B="DirectPutSourceDescription",U="DatabaseSourceAuthenticationConfiguration",j="DeliveryStreamARN",H="DatabaseSourceConfiguration",V="DatabaseSourceDescription",z="DeliveryStreamDescription",G="DeliveryStreamEncryptionConfiguration",q="DeliveryStreamEncryptionConfigurationInput",$="DeliveryStreamName",W="DeliveryStreamType",Y="DeliveryStartTimestamp",K="DatabaseSourceVPCConfiguration",J="DestinationTableConfigurationList",Q="Database",X="Deserializer",Z="Enabled",ee="EncryptionConfiguration",te="EndpointConfiguration",re="ElasticsearchDestinationConfiguration",ne="ElasticsearchDestinationDescription",ie="ElasticsearchDestinationUpdate",oe="ErrorOutputPrefix",ae="ExtendedS3DestinationConfiguration",se="ExtendedS3DestinationDescription",le="ExtendedS3DestinationUpdate",ce="Endpoint",ue="Encrypted",pe="Exclude",de="FailureDescription",he="FileExtension",fe="HECAcknowledgmentTimeoutInSeconds",me="HECEndpoint",ge="HECEndpointType",ye="HECToken",be="HttpEndpointDestinationConfiguration",ve="HttpEndpointDestinationDescription",_e="HttpEndpointDestinationUpdate",Se="HiveJsonSerDe",Ee="Include",Te="IcebergDestinationConfiguration",we="IcebergDestinationDescription",xe="IcebergDestinationUpdate",Oe="InputFormatConfiguration",Ie="IntervalInSeconds",Ae="IndexName",ke="IndexRotationPeriod",Re="KeyARN",Ce="KMSEncryptionConfig",Pe="KeyPassphrase",De="KinesisStreamARN",Me="KinesisStreamSourceConfiguration",Ne="KinesisStreamSourceDescription",Le="KeyType",Fe="Limit",Be="MetaDataColumnName",Ue="MSKClusterARN",je="MSKSourceConfiguration",He="MSKSourceDescription",Ve="Name",ze="OutputFormatConfiguration",Ge="OrcSerDe",qe="OpenXJsonSerDe",$e="Password",We="ProcessingConfiguration",Ye="PrivateKey",Ke="PartitionSpec",Je="ParquetSerDe",Qe="Port",Xe="Prefix",Ze="RoleARN",et="RequestConfiguration",tt="RedshiftDestinationConfiguration",rt="RedshiftDestinationDescription",nt="RedshiftDestinationUpdate",it="ReadFromTimestamp",ot="RecordId",at="RetryOptions",st="Record",lt="Status",ct="S3BackupConfiguration",ut="S3BackupDescription",pt="S3BackupMode",dt="S3BackupUpdate",ht="S3Configuration",ft="SchemaConfiguration",mt="S3DestinationConfiguration",gt="SnowflakeDestinationConfiguration",yt="SplunkDestinationConfiguration",bt="S3DestinationDescription",vt="SnowflakeDestinationDescription",_t="SplunkDestinationDescription",St="S3DestinationUpdate",Et="SnowflakeDestinationUpdate",Tt="SplunkDestinationUpdate",wt="SchemaEvolutionConfiguration",xt="SecurityGroupIds",Ot="SizeInMBs",It="SubnetIds",At="SurrogateKeys",kt="SecretsManagerConfiguration",Rt="SnowflakeRole",Ct="SnowflakeRoleConfiguration",Pt="SSLMode",Dt="S3Update",Mt="SnowflakeVpcConfiguration",Nt="SnapshotWatermarkTable",Lt="Schema",Ft="Serializer",Bt="Tags",Ut="TableCreationConfiguration",jt="ThroughputHintInMBs",Ht="TypeName",Vt="TopicName",zt="Table",Gt="Tables",qt="Type",$t="Username",Wt="User",Yt="VpcConfiguration",Kt="VpcConfigurationDescription",Jt="VersionId",Qt="client",Xt="code",Zt="error",er="httpError",tr="message",rr="smithy.ts.sdk.synthetic.com.amazonaws.firehose",nr="com.amazonaws.firehose",ir=n.TypeRegistry.for(rr);var or=[-3,rr,"FirehoseServiceException",0,[],[]];ir.registerError(or,o.FirehoseServiceException);const ar=n.TypeRegistry.for(nr);var sr=[-3,nr,"ConcurrentModificationException",{[Zt]:Qt},[tr],[0]];ar.registerError(sr,i.ConcurrentModificationException);var lr=[-3,nr,"InvalidArgumentException",{[Zt]:Qt},[tr],[0]];ar.registerError(lr,i.InvalidArgumentException);var cr=[-3,nr,"InvalidKMSResourceException",{[Zt]:Qt},[Xt,tr],[0,0]];ar.registerError(cr,i.InvalidKMSResourceException);var ur=[-3,nr,"InvalidSourceException",{[Zt]:Qt},[Xt,tr],[0,0]];ar.registerError(ur,i.InvalidSourceException);
1var pr=[-3,nr,"LimitExceededException",{[Zt]:Qt},[tr],[0]];ar.registerError(pr,i.LimitExceededException);var dr=[-3,nr,"ResourceInUseException",{[Zt]:Qt},[tr],[0]];ar.registerError(dr,i.ResourceInUseException);var hr=[-3,nr,"ResourceNotFoundException",{[Zt]:Qt},[tr],[0]];ar.registerError(hr,i.ResourceNotFoundException);var fr=[-3,nr,"ServiceUnavailableException",{[Zt]:"server",[er]:503},[tr],[0]];ar.registerError(fr,i.ServiceUnavailableException);const mr=[ir,ar];var gr=[0,nr,"HttpEndpointAccessKey",8,0],yr=[0,nr,"HttpEndpointAttributeName",8,0],br=[0,nr,"HttpEndpointAttributeValue",8,0],vr=[0,nr,"HttpEndpointUrl",8,0],_r=[0,nr,$e,8,0],Sr=[0,nr,"SnowflakeAccountUrl",8,0],Er=[0,nr,"SnowflakeContentColumnName",8,0],Tr=[0,nr,"SnowflakeDatabase",8,0],wr=[0,nr,"SnowflakeKeyPassphrase",8,0],xr=[0,nr,"SnowflakeMetaDataColumnName",8,0],Or=[0,nr,"SnowflakePrivateKey",8,0],Ir=[0,nr,"SnowflakePrivateLinkVpceId",8,0],Ar=[0,nr,Rt,8,0],kr=[0,nr,"SnowflakeSchema",8,0],Rr=[0,nr,"SnowflakeTable",8,0],Cr=[0,nr,"SnowflakeUser",8,0],Pr=[0,nr,$t,8,0],Dr=[3,nr,"AmazonOpenSearchServerlessBufferingHints",0,[Ie,Ot],[1,1]],Mr=[3,nr,p,0,[Ze,Ae,ht,S,g,at,pt,We,O,Yt],[0,0,()=>vi,0,()=>Dr,()=>Fr,0,()=>oi,()=>$r,()=>Qi],3],Nr=[3,nr,d,0,[Ze,S,Ae,g,at,pt,bt,We,O,Kt],[0,0,0,()=>Dr,()=>Fr,0,()=>_i,()=>oi,()=>$r,()=>Xi]],Lr=[3,nr,h,0,[Ze,S,Ae,g,at,Dt,We,O],[0,0,0,()=>Dr,()=>Fr,()=>Si,()=>oi,()=>$r]],Fr=[3,nr,"AmazonOpenSearchServerlessRetryOptions",0,[M],[1]],Br=[3,nr,"AmazonopensearchserviceBufferingHints",0,[Ie,Ot],[1,1]],Ur=[3,nr,s,0,[Ze,Ae,ht,R,E,Ht,ke,g,at,pt,We,O,Yt,D],[0,0,()=>vi,0,0,0,0,()=>Br,()=>Vr,0,()=>oi,()=>$r,()=>Qi,()=>bn],3],jr=[3,nr,l,0,[Ze,R,E,Ae,Ht,ke,g,at,pt,bt,We,O,Kt,D],[0,0,0,0,0,0,()=>Br,()=>Vr,0,()=>_i,()=>oi,()=>$r,()=>Xi,()=>bn]],Hr=[3,nr,c,0,[Ze,R,E,Ae,Ht,ke,g,at,Dt,We,O,D],[0,0,0,0,0,0,()=>Br,()=>Vr,()=>Si,()=>oi,()=>$r,()=>bn]],Vr=[3,nr,"AmazonopensearchserviceRetryOptions",0,[M],[1]],zr=[3,nr,a,0,[Ze,"Connectivity"],[0,0],2],Gr=[3,nr,g,0,[Ot,Ie],[1,1]],qr=[3,nr,b,0,["CatalogARN","WarehouseLocation"],[0,0]],$r=[3,nr,O,0,[Z,"LogGroupName","LogStreamName"],[2,0,0]],Wr=[3,nr,_,0,["DataTableName","DataTableColumns","CopyOptions"],[0,0,0],1],Yr=[3,nr,"CreateDeliveryStreamInput",0,[$,W,F,Me,q,mt,ae,tt,re,s,yt,be,Bt,p,je,gt,Te,H],[0,0,()=>gn,()=>Gn,()=>un,()=>vi,()=>On,[()=>fi,0],()=>Sn,()=>Ur,()=>Ni,[()=>Nn,0],()=>co,()=>Mr,()=>Qn,[()=>Ii,0],()=>jn,()=>en],1],Kr=[3,nr,"CreateDeliveryStreamOutput",0,[j],[0]],Jr=[3,nr,"DatabaseColumnList",0,[Ee,pe],[64,64]],Qr=[3,nr,"DatabaseList",0,[Ee,pe],[64,64]],Xr=[3,nr,"DatabaseSnapshotInfo",0,["Id",zt,"RequestTimestamp","RequestedBy",lt,de],[0,0,4,0,0,()=>kn],5],Zr=[3,nr,U,0,[kt],[()=>wi],1],en=[3,nr,H,0,[qt,ce,Qe,k,Gt,Nt,U,K,Pt,I,At],[0,0,1,()=>Qr,()=>nn,0,()=>Zr,()=>rn,0,()=>Jr,64],8],tn=[3,nr,V,0,[qt,ce,Qe,Pt,k,Gt,I,At,Nt,"SnapshotInfo",U,K],[0,0,1,0,()=>Qr,()=>nn,()=>Jr,64,0,()=>Zi,()=>Zr,()=>rn]],rn=[3,nr,K,0,["VpcEndpointServiceName"],[0],1],nn=[3,nr,"DatabaseTableList",0,[Ee,pe],[64,64]],on=[3,nr,C,0,[ft,Oe,ze,Z],[()=>Ei,()=>zn,()=>ti,2]],an=[3,nr,"DeleteDeliveryStreamInput",0,[$,"AllowForceDelete"],[0,2],1],sn=[3,nr,"DeleteDeliveryStreamOutput",0,[],[]],ln=[3,nr,z,0,[$,j,"DeliveryStreamStatus",W,Jt,"Destinations","HasMoreDestinations",de,G,"CreateTimestamp","LastUpdateTimestamp","Source"],[0,0,0,0,0,[()=>eo,0],2,()=>kn,()=>cn,4,4,()=>Di],7],cn=[3,nr,G,0,[Re,Le,lt,de],[0,0,0,()=>kn]],un=[3,nr,q,0,[Le,Re],[0,0],1],pn=[3,nr,"DescribeDeliveryStreamInput",0,[$,Fe,"ExclusiveStartDestinationId"],[0,1,0],1],dn=[3,nr,"DescribeDeliveryStreamOutput",0,[z],[[()=>ln,0]],1],hn=[3,nr,X,0,[qe,Se],[()=>Zn,()=>Rn]],fn=[3,nr,"DestinationDescription",0,[P,bt,se,rt,ne,l,_t,ve,vt,d,we],[0,()=>_i,()=>In,[()=>mi,0],()=>En,()=>jr,()=>Li,[()=>Ln,0],[()=>Ai,0],()=>Nr,()=>Hn],1],mn=[3,nr,"DestinationTableConfiguration",0,["DestinationTableName","DestinationDatabaseName","UniqueKeys",Ke,"S3ErrorOutputPrefix"],[0,0,64,()=>ii,0],2],gn=[3,nr,F,0,[jt],[1],1],yn=[3,nr,B,0,[jt],[1]],bn=[3,nr,D,0,["DefaultDocumentIdFormat"],[0],1],vn=[3,nr,L,0,[at,Z],[()=>bi,2]],_n=[3,nr,"ElasticsearchBufferingHints",0,[Ie,Ot],[1,1]],Sn=[3,nr,re,0,[Ze,Ae,ht,R,E,Ht,ke,g,at,pt,We,O,Yt,D],[0,0,()=>vi,0,0,0,0,()=>_n,()=>wn,0,()=>oi,()=>$r,()=>Qi,()=>bn],3],En=[3,nr,ne,0,[Ze,R,E,Ae,Ht,ke,g,at,pt,bt,We,O,Kt,D],[0,0,0,0,0,0,()=>_n,()=>wn,0,()=>_i,()=>oi,()=>$r,()=>Xi,()=>bn]],Tn=[3,nr,ie,0,[Ze,R,E,Ae,Ht,ke,g,at,Dt,We,O,D],[0,0,0,0,0,0,()=>_n,()=>wn,()=>Si,()=>oi,()=>$r,()=>bn]],wn=[3,nr,"ElasticsearchRetryOptions",0,[M],[1]],xn=[3,nr,ee,0,["NoEncryptionConfig",Ce],[0,()=>
1$n]],On=[3,nr,ae,0,[Ze,m,Xe,oe,g,T,ee,O,We,pt,ct,C,L,he,x],[0,0,0,0,()=>Gr,0,()=>xn,()=>$r,()=>oi,0,()=>vi,()=>on,()=>vn,0,0],2],In=[3,nr,se,0,[Ze,m,g,T,ee,Xe,oe,O,We,pt,ut,C,L,he,x],[0,0,()=>Gr,0,()=>xn,0,0,()=>$r,()=>oi,0,()=>_i,()=>on,()=>vn,0,0],5],An=[3,nr,le,0,[Ze,m,Xe,oe,g,T,ee,O,We,pt,dt,C,L,he,x],[0,0,0,0,()=>Gr,0,()=>xn,()=>$r,()=>oi,0,()=>Si,()=>on,()=>vn,0,0]],kn=[3,nr,de,0,[qt,"Details"],[0,0],2],Rn=[3,nr,Se,0,["TimestampFormats"],[64]],Cn=[3,nr,"HttpEndpointBufferingHints",0,[Ot,Ie],[1,1]],Pn=[3,nr,"HttpEndpointCommonAttribute",0,["AttributeName","AttributeValue"],[[()=>yr,0],[()=>br,0]],2],Dn=[3,nr,"HttpEndpointConfiguration",0,["Url",Ve,"AccessKey"],[[()=>vr,0],0,[()=>gr,0]],1],Mn=[3,nr,"HttpEndpointDescription",0,["Url",Ve],[[()=>vr,0],0]],Nn=[3,nr,be,0,[te,ht,g,O,et,We,Ze,at,pt,kt],[[()=>Dn,0],()=>vi,()=>Cn,()=>$r,[()=>Bn,0],()=>oi,0,()=>Un,0,()=>wi],2],Ln=[3,nr,ve,0,[te,g,O,et,We,Ze,at,pt,bt,kt],[[()=>Mn,0],()=>Cn,()=>$r,[()=>Bn,0],()=>oi,0,()=>Un,0,()=>_i,()=>wi]],Fn=[3,nr,_e,0,[te,g,O,et,We,Ze,at,pt,Dt,kt],[[()=>Dn,0],()=>Cn,()=>$r,[()=>Bn,0],()=>oi,0,()=>Un,0,()=>Si,()=>wi]],Bn=[3,nr,"HttpEndpointRequestConfiguration",0,["ContentEncoding","CommonAttributes"],[0,[()=>ro,0]]],Un=[3,nr,"HttpEndpointRetryOptions",0,[M],[1]],jn=[3,nr,Te,0,[Ze,b,ht,J,wt,Ut,g,O,We,pt,at,u],[0,()=>qr,()=>vi,()=>to,()=>Ti,()=>zi,()=>Gr,()=>$r,()=>oi,0,()=>bi,2],3],Hn=[3,nr,we,0,[J,wt,Ut,g,O,We,pt,at,Ze,u,b,bt],[()=>to,()=>Ti,()=>zi,()=>Gr,()=>$r,()=>oi,0,()=>bi,0,2,()=>qr,()=>_i]],Vn=[3,nr,xe,0,[J,wt,Ut,g,O,We,pt,at,Ze,u,b,ht],[()=>to,()=>Ti,()=>zi,()=>Gr,()=>$r,()=>oi,0,()=>bi,0,2,()=>qr,()=>vi]],zn=[3,nr,Oe,0,[X],[()=>hn]],Gn=[3,nr,Me,0,[De,Ze],[0,0],2],qn=[3,nr,Ne,0,[De,Ze,Y],[0,0,4]],$n=[3,nr,Ce,0,["AWSKMSKeyARN"],[0],1],Wn=[3,nr,"ListDeliveryStreamsInput",0,[Fe,W,"ExclusiveStartDeliveryStreamName"],[1,0,0]],Yn=[3,nr,"ListDeliveryStreamsOutput",0,["DeliveryStreamNames","HasMoreDeliveryStreams"],[64,2],2],Kn=[3,nr,"ListTagsForDeliveryStreamInput",0,[$,"ExclusiveStartTagKey",Fe],[0,0,1],1],Jn=[3,nr,"ListTagsForDeliveryStreamOutput",0,[Bt,"HasMoreTags"],[()=>no,2],2],Qn=[3,nr,je,0,[Ue,Vt,a,it],[0,0,()=>zr,4],3],Xn=[3,nr,He,0,[Ue,Vt,a,Y,it],[0,0,()=>zr,4,4]],Zn=[3,nr,qe,0,["ConvertDotsInJsonKeysToUnderscores","CaseInsensitive","ColumnToJsonKeyMappings"],[2,2,128]],ei=[3,nr,Ge,0,["StripeSizeBytes",y,"RowIndexStride","EnablePadding","PaddingTolerance",A,"BloomFilterColumns","BloomFilterFalsePositiveProbability","DictionaryKeyThreshold","FormatVersion"],[1,1,1,2,1,0,64,1,1,0]],ti=[3,nr,ze,0,[Ft],[()=>xi]],ri=[3,nr,Je,0,[y,"PageSizeBytes",A,"EnableDictionaryCompression","MaxPaddingBytes","WriterVersion"],[1,1,0,2,1,0]],ni=[3,nr,"PartitionField",0,["SourceName"],[0],1],ii=[3,nr,Ke,0,["Identity"],[()=>io]],oi=[3,nr,We,0,[Z,"Processors"],[2,()=>oo]],ai=[3,nr,"Processor",0,[qt,"Parameters"],[0,()=>ao],1],si=[3,nr,"ProcessorParameter",0,["ParameterName","ParameterValue"],[0,0],2],li=[3,nr,"PutRecordBatchInput",0,[$,"Records"],[0,()=>so],2],ci=[3,nr,"PutRecordBatchOutput",0,["FailedPutCount","RequestResponses",ue],[1,()=>lo,2],2],ui=[3,nr,"PutRecordBatchResponseEntry",0,[ot,"ErrorCode","ErrorMessage"],[0,0,0]],pi=[3,nr,"PutRecordInput",0,[$,st],[0,()=>hi],2],di=[3,nr,"PutRecordOutput",0,[ot,ue],[0,2],1],hi=[3,nr,st,0,["Data"],[21],1],fi=[3,nr,tt,0,[Ze,w,_,ht,$t,$e,at,We,pt,ct,O,kt],[0,0,()=>Wr,()=>vi,[()=>Pr,0],[()=>_r,0],()=>yi,()=>oi,0,()=>vi,()=>$r,()=>wi],4],mi=[3,nr,rt,0,[Ze,w,_,bt,$t,at,We,pt,ut,O,kt],[0,0,()=>Wr,()=>_i,[()=>Pr,0],()=>yi,()=>oi,0,()=>_i,()=>$r,()=>wi],4],gi=[3,nr,nt,0,[Ze,w,_,$t,$e,at,Dt,We,pt,dt,O,kt],[0,0,()=>Wr,[()=>Pr,0],[()=>_r,0],()=>yi,()=>Si,()=>oi,0,()=>Si,()=>$r,()=>wi]],yi=[3,nr,"RedshiftRetryOptions",0,[M],[1]],bi=[3,nr,at,0,[M],[1]],vi=[3,nr,mt,0,[Ze,m,Xe,oe,g,T,ee,O],[0,0,0,0,()=>Gr,0,()=>xn,()=>$r],2],_i=[3,nr,bt,0,[Ze,m,g,T,ee,Xe,oe,O],[0,0,()=>Gr,0,()=>xn,0,0,()=>$r],5],Si=[3,nr,St,0,[Ze,m,Xe,oe,g,T,ee,O],[0,0,0,0,()=>Gr,0,()=>xn,()=>$r]],Ei=[3,nr,ft,0,[Ze,"CatalogId","DatabaseName","TableName","Region",Jt],[0,0,0,0,0,0]],Ti=[3,nr,wt,0,[Z],[2],1],wi=[3,nr,kt,0,[Z,"SecretARN",Ze],[2,0,0],1],xi=[3,nr,Ft,0,[Je,Ge],[()=>ri,()=>ei]],Oi=[3,nr,"SnowflakeBufferingHints",0,[Ot,Ie],[1,1]],Ii=[3,nr,gt,0,[f,Q,Lt,zt,Ze,ht,Ye,Pe,Wt,Ct,N,Be,v,Mt,O,We,at,pt,kt,g],[[()=>Sr,0],[()=>Tr,0],[()=>kr,0],[()=>Rr,0],0,()=>vi,[()=>Or,0],[()=>wr,0],[()=>Cr,0],[()=>Ci,0],0,[()=>xr,0],[()=>Er,0],[()=>Pi,0],()=>$r,()=>oi,()=>Ri,0,()=>wi,()=>Oi],6],Ai=[3,nr,vt,0,[f,Wt,Q,Lt,zt,Ct,N,Be,v,Mt,O,We,Ze,at,pt,bt,kt,g],[[()=>Sr,0],[()=>Cr,0],[()=>Tr,0],[()=>kr,0],[()=>Rr,0],[()=>Ci,0],0,[()=>xr,0],[()=>Er,0],[()=>Pi,0],()=>$r,()=>oi,0,()=>Ri,0,()=>_i,()=>wi,()=>
1Oi]],ki=[3,nr,Et,0,[f,Ye,Pe,Wt,Q,Lt,zt,Ct,N,Be,v,O,We,Ze,at,pt,Dt,kt,g],[[()=>Sr,0],[()=>Or,0],[()=>wr,0],[()=>Cr,0],[()=>Tr,0],[()=>kr,0],[()=>Rr,0],[()=>Ci,0],0,[()=>xr,0],[()=>Er,0],()=>$r,()=>oi,0,()=>Ri,0,()=>Si,()=>wi,()=>Oi]],Ri=[3,nr,"SnowflakeRetryOptions",0,[M],[1]],Ci=[3,nr,Ct,0,[Z,Rt],[2,[()=>Ar,0]]],Pi=[3,nr,Mt,0,["PrivateLinkVpceId"],[[()=>Ir,0]],1],Di=[3,nr,"SourceDescription",0,[B,Ne,He,V],[()=>yn,()=>qn,()=>Xn,()=>tn]],Mi=[3,nr,"SplunkBufferingHints",0,[Ie,Ot],[1,1]],Ni=[3,nr,yt,0,[me,ge,ht,ye,fe,at,pt,We,O,g,kt],[0,0,()=>vi,0,1,()=>Bi,0,()=>oi,()=>$r,()=>Mi,()=>wi],3],Li=[3,nr,_t,0,[me,ge,ye,fe,at,pt,bt,We,O,g,kt],[0,0,0,1,()=>Bi,0,()=>_i,()=>oi,()=>$r,()=>Mi,()=>wi]],Fi=[3,nr,Tt,0,[me,ge,ye,fe,at,pt,Dt,We,O,g,kt],[0,0,0,1,()=>Bi,0,()=>Si,()=>oi,()=>$r,()=>Mi,()=>wi]],Bi=[3,nr,"SplunkRetryOptions",0,[M],[1]],Ui=[3,nr,"StartDeliveryStreamEncryptionInput",0,[$,q],[0,()=>un],1],ji=[3,nr,"StartDeliveryStreamEncryptionOutput",0,[],[]],Hi=[3,nr,"StopDeliveryStreamEncryptionInput",0,[$],[0],1],Vi=[3,nr,"StopDeliveryStreamEncryptionOutput",0,[],[]],zi=[3,nr,Ut,0,[Z],[2],1],Gi=[3,nr,"Tag",0,["Key","Value"],[0,0],1],qi=[3,nr,"TagDeliveryStreamInput",0,[$,Bt],[0,()=>co],2],$i=[3,nr,"TagDeliveryStreamOutput",0,[],[]],Wi=[3,nr,"UntagDeliveryStreamInput",0,[$,"TagKeys"],[0,64],2],Yi=[3,nr,"UntagDeliveryStreamOutput",0,[],[]],Ki=[3,nr,"UpdateDestinationInput",0,[$,"CurrentDeliveryStreamVersionId",P,St,le,nt,ie,c,Tt,_e,h,Et,xe],[0,0,0,()=>Si,()=>An,[()=>gi,0],()=>Tn,()=>Hr,()=>Fi,[()=>Fn,0],()=>Lr,[()=>ki,0],()=>Vn],3],Ji=[3,nr,"UpdateDestinationOutput",0,[],[]],Qi=[3,nr,Yt,0,[It,Ze,xt],[64,0,64],3],Xi=[3,nr,Kt,0,[It,Ze,xt,"VpcId"],[64,0,64,0],4],Zi=[1,nr,"DatabaseSnapshotInfoList",0,()=>Xr],eo=[1,nr,"DestinationDescriptionList",0,[()=>fn,0]],to=[1,nr,J,0,()=>mn],ro=[1,nr,"HttpEndpointCommonAttributesList",0,[()=>Pn,0]],no=[1,nr,"ListTagsForDeliveryStreamOutputTagList",0,()=>Gi],io=[1,nr,"PartitionFields",0,()=>ni],oo=[1,nr,"ProcessorList",0,()=>ai],ao=[1,nr,"ProcessorParameterList",0,()=>si],so=[1,nr,"PutRecordBatchRequestEntryList",0,()=>hi],lo=[1,nr,"PutRecordBatchResponseEntryList",0,()=>ui],co=[1,nr,"TagDeliveryStreamInputTagList",0,()=>Gi],uo=[9,nr,"CreateDeliveryStream",0,()=>Yr,()=>Kr],po=[9,nr,"DeleteDeliveryStream",0,()=>an,()=>sn],ho=[9,nr,"DescribeDeliveryStream",0,()=>pn,()=>dn],fo=[9,nr,"ListDeliveryStreams",0,()=>Wn,()=>Yn],mo=[9,nr,"ListTagsForDeliveryStream",0,()=>Kn,()=>Jn],go=[9,nr,"PutRecord",0,()=>pi,()=>di],yo=[9,nr,"PutRecordBatch",0,()=>li,()=>ci],bo=[9,nr,"StartDeliveryStreamEncryption",0,()=>Ui,()=>ji],vo=[9,nr,"StopDeliveryStreamEncryption",0,()=>Hi,()=>Vi],_o=[9,nr,"TagDeliveryStream",0,()=>qi,()=>$i],So=[9,nr,"UntagDeliveryStream",0,()=>Wi,()=>Yi],Eo=[9,nr,"UpdateDestination",0,()=>Ki,()=>Ji]},(e,t,r)=>{"use strict";r.r(t),r.d(t,{TypeRegistry:()=>n});class n{namespace;schemas;exceptions;static registries=new Map;constructor(e,t=new Map,r=new Map){this.namespace=e,this.schemas=t,this.exceptions=r}static for(e){return n.registries.has(e)||n.registries.set(e,new n(e)),n.registries.get(e)}copyFrom(e){const{schemas:t,exceptions:r}=this;for(const[r,n]of e.schemas)t.has(r)||t.set(r,n);for(const[t,n]of e.exceptions)r.has(t)||r.set(t,n)}register(e,t){const r=this.normalizeShapeId(e);for(const e of[this,n.for(r.split("#")[0])])e.schemas.set(r,t)}getSchema(e){const t=this.normalizeShapeId(e);if(!this.schemas.has(t)){if(!e.includes("#")){const t="#"+e,r=[];for(const[e,n]of this.schemas.entries())e.endsWith(t)&&r.push(n);if(1===r.length)return r[0]}throw new Error(`@smithy/core/schema - schema not found for ${t}`)}return this.schemas.get(t)}registerError(e,t){const r=e,i=r[1];for(const e of[this,n.for(i)])e.schemas.set(i+"#"+r[2],r),e.exceptions.set(r,t)}getErrorCtor(e){const t=e;if(this.exceptions.has(t))return this.exceptions.get(t);return n.for(t[1]).exceptions.get(t)}getBaseException(){for(const e of this.exceptions.keys())if(Array.isArray(e)){const[,t,r]=e,n=t+"#"+r;if(n.startsWith("smithy.ts.sdk.synthetic.")&&n.endsWith("ServiceException"))return e}}find(e){for(const t of this.schemas.values())if(e(t))return t}clear(){this.schemas.clear(),this.exceptions.clear()}normalizeShapeId(e){return e.includes("#")?e:this.namespace+"#"+e}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{ConcurrentModificationException:()=>i,InvalidArgumentException:()=>o,InvalidKMSResourceException:()=>a,InvalidSourceException:()=>u,LimitExceededException:()=>s,ResourceInUseException:()=>l,ResourceNotFoundException:()=>c,ServiceUnavailableException:()=>p});var n=r(173);class i extends n.FirehoseServiceException{name="ConcurrentModificationException";$fault="client";constructor(e){super({name:"ConcurrentModificationException",$fault:"client",...e}),Object.setPrototypeOf(this,i.prototype)}}class o extends n.FirehoseServiceException{name="InvalidArgumentException";$fault="client";constructor(e){super({name:"InvalidArgumentException",$fault:"client",...e}),Object.setPrototypeOf(this,o.prototype)}}class a extends n.FirehoseServiceException{name="InvalidKMSResourceException";$fault="client";code;constructor(e){super({name:"InvalidKMSResourceException",$fault:"client",...e}),Object.setPrototypeOf(this,a.prototype),this.code=e.code}}class s extends n.FirehoseServiceException{name="LimitExceededException";$fault="client";constructor(e){super({name:"LimitExceededException",$fault:"client",...e}),Object.setPrototypeOf(this,s.prototype)}}class l extends n.FirehoseServiceException{name="ResourceInUseException";$fault="client";constructor(e){super({name:"ResourceInUseException",$fault:"client",...e}),Object.setPrototypeOf(this,l.prototype)}}class c extends n.FirehoseServiceException{name="ResourceNotFoundException";$fault="client";constructor(e){super({name:"ResourceNotFoundException",$fault:"client",...e}),Object.setPrototypeOf(this,c.prototype)}}class u extends n.FirehoseServiceException{name="InvalidSourceException";$fault="client";code;constructor(e){super({name:"InvalidSourceException",$fault:"client",...e}),Object.setPrototypeOf(this,u.prototype),this.code=e.code}}class p extends n.FirehoseServiceException{name="ServiceUnavailableException";$fault="server";constructor(e){super({name:"ServiceUnavailableException",$fault:"server",...e}),Object.setPrototypeOf(this,p.prototype)}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{FirehoseServiceException:()=>i});var n=r(174);class i extends n.ServiceException{constructor(e){super(e),Object.setPrototypeOf(this,i.prototype)}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{ServiceException:()=>n,decorateServiceException:()=>i});
1class n extends Error{$fault;$response;$retryable;$metadata;constructor(e){super(e.message),Object.setPrototypeOf(this,Object.getPrototypeOf(this).constructor.prototype),this.name=e.name,this.$fault=e.$fault,this.$metadata=e.$metadata}static isInstance(e){if(!e)return!1;const t=e;return n.prototype.isPrototypeOf(t)||Boolean(t.$fault)&&Boolean(t.$metadata)&&("client"===t.$fault||"server"===t.$fault)}static[Symbol.hasInstance](e){if(!e)return!1;const t=e;return this===n?n.isInstance(e):!!n.isInstance(e)&&(t.name&&this.name?this.prototype.isPrototypeOf(e)||t.name===this.name:this.prototype.isPrototypeOf(e))}}const i=(e,t={})=>{Object.entries(t).filter(([,e])=>void 0!==e).forEach(([t,r])=>{null!=e[t]&&""!==e[t]||(e[t]=r)});const r=e.message||e.Message||"UnknownError";return e.message=r,delete e.Message,e}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{DeleteDeliveryStreamCommand:()=>o});var n=r(116),i=r(170);class o extends((0,n.command)(n._ep0,n._mw0,"DeleteDeliveryStream",i.DeleteDeliveryStream$)){}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{DescribeDeliveryStreamCommand:()=>o});var n=r(116),i=r(170);class o extends((0,n.command)(n._ep0,n._mw0,"DescribeDeliveryStream",i.DescribeDeliveryStream$)){}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{ListDeliveryStreamsCommand:()=>o});var n=r(116),i=r(170);class o extends((0,n.command)(n._ep0,n._mw0,"ListDeliveryStreams",i.ListDeliveryStreams$)){}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{ListTagsForDeliveryStreamCommand:()=>o});var n=r(116),i=r(170);class o extends((0,n.command)(n._ep0,n._mw0,"ListTagsForDeliveryStream",i.ListTagsForDeliveryStream$)){}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{PutRecordBatchCommand:()=>o});var n=r(116),i=r(170);class o extends((0,n.command)(n._ep0,n._mw0,"PutRecordBatch",i.PutRecordBatch$)){}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{PutRecordCommand:()=>o});var n=r(116),i=r(170);class o extends((0,n.command)(n._ep0,n._mw0,"PutRecord",i.PutRecord$)){}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{StartDeliveryStreamEncryptionCommand:()=>o});var n=r(116),i=r(170);class o extends((0,n.command)(n._ep0,n._mw0,"StartDeliveryStreamEncryption",i.StartDeliveryStreamEncryption$)){}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{StopDeliveryStreamEncryptionCommand:()=>o});var n=r(116),i=r(170);class o extends((0,n.command)(n._ep0,n._mw0,"StopDeliveryStreamEncryption",i.StopDeliveryStreamEncryption$)){}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{TagDeliveryStreamCommand:()=>o});var n=r(116),i=r(170);class o extends((0,n.command)(n._ep0,n._mw0,"TagDeliveryStream",i.TagDeliveryStream$)){}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{UntagDeliveryStreamCommand:()=>o});var n=r(116),i=r(170);class o extends((0,n.command)(n._ep0,n._mw0,"UntagDeliveryStream",i.UntagDeliveryStream$)){}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{UpdateDestinationCommand:()=>o});var n=r(116),i=r(170);class o extends((0,n.command)(n._ep0,n._mw0,"UpdateDestination",i.UpdateDestination$)){}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{FirehoseClient:()=>E,__Client:()=>p.Client});var n=r(187),i=r(189),o=r(190),a=r(191),s=r(193),l=r(202),c=r(203),u=r(206),p=r(208),d=r(209),h=r(125),f=r(213),m=r(214),g=r(243),y=r(249),b=r(253),v=r(169),_=r(279),S=r(321);class E extends p.Client{config;constructor(...[e]){const t=(0,_.getRuntimeConfig)(e||{});super(t),this.initConfig=t;const r=(0,v.resolveClientEndpointParameters)(t),p=(0,a.resolveUserAgentConfig)(r),E=(0,g.resolveRetryConfig)(p),T=(0,d.resolveRegionConfig)(E),w=(0,n.resolveHostHeaderConfig)(T),x=(0,h.resolveEndpointConfig)(w),O=(0,b.resolveHttpAuthSchemeConfig)(x),I=(0,S.resolveRuntimeExtensions)(O,e?.extensions||[]);this.config=I,this.middlewareStack.use((0,y.getSchemaSerdePlugin)(this.config)),this.middlewareStack.use((0,s.getUserAgentPlugin)(this.config)),this.middlewareStack.use((0,m.getRetryPlugin)(this.config)),this.middlewareStack.use((0,f.getContentLengthPlugin)(this.config)),this.middlewareStack.use((0,n.getHostHeaderPlugin)(this.config)),this.middlewareStack.use((0,i.getLoggerPlugin)(this.config)),this.middlewareStack.use((0,o.getRecursionDetectionPlugin)(this.config)),this.middlewareStack.use((0,c.getHttpAuthSchemeEndpointRuleSetPlugin)(this.config,{httpAuthSchemeParametersProvider:b.defaultFirehoseHttpAuthSchemeParametersProvider,identityProvi
1derConfigProvider:async e=>new l.DefaultIdentityProviderConfig({"aws.auth#sigv4":e.credentials})})),this.middlewareStack.use((0,u.getHttpSigningPlugin)(this.config))}destroy(){super.destroy()}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{getHostHeaderPlugin:()=>s,hostHeaderMiddleware:()=>o,hostHeaderMiddlewareOptions:()=>a,resolveHostHeaderConfig:()=>i});var n=r(188);function i(e){return e}const o=e=>t=>async r=>{if(!n.HttpRequest.isInstance(r.request))return t(r);const{request:i}=r,{handlerProtocol:o=""}=e.requestHandler.metadata||{};if(o.indexOf("h2")>=0&&!i.headers[":authority"])delete i.headers.host,i.headers[":authority"]=i.hostname+(i.port?":"+i.port:"");else if(!i.headers.host){let e=i.hostname;null!=i.port&&(e+=`:${i.port}`),i.headers.host=e}return t(r)},a={name:"hostHeaderMiddleware",step:"build",priority:"low",tags:["HOST"],override:!0},s=e=>({applyToStack:t=>{t.add(o(e),a)}})},(e,t,r)=>{"use strict";r.r(t),r.d(t,{HttpRequest:()=>n});class n{method;protocol;hostname;port;path;query;headers;username;password;fragment;body;constructor(e){this.method=e.method||"GET",this.hostname=e.hostname||"localhost",this.port=e.port,this.query=e.query||{},this.headers=e.headers||{},this.body=e.body,this.protocol=e.protocol?":"!==e.protocol.slice(-1)?`${e.protocol}:`:e.protocol:"https:",this.path=e.path?"/"!==e.path.charAt(0)?`/${e.path}`:e.path:"/",this.username=e.username,this.password=e.password,this.fragment=e.fragment}static clone(e){const t=new n({...e,headers:{...e.headers}});var r;return t.query&&(t.query=(r=t.query,Object.keys(r).reduce((e,t)=>{const n=r[t];return{...e,[t]:Array.isArray(n)?[...n]:n}},{}))),t}static isInstance(e){if(!e)return!1;const t=e;return"method"in t&&"protocol"in t&&"hostname"in t&&"path"in t&&"object"==typeof t.query&&"object"==typeof t.headers}clone(){return n.clone(this)}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{getLoggerPlugin:()=>o,loggerMiddleware:()=>n,loggerMiddlewareOptions:()=>i});const n=()=>(e,t)=>async r=>{try{const n=await e(r),{clientName:i,commandName:o,logger:a,dynamoDbDocumentClientOptions:s={}}=t,{overrideInputFilterSensitiveLog:l,overrideOutputFilterSensitiveLog:c}=s,u=l??t.inputFilterSensitiveLog,p=c??t.outputFilterSensitiveLog,{$metadata:d,...h}=n.output;return a?.info?.({clientName:i,commandName:o,input:u(r.input),output:p(h),metadata:d}),n}catch(e){const{clientName:n,commandName:i,logger:o,dynamoDbDocumentClientOptions:a={}}=t,{overrideInputFilterSensitiveLog:s}=a,l=s??t.inputFilterSensitiveLog;throw o?.error?.({clientName:n,commandName:i,input:l(r.input),error:e,metadata:e.$metadata}),e}},i={name:"loggerMiddleware",tags:["LOGGER"],step:"initialize",override:!0},o=e=>({applyToStack:e=>{e.add(n(),i)}})},(e,t,r)=>{"use strict";r.r(t),r.d(t,{getRecursionDetectionPlugin:()=>n});const n=e=>({applyToStack:e=>{}})},(e,t,r)=>{"use strict";r.r(t),r.d(t,{DEFAULT_UA_APP_ID:()=>i,resolveUserAgentConfig:()=>o});var n=r(192);const i=void 0;function o(e){const t=(0,n.normalizeProvider)(e.userAgentAppId??i),{customUserAgent:r}=e;return Object.assign(e,{customUserAgent:"string"==typeof r?[[r]]:r,userAgentAppId:async()=>{const r=await t();if(!function(e){return void 0===e||"string"==typeof e&&e.length<=50}(r)){const t="NoOpLogger"!==e.logger?.constructor?.name&&e.logger?e.logger:console;"string"!=typeof r?t?.warn("userAgentAppId must be a string or undefined."):r.length>50&&t?.warn("The provided userAgentAppId exceeds the maximum length of 50 characters.")}return r}})}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{normalizeProvider:()=>n});const n=e=>{if("function"==typeof e)return e;const t=Promise.resolve(e);return()=>t}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{getUserAgentMiddlewareOptions:()=>u,getUserAgentPlugin:()=>p,userAgentMiddleware:()=>l});var n=r(188),i=r(194),o=r(196),a=r(200),s=r(201);const l=e=>(t,r)=>async l=>{const{request:u}=l;if(!n.HttpRequest.isInstance(u))return t(l);const{headers:p}=u,d=r?.userAgent?.map(c)||[],h=(await e.defaultUserAgentProvider()).map(c);await(0,o.checkFeatures)(r,e,l);const f=r;h.push(`m/${(0,s.encodeFeatures)(Object.assign({},r.__smithy_context?.features,f.__aws_sdk_context?.features))}`);const m=e?.customUserAgent?.map(c)||[],g=await e.userAgentAppId();g&&h.push(c(["app",`${g}`]));const y=(0,i.getUserAgentPrefix)(),b=(y?[y]:[]).concat([...h,...d,...m]).join(a.SPACE),v=[...h.filter(e=>e.startsWith("aws-sdk-")),...m].join(a.SPACE);return"browser"!==e.runtime?(v&&(p[a.X_AMZ_USER_AGENT]=p[a.X_AMZ_USER_AGENT]?`${p[a.USER_AGENT]} ${v}`:v),p[a.USER_AGENT]=b):p[a.X_AMZ_USER_AGENT]=b,t({...l,request:u})},c=e=>{const t=e[0].split(a.UA_NAME_SEPARATOR).map(e=>e.replace(a.UA_NAME_ESCAPE_REGEX,a.UA_ESCAPE_CHAR)).join(a.UA_NAME_SEPARATOR),r=e[1]?.replace(a.UA_VALUE_ESCAPE_REGEX,a.UA_ESCAPE_CHAR),n=t.indexOf(a.UA_NAME_SEPARATOR),i=t.substring(0,n);let o=t.substring(n+1);return"api"===i&&(o=o.toLowerCase()),[i,o,r].filter(e=>e&&e.length>0).reduce((e,t,r)=>{switch(r){case 0:return t;case 1:return`${e}/${t}`;default:return`${e}#${t}`}},"")},u={name:"getUserAgentMiddleware",step:"build",priority:"low",tags:["SET_USER_AGENT","USER_AGENT"],override:!0},p=e=>({applyToStack:t=>{t.add(l(e),u)}})},(e,t,r)=>{"use strict";r.r(t),r.d(t,{getUserAgentPrefix:()=>c,partition:()=>a,setPartitionInfo:()=>s,useDefaultPartitionInfo:()=>l});var n=r(195);let i=n.partitionsInfo,o="";const a=e=>{const{partitions:t}=i;for(const r of t){const{regions:t,outputs:n}=r;for(const[r,i]of Object.entries(t))if(r===e)return{...n,...i}}for(const r of t){const{regionRegex:t,outputs:n}=r;if(new RegExp(t).test(e))return{...n}}const r=t.find(e=>"aws"===e.id);if(!r)throw new Error("Provided region was not found in the partition array or regex, and default partition with id 'aws' doesn't exist.");return{...r.outputs}},s=(e,t="")=>{i=e,o=t},l=()=>{s(n.partitionsInfo,"")},c=()=>o},(e,t,r)=>{"use strict";r.r(t),r.d(t,{partitionsInfo:()=>n});const n={partitions:[{id:"aws",outputs:{dnsSuffix:"amazonaws.com",dualStackDnsSuffix:"api.aws",implicitGlobalRegion:"us-east-1",name:"aws",supp
1ortsDualStack:!0,supportsFIPS:!0},regionRegex:"^(us|eu|ap|sa|ca|me|af|il|mx)\\-\\w+\\-\\d+$",regions:{"af-south-1":{description:"Africa (Cape Town)"},"ap-east-1":{description:"Asia Pacific (Hong Kong)"},"ap-east-2":{description:"Asia Pacific (Taipei)"},"ap-northeast-1":{description:"Asia Pacific (Tokyo)"},"ap-northeast-2":{description:"Asia Pacific (Seoul)"},"ap-northeast-3":{description:"Asia Pacific (Osaka)"},"ap-south-1":{description:"Asia Pacific (Mumbai)"},"ap-south-2":{description:"Asia Pacific (Hyderabad)"},"ap-southeast-1":{description:"Asia Pacific (Singapore)"},"ap-southeast-2":{description:"Asia Pacific (Sydney)"},"ap-southeast-3":{description:"Asia Pacific (Jakarta)"},"ap-southeast-4":{description:"Asia Pacific (Melbourne)"},"ap-southeast-5":{description:"Asia Pacific (Malaysia)"},"ap-southeast-6":{description:"Asia Pacific (New Zealand)"},"ap-southeast-7":{description:"Asia Pacific (Thailand)"},"aws-global":{description:"aws global region"},"ca-central-1":{description:"Canada (Central)"},"ca-west-1":{description:"Canada West (Calgary)"},"eu-central-1":{description:"Europe (Frankfurt)"},"eu-central-2":{description:"Europe (Zurich)"},"eu-north-1":{description:"Europe (Stockholm)"},"eu-south-1":{description:"Europe (Milan)"},"eu-south-2":{description:"Europe (Spain)"},"eu-west-1":{description:"Europe (Ireland)"},"eu-west-2":{description:"Europe (London)"},"eu-west-3":{description:"Europe (Paris)"},"il-central-1":{description:"Israel (Tel Aviv)"},"me-central-1":{description:"Middle East (UAE)"},"me-south-1":{description:"Middle East (Bahrain)"},"mx-central-1":{description:"Mexico (Central)"},"sa-east-1":{description:"South America (Sao Paulo)"},"us-east-1":{description:"US East (N. Virginia)"},"us-east-2":{description:"US East (Ohio)"},"us-west-1":{description:"US West (N. California)"},"us-west-2":{description:"US West (Oregon)"}}},{id:"aws-cn",outputs:{dnsSuffix:"amazonaws.com.cn",dualStackDnsSuffix:"api.amazonwebservices.com.cn",implicitGlobalRegion:"cn-northwest-1",name:"aws-cn",supportsDualStack:!0,supportsFIPS:!0},regionRegex:"^cn\\-\\w+\\-\\d+$",regions:{"aws-cn-global":{description:"aws-cn global region"},"cn-north-1":{description:"China (Beijing)"},"cn-northwest-1":{description:"China (Ningxia)"}}},{id:"aws-eusc",outputs:{dnsSuffix:"amazonaws.eu",dualStackDnsSuffix:"api.amazonwebservices.eu",implicitGlobalRegion:"eusc-de-east-1",name:"aws-eusc",supportsDualStack:!0,supportsFIPS:!0},regionRegex:"^eusc\\-(de)\\-\\w+\\-\\d+$",regions:{"eusc-de-east-1":{description:"AWS European Sovereign Cloud (Germany)"}}},{id:"aws-iso",outputs:{dnsSuffix:"c2s.ic.gov",dualStackDnsSuffix:"api.aws.ic.gov",implicitGlobalRegion:"us-iso-east-1",name:"aws-iso",supportsDualStack:!0,supportsFIPS:!0},regionRegex:"^us\\-iso\\-\\w+\\-\\d+$",regions:{"aws-iso-global":{description:"aws-iso global region"},"us-iso-east-1":{description:"US ISO East"},"us-iso-west-1":{description:"US ISO WEST"}}},{id:"aws-iso-b",outputs:{dnsSuffix:"sc2s.sgov.gov",dualStackDnsSuffix:"api.aws.scloud",implicitGlobalRegion:"us-isob-east-1",name:"aws-iso-b",supportsDualStack:!0,supportsFIPS:!0},regionRegex:"^us\\-isob\\-\\w+\\-\\d+$",regions:{"aws-iso-b-global":{description:"aws-iso-b global region"},"us-isob-east-1":{description:"US ISOB East (Ohio)"},"us-isob-west-1":{description:"US ISOB West"}}},{id:"aws-iso-e",outputs:{dnsSuffix:"cloud.adc-e.uk",dualStackDnsSuffix:"api.cloud-aws.adc-e.uk",implicitGlobalRegion:"eu-isoe-west-1",name:"aws-iso-e",supportsDualStack:!0,supportsFIPS:!0},regionRegex:"^eu\\-isoe\\-\\w+\\-\\d+$",regions:{"aws-iso-e-global":{description:"aws-iso-e global region"},"eu-isoe-west-1":{description:"EU ISOE West"}}},{id:"aws-iso-f",outputs:{dnsSuffix:"csp.hci.ic.gov",dualStackDnsSuffix:"api.aws.hci.ic.gov",implicitGlobalRegion:"us-isof-south-1",name:"aws-iso-f",supportsDualStack:!0,supportsFIPS:!0},regionRegex:"^us\\-isof\\-\\w+\\-\\d+$",regions:{"aws-iso-f-global":{description:"aws-iso-f global region"},"us-isof-east-1":{description:"US ISOF EAST"},"us-isof-south-1":{description:"US ISOF SOUTH"}}},{id:"aws-us-gov",outputs:{dnsSuffix:"amazonaws.com",dualStackDnsSuffix:"api.aws",implicitGlobalRegion:"us-gov-west-1",name:"aws-us-gov",supportsDualStack:!0,supportsFIPS:!0},regionRegex:"^us\\-gov\\-\\w+\\-\\d+$",regions:{"aws-us-gov-global":{description:"aws-us-gov global region"},"us-gov-east-1":{description:"AWS GovCloud (US-East)"},"us-gov-west-1":{description:"AWS GovCloud (US-West)"}}}],version:"1.1"}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{checkFeatures:()=>a});var n=r(197),i=r(198);const o=/\d{12}\.ddb/;async function a(e,t,r){const a=r.request;if("rpc-v2-cbor"===a?.headers?.["smithy-protocol"]&&(0,i.setFeature)(e,"PROTOCOL_RPC_V2_CBOR","M"),"function"==typeof t.retryStrategy){const r=await t.retryStrategy();if("string"==typeof r.mode)switch(r.mode){case n.RETRY_MODES.ADAPTIVE:(0,i.setFeature)(e,"RETRY_MODE_ADAPTIVE","F");break;case n.RETRY_MODES.STANDARD:(0,i.setFeature)(e,"RETRY_MODE_STANDARD","E")}}if("function"==typeof t.accountIdEndpointMode){const r=e.endpointV2;switch(String(r?.url?.hostname).match(o)&&(0,i.setFeature)(e,"ACCOUNT_ID_ENDPOINT","O"),await(t.accountIdEndpointMode?.())){case"disabled":(0,i.setFeature)(e,"ACCOUNT_ID_MODE_DISABLED","Q");break;case"preferred":(0,i.setFeature)(e,"ACCOUNT_ID_MODE_PREFERRED","P");break;case"required":(0,i.setFeature)(e,"ACCOUNT_ID_MODE_REQUIRED","R")}}const s=e.__smithy_context?.selectedHttpAuthScheme?.identity;if(s?.$source){const t=s;t.accountId&&(0,i.setFeature)(e,"RESOLVED_ACCOUNT_ID","T");for(const[r,n]of Object.entries(t.$source??{}))(0,i.setFeature)(e,r,n)}}},(e,t,r)=>{"use strict";var n;r.r(t),r.d(t,{DEFAULT_MAX_ATTEMPTS:()=>i,DEFAULT_RETRY_MODE:()=>o,RETRY_MODES:()=>n}),function(e){e.STANDARD="standard",e.ADAPTIVE="adaptive"}(n||(n={}));const i=3,o=n.STANDARD},(e,t,r)=>{"use strict";r.r(t),r.d(t,{setFeature:()=>i});var n=r(199);function i(e,t,r){e.__aws_sdk_context?e.__aws_sdk_context.features||(e.__aws_sdk_context.features={}):e.__aws_sdk_context={features:{}},e.__aws_sdk_context.features[t]=r}n.Retry.v2026||="object"==typeof process&&"true"===process.env?.AWS_NEW_RETRIES_202
16},(e,t,r)=>{"use strict";r.r(t),r.d(t,{Retry:()=>n});class n{static v2026="undefined"!=typeof process&&"true"===process.env?.SMITHY_NEW_RETRIES_2026;static delay(){return n.v2026?50:100}static throttlingDelay(){return n.v2026?1e3:500}static cost(){return n.v2026?14:5}static throttlingCost(){return n.v2026?5:10}static modifiedCostType(){return n.v2026?"THROTTLING":"TRANSIENT"}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{SPACE:()=>o,UA_ESCAPE_CHAR:()=>c,UA_NAME_ESCAPE_REGEX:()=>s,UA_NAME_SEPARATOR:()=>a,UA_VALUE_ESCAPE_REGEX:()=>l,USER_AGENT:()=>n,X_AMZ_USER_AGENT:()=>i});const n="user-agent",i="x-amz-user-agent",o=" ",a="/",s=/[^!$%&'*+\-.^_`|~\w]/g,l=/[^!$%&'*+\-.^_`|~\w#]/g,c="-"},(e,t,r)=>{"use strict";r.r(t),r.d(t,{encodeFeatures:()=>i});const n=1024;function i(e){let t="";for(const r in e){const i=e[r];if(!(t.length+i.length+1<=n))break;t.length?t+=","+i:t+=i}return t}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{DefaultIdentityProviderConfig:()=>i});var n=r(131);class i{authSchemes=new Map;constructor(e){for(const t in e){if(!(0,n.hasOwn)(e,t))continue;const r=e[t];void 0!==r&&this.authSchemes.set(t,r)}}getIdentityProvider(e){return this.authSchemes.get(e)}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{getHttpAuthSchemeEndpointRuleSetPlugin:()=>o,httpAuthSchemeEndpointRuleSetMiddlewareOptions:()=>i});var n=r(204);const i={step:"serialize",tags:["HTTP_AUTH_SCHEME"],name:"httpAuthSchemeMiddleware",override:!0,relation:"before",toMiddleware:"endpointV2Middleware"},o=(e,{httpAuthSchemeParametersProvider:t,identityProviderConfigProvider:r})=>({applyToStack:o=>{o.addRelativeTo((0,n.httpAuthSchemeMiddleware)(e,{httpAuthSchemeParametersProvider:t,identityProviderConfigProvider:r}),i)}})},(e,t,r)=>{"use strict";r.r(t),r.d(t,{httpAuthSchemeMiddleware:()=>o});var n=r(135),i=r(205);const o=(e,t)=>(r,o)=>async a=>{const s=e.httpAuthSchemeProvider(await t.httpAuthSchemeParametersProvider(e,o,a.input)),l=e.authSchemePreference?await e.authSchemePreference():[],c=(0,i.resolveAuthOptions)(s,l),u=function(e){const t=new Map;for(const r of e)t.set(r.schemeId,r);return t}(e.httpAuthSchemes),p=(0,n.getSmithyContext)(o),d=[];for(const r of c){const n=u.get(r.schemeId);if(!n){d.push(`HttpAuthScheme \`${r.schemeId}\` was not enabled for this service.`);continue}const i=n.identityProvider(await t.identityProviderConfigProvider(e));if(!i){d.push(`HttpAuthScheme \`${r.schemeId}\` did not have an IdentityProvider configured.`);continue}const{identityProperties:a={},signingProperties:s={}}=r.propertiesExtractor?.(e,o)||{};r.identityProperties=Object.assign(r.identityProperties||{},a),r.signingProperties=Object.assign(r.signingProperties||{},s),p.selectedHttpAuthScheme={httpAuthOption:r,identity:await i(r.identityProperties),signer:n.signer};break}if(!p.selectedHttpAuthScheme)throw new Error(d.join("\n"));return r(a)}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{resolveAuthOptions:()=>n});const n=(e,t)=>{if(!t||0===t.length)return e;const r=[];for(const n of t)for(const t of e){t.schemeId.split("#")[1]===n&&r.push(t)}for(const t of e)r.find(({schemeId:e})=>e===t.schemeId)||r.push(t);return r}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{getHttpSigningPlugin:()=>o,httpSigningMiddlewareOptions:()=>i});var n=r(207);const i={step:"finalizeRequest",tags:["HTTP_SIGNING"],name:"httpSigningMiddleware",aliases:["apiKeyMiddleware","tokenMiddleware","awsAuthMiddleware"],override:!0,relation:"after",toMiddleware:"retryMiddleware"},o=e=>({applyToStack:t=>{t.addRelativeTo((0,n.httpSigningMiddleware)(e),i)}})},(e,t,r)=>{"use strict";r.r(t),r.d(t,{httpSigningMiddleware:()=>s});var n=r(188),i=r(135);const o=e=>e=>{throw e},a=(e,t)=>{},s=e=>(e,t)=>async r=>{if(!n.HttpRequest.isInstance(r.request))return e(r);const s=(0,i.getSmithyContext)(t).selectedHttpAuthScheme;if(!s)throw new Error("No HttpAuthScheme was selected: unable to sign request");const{httpAuthOption:{signingProperties:l={}},identity:c,signer:u}=s,p=await e({...r,request:await u.sign(r.request,c,l)}).catch((u.errorHandler||o)(l));return(u.successHandler||a)(p.response,l),p}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{Client:()=>i});var n=r(120);class i{config;middlewareStack=(0,n.constructStack)();initConfig;handlers;constructor(e){this.config=e;const{protocol:t,protocolSettings:r}=e;r&&"function"==typeof t&&(e.protocol=new t(r))}send(e,t,r){const n="function"!=typeof t?t:void 0,i="function"==typeof t?t:r;let o;if(void 0===n&&!0===this.config.cacheMiddleware){this.handlers||(this.handlers=new WeakMap);const t=this.handlers;t.has(e.constructor)?o=t.get(e.constructor):(o=e.resolveMiddleware(this.middlewareStack,this.config,n),t.set(e.constructor,o))}else delete this.handlers,o=e.resolveMiddleware(this.middlewareStack,this.config,n);if(!i)return o(e).then(e=>e.output);o(e).then(e=>i(null,e.output),e=>i(e)).catch(()=>{})}destroy(){this.config?.requestHandler?.destroy?.(),delete this.handlers}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{resolveRegionConfig:()=>a});var n=r(210),i=r(211),o=r(212);const a=e=>{const{region:t,useFipsEndpoint:r}=e;if(!t)throw new Error("Region is missing");return Object.assign(e,{region:async()=>{const e="function"==typeof t?await t():t,r=(0,i.getRealRegion)(e);
1return(0,n.checkRegion)(r),r},useFipsEndpoint:async()=>{const e="string"==typeof t?t:await t();return!!(0,o.isFipsRegion)(e)||("function"!=typeof r?Promise.resolve(!!r):r())}})}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{checkRegion:()=>o});var n=r(154);const i=new Set,o=(e,t=n.isValidHostLabel)=>{if(i.has(e)||t(e))i.add(e);else{if("*"!==e)throw new Error(`Region not accepted: region="${e}" is not a valid hostname component.`);console.warn('@smithy/config-resolver WARN - Please use the caller region instead of "*". See "sigv4a" in https://github.com/aws/aws-sdk-js-v3/blob/main/supplemental-docs/CLIENTS.md.')}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{getRealRegion:()=>i});var n=r(212);const i=e=>(0,n.isFipsRegion)(e)?["fips-aws-global","aws-fips"].includes(e)?"us-east-1":e.replace(/fips-(dkr-|prod-)?|-fips/,""):e},(e,t,r)=>{"use strict";r.r(t),r.d(t,{isFipsRegion:()=>n});const n=e=>"string"==typeof e&&(e.startsWith("fips-")||e.endsWith("-fips"))},(e,t,r)=>{"use strict";r.r(t),r.d(t,{contentLengthMiddleware:()=>o,contentLengthMiddlewareOptions:()=>a,getContentLengthPlugin:()=>s});var n=r(188);const i="content-length";function o(e){return t=>async r=>{const o=r.request;if(n.HttpRequest.isInstance(o)){const{body:t,headers:r}=o;if(t&&-1===Object.keys(r).map(e=>e.toLowerCase()).indexOf(i))try{const r=e(t);null!=r&&(o.headers={...o.headers,[i]:String(r)})}catch(e){}}return t({...r,request:o})}}const a={step:"build",tags:["SET_CONTENT_LENGTH","CONTENT_LENGTH"],name:"contentLengthMiddleware",override:!0},s=e=>({applyToStack:t=>{t.add(o(e.bodyLengthChecker),a)}})},(e,t,r)=>{"use strict";r.r(t),r.d(t,{CONFIG_MAX_ATTEMPTS:()=>u,CONFIG_RETRY_MODE:()=>h,DEFAULT_MAX_ATTEMPTS:()=>o.DEFAULT_MAX_ATTEMPTS,DEFAULT_RETRY_MODE:()=>o.DEFAULT_RETRY_MODE,ENV_MAX_ATTEMPTS:()=>c,ENV_RETRY_MODE:()=>d,NODE_MAX_ATTEMPT_CONFIG_OPTIONS:()=>p,NODE_RETRY_MODE_CONFIG_OPTIONS:()=>f,RETRY_MODES:()=>o.RETRY_MODES,Retry:()=>a.Retry,getRetryPlugin:()=>g,resolveRetryConfig:()=>s.resolveRetryConfig,retryMiddleware:()=>m});var n=r(215),i=r(216),o=r(197),a=r(199),s=r(243);const l=Symbol.for("node-only"),c=l,u=l,p=l,d=l,h=l,f=l,m=(0,i.bindRetryMiddleware)(n.isStreamingPayload),g=(0,i.bindGetRetryPlugin)(n.isStreamingPayload)},(e,t,r)=>{"use strict";r.r(t),r.d(t,{isStreamingPayload:()=>n});const n=e=>e?.body instanceof ReadableStream},(e,t,r)=>{"use strict";r.r(t),r.d(t,{bindGetRetryPlugin:()=>g,bindRetryMiddleware:()=>u,retryMiddlewareOptions:()=>m});var n=r(217),i=r(188),o=r(218),a=r(237),s=r(239),l=r(240),c=r(242);function u(e){return t=>(r,a)=>async l=>{let u=await t.retryStrategy();const f=await t.maxAttempts();if(!d(u))return u?.mode&&(a.userAgent=[...a.userAgent||[],["cfg/retry-mode",u.mode]]),u.retry(r,l);{let d=await u.acquireInitialRetryToken((a.partition_id??"")+(a.__retryLongPoll?":longpoll":"")),m=new Error,g=0,y=0;const{request:b}=l,v=i.HttpRequest.isInstance(b);for(v&&(b.headers[s.INVOCATION_ID_HEADER]=(0,o.v4)());;)try{v&&(b.headers[s.REQUEST_HEADER]=`attempt=${g+1}; max=${f}`);const{response:e,output:t}=await r(l);return u.recordSuccess(d),t.$metadata.attempts=g+1,t.$metadata.totalRetryDelay=y,{response:e,output:t}}catch(r){const i=h(r,t.logger);if(m=(0,c.asSdkError)(r),v&&e(b))throw(a.logger instanceof n.NoOpLogger?console:a.logger)?.warn("An error was encountered in a non-retryable streaming request."),m;try{d=await u.refreshRetryTokenForRetry(d,i)}catch(e){throw m.$metadata||(m.$metadata={}),m.$metadata.attempts=g+1,m.$metadata.totalRetryDelay=y,m}g=d.getRetryCount();const o=d.getRetryDelay();y+=(d?.$retryLog?.acquisitionDelay??0)+o,o>0&&await p(o)}}}}const p=e=>new Promise(t=>setTimeout(t,e)),d=e=>void 0!==e.acquireInitialRetryToken&&void 0!==e.refreshRetryTokenForRetry&&void 0!==e.recordSuccess,h=(e,t)=>{const r={error:e,errorType:f(e)},n=(0,l.parseRetryAfterHeader)(e.$response,t);return n&&(r.retryAfterHint=n),r},f=e=>(0,a.isThrottlingError)(e)?"THROTTLING":(0,a.isTransientError)(e)?"TRANSIENT":(0,a.isServerError)(e)?"SERVER_ERROR":"CLIENT_ERROR",m={name:"retryMiddleware",tags:["RETRY"],step:"finalizeRequest",priority:"high",override:!0};function g(e){const t=u(e);return e=>({applyToStack:r=>{r.add(t(e),m)}})}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{NoOpLogger:()=>n});
1class n{trace(){}debug(){}info(){}warn(){}error(){}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{Hash:()=>E,LazyJsonString:()=>u.LazyJsonString,NumericValue:()=>p.NumericValue,Uint8ArrayBlobAdapter:()=>T,calculateBodyLength:()=>h.calculateBodyLength,concatBytes:()=>m.concatBytes,dateToUtcString:()=>c.dateToUtcString,fromArrayBuffer:()=>_,fromBase64:()=>n.fromBase64,fromHex:()=>d.fromHex,fromString:()=>S,fromUtf8:()=>a.fromUtf8,generateIdempotencyToken:()=>x,hasOwn:()=>b.hasOwn,isArrayBuffer:()=>g.isArrayBuffer,nv:()=>p.nv,parseEpochTimestamp:()=>c.parseEpochTimestamp,parseRfc3339DateTime:()=>c.parseRfc3339DateTime,parseRfc3339DateTimeWithOffset:()=>c.parseRfc3339DateTimeWithOffset,parseRfc7231DateTime:()=>c.parseRfc7231DateTime,streamCollector:()=>y.streamCollector,toBase64:()=>i.toBase64,toHex:()=>d.toHex,toUint8Array:()=>f.toUint8Array,toUtf8:()=>s.toUtf8,v4:()=>w});var n=r(219),i=r(221),o=r(223),a=r(222),s=r(224),l=r(225),c=r(226),u=r(228),p=r(229),d=r(230),h=r(231),f=r(232),m=r(233),g=r(234),y=r(235),b=r(131);const v=Symbol.for("node-only"),_=v,S=v,E=v;class T extends((0,o.bindUint8ArrayBlobAdapter)(s.toUtf8,a.fromUtf8,i.toBase64,n.fromBase64)){}const w=(0,l.bindV4)(e=>crypto.getRandomValues(e)),x=w},(e,t,r)=>{"use strict";r.r(t),r.d(t,{fromBase64:()=>i});var n=r(220);const i=e=>{let t=e.length/4*3;"=="===e.slice(-2)?t-=2:"="===e.slice(-1)&&t--;const r=new ArrayBuffer(t),i=new DataView(r);for(let t=0;t<e.length;t+=4){let r=0,o=0;for(let i=t,a=t+3;i<=a;i++)if("="!==e[i]){if(!(e[i]in n.alphabetByEncoding))throw new TypeError(`Invalid character ${e[i]} in base64 string.`);r|=n.alphabetByEncoding[e[i]]<<(a-i)*n.bitsPerLetter,o+=n.bitsPerLetter}else r>>=n.bitsPerLetter;const a=t/4*3;r>>=o%n.bitsPerByte;const s=Math.floor(o/n.bitsPerByte);for(let e=0;e<s;e++){const t=(s-e-1)*n.bitsPerByte;i.setUint8(a+e,(r&255<<t)>>t)}}return new Uint8Array(r)}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{alphabetByEncoding:()=>i,alphabetByValue:()=>o,bitsPerByte:()=>s,bitsPerLetter:()=>a,maxLetterValue:()=>l});const n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",i=Object.entries(n).reduce((e,[t,r])=>(e[r]=Number(t),e),{}),o=n.split(""),a=6,s=8,l=63},(e,t,r)=>{"use strict";r.r(t),r.d(t,{toBase64:()=>o});var n=r(222),i=r(220);function o(e){let t;t="string"==typeof e?(0,n.fromUtf8)(e):e;const r="object"==typeof t&&"number"==typeof t.length,o="object"==typeof t&&"number"==typeof t.byteOffset&&"number"==typeof t.byteLength;if(!r&&!o)throw new Error("@smithy/util-base64: toBase64 encoder function only accepts string | Uint8Array.");let a="";for(let e=0;e<t.length;e+=3){let r=0,n=0;for(let o=e,a=Math.min(e+3,t.length);o<a;o++)r|=t[o]<<(a-o-1)*i.bitsPerByte,n+=i.bitsPerByte;const o=Math.ceil(n/i.bitsPerLetter);r<<=o*i.bitsPerLetter-n;for(let e=1;e<=o;e++){const t=(o-e)*i.bitsPerLetter;a+=i.alphabetByValue[(r&i.maxLetterValue<<t)>>t]}
vendor: 6,478 bytes, line 1
1a+="==".slice(0,4-o)}return a}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{fromUtf8:()=>n});const n=e=>(new TextEncoder).encode(e)},(e,t,r)=>{"use strict";function n(e,t,r,n){return class i extends Uint8Array{static fromString(e,r="utf-8"){if("string"==typeof e)return"base64"===r?i.mutate(n(e)):i.mutate(t(e));throw new Error(`Unsupported conversion from ${typeof e} to Uint8ArrayBlobAdapter.`)}static mutate(e){return Object.setPrototypeOf(e,i.prototype),e}transformToString(t="utf-8"){return"base64"===t?r(this):e(this)}}}r.r(t),r.d(t,{bindUint8ArrayBlobAdapter:()=>n})},(e,t,r)=>{"use strict";r.r(t),r.d(t,{toUtf8:()=>n});const n=e=>{if("string"==typeof e)return e;if("object"!=typeof e||"number"!=typeof e.byteOffset||"number"!=typeof e.byteLength)throw new Error("@smithy/util-utf8: toUtf8 encoder function only accepts string | Uint8Array.");return new TextDecoder("utf-8").decode(e)}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{bindV4:()=>i});const n=Array.from({length:256},(e,t)=>t.toString(16).padStart(2,"0"));function i(e){return"undefined"!=typeof crypto&&"function"==typeof crypto.randomUUID?()=>crypto.randomUUID():()=>{const t=new Uint8Array(16);return e(t),t[6]=15&t[6]|64,t[8]=63&t[8]|128,n[t[0]]+n[t[1]]+n[t[2]]+n[t[3]]+"-"+n[t[4]]+n[t[5]]+"-"+n[t[6]]+n[t[7]]+"-"+n[t[8]]+n[t[9]]+"-"+n[t[10]]+n[t[11]]+n[t[12]]+n[t[13]]+n[t[14]]+n[t[15]]}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{dateToUtcString:()=>a,parseEpochTimestamp:()=>m,parseRfc3339DateTime:()=>l,parseRfc3339DateTimeWithOffset:()=>u,parseRfc7231DateTime:()=>f});var n=r(227);const i=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],o=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function a(e){const t=e.getUTCFullYear(),r=e.getUTCMonth(),n=e.getUTCDay(),a=e.getUTCDate(),s=e.getUTCHours(),l=e.getUTCMinutes(),c=e.getUTCSeconds(),u=a<10?`0${a}`:`${a}`,p=s<10?`0${s}`:`${s}`,d=l<10?`0${l}`:`${l}`,h=c<10?`0${c}`:`${c}`;return`${i[n]}, ${u} ${o[r]} ${t} ${p}:${d}:${h} GMT`}const s=new RegExp(/^(\d{4})-(\d{2})-(\d{2})[tT](\d{2}):(\d{2}):(\d{2})(?:\.(\d+))?[zZ]$/),l=e=>{if(null==e)return;if("string"!=typeof e)throw new TypeError("RFC-3339 date-times must be expressed as strings");const t=s.exec(e);if(!t)throw new TypeError("Invalid RFC-3339 date-time value");const[r,i,o,a,l,c,u,p]=t,d=(0,n.strictParseShort)(O(i)),h=T(o,"month",1,12),f=T(a,"day",1,31);return g(d,h,f,{hours:l,minutes:c,seconds:u,fractionalMilliseconds:p})},c=new RegExp(/^(\d{4})-(\d{2})-(\d{2})[tT](\d{2}):(\d{2}):(\d{2})(?:\.(\d+))?(([-+]\d{2}:\d{2})|[zZ])$/),u=e=>{if(null==e)return;if("string"!=typeof e)throw new TypeError("RFC-3339 date-times must be expressed as strings");const t=c.exec(e);if(!t)throw new TypeError("Invalid RFC-3339 date-time value");const[r,i,o,a,s,l,u,p,d]=t,h=(0,n.strictParseShort)(O(i)),f=T(o,"month",1,12),m=T(a,"day",1,31),y=g(h,f,m,{hours:s,minutes:l,seconds:u,fractionalMilliseconds:p});return"Z"!=d.toUpperCase()&&y.setTime(y.getTime()-x(d)),y},p=new RegExp(/^(?:Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\d{2}) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\d{4}) (\d{1,2}):(\d{2}):(\d{2})(?:\.(\d+))? GMT$/),d=new RegExp(/^(?:Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|Sunday), (\d{2})-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\d{2}) (\d{1,2}):(\d{2}):(\d{2})(?:\.(\d+))? GMT$/),h=new RegExp(/^(?:Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( [1-9]|\d{2}) (\d{1,2}):(\d{2}):(\d{2})(?:\.(\d+))? (\d{4})$/),f=e=>{if(null==e)return;if("string"!=typeof e)throw new TypeError("RFC-7231 date-times must be expressed as strings");let t=p.exec(e);if(t){const[e,r,i,o,a,s,l,c]=t;return g((0,n.strictParseShort)(O(o)),v(i),T(r,"day",1,31),{hours:a,minutes:s,seconds:l,fractionalMilliseconds:c})}if(t=d.exec(e),t){const[e,r,n,i,o,a,s,l]=t;return b(g(y(i),v(n),T(r,"day",1,31),{hours:o,minutes:a,seconds:s,fractionalMilliseconds:l}))}if(t=h.exec(e),t){const[e,r,i,o,a,s,l,c]=t;return g((0,n.strictParseShort)(O(c)),v(r),T(i.trimLeft(),"day",1,31),{hours:o,minutes:a,seconds:s,fractionalMilliseconds:l})}throw new TypeError("Invalid RFC-7231 date-time value")},m=e=>{if(null==e)return;let t;if("number"==typeof e)t=e;else if("string"==typeof e)t=(0,n.strictParseDouble)(e);else{if("object"!=typeof e||1!==e.tag)throw new TypeError("Epoch timestamps must be expressed as floating point numbers or their string representation");t=e.value}if(Number.isNaN(t)||t===1/0||t===-1/0)throw new TypeError("Epoch timestamps must be valid, non-Infinite, non-NaN numerics");return new Date(Math.round(1e3*t))},g=(e,t,r,n)=>{const i=t-1;return S(e,i,r),new Date(Date.UTC(e,i,r,T(n.hours,"hour",0,23),T(n.minutes,"minute",0,59),T(n.seconds,"seconds",0,60),w(n.fractionalMilliseconds)))},y=e=>{const t=(new Date).getUTCFullYear(),r=100*Math.floor(t/100)+(0,n.strictParseShort)(O(e));return r<t?r+100:r},b=e=>e.getTime()-(new Date).getTime()>15768e8?new Date(Date.UTC(e.getUTCFullYear()-100,e.getUTCMonth(),e.getUTCDate(),e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds(),e.getUTCMilliseconds())):e,v=e=>{const t=o.indexOf(e);if(t<0)throw new TypeError(`Invalid month: ${e}`);return t+1},_=[31,28,31,30,31,30,31,31,30,31,30,31],S=(e,t,r)=>{let n=_[t];if(1===t&&E(e)&&(n=29),r>n)throw new TypeError(`Invalid day for ${o[t]} in ${e}: ${r}`)},E=e=>e%4==0&&(e%100!=0||e%400==0),T=(e,t,r,i)=>{const o=(0,n.strictParseByte)(O(e));if(o<r||o>i)throw new TypeError(`${t} must be between ${r} and ${i}, inclusive`);return o},w=e=>null==e?0:1e3*(0,n.strictParseFloat32)("0."+e),x=e=>{const t=e[0];let r=1;if("+"==t)r=1;else{if("-"!=t)throw new TypeError(`Offset direction, ${t}, must be "+" or "-"`);r=-1}return r*(60*Number(e.substring(1,3))+Number(e.substring(4,6)))*60*1e3},O=e=>{let t=0;for(;t<e.length-1&&"0"===e.charAt(t);)t++;return 0===t?e:e.slice(t)}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{expectBoolean:()=>o,expectByte:()=>h,expectFloat32:()=>l,expectInt:()=>u,expectInt32:()=>p,expectLong:()=>c,expectNonNull:()=>g,expectNumber:()=>a,expectObject:()=>y,expectShort:()=>d,expectString:()=>b,expectUnion:()=>v,handleFloat:()=>O,limitedParseDouble:()=>x,limitedParseFloat:()=>I,limitedParseFloat32:()=>A,logger:()=>L,parseBoolean:()=>i,strictParseByte:()=>M,strictParseDouble:()=>_,strictParseFloat:()=>S,strictParseFloat32:()=>E,strictParseInt:()=>C,strictParseInt32:()=>P,strictParseLong:()=>R,strictParseShort:()=>D});var n=r(131);const i=e=>{switch(e){case"true":return!0;case"false":return!1;default:throw new Error(`Unable to parse boolean value "${e}"`)}},o=e=>
1{if(null!=e){if("number"==typeof e){if(0!==e&&1!==e||L.warn(N(`Expected boolean, got ${typeof e}: ${e}`)),0===e)return!1;if(1===e)return!0}if("string"==typeof e){const t=e.toLowerCase();if("false"!==t&&"true"!==t||L.warn(N(`Expected boolean, got ${typeof e}: ${e}`)),"false"===t)return!1;if("true"===t)return!0}if("boolean"==typeof e)return e;throw new TypeError(`Expected boolean, got ${typeof e}: ${e}`)}},a=e=>{if(null!=e){if("string"==typeof e){const t=parseFloat(e);if(!Number.isNaN(t))return String(t)!==String(e)&&L.warn(N(`Expected number but observed string: ${e}`)),t}if("number"==typeof e)return e;throw new TypeError(`Expected number, got ${typeof e}: ${e}`)}},s=Math.ceil(2**127*(2-2**-23)),l=e=>{const t=a(e);if(void 0!==t&&!Number.isNaN(t)&&t!==1/0&&t!==-1/0&&Math.abs(t)>s)throw new TypeError(`Expected 32-bit float, got ${e}`);return t},c=e=>{if(null!=e){if(Number.isInteger(e)&&!Number.isNaN(e))return e;throw new TypeError(`Expected integer, got ${typeof e}: ${e}`)}},u=c,p=e=>f(e,32),d=e=>f(e,16),h=e=>f(e,8),f=(e,t)=>{const r=c(e);if(void 0!==r&&m(r,t)!==r)throw new TypeError(`Expected ${t}-bit integer, got ${e}`);return r},m=(e,t)=>
1{switch(t){case 32:return Int32Array.of(e)[0];case 16:return Int16Array.of(e)[0];case 8:return Int8Array.of(e)[0]}},g=(e,t)=>{if(null==e){if(t)throw new TypeError(`Expected a non-null value for ${t}`);throw new TypeError("Expected a non-null value")}return e},y=e=>{if(null==e)return;if("object"==typeof e&&!Array.isArray(e))return e;const t=Array.isArray(e)?"array":typeof e;throw new TypeError(`Expected object, got ${t}: ${e}`)},b=e=>{if(null!=e){if("string"==typeof e)return e;if(["boolean","number","bigint"].includes(typeof e))return L.warn(N(`Expected string, got ${typeof e}: ${e}`)),String(e);throw new TypeError(`Expected string, got ${typeof e}: ${e}`)}},v=e=>{if(null==e)return;const t=y(e),r=[];for(const e in t)(0,n.hasOwn)(t,e)&&null!=t[e]&&r.push(e);if(0===r.length)throw new TypeError("Unions must have exactly one non-null member. None were found.");if(r.length>1)throw new TypeError(`Unions must have exactly one non-null member. Keys ${r} were not null.`);return t},_=e=>a("string"==typeof e?w(e):e),S=_,E=e=>l("string"==typeof e?w(e):e),T=/(-?(?:0|[1-9]\d*)(?:\.\d+)?(?:[eE][+-]?\d+)?)|(-?Infinity)|(NaN)/g,w=e=>{const t=e.match(T);if(null===t||t[0].length!==e.length)throw new TypeError("Expected real number, got implicit NaN");return parseFloat(e)},x=e=>"string"==typeof e?k(e):a(e),O=x,I=x,A=e=>"string"==typeof e?k(e):l(e),k=e=>{switch(e){case"NaN":return NaN;case"Infinity":return 1/0;case"-Infinity":return-1/0;default:throw new Error(`Unable to parse float value: ${e}`)}},R=e=>c("string"==typeof e?w(e):e),C=R,P=e=>p("string"==typeof e?w(e):e),D=e=>d("string"==typeof e?w(e):e),M=e=>h("string"==typeof e?w(e):e),N=e=>String(new TypeError(e).stack||e).split("\n").slice(0,5).filter(e=>!e.includes("stackTraceWarning")).join("\n"),L={warn:console.warn}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{LazyJsonString:()=>n});const n=function(e){return Object.assign(new String(e),{deserializeJSON:()=>JSON.parse(String(e)),toString:()=>String(e),toJSON:()=>String(e)})};n.from=e=>e&&"object"==typeof e&&(e instanceof n||"deserializeJSON"in e)?e:"string"==typeof e||Object.getPrototypeOf(e)===String.prototype?n(String(e)):n(JSON.stringify(e)),n.fromObject=n.from},(e,t,r)=>{"use strict";r.r(t),r.d(t,{NumericValue:()=>i,nv:()=>o});const n=/^-?((0|[1-9]\d*)(\.\d+)?|\.\d+)([eE][+-]?\d+)?$/;class i{string;type;constructor(e,t){if(this.string=e,this.type=t,!n.test(e))throw new Error(`@smithy/core/serde - NumericValue string must conform to the Smithy bigDecimal format. Received: "${e}"`)}toString(){return this.string}static[Symbol.hasInstance](e){if(!e||"object"!=typeof e)return!1;const t=e;return i.prototype.isPrototypeOf(e)||"bigDecimal"===t.type&&n.test(t.string)}}function o(e){return new i(String(e),"bigDecimal")}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{fromHex:()=>o,toHex:()=>a});const n={},i={};for(let e=0;e<256;e++){let t=e.toString(16).toLowerCase();1===t.length&&(t=`0${t}`),n[e]=t,i[t]=e}function o(e){if(e.length%2!=0)throw new Error("Hex encoded strings must have an even number length");const t=new Uint8Array(e.length/2);for(let r=0;r<e.length;r+=2){const n=e.slice(r,r+2).toLowerCase();if(!(n in i))throw new Error(`Cannot decode unrecognized sequence ${n} as hexadecimal`);t[r/2]=i[n]}return t}function a(e){let t="";for(let r=0;r<e.byteLength;r++)t+=n[e[r]];return t}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{calculateBodyLength:()=>i});const n="function"==typeof TextEncoder?new TextEncoder:null,i=e=>{if("string"==typeof e){if(n)return n.encode(e).byteLength;let t=e.length;for(let r=t-1;r>=0;r--){const n=e.charCodeAt(r);n>127&&n<=2047?t++:n>2047&&n<=65535&&(t+=2),n>=56320&&n<=57343&&r--}return t}if("number"==typeof e.byteLength)return e.byteLength;if("number"==typeof e.size)return e.size;throw new Error(`Body Length computation failed for ${e}`)}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{toUint8Array:()=>i});var n=r(222);const i=e=>e instanceof Uint8Array?e:"string"==typeof e?(0,n.fromUtf8)(e):ArrayBuffer.isView(e)?new Uint8Array(e.buffer,e.byteOffset,e.byteLength/Uint8Array.BYTES_PER_ELEMENT):new Uint8Array(e)},(e,t,r)=>{"use strict";function n(e,t){if(void 0===t){t=0;
1for(const r of e)t+=r.byteLength}const r=new Uint8Array(t);let n=0;for(const t of e)r.set(t,n),n+=t.byteLength;return r}r.r(t),r.d(t,{concatBytes:()=>n})},(e,t,r)=>{"use strict";r.r(t),r.d(t,{isArrayBuffer:()=>n});const n=e=>"function"==typeof ArrayBuffer&&e instanceof ArrayBuffer||"[object ArrayBuffer]"===Object.prototype.toString.call(e)},(e,t,r)=>{"use strict";r.r(t),r.d(t,{collectBlob:()=>a,collectReadableStream:()=>s,streamCollector:()=>o});var n=r(233),i=r(236);const o=async e=>(0,i.isBlob)(e)?a(e):s(e);async function a(e){return e.arrayBuffer().then(e=>new Uint8Array(e))}async function s(e){const t=[],r=e.getReader();let i=0;for(;;){const{done:e,value:n}=await r.read();if(n&&(t.push(n),i+=n.length),e)break}return(0,n.concatBytes)(t,i)}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{isBlob:()=>i,isReadableStream:()=>n});const n=e=>"function"==typeof ReadableStream&&(e?.constructor?.name===ReadableStream.name||e instanceof ReadableStream),i=e=>"function"==typeof Blob&&(e?.constructor?.name===Blob.name||e instanceof Blob)},(e,t,r)=>{"use strict";r.r(t),r.d(t,{isBrowserNetworkError:()=>s,isClockSkewCorrectedError:()=>a,isClockSkewError:()=>o,isNodeJsHttp2TransientError:()=>p,isRetryableByTrait:()=>i,isServerError:()=>u,isThrottlingError:()=>l,isTransientError:()=>c});var n=r(238);const i=e=>void 0!==e?.$retryable,o=e=>n.CLOCK_SKEW_ERROR_CODES.includes(e.name),a=e=>e.$metadata?.clockSkewCorrected,s=e=>{const t=new Set(["Failed to fetch","NetworkError when attempting to fetch resource","The Internet connection appears to be offline","Load failed","Network request failed"]);return!!(e&&e instanceof TypeError)&&t.has(e.message)},l=e=>429===e.$metadata?.httpStatusCode||n.THROTTLING_ERROR_CODES.includes(e.name)||1==e.$retryable?.throttling,c=(e,t=0)=>i(e)||a(e)||"InvalidSignatureException"===e.name&&e.message?.includes("Signature expired")||n.TRANSIENT_ERROR_CODES.includes(e.name)||n.NODEJS_TIMEOUT_ERROR_CODES.includes(e?.code||"")||n.NODEJS_NETWORK_ERROR_CODES.includes(e?.code||"")||n.TRANSIENT_ERROR_STATUS_CODES.includes(e.$metadata?.httpStatusCode||0)||s(e)||p(e)||void 0!==e.cause&&t<=10&&c(e.cause,t+1),u=e=>{if(void 0!==e.$metadata?.httpStatusCode){const t=e.$metadata.httpStatusCode;return 500<=t&&t<=599&&!c(e)}return!1};function p(e){return"ERR_HTTP2_STREAM_ERROR"===e.code&&e.message.includes("NGHTTP2_REFUSED_STREAM")}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{CLOCK_SKEW_ERROR_CODES:()=>n,NODEJS_NETWORK_ERROR_CODES:()=>l,NODEJS_TIMEOUT_ERROR_CODES:()=>s,THROTTLING_ERROR_CODES:()=>i,TRANSIENT_ERROR_CODES:()=>o,TRANSIENT_ERROR_STATUS_CODES:()=>a});const n=["AccessDeniedException","AuthFailure","InvalidSignatureException","RequestExpired","RequestInTheFuture","RequestTimeTooSkewed","SignatureDoesNotMatch"],i=["BandwidthLimitExceeded","EC2ThrottledException","LimitExceededException","PriorRequestNotComplete","ProvisionedThroughputExceededException","RequestLimitExceeded","RequestThrottled","RequestThrottledException","SlowDown","ThrottledException","Throttling","ThrottlingException","TooManyRequestsException","TransactionInProgressException"],o=["TimeoutError","RequestTimeout","RequestTimeoutException"],a=[500,502,503,504],s=["ECONNRESET","ECONNREFUSED","EPIPE","ETIMEDOUT"],l=["EHOSTUNREACH","ENETUNREACH","ENOTFOUND","EAI_AGAIN"]},(e,t,r)=>{"use strict";r.r(t),r.d(t,{DEFAULT_RETRY_DELAY_BASE:()=>n,INITIAL_RETRY_TOKENS:()=>a,INVOCATION_ID_HEADER:()=>u,MAXIMUM_RETRY_DELAY:()=>i,NO_RETRY_INCREMENT:()=>c,REQUEST_HEADER:()=>p,RETRY_COST:()=>s,THROTTLING_RETRY_DELAY_BASE:()=>o,TIMEOUT_RETRY_COST:()=>l});const n=100,i=2e4,o=500,a=500,s=5,l=10,c=1,u="amz-sdk-invocation-id",p="amz-sdk-request"},(e,t,r)=>{"use strict";r.r(t),r.d(t,{getRetryAfterHint:()=>s,parseRetryAfterHeader:()=>a});var n=r(131),i=r(241),o=r(226);function a(e,t){if(i.HttpResponse.isInstance(e))for(const r in e.headers){if(!(0,n.hasOwn)(e.headers,r))continue;const i=r.toLowerCase();if("retry-after"===i){const n=e.headers[r];let i=NaN;if(n.endsWith("GMT"))try{i=((0,o.parseRfc7231DateTime)(n).getTime()-Date.now())/1e3}catch(e){t?.trace?.("Failed to parse retry-after header"),t?.trace?.(e)}else n.match(/ GMT, ((\d+)|(\d+\.\d+))$/)?i=Number(n.match(/ GMT, ([\d.]+)$/)?.[1]):n.match(/^((\d+)|(\d+\.\d+))$/)?i=Number(n):Date.parse(n)>=Date.now()&&(i=(Date.parse(n)-Date.now())/1e3);if(isNaN(i))return;return new Date(Date.now()+1e3*i)}if("x-amz-retry-after"===i){const n=e.headers[r],i=Number(n);return isNaN(i)?void t?.trace?.(`Failed to parse x-amz-retry-after=${n}`):new Date(Date.now()+i)}}}function s(e,t){return a(e,t)}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{HttpResponse:()=>n});
1class n{statusCode;reason;headers;body;constructor(e){this.statusCode=e.statusCode,this.reason=e.reason,this.headers=e.headers||{},this.body=e.body}static isInstance(e){if(!e)return!1;const t=e;return"number"==typeof t.statusCode&&"object"==typeof t.headers}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{asSdkError:()=>n});const n=e=>e instanceof Error?e:e instanceof Object?Object.assign(new Error,e):"string"==typeof e?new Error(e):new Error(`AWS SDK error wrapper for ${e}`)},(e,t,r)=>{"use strict";r.r(t),r.d(t,{CONFIG_MAX_ATTEMPTS:()=>c,CONFIG_RETRY_MODE:()=>h,ENV_MAX_ATTEMPTS:()=>l,ENV_RETRY_MODE:()=>d,NODE_MAX_ATTEMPT_CONFIG_OPTIONS:()=>u,NODE_RETRY_MODE_CONFIG_OPTIONS:()=>f,resolveRetryConfig:()=>p});var n=r(138),i=r(244),o=r(246),a=r(197),s=r(199);const l="AWS_MAX_ATTEMPTS",c="max_attempts",u={environmentVariableSelector:e=>{const t=e[l];if(!t)return;const r=parseInt(t);if(Number.isNaN(r))throw new Error(`Environment variable ${l} mast be a number, got "${t}"`);return r},configFileSelector:e=>{const t=e[c];if(!t)return;const r=parseInt(t);if(Number.isNaN(r))throw new Error(`Shared config file entry ${c} mast be a number, got "${t}"`);return r},default:a.DEFAULT_MAX_ATTEMPTS},p=(e,t)=>{const{retryStrategy:r,retryMode:l}=e,{defaultMaxAttempts:c=a.DEFAULT_MAX_ATTEMPTS,defaultBaseDelay:u=s.Retry.delay()}=t??{},p=(0,n.normalizeProvider)(e.maxAttempts??c);let d=r?Promise.resolve(r):void 0;return Object.assign(e,{maxAttempts:p,retryStrategy:()=>d??=(async()=>{const e=await p();return await(0,n.normalizeProvider)(l)()===a.RETRY_MODES.ADAPTIVE?new i.AdaptiveRetryStrategy(p,{maxAttempts:e,baseDelay:u}):new o.StandardRetryStrategy({maxAttempts:e,baseDelay:u})})()})},d="AWS_RETRY_MODE",h="retry_mode",f={environmentVariableSelector:e=>e[d],configFileSelector:e=>e[h],default:a.DEFAULT_RETRY_MODE}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{AdaptiveRetryStrategy:()=>a});var n=r(245),i=r(246),o=r(197);class a{mode=o.RETRY_MODES.ADAPTIVE;rateLimiter;standardRetryStrategy;constructor(e,t){const{rateLimiter:r}=t??{};this.rateLimiter=r??new n.DefaultRateLimiter,this.standardRetryStrategy=t?new i.StandardRetryStrategy({maxAttempts:"number"==typeof e?e:3,...t}):new i.StandardRetryStrategy(e)}async acquireInitialRetryToken(e){const t=await this.standardRetryStrategy.acquireInitialRetryToken(e);return await this.rateLimiter.getSendToken(),t}async refreshRetryTokenForRetry(e,t){this.rateLimiter.updateClientSendingRate(t);const r=await this.standardRetryStrategy.refreshRetryTokenForRetry(e,t);return await this.rateLimiter.getSendToken(),r}recordSuccess(e){this.rateLimiter.updateClientSendingRate({}),this.standardRetryStrategy.recordSuccess(e)}async maxAttemptsProvider(){return this.standardRetryStrategy.maxAttempts()}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{DefaultRateLimiter:()=>i});var n=r(237);class i{static setTimeoutFn=(e,t)=>setTimeout(e,t);beta;minCapacity;minFillRate;scaleConstant;smooth;enabled=!1;availableTokens=0;lastMaxRate=0;measuredTxRate=0;requestCount=0;fillRate;lastThrottleTime;lastTimestamp=0;lastTxRateBucket;maxCapacity;timeWindow=0;constructor(e){this.beta=e?.beta??.7,this.minCapacity=e?.minCapacity??1,this.minFillRate=e?.minFillRate??.5,this.scaleConstant=e?.scaleConstant??.4,this.smooth=e?.smooth??.8,this.lastThrottleTime=this.getCurrentTimeInSeconds(),this.lastTxRateBucket=Math.floor(this.getCurrentTimeInSeconds()),this.fillRate=this.minFillRate,this.maxCapacity=this.minCapacity}async getSendToken(){return this.acquireTokenBucket(1)}updateClientSendingRate(e){let t;this.updateMeasuredRate();const r=e;if("THROTTLING"===r?.errorType||(0,n.isThrottlingError)(r?.error??e)){const e=this.enabled?Math.min(this.measuredTxRate,this.fillRate):this.measuredTxRate;this.lastMaxRate=e,this.calculateTimeWindow(),this.lastThrottleTime=this.getCurrentTimeInSeconds(),t=this.cubicThrottle(e),this.enableTokenBucket()}else this.calculateTimeWindow(),t=this.cubicSuccess(this.getCurrentTimeInSeconds());const i=Math.min(t,2*this.measuredTxRate);this.updateTokenBucketRate(i)}getCurrentTimeInSeconds(){return Date.now()/1e3}async acquireTokenBucket(e){if(this.enabled){for(this.refillTokenBucket();e>this.availableTokens;){const t=(e-this.availableTokens)/this.fillRate*1e3;await new Promise(e=>i.setTimeoutFn(e,t)),this.refillTokenBucket()}this.availableTokens=this.availableTokens-e}}refillTokenBucket(){const e=this.getCurrentTimeInSeconds();if(!this.lastTimestamp)return void(this.lastTimestamp=e);const t=(e-this.lastTimestamp)*this.fillRate;this.availableTokens=Math.min(this.maxCapacity,this.availableTokens+t),this.lastTimestamp=e}
1calculateTimeWindow(){this.timeWindow=this.getPrecise(Math.pow(this.lastMaxRate*(1-this.beta)/this.scaleConstant,1/3))}cubicThrottle(e){return this.getPrecise(e*this.beta)}cubicSuccess(e){return this.getPrecise(this.scaleConstant*Math.pow(e-this.lastThrottleTime-this.timeWindow,3)+this.lastMaxRate)}enableTokenBucket(){this.enabled=!0}updateTokenBucketRate(e){this.refillTokenBucket(),this.fillRate=Math.max(e,this.minFillRate),this.maxCapacity=Math.max(e,this.minCapacity),this.availableTokens=Math.min(this.availableTokens,this.maxCapacity)}updateMeasuredRate(){const e=this.getCurrentTimeInSeconds(),t=Math.floor(2*e)/2;if(this.requestCount++,t>this.lastTxRateBucket){const e=this.requestCount/(t-this.lastTxRateBucket);this.measuredTxRate=this.getPrecise(e*this.smooth+this.measuredTxRate*(1-this.smooth)),this.requestCount=0,this.lastTxRateBucket=t}}getPrecise(e){return parseFloat(e.toFixed(8))}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{StandardRetryStrategy:()=>p});var n=r(247),i=r(248),o=r(197),a=r(239),s=r(199);const l=1,c=2,u=3;class p{mode=o.RETRY_MODES.STANDARD;retryBackoffStrategy;capacity=a.INITIAL_RETRY_TOKENS;maxAttemptsProvider;baseDelay;constructor(e){"number"==typeof e?this.maxAttemptsProvider=async()=>e:"function"==typeof e?this.maxAttemptsProvider=e:e&&"object"==typeof e&&(this.maxAttemptsProvider=async()=>e.maxAttempts,this.baseDelay=e.baseDelay,this.retryBackoffStrategy=e.backoff),this.maxAttemptsProvider??=async()=>o.DEFAULT_MAX_ATTEMPTS,this.baseDelay??=s.Retry.delay(),this.retryBackoffStrategy??=new n.DefaultRetryBackoffStrategy}async acquireInitialRetryToken(e){return new i.DefaultRetryToken(s.Retry.delay(),0,void 0,s.Retry.v2026&&e.includes(":longpoll"))}async refreshRetryTokenForRetry(e,t){const r=await this.getMaxAttempts(),n=this.retryCode(e,t,r),o=0===n,a=e.isLongPoll?.();if(o||a){const r=t.errorType;this.retryBackoffStrategy.setDelayBase("THROTTLING"===r?s.Retry.throttlingDelay():this.baseDelay);const l=this.retryBackoffStrategy.computeNextBackoffDelay(e.getRetryCount());let c=l;if(t.retryAfterHint instanceof Date&&(c=Math.max(l,Math.min(t.retryAfterHint.getTime()-Date.now(),l+5e3))),o){const t=this.getCapacityCost(r);this.capacity-=t;const n=new i.DefaultRetryToken(0,e.getRetryCount()+1,t,e.isLongPoll?.()??!1);return await new Promise(e=>setTimeout(e,c)),n.$retryLog.acquisitionDelay=c,n}{const e=s.Retry.v2026&&n===u&&a?c:0;e>0&&await new Promise(t=>setTimeout(t,e))}}throw new Error("No retry token available")}recordSuccess(e){this.capacity=Math.min(a.INITIAL_RETRY_TOKENS,this.capacity+(e.getRetryCost()??a.NO_RETRY_INCREMENT))}getCapacity(){return this.capacity}async maxAttempts(){return this.maxAttemptsProvider()}async getMaxAttempts(){try{return await this.maxAttemptsProvider()}catch(e){return console.warn(`Max attempts provider could not resolve. Using default of ${o.DEFAULT_MAX_ATTEMPTS}`),o.DEFAULT_MAX_ATTEMPTS}}retryCode(e,t,r){const n=e.getRetryCount()+1,i=this.isRetryableError(t.errorType)?0:l,o=n<r?0:c,a=this.capacity>=this.getCapacityCost(t.errorType)?0:u;return i||o||a}getCapacityCost(e){return e===s.Retry.modifiedCostType()?s.Retry.throttlingCost():s.Retry.cost()}isRetryableError(e){return"THROTTLING"===e||"TRANSIENT"===e}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{DefaultRetryBackoffStrategy:()=>o});var n=r(239),i=r(199);class o{x=i.Retry.delay();computeNextBackoffDelay(e){const t=Math.random()*Math.min(this.x*2**e,n.MAXIMUM_RETRY_DELAY);return Math.floor(t)}setDelayBase(e){this.x=e}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{DefaultRetryToken:()=>i});var n=r(239);class i{delay;count;cost;longPoll;$retryLog={acquisitionDelay:0};constructor(e,t,r,n){this.delay=e,this.count=t,this.cost=r,this.longPoll=n}getRetryCount(){return this.count}getRetryDelay(){return Math.min(n.MAXIMUM_RETRY_DELAY,this.delay)}getRetryCost(){return this.cost}isLongPoll(){return this.longPoll}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{deserializerMiddlewareOption:()=>o,getSchemaSerdePlugin:()=>s,serializerMiddlewareOption:()=>a});var n=r(250),i=r(252);const o={name:"deserializerMiddleware",step:"deserialize",tags:["DESERIALIZER"],override:!0},a={name:"serializerMiddleware",step:"serialize",tags:["SERIALIZER"],override:!0};function s(e){return{applyToStack:t=>{t.add((0,i.schemaSerializationMiddleware)(e),a),t.add((0,n.schemaDeserializationMiddleware)(e),o),e.protocol.setSerdeContext(e)}}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{schemaDeserializationMiddleware:()=>a});var n=r(135),i=r(241),o=r(251);const a=e=>(t,r)=>async a=>{const{response:l}=await t(a),{operationSchema:c}=(0,n.getSmithyContext)(r),[,u,p,d,h,f]=c??[];try{return{response:l,output:await e.protocol.deserializeResponse((0,o.operation)(u,p,d,h,f),{...e,...r},l)}}catch(e){if(Object.defineProperty(e,"$response",{value:l,enumerable:!1,writable:!1,
1configurable:!1}),!("$metadata"in e)){const t="Deserialization error: to see the raw response, inspect the hidden field {error}.$response on this object.";try{e.message+="\n  "+t}catch(e){r.logger&&"NoOpLogger"!==r.logger?.constructor?.name?r.logger?.warn?.(t):console.warn(t)}void 0!==e.$responseBodyText&&e.$response&&(e.$response.body=e.$responseBodyText);try{if(i.HttpResponse.isInstance(l)){const{headers:t={},statusCode:r}=l,n=Object.entries(t);e.$metadata={httpStatusCode:r,requestId:s(/^x-[\w-]+-request-?id$/,n),extendedRequestId:s(/^x-[\w-]+-id-2$/,n),cfId:s(/^x-[\w-]+-cf-id$/,n)}}}catch(e){}}throw e}},s=(e,t)=>(t.find(([t])=>t.match(e))||[void 0,void 0])[1]},(e,t,r)=>{"use strict";r.r(t),r.d(t,{operation:()=>n});const n=(e,t,r,n,i)=>({name:t,namespace:e,traits:r,input:n,output:i})},(e,t,r)=>{"use strict";r.r(t),r.d(t,{schemaSerializationMiddleware:()=>a});var n=r(135),i=r(130),o=r(251);const a=e=>(t,r)=>async a=>{const{operationSchema:s}=(0,n.getSmithyContext)(r),[,l,c,u,p,d]=s??[],h=r.endpointV2?async()=>(0,i.toEndpointV1)(r.endpointV2):e.endpoint,f=await e.protocol.serializeRequest((0,o.operation)(l,c,u,p,d),a.input,{...e,...r,endpoint:h});return t({...a,request:f})}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{defaultFirehoseHttpAuthSchemeParametersProvider:()=>a,defaultFirehoseHttpAuthSchemeProvider:()=>s,resolveHttpAuthSchemeConfig:()=>l});var n=r(254),i=r(135),o=r(138);const a=async(e,t,r)=>({operation:(0,i.getSmithyContext)(t).operation,region:await(0,o.normalizeProvider)(e.region)()||(()=>{throw new Error("expected `region` to be configured for `aws.auth#sigv4`")})()});const s=e=>{const t=[];return e.operation,t.push(function(e){return{schemeId:"aws.auth#sigv4",signingProperties:{name:"firehose",region:e.region},propertiesExtractor:(e,t)=>({signingProperties:{config:e,context:t}})}}(e)),t},l=e=>{const t=(0,n.resolveAwsSdkSigV4Config)(e);return Object.assign(t,{authSchemePreference:(0,o.normalizeProvider)(e.authSchemePreference??[])})}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{AWSSDKSigV4Signer:()=>n.AWSSDKSigV4Signer,AwsSdkSigV4ASigner:()=>i.AwsSdkSigV4ASigner,AwsSdkSigV4Signer:()=>n.AwsSdkSigV4Signer,NODE_AUTH_SCHEME_PREFERENCE_OPTIONS:()=>c,NODE_SIGV4A_CONFIG_OPTIONS:()=>u,resolveAWSSDKSigV4Config:()=>d,resolveAwsSdkSigV4AConfig:()=>o.resolveAwsSdkSigV4AConfig,resolveAwsSdkSigV4Config:()=>p,validateSigningProperties:()=>n.validateSigningProperties});var n=r(255),i=r(259),o=r(260),a=r(262),s=r(278);const l=Symbol.for("node-only"),c=l,u=l,p=(0,a.bindResolveAwsSdkSigV4Config)(s.DEFAULT_DISABLE_CLOCK_SKEW_CORRECTION),d=p},(e,t,r)=>{"use strict";r.r(t),r.d(t,{AWSSDKSigV4Signer:()=>u,AwsSdkSigV4Signer:()=>c,validateSigningProperties:()=>l});var n=r(188),i=r(256),o=r(257),a=r(258);const s=(e,t)=>{if(!t)throw new Error(`Property \`${e}\` is not resolved for AWS SDK SigV4Auth`);return t},l=async e=>
1{const t=s("context",e.context),r=s("config",e.config),n=t.endpointV2?.properties?.authSchemes?.[0],i=s("signer",r.signer),o=await i(n),a=e?.signingRegion,l=e?.signingRegionSet,c=e?.signingName;return{config:r,signer:o,signingRegion:a,signingRegionSet:l,signingName:c}};class c{async sign(e,t,r){if(!n.HttpRequest.isInstance(e))throw new Error("The request is not an instance of `HttpRequest` and cannot be signed");const i=await l(r),{config:a,signer:s}=i;let{signingRegion:c,signingName:u}=i;const p=r.context;if(p?.authSchemes?.length){const[e,t]=p.authSchemes;"sigv4a"===e?.name&&"sigv4"===t?.name&&(c=t?.signingRegion??c,u=t?.signingName??u)}const d=!0===await(a.disableClockSkewCorrection?.());r._disableClockSkewCorrection=d,d||(r._preRequestSystemClockOffset=a.systemClockOffset,r._requestSentAt=Date.now());return await s.sign(e,{signingDate:d?new Date:(0,o.getSkewCorrectedDate)(a.systemClockOffset),signingRegion:c,signingService:u})}errorHandler(e){return t=>{const r=t;if(!e._disableClockSkewCorrection){const t=r.ServerTime??(0,i.getDateHeader)(r.$response);if(t){const n=s("config",e.config),o=e._preRequestSystemClockOffset,l=e._requestSentAt,c=(0,i.getAgeHeader)(r.$response),u=(0,a.getUpdatedSystemClockOffset)(t,n.systemClockOffset,l,c);n.systemClockOffset=u;Math.abs(u)>=24e4&&(u!==o||void 0!==o&&o!==u)&&r.$metadata&&(r.$metadata.clockSkewCorrected=!0)}}throw t}}successHandler(e,t){if(t._disableClockSkewCorrection)return;const r=(0,i.getDateHeader)(e);if(r){const n=s("config",t.config),o=t._requestSentAt,l=(0,i.getAgeHeader)(e);n.systemClockOffset=(0,a.getUpdatedSystemClockOffset)(r,n.systemClockOffset,o,l)}}}const u=c},(e,t,r)=>{"use strict";r.r(t),r.d(t,{getAgeHeader:()=>o,getDateHeader:()=>i});var n=r(241);const i=e=>n.HttpResponse.isInstance(e)?e.headers?.date??e.headers?.Date:void 0,o=e=>n.HttpResponse.isInstance(e)?e.headers?.age??e.headers?.Age:void 0},(e,t,r)=>{"use strict";r.r(t),r.d(t,{getSkewCorrectedDate:()=>n});const n=e=>new Date(Date.now()+e)},(e,t,r)=>{"use strict";r.r(t),r.d(t,{getUpdatedSystemClockOffset:()=>n});const n=(e,t,r,n)=>{if(void 0!==n)return t;const i=Date.parse(e),o=Date.now();if(void 0!==r&&o-r>9e5)return t;return void 0!==r?i-(r+o)/2:i-o}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{AwsSdkSigV4ASigner:()=>a});var n=r(188),i=r(257),o=r(255);class a extends o.AwsSdkSigV4Signer{async sign(e,t,r){if(!n.HttpRequest.isInstance(e))throw new Error("The request is not an instance of `HttpRequest` and cannot be signed");const{config:a,signer:s,signingRegion:l,signingRegionSet:c,signingName:u}=await(0,o.validateSigningProperties)(r),p=(await(a.sigv4aSigningRegionSet?.())??c??[l]).join(","),d=!0===await(a.disableClockSkewCorrection?.());r._disableClockSkewCorrection=d,d||(r._preRequestSystemClockOffset=a.systemClockOffset,r._requestSentAt=Date.now());return await s.sign(e,{signingDate:d?new Date:(0,i.getSkewCorrectedDate)(a.systemClockOffset),signingRegion:p,signingService:u})}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{NODE_SIGV4A_CONFIG_OPTIONS:()=>a,resolveAwsSdkSigV4AConfig:()=>o});var n=r(192),i=r(261);const o=e=>(e.sigv4aSigningRegionSet=(0,n.normalizeProvider)(e.sigv4aSigningRegionSet),e),a={environmentVariableSelector(e){if(e.AWS_SIGV4A_SIGNING_REGION_SET)return e.AWS_SIGV4A_SIGNING_REGION_SET.split(",").map(e=>e.trim());throw new i.ProviderError("AWS_SIGV4A_SIGNING_REGION_SET not set in env.",{tryNextLink:!0})},configFileSelector(e){if(e.sigv4a_signing_region_set)return(e.sigv4a_signing_region_set??"").split(",").map(e=>e.trim());throw new i.ProviderError("sigv4a_signing_region_set not set in profile.",{tryNextLink:!0})},default:void 0}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{ProviderError:()=>n});class n extends Error{name="ProviderError";tryNextLink;constructor(e,t=!0){let r,i=!0;"boolean"==typeof t?(r=void 0,i=t):null!=t&&"object"==typeof t&&(r=t.logger,i=t.tryNextLink??!0),super(e),this.tryNextLink=i,Object.setPrototypeOf(this,n.prototype),r?.debug?.(`@smithy/property-provider ${i?"->":"(!)"} ${e}`)}static from(e,t=!0){return Object.assign(new this(e.message,t),e)}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{bindResolveAwsSdkSigV4Config:()=>s});
vendor: 3,591 bytes, line 1
1var n=r(263),i=r(264),o=r(192),a=r(265);const s=e=>t=>{let r,s=t.credentials,l=!!t.credentials;Object.defineProperty(t,"credentials",{set(e){e&&e!==s&&e!==r&&(l=!0),s=e;const a=function(e,{credentials:t,credentialDefaultProvider:r}){let n;n=t?t?.memoized?t:(0,i.memoizeIdentityProvider)(t,i.isIdentityExpired,i.doesIdentityRequireRefresh):r?(0,o.normalizeProvider)(r(Object.assign({},e,{parentClientConfig:e}))):async()=>{throw new Error("@aws-sdk/core::resolveAwsSdkSigV4Config - `credentials` not provided and no credentialDefaultProvider was configured.")};return n.memoized=!0,n}(t,{credentials:s,credentialDefaultProvider:t.credentialDefaultProvider}),c=function(e,t){if(t.configBound)return t;const r=async r=>t({...r,callerClientConfig:e});return r.memoized=t.memoized,r.configBound=!0,r}(t,a);if(l&&!c.attributed){const e="object"==typeof s&&null!==s;r=async t=>{const r=await c(t);return!e||r.$source&&0!==Object.keys(r.$source).length?r:(0,n.setCredentialFeature)(r,"CREDENTIALS_CODE","e")},r.memoized=c.memoized,r.configBound=c.configBound,r.attributed=!0}else r=c},get:()=>r,enumerable:!0,configurable:!0}),t.credentials=s;const{signingEscapePath:c=!0,systemClockOffset:u=t.systemClockOffset||0,sha256:p}=t;let d;d=t.signer?(0,o.normalizeProvider)(t.signer):t.regionInfoProvider?()=>(0,o.normalizeProvider)(t.region)().then(async e=>[await t.regionInfoProvider(e,{useFipsEndpoint:await t.useFipsEndpoint(),useDualstackEndpoint:await t.useDualstackEndpoint()})||{},e]).then(([e,r])=>{const{signingRegion:n,signingService:i}=e;t.signingRegion=t.signingRegion||n||r,t.signingName=t.signingName||i||t.serviceId;const o={...t,credentials:t.credentials,region:t.signingRegion,service:t.signingName,sha256:p,uriEscapePath:c};return new(t.signerConstructor||a.SignatureV4)(o)}):async e=>{const r=(e=Object.assign({},{name:"sigv4",signingName:t.signingName||t.defaultSigningName,signingRegion:await(0,o.normalizeProvider)(t.region)(),properties:{}},e)).signingRegion,n=e.signingName;t.signingRegion=t.signingRegion||r,t.signingName=t.signingName||n||t.serviceId;const i={...t,credentials:t.credentials,region:t.signingRegion,service:t.signingName,sha256:p,uriEscapePath:c};return new(t.signerConstructor||a.SignatureV4)(i)};return Object.assign(t,{systemClockOffset:u,signingEscapePath:c,signer:d,disableClockSkewCorrection:(0,o.normalizeProvider)(t.disableClockSkewCorrection??e)})}},(e,t,r)=>{"use strict";function n(e,t,r){return e.$source||(e.$source={}),e.$source[t]=r,e}r.r(t),r.d(t,{setCredentialFeature:()=>n})},(e,t,r)=>{"use strict";r.r(t),r.d(t,{EXPIRATION_MS:()=>i,createIsIdentityExpiredFunction:()=>n,doesIdentityRequireRefresh:()=>a,isIdentityExpired:()=>o,memoizeIdentityProvider:()=>s});const n=e=>function(t){return a(t)&&t.expiration.getTime()-Date.now()<e},i=3e5,o=n(i),a=e=>void 0!==e.expiration,s=(e,t,r)=>{if(void 0===e)return;const n="function"!=typeof e?async()=>Promise.resolve(e):e;let i,o,a,s=!1;const l=async e=>{o||(o=n(e));try{i=await o,a=!0,s=!1}finally{o=void 0}return i};return void 0===t?async e=>(a&&!e?.forceRefresh||(i=await l(e)),i):async e=>(a&&!e?.forceRefresh||(i=await l(e)),s?i:r(i)?t(i)?(await l(e),i):i:(s=!0,i))}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{SignatureV4:()=>f});var n=r(230),i=r(232),o=r(266),a=r(267),s=r(270),l=r(272),c=r(273),u=r(274),p=r(275),d=r(276),h=r(277);class f extends a.SignatureV4Base{headerFormatter=new o.HeaderFormatter;constructor({applyChecksum:e,credentials:t,region:r,service:n,sha256:i,uriEscapePath:o=!0}){super({applyChecksum:e,credentials:t,region:r,service:n,sha256:i,uriEscapePath:o})}async presign(e,t={}
1){const{signingDate:r=new Date,expiresIn:n=3600,unsignableHeaders:i,unhoistableHeaders:o,signableHeaders:a,hoistableHeaders:p,signingRegion:f,signingService:m}=t,g=await this.credentialProvider();this.validateResolvedCredentials(g);const y=f??await this.regionProvider(),{longDate:b,shortDate:v}=this.formatDate(r);if(n>s.MAX_PRESIGNED_TTL)return Promise.reject("Signature version 4 presigned URLs must have an expiration date less than one week in the future");const _=(0,l.createScope)(v,y,m??this.service),S=(0,d.moveHeadersToQuery)((0,h.prepareRequest)(e),{unhoistableHeaders:o,hoistableHeaders:p});g.sessionToken&&(S.query[s.TOKEN_QUERY_PARAM]=g.sessionToken),S.query[s.ALGORITHM_QUERY_PARAM]=s.ALGORITHM_IDENTIFIER,S.query[s.CREDENTIAL_QUERY_PARAM]=`${g.accessKeyId}/${_}`,S.query[s.AMZ_DATE_QUERY_PARAM]=b,S.query[s.EXPIRES_QUERY_PARAM]=n.toString(10);const E=(0,c.getCanonicalHeaders)(S,i,a);return S.query[s.SIGNED_HEADERS_QUERY_PARAM]=this.getCanonicalHeaderList(E),S.query[s.SIGNATURE_QUERY_PARAM]=await this.getSignature(b,_,this.getSigningKey(g,y,v,m),this.createCanonicalRequest(S,E,await(0,u.getPayloadHash)(e,this.sha256))),S}async sign(e,t){return"string"==typeof e?this.signString(e,t):e.headers&&e.payload?this.signEvent(e,t):e.message?this.signMessage(e,t):this.signRequest(e,t)}async signEvent({headers:e,payload:t},{signingDate:r=new Date,priorSignature:i,signingRegion:o,signingService:a,eventStreamCredentials:c}){const p=o??await this.regionProvider(),{shortDate:d,longDate:h}=this.formatDate(r),f=(0,l.createScope)(d,p,a??this.service),m=await(0,u.getPayloadHash)({headers:{},body:t},this.sha256),g=new this.sha256;g.update(e);const y=(0,n.toHex)(await g.digest()),b=[s.EVENT_ALGORITHM_IDENTIFIER,h,f,i,y,m].join("\n");return this.signString(b,{signingDate:r,signingRegion:p,signingService:a,eventStreamCredentials:c})}async signMessage(e,{signingDate:t=new Date,signingRegion:r,signingService:n,eventStreamCredentials:i}){return this.signEvent({headers:this.headerFormatter.format(e.message.headers),payload:e.message.body},{signingDate:t,signingRegion:r,signingService:n,priorSignature:e.priorSignature,eventStreamCredentials:i}).then(t=>({message:e.message,signature:t}))}async signString(e,{signingDate:t=new Date,signingRegion:r,signingService:o,eventStreamCredentials:a}={}){const s=a??await this.credentialProvider();this.validateResolvedCredentials(s);const l=r??await this.regionProvider(),{shortDate:c}
1=this.formatDate(t),u=new this.sha256(await this.getSigningKey(s,l,c,o));return u.update((0,i.toUint8Array)(e)),(0,n.toHex)(await u.digest())}async signRequest(e,{signingDate:t=new Date,signableHeaders:r,unsignableHeaders:n,signingRegion:i,signingService:o}={}){const a=await this.credentialProvider();this.validateResolvedCredentials(a);const d=i??await this.regionProvider(),f=(0,h.prepareRequest)(e),{longDate:m,shortDate:g}=this.formatDate(t),y=(0,l.createScope)(g,d,o??this.service);f.headers[s.AMZ_DATE_HEADER]=m,a.sessionToken&&(f.headers[s.TOKEN_HEADER]=a.sessionToken);const b=await(0,u.getPayloadHash)(f,this.sha256);!(0,p.hasHeader)(s.SHA256_HEADER,f.headers)&&this.applyChecksum&&(f.headers[s.SHA256_HEADER]=b);const v=(0,c.getCanonicalHeaders)(f,n,r),_=await this.getSignature(m,y,this.getSigningKey(a,d,g,o),this.createCanonicalRequest(f,v,b));return f.headers[s.AUTH_HEADER]=`${s.ALGORITHM_IDENTIFIER} Credential=${a.accessKeyId}/${y}, SignedHeaders=${this.getCanonicalHeaderList(v)}, Signature=${_}`,f}async getSignature(e,t,r,o){const a=await this.createStringToSign(e,t,o,s.ALGORITHM_IDENTIFIER),l=new this.sha256(await r);return l.update((0,i.toUint8Array)(a)),(0,n.toHex)(await l.digest())}getSigningKey(e,t,r,n){return(0,l.getSigningKey)(this.sha256,e,r,t,n||this.service)}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{HeaderFormatter:()=>s,Int64:()=>c});var n,i=r(131),o=r(222),a=r(230);class s{format(e){const t=[];for(const r in e){if(!(0,i.hasOwn)(e,r))continue;const n=(0,o.fromUtf8)(r);t.push(Uint8Array.from([n.byteLength]),n,this.formatHeaderValue(e[r]))}const r=new Uint8Array(t.reduce((e,t)=>e+t.byteLength,0));let n=0;for(const e of t)r.set(e,n),n+=e.byteLength;return r}formatHeaderValue(e){switch(e.type){case"boolean":return Uint8Array.from([e.value?0:1]);case"byte":return Uint8Array.from([2,e.value]);case"short":const t=new DataView(new ArrayBuffer(3));return t.setUint8(0,3),t.setInt16(1,e.value,!1),new Uint8Array(t.buffer);case"integer":const r=new DataView(new ArrayBuffer(5));return r.setUint8(0,4),r.setInt32(1,e.value,!1),new Uint8Array(r.buffer);case"long":const n=new Uint8Array(9);return n[0]=5,n.set(e.value.bytes,1),n;case"binary":const i=new DataView(new ArrayBuffer(3+e.value.byteLength));i.setUint8(0,6),i.setUint16(1,e.value.byteLength,!1);const s=new Uint8Array(i.buffer);return s.set(e.value,3),s;case"string":const u=(0,o.fromUtf8)(e.value),p=new DataView(new ArrayBuffer(3+u.byteLength));p.setUint8(0,7),p.setUint16(1,u.byteLength,!1);const d=new Uint8Array(p.buffer);return d.set(u,3),d;case"timestamp":const h=new Uint8Array(9);return h[0]=8,h.set(c.fromNumber(e.value.valueOf()).bytes,1),h;case"uuid":if(!l.test(e.value))throw new Error(`Invalid UUID received: ${e.value}`);const f=new Uint8Array(17);return f[0]=9,f.set((0,a.fromHex)(e.value.replace(/-/g,"")),1),f}}}!function(e){e[e.boolTrue=0]="boolTrue",e[e.boolFalse=1]="boolFalse",e[e.byte=2]="byte",e[e.short=3]="short",e[e.integer=4]="integer",e[e.long=5]="long",e[e.byteArray=6]="byteArray",e[e.string=7]="string",e[e.timestamp=8]="timestamp",e[e.uuid=9]="uuid"}(n||(n={}));const l=/^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$/;class c{bytes;constructor(e){if(this.bytes=e,8!==e.byteLength)throw new Error("Int64 buffers must be exactly 8 bytes")}static fromNumber(e){if(e>0x8000000000000000||e<-0x8000000000000000)throw new Error(`${e} is too large (or, if negative, too small) to represent as an Int64`);const t=new Uint8Array(8);for(let r=7,n=Math.abs(Math.round(e));r>-1&&n>0;r--,n/=256)t[r]=n;return e<0&&u(t),new c(t)}valueOf(){const e=this.bytes.slice(0),t=128&e[0];return t&&u(e),parseInt((0,a.toHex)(e),16)*(t?-1:1)}toString(){return String(this.valueOf())}}function u(e){for(let t=0;t<8;t++)e[t]^=255;for(let t=7;t>-1&&(e[t]++,0===e[t]);t--);}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{SignatureV4Base:()=>c});var n=r(138),i=r(268),o=r(230),a=r(232),s=r(269),l=r(271);class c{service;regionProvider;credentialProvider;sha256;uriEscapePath;applyChecksum;constructor({applyChecksum:e,credentials:t,region:r,service:i,sha256:o,uriEscapePath:a=!0}){this.service=i,this.sha256=o,this.uriEscapePath=a,this.applyChecksum="boolean"!=typeof e||e,this.regionProvider=(0,n.normalizeProvider)(r),this.credentialProvider=(0,n.normalizeProvider)(t)}
1createCanonicalRequest(e,t,r){const n=Object.keys(t).sort();return`${e.method}\n${this.getCanonicalPath(e)}\n${(0,s.getCanonicalQuery)(e)}\n${n.map(e=>`${e}:${t[e]}`).join("\n")}\n\n${n.join(";")}\n${r}`}async createStringToSign(e,t,r,n){const i=new this.sha256;i.update((0,a.toUint8Array)(r));const s=await i.digest();return`${n}\n${e}\n${t}\n${(0,o.toHex)(s)}`}getCanonicalPath({path:e}){if(this.uriEscapePath){const t=[];for(const r of e.split("/"))0!==r?.length&&"."!==r&&(".."===r?t.pop():t.push(r));const r=`${e?.startsWith("/")?"/":""}${t.join("/")}${t.length>0&&e?.endsWith("/")?"/":""}`;return(0,i.escapeUri)(r).replace(/%2F/g,"/")}return e}validateResolvedCredentials(e){if("object"!=typeof e||"string"!=typeof e.accessKeyId||"string"!=typeof e.secretAccessKey)throw new Error("Resolved credential object is not valid")}formatDate(e){const t=(0,l.iso8601)(e).replace(/[-:]/g,"");return{longDate:t,shortDate:t.slice(0,8)}}getCanonicalHeaderList(e){return Object.keys(e).sort().join(";")}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{escapeUri:()=>n});const n=e=>encodeURIComponent(e).replace(/[!'()*]/g,i),i=e=>`%${e.charCodeAt(0).toString(16).toUpperCase()}`},(e,t,r)=>{"use strict";r.r(t),r.d(t,{getCanonicalQuery:()=>a});var n=r(131),i=r(268),o=r(270);const a=({query:e={}})=>{const t=[],r={};for(const a in e){if(!(0,n.hasOwn)(e,a))continue;if(a.toLowerCase()===o.SIGNATURE_HEADER)continue;const s=(0,i.escapeUri)(a);t.push(s);const l=e[a];"string"==typeof l?r[s]=`${s}=${(0,i.escapeUri)(l)}`:Array.isArray(l)&&(r[s]=l.slice(0).reduce((e,t)=>e.concat([`${s}=${(0,i.escapeUri)(t)}`]),[]).sort().join("&"))}return t.sort().map(e=>r[e]).filter(e=>e).join("&")}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{ALGORITHM_IDENTIFIER:()=>T,ALGORITHM_IDENTIFIER_V4A:()=>w,ALGORITHM_QUERY_PARAM:()=>n,ALWAYS_UNSIGNABLE_HEADERS:()=>v,AMZ_DATE_HEADER:()=>d,AMZ_DATE_QUERY_PARAM:()=>o,AUTH_HEADER:()=>p,CREDENTIAL_QUERY_PARAM:()=>i,DATE_HEADER:()=>h,EVENT_ALGORITHM_IDENTIFIER:()=>x,EXPIRES_QUERY_PARAM:()=>s,GENERATED_HEADERS:()=>f,HOST_HEADER:()=>b,KEY_TYPE_IDENTIFIER:()=>A,MAX_CACHE_SIZE:()=>I,MAX_PRESIGNED_TTL:()=>k,PROXY_HEADER_PATTERN:()=>_,REGION_SET_PARAM:()=>u,SEC_HEADER_PATTERN:()=>S,SHA256_HEADER:()=>g,SIGNATURE_HEADER:()=>m,SIGNATURE_QUERY_PARAM:()=>l,SIGNED_HEADERS_QUERY_PARAM:()=>a,TOKEN_HEADER:()=>y,TOKEN_QUERY_PARAM:()=>c,UNSIGNABLE_PATTERNS:()=>E,UNSIGNED_PAYLOAD:()=>O});const n="X-Amz-Algorithm",i="X-Amz-Credential",o="X-Amz-Date",a="X-Amz-SignedHeaders",s="X-Amz-Expires",l="X-Amz-Signature",c="X-Amz-Security-Token",u="X-Amz-Region-Set",p="authorization",d=o.toLowerCase(),h="date",f=[p,d,h],m=l.toLowerCase(),g="x-amz-content-sha256",y=c.toLowerCase(),b="host",v={authorization:!0,"cache-control":!0,connection:!0,expect:!0,from:!0,"keep-alive":!0,"max-forwards":!0,pragma:!0,referer:!0,te:!0,trailer:!0,"transfer-encoding":!0,upgrade:!0,"user-agent":!0,"x-amzn-trace-id":!0},_=/^proxy-/,S=/^sec-/,E=[/^proxy-/i,/^sec-/i],T="AWS4-HMAC-SHA256",w="AWS4-ECDSA-P256-SHA256",x="AWS4-HMAC-SHA256-PAYLOAD",O="UNSIGNED-PAYLOAD",I=50,A="aws4_request",k=604800},(e,t,r)=>{"use strict";r.r(t),r.d(t,{iso8601:()=>n,toDate:()=>i});const n=e=>i(e).toISOString().replace(/\.\d{3}Z$/,"Z"),i=e=>"number"==typeof e?new Date(1e3*e):"string"==typeof e?Number(e)?new Date(1e3*Number(e)):new Date(e):e},(e,t,r)=>{"use strict";r.r(t),r.d(t,{clearCredentialCache:()=>u,createScope:()=>l,getSigningKey:()=>c});var n=r(230),i=r(232),o=r(270);const a={},s=[],l=(e,t,r)=>`${e}/${t}/${r}/${o.KEY_TYPE_IDENTIFIER}`,c=async(e,t,r,i,l)=>{const c=await p(e,t.secretAccessKey,t.accessKeyId),u=`${r}:${i}:${l}:${(0,n.toHex)(c)}:${t.sessionToken}`;if(u in a)return a[u];for(s.push(u);s.length>o.MAX_CACHE_SIZE;)delete a[s.shift()];let d=`AWS4${t.secretAccessKey}`;for(const t of[r,i,l,o.KEY_TYPE_IDENTIFIER])d=await p(e,d,t);return a[u]=d},u=()=>{s.length=0,Object.keys(a).forEach(e=>{delete a[e]})},p=(e,t,r)=>{const n=new e(t);return n.update((0,i.toUint8Array)(r)),n.digest()}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{getCanonicalHeaders:()=>i});var n=r(270);const i=({headers:e},t,r)=>{const i={};for(const o of Object.keys(e).sort()){if(null==e[o])continue;const a=o.toLowerCase();(a in n.ALWAYS_UNSIGNABLE_HEADERS||t?.has(a)||n.PROXY_HEADER_PATTERN.test(a)||n.SEC_HEADER_PATTERN.test(a))&&(!r||r&&!r.has(a))||(i[a]=e[o].trim().replace(/\s+/g," "))}return i}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{getPayloadHash:()=>l});var n=r(131),i=r(230),o=r(232),a=r(234),s=r(270);const l=async({headers:e,body:t},r)=>{for(const t in e)if((0,n.hasOwn)(e,t)&&t.toLowerCase()===s.SHA256_HEADER)return e[t];if(null==t)return"e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855";if("string"==typeof t||ArrayBuffer.isView(t)||(0,a.isArrayBuffer)(t)){const e=new r;return e.update((0,o.toUint8Array)(t)),(0,i.toHex)(await e.digest())}return s.UNSIGNED_PAYLOAD}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{deleteHeader:()=>a,getHeaderValue:()=>
1o,hasHeader:()=>i});var n=r(131);const i=(e,t)=>{e=e.toLowerCase();for(const r in t)if((0,n.hasOwn)(t,r)&&e===r.toLowerCase())return!0;return!1},o=(e,t)=>{e=e.toLowerCase();for(const r in t)if((0,n.hasOwn)(t,r)&&e===r.toLowerCase())return t[r]},a=(e,t)=>{e=e.toLowerCase();for(const r in t)(0,n.hasOwn)(t,r)&&e===r.toLowerCase()&&delete t[r]}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{moveHeadersToQuery:()=>o});var n=r(131),i=r(188);const o=(e,t={})=>{const{headers:r,query:o={}}=i.HttpRequest.clone(e);for(const e in r){if(!(0,n.hasOwn)(r,e))continue;const i=e.toLowerCase();("x-amz-"===i.slice(0,6)&&!t.unhoistableHeaders?.has(i)||t.hoistableHeaders?.has(i))&&(o[e]=r[e],delete r[e])}return{...e,headers:r,query:o}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{prepareRequest:()=>a});var n=r(131),i=r(188),o=r(270);const a=e=>{e=i.HttpRequest.clone(e);for(const t in e.headers)(0,n.hasOwn)(e.headers,t)&&o.GENERATED_HEADERS.indexOf(t.toLowerCase())>-1&&delete e.headers[t];return e}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{DEFAULT_DISABLE_CLOCK_SKEW_CORRECTION:()=>n});const n=!1},(e,t,r)=>{"use strict";r.r(t),r.d(t,{getRuntimeConfig:()=>f});var n=r(280),i=r(281),o=r(282),a=r(283),s=r(284),l=r(285),c=r(197),u=r(231),p=r(288),d=r(235),h=r(292);const f=e=>{const t=(0,l.resolveDefaultsModeConfig)(e),r=()=>t().then(a.loadConfigsForDefaultMode),f=(0,h.getRuntimeConfig)(e);return{...f,...e,runtime:"browser",defaultsMode:t,bodyLengthChecker:e?.bodyLengthChecker??u.calculateBodyLength,credentialDefaultProvider:e?.credentialDefaultProvider??(e=>()=>Promise.reject(new Error("Credential is missing"))),defaultUserAgentProvider:e?.defaultUserAgentProvider??(0,i.createDefaultUserAgentProvider)({serviceId:f.serviceId,clientVersion:n.version}),maxAttempts:e?.maxAttempts??c.DEFAULT_MAX_ATTEMPTS,region:e?.region??(0,o.invalidProvider)("Region is missing"),requestHandler:p.FetchHttpHandler.create(e?.requestHandler??r),retryMode:e?.retryMode??(async()=>(await r()).retryMode||c.DEFAULT_RETRY_MODE),streamCollector:e?.streamCollector??d.streamCollector,useDualstackEndpoint:e?.useDualstackEndpoint??(()=>Promise.resolve(s.DEFAULT_USE_DUALSTACK_ENDPOINT)),useFipsEndpoint:e?.useFipsEndpoint??(()=>Promise.resolve(s.DEFAULT_USE_FIPS_ENDPOINT))}}},e=>{"use strict";e.exports=JSON.parse('{"name":"@aws-sdk/client-firehose","version":"3.1121.0","description":"AWS SDK for JavaScript Firehose Client for Node.js, Browser and React Native","homepage":"https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-firehose","license":"Apache-2.0","author":{"name":"AWS SDK for JavaScript Team","url":"https://aws.amazon.com/sdk-for-javascript/"},"repository":{"type":"git","url":"https://github.com/aws/aws-sdk-js-v3.git","directory":"clients/client-firehose"},"files":["dist-*/**"],"sideEffects":false,"main":"./dist-cjs/index.js","module":"./dist-es/index.js","browser":{"./dist-es/runtimeConfig":"./dist-es/runtimeConfig.browser"},"types":"./dist-types/index.d.ts","typesVersions":{"<4.5":{"dist-types/*":["dist-types/ts3.4/*"]}},"react-native":{"./dist-es/runtimeConfig":"./dist-es/runtimeConfig.native"},"scripts":{"build":"concurrently \'yarn:build:types\' \'yarn:build:es\' && yarn build:cjs","build:cjs":"node ../../scripts/compilation/inline","build:es":"premove dist-es && tsc -p tsconfig.es.json","build:include:deps":"yarn g:turbo run build -F=\\"$npm_package_name\\"","build:types":"premove dist-types && tsc -p tsconfig.types.json","build:types:downlevel":"downlevel-dts dist-types dist-types/ts3.4","clean":"premove dist-cjs dist-es dist-types","extract:docs":"api-extractor run --local","generate:client":"node ../../scripts/generate-clients/single-service","test:index":"tsc -p tsconfig.test.json && node ./test/index-objects.spec.mjs"},"dependencies":{"@aws-sdk/core":"^3.977.9","@aws-sdk/credential-provider-node":"^3.972.81","@aws-sdk/types":"^3.974.5","@smithy/core":"^3.33.3","@smithy/fetch-http-handler":"^5.7.2","@smithy/node-http-handler":"^4.11.3","@smithy/types":"^4.17.2","tslib":"^2.6.2"},"devDependencies":{"@tsconfig/node20":"20.1.8","@types/node":"^20.14.8","concurrently":"7.0.0","downlevel-dts":"0.10.1","premove":"4.0.0","typescript":"~7.0.2"},"engines":{"node":">=20.0.0"}}')},(e,t,r)=>{"use strict";r.r(t),r.d(t,{createDefaultUserAgentProvider:()=>n,defaultUserAgent:()=>o,fallback:()=>i});const n=({serviceId:e,clientVersion:t})=>async r=>{const n="undefined"!=typeof window?window.navigator:void 0,o=n?.userAgent??"",a=n?.userAgentData?.platform??i.os(o)??"other",s=n?.userAgentData?.brands??[],l=s[s.length-1],c=l?.brand??i.browser(o)??"unknown",u=[["aws-sdk-js",t],["ua","2.1"],[`os/${a}`,void 0],["lang/js"],["md/browser",`${c}
1_${l?.version??"unknown"}`]];e&&u.push([`api/${e}`,t]);const p=await(r?.userAgentAppId?.());return p&&u.push([`app/${p}`]),u},i={os:e=>/iPhone|iPad|iPod/.test(e)?"iOS":/Macintosh|Mac OS X/.test(e)?"macOS":/Windows NT/.test(e)?"Windows":/Android/.test(e)?"Android":/Linux/.test(e)?"Linux":void 0,browser:e=>/EdgiOS|EdgA|Edg\//.test(e)?"Microsoft Edge":/Firefox\//.test(e)?"Firefox":/Chrome\//.test(e)?"Chrome":/Safari\//.test(e)?"Safari":void 0},o=n},(e,t,r)=>{"use strict";r.r(t),r.d(t,{invalidProvider:()=>n});const n=e=>()=>Promise.reject(e)},(e,t,r)=>{"use strict";r.r(t),r.d(t,{loadConfigsForDefaultMode:()=>n});const n=e=>{switch(e){case"standard":case"cross-region":return{retryMode:"standard",connectionTimeout:3100};case"in-region":return{retryMode:"standard",connectionTimeout:1100};case"mobile":return{retryMode:"standard",connectionTimeout:3e4};default:return{}}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{CONFIG_PREFIX_SEPARATOR:()=>h,CONFIG_USE_DUALSTACK_ENDPOINT:()=>E,CONFIG_USE_FIPS_ENDPOINT:()=>I,DEFAULT_PROFILE:()=>c,DEFAULT_USE_DUALSTACK_ENDPOINT:()=>T,DEFAULT_USE_FIPS_ENDPOINT:()=>A,ENV_PROFILE:()=>l,ENV_USE_DUALSTACK_ENDPOINT:()=>S,ENV_USE_FIPS_ENDPOINT:()=>O,NODE_REGION_CONFIG_FILE_OPTIONS:()=>M,NODE_REGION_CONFIG_OPTIONS:()=>D,NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS:()=>w,NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS:()=>k,ProviderError:()=>n.ProviderError,REGION_ENV_NAME:()=>C,REGION_INI_NAME:()=>P,externalDataInterceptor:()=>y,fromStatic:()=>_,getHomeDir:()=>s,getProfileName:()=>u,getSSOTokenFilepath:()=>p,getSSOTokenFromFile:()=>d,loadConfig:()=>v,loadSharedConfigFiles:()=>f,loadSsoSessionData:()=>m,nodeDualstackConfigSelectors:()=>x,nodeFipsConfigSelectors:()=>R,parseKnownFiles:()=>g,readFile:()=>b,resolveDefaultsModeConfig:()=>o.resolveDefaultsModeConfig,resolveRegionConfig:()=>i.resolveRegionConfig});var n=r(261),i=r(209),o=r(285);const a=Symbol.for("node-only"),s=a,l=a,c="default",u=a,p=a,d=a,h=a,f=a,m=a,g=a,y=a,b=a,v=a,_=a,S=a,E=a,T=!1,w=a,x=a,O=a,I=a,A=!1,k=a,R=a,C=a,P=a,D=a,M=a},(e,t,r)=>{"use strict";r.r(t),r.d(t,{resolveDefaultsModeConfig:()=>o});var n=r(286),i=r(287);const o=({defaultsMode:e}={})=>(0,n.memoize)(async()=>{const t="function"==typeof e?await e():e;switch(t?.toLowerCase()){case"auto":return Promise.resolve(a()?"mobile":"standard");case"mobile":case"in-region":case"cross-region":case"standard":case"legacy":return Promise.resolve(t?.toLocaleLowerCase());case void 0:return Promise.resolve("legacy");default:throw new Error(`Invalid parameter for "defaultsMode", expect ${i.DEFAULTS_MODE_OPTIONS.join(", ")}, got ${t}`)}}),a=()=>{const e=window?.navigator;if(e?.connection){const{effectiveType:t,rtt:r,downlink:n}=e.connection;if("string"==typeof t&&"4g"!==t||Number(r)>100||Number(n)<10)return!0}return e?.userAgentData?.mobile||"number"==typeof e?.maxTouchPoints&&e?.maxTouchPoints>1}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{memoize:()=>n});const n=(e,t,r)=>{let n,i,o,a=!1;const s=async()=>{i||(i=e());try{n=await i,o=!0,a=!1}finally{i=void 0}return n};return void 0===t?async e=>(o&&!e?.forceRefresh||(n=await s()),n):async e=>(o&&!e?.forceRefresh||(n=await s()),a?n:r&&!r(n)?(a=!0,n):t(n)?(await s(),n):n)}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{AWS_DEFAULT_REGION_ENV:()=>o,AWS_EXECUTION_ENV:()=>n,AWS_REGION_ENV:()=>i,DEFAULTS_MODE_OPTIONS:()=>s,ENV_IMDS_DISABLED:()=>a,IMDS_REGION_PATH:()=>l,IMDS_TOKEN_PATH:()=>c,X_AWS_EC2_METADATA_TOKEN:()=>u,X_AWS_EC2_METADATA_TOKEN_TTL:()=>p});const n="AWS_EXECUTION_ENV",i="AWS_REGION",o="AWS_DEFAULT_REGION",a="AWS_EC2_METADATA_DISABLED",s=["in-region","cross-region","mobile","standard","legacy"],l="/latest/meta-data/placement/region",c="/latest/api/token",u="x-aws-ec2-metadata-token",p="x-aws-ec2-metadata-token-ttl-seconds"},(e,t,r)=>{"use strict";r.r(t),r.d(t,{FetchHttpHandler:()=>l,keepAliveSupport:()=>s});var n=r(241),i=r(289),o=r(290),a=r(291);const s={supported:void 0};class l{config;configProvider;static create(e){return"function"==typeof e?.handle?e:new l(e)}constructor(e){"function"==typeof e?this.configProvider=e().then(e=>e||{}):(this.config=e??{},this.configProvider=Promise.resolve(this.config)),void 0===s.supported&&(s.supported=Boolean("undefined"!=typeof Request&&"keepalive"in(0,o.createRequest)("https://[::1]")))}destroy(){}async handle(e,{abortSignal:t,requestTimeout:r}={}){this.config||(this.config=await this.configProvider);const l=r??this.config.requestTimeout,u=!0===this.config.keepAlive,p=this.config.credentials;if(t?.aborted){const e=c(t);return Promise.reject(e)}let d=e.path;const h=(0,i.buildQueryString)(e.query||{});h&&(d+=`?${h}`),e.fragment&&(d+=`#${e.fragment}`);let f="";if(null!=e.username||null!=e.password){f=`${e.username??""}:${e.password??""}@`}const{port:m,method:g}=e,y=`${e.protocol}//${f}${e.hostname}${m?`:${m}`:""}${d}`,b="GET"===g||"HEAD"===g?void 0:e.body,v={body:b,headers:new Headers(e.headers),method:g,credentials:p};this.config?.cache&&(v.cache=this.config.cache),b&&(v.duplex="half"),"undefined"!=typeof AbortController&&(v.signal=t),s.supported&&(v.keepalive=u),"function"==typeof this.config.requestInit&&Object.assign(v,this.config.requestInit(e));let _=()=>{};const S=(0,o.createRequest)(y,v),E=[fetch(S).then(e=>
1{const t=e.headers,r={};for(const e of t.entries())r[e[0]]=e[1];return null!=e.body?{response:new n.HttpResponse({headers:r,reason:e.statusText,statusCode:e.status,body:e.body})}:e.blob().then(t=>({response:new n.HttpResponse({headers:r,reason:e.statusText,statusCode:e.status,body:t})}))}),(0,a.requestTimeout)(l)];return t&&E.push(new Promise((e,r)=>{const n=()=>{const e=c(t);r(e)};if("function"==typeof t.addEventListener){const e=t;e.addEventListener("abort",n,{once:!0}),_=()=>e.removeEventListener("abort",n)}else t.onabort=n})),Promise.race(E).finally(_)}updateHttpClientConfig(e,t){this.config=void 0,this.configProvider=this.configProvider.then(r=>(r[e]=t,r))}httpHandlerConfigs(){return this.config??{}}}function c(e){const t=e&&"object"==typeof e&&"reason"in e?e.reason:void 0;if(t){if(t instanceof Error){const e=new Error("Request aborted");return e.name="AbortError",e.cause=t,e}const e=new Error(String(t));return e.name="AbortError",e}const r=new Error("Request aborted");return r.name="AbortError",r}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{buildQueryString:()=>i});var n=r(268);function i(e){const t=[];for(let r of Object.keys(e).sort()){const i=e[r];if(r=(0,n.escapeUri)(r),Array.isArray(i))for(let e=0,o=i.length;e<o;e++)t.push(`${r}=${(0,n.escapeUri)(i[e])}`);else{let e=r;(i||"string"==typeof i)&&(e+=`=${(0,n.escapeUri)(i)}
1`),t.push(e)}}return t.join("&")}},(e,t,r)=>{"use strict";function n(e,t){return new Request(e,t)}r.r(t),r.d(t,{createRequest:()=>n})},(e,t,r)=>{"use strict";function n(e=0){return new Promise((t,r)=>{e&&setTimeout(()=>{const t=new Error(`Request did not complete within ${e} ms`);t.name="TimeoutError",r(t)},e)})}r.r(t),r.d(t,{requestTimeout:()=>n})},(e,t,r)=>{"use strict";r.r(t),r.d(t,{getRuntimeConfig:()=>m});var n=r(255),i=r(293),o=r(314),a=r(217),s=r(132),l=r(219),c=r(221),u=r(222),p=r(224),d=r(253),h=r(316),f=r(170);const m=e=>({apiVersion:"2015-08-04",base64Decoder:e?.base64Decoder??l.fromBase64,base64Encoder:e?.base64Encoder??c.toBase64,disableHostPrefix:e?.disableHostPrefix??!1,endpointProvider:e?.endpointProvider??h.defaultEndpointResolver,extensions:e?.extensions??[],httpAuthSchemeProvider:e?.httpAuthSchemeProvider??d.defaultFirehoseHttpAuthSchemeProvider,httpAuthSchemes:e?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:e=>e.getIdentityProvider("aws.auth#sigv4"),signer:new n.AwsSdkSigV4Signer}],logger:e?.logger??new a.NoOpLogger,protocol:e?.protocol??i.AwsJson1_1Protocol,protocolSettings:e?.protocolSettings??{defaultNamespace:"com.amazonaws.firehose",errorTypeRegistries:f.errorTypeRegistries,xmlNamespace:"http://firehose.amazonaws.com/doc/2015-08-04",version:"2015-08-04",serviceTarget:"Firehose_20150804"},serviceId:e?.serviceId??"Firehose",sha256:e?.sha256??o.Sha256WebCrypto,urlParser:e?.urlParser??s.parseUrl,utf8Decoder:e?.utf8Decoder??u.fromUtf8,utf8Encoder:e?.utf8Encoder??p.toUtf8})},(e,t,r)=>{"use strict";r.r(t),r.d(t,{AwsJson1_1Protocol:()=>i});var n=r(294);class i extends n.AwsJsonRpcProtocol{constructor({defaultNamespace:e,errorTypeRegistries:t,serviceTarget:r,awsQueryCompatible:n,jsonCodec:i}){super({defaultNamespace:e,errorTypeRegistries:t,serviceTarget:r,awsQueryCompatible:n,jsonCodec:i})}getShapeId(){return"aws.protocols#awsJson1_1"}getJsonRpcVersion(){return"1.1"}getDefaultContentType(){return"application/x-amz-json-1.1"}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{AwsJsonRpcProtocol:()=>c});var n=r(295),i=r(123),o=r(122),a=r(300),s=r(301),l=r(309);class c extends n.RpcProtocol{serializer;deserializer;serviceTarget;codec;mixin;awsQueryCompatible;constructor({defaultNamespace:e,errorTypeRegistries:t,serviceTarget:r,awsQueryCompatible:n,jsonCodec:i}){super({defaultNamespace:e,errorTypeRegistries:t}
1),this.serviceTarget=r,this.codec=i??new s.JsonCodec2({timestampFormat:{useTrait:!0,default:7},jsonName:!1}),this.serializer=this.codec.createSerializer(),this.deserializer=this.codec.createDeserializer(),this.awsQueryCompatible=!!n,this.mixin=new a.ProtocolLib(this.awsQueryCompatible)}async serializeRequest(e,t,r){const n=await super.serializeRequest(e,t,r);return n.path.endsWith("/")||(n.path+="/"),n.headers["content-type"]=`application/x-amz-json-${this.getJsonRpcVersion()}`,n.headers["x-amz-target"]=`${this.serviceTarget}.${e.name}`,this.awsQueryCompatible&&(n.headers["x-amzn-query-mode"]="true"),"unit"!==(0,i.deref)(e.input)&&n.body||(n.body="{}"),n}getPayloadCodec(){return this.codec}async handleError(e,t,r,n,i){const{awsQueryCompatible:a}=this;a&&this.mixin.setQueryCompatError(n,r);const s=(0,l.loadJsonRpcErrorCode)(r,n,a)??"Unknown";this.mixin.compose(this.compositeErrorRegistry,s,this.options.defaultNamespace);const{errorSchema:c,errorMetadata:u}=await this.mixin.getErrorSchemaOrThrowBaseException(s,this.options.defaultNamespace,r,n,i,a?this.mixin.findQueryCompatibleError:void 0),p=o.NormalizedSchema.of(c),d=n.message??n.Message??"UnknownError",h=new(this.compositeErrorRegistry.getErrorCtor(c)??Error)({}),f={},m=this.codec.createDeserializer();for(const[e,t]of p.structIterator())null!=n[e]&&(f[e]=m.readObject(t,n[e]));throw a&&this.mixin.queryCompatOutput(n,f),this.mixin.decorateServiceException(Object.assign(h,u,{$fault:p.getMergedTraits().error,message:d},f),n)}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{RpcProtocol:()=>l});var n=r(131),i=r(122),o=r(188),a=r(296),s=r(299);class l extends a.HttpProtocol{async serializeRequest(e,t,r){const n=this.serializer,a={},s={},l=await r.endpoint(),c=i.NormalizedSchema.of(e?.input),u=c.getSchema();let p;const d=t&&"object"==typeof t?t:{},h=new o.HttpRequest({protocol:"",hostname:"",port:void 0,path:"/",fragment:void 0,query:a,headers:s,body:void 0});if(l&&(this.updateServiceEndpoint(h,l),this.setHostPrefix(h,e,d)),d){const e=c.getEventStreamMember();if(e){if(d[e]){const t={};for(const[r]of c.structIterator())r!==e&&null!=d[r]&&(t[r]=d[r]);p=await this.serializeEventStream({eventStream:d[e],requestSchema:c,initialRequest:t})}}else n.write(u,d),p=n.flush()}return h.headers=Object.assign(h.headers,s),h.query=a,h.body=p,h.method="POST",h}async deserializeResponse(e,t,r){const o=this.deserializer,a=i.NormalizedSchema.of(e.output),l={};if(r.statusCode>=300){const n=await(0,s.collectBody)(r.body,t);throw n.byteLength>0&&Object.assign(l,await o.read(15,n)),await this.handleError(e,t,r,l,this.deserializeMetadata(r)),new Error("@smithy/core/protocols - RPC Protocol error handler failed to throw.")}for(const e in r.headers){if(!(0,n.hasOwn)(r.headers,e))continue;const t=r.headers[e];delete r.headers[e],r.headers[e.toLowerCase()]=t}const c=a.getEventStreamMember();if(c)l[c]=await this.deserializeEventStream({response:r,responseSchema:a,initialResponseContainer:l});else{const e=await(0,s.collectBody)(r.body,t);e.byteLength>0&&Object.assign(l,await o.read(a,e))}return l.$metadata=this.deserializeMetadata(r),l}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{HttpProtocol:()=>p});var n=r(131),i=r(122),o=r(124),a=r(171),s=r(188),l=r(241),c=r(297),u=r(298);class p extends u.SerdeContext{options;compositeErrorRegistry;constructor(e){super(),this.options=e,this.compositeErrorRegistry=a.TypeRegistry.for(e.defaultNamespace);for(const t of e.errorTypeRegistries??[])this.compositeErrorRegistry.copyFrom(t)}getRequestType(){return s.HttpRequest}getResponseType(){return l.HttpResponse}setSerdeContext(e){this.serdeContext=e,this.serializer.setSerdeContext(e),this.deserializer.setSerdeContext(e),this.getPayloadCodec()&&this.getPayloadCodec().setSerdeContext(e)}updateServiceEndpoint(e,t){if("url"in t){e.protocol=t.url.protocol,e.hostname=t.url.hostname,e.port=t.url.port?Number(t.url.port):void 0,e.path=t.url.pathname,e.fragment=t.url.hash||void 0,e.username=t.url.username||void 0,e.password=t.url.password||void 0,e.query||(e.query={});for(const[r,n]of t.url.searchParams.entries())e.query[r]=n;if(t.headers)for(const r in t.headers)(0,n.hasOwn)(t.headers,r)&&(e.headers[r]=t.headers[r].join(", "));return e}if(e.protocol=t.protocol,e.hostname=t.hostname,e.port=t.port?Number(t.port):void 0,e.path=t.path,e.query={...t.query},t.headers)for(const r in t.headers)(0,n.hasOwn)(t.headers,r)&&(e.headers[r]=t.headers[r]);return e}setHostPrefix(e,t,r){if(this.serdeContext?.disableHostPrefix)return;const n=i.NormalizedSchema.of(t.input),a=(0,o.translateTraits)(t.traits??{});if(a.endpoint){let t=a.endpoint?.[0];if("string"==typeof t){for(const[e,i]of n.structIterator()){if(!i.getMergedTraits().hostLabel)continue;const n=r[e];if("string"!=typeof n)throw new Error(`@smithy/core/schema - ${e} in input must be a string as hostLabel.`);t=t.replace(`{${e}}`,n)}if(e.hostname=t+e.hostname,!(0,c.isValidHostname)(e.hostname))throw new Error(`[${e.hostname}] is not a valid hostname.`)}}}deserializeMetadata(e){return{httpStatusCode:e.statusCode,requestId:e.headers["x-amzn-requestid"]??e.headers["x-amzn-request-id"]??e.headers["x-amz-request-id"],extendedRequestId:e.headers["x-amz-id-2"],cfId:e.headers["x-amz-cf-id"]}}async serializeEventStream({eventStream:e,requestSchema:t,initialRequest:r}){return(await this.loadEventStreamCapability()).serializeEventStream({eventStream:e,requestSchema:t,initialRequest:r})}async deserializeEventStream({response:e,responseSchema:t,initialResponseContainer:r}){return(await this.loadEventStreamCapability()).deserializeEventStream({response:e,responseSchema:t,initialResponseContainer:r})}async loadEventStreamCapability(){const{EventStreamSerde:e,eventStreamSerdeProvider:t}=await r.e("vendors").then(()=>r(1586));return new e({marshaller:this.resolveEventStreamMarshaller(t),serializer:this.serializer,deserializer:this.deserializer,serdeContext:this.serdeContext,defaultContentType:this.getDefaultContentType(),compositeErrorRegistry:this.compositeErrorRegistry})}resolveEventStreamMarshaller(e){const t=this.serdeContext;return t.eventStreamMarshaller?t.eventStreamMarshaller:e(this.serdeContext)}getDefaultContentType(){throw new Error(`@smithy/core/protocols - ${this.constructor.name} getDefaultContentType() implementation missing.`)}async deserializeHttpMessage(e,t,r,n,i){return[]}getEventStreamMarshaller(){const e=this.serdeContext;if(!e.eventStreamMarshaller)throw new Error("@smithy/core - HttpProtocol: eventStreamMarshaller missing in serdeContext.");return e.eventStreamMarshaller}}},(e,t,r)=>{"use strict";function n(e){return/^[a-z0-9][a-z0-9.-]*[a-z0-9]$/.test(e)}r.r(t),r.d(t,{isValidHostname:()=>n})},(e,t,r)=>{"use strict";r.r(t),r.d(t,{SerdeContext:()=>n});
1class n{serdeContext;setSerdeContext(e){this.serdeContext=e}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{collectBody:()=>i});var n=r(218);const i=async(e=new Uint8Array,t)=>{if(e instanceof Uint8Array)return n.Uint8ArrayBlobAdapter.mutate(e);if(!e)return n.Uint8ArrayBlobAdapter.mutate(new Uint8Array);const r=t.streamCollector(e);return n.Uint8ArrayBlobAdapter.mutate(await r)}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{ProtocolLib:()=>a});var n=r(174),i=r(122),o=r(171);class a{queryCompat;errorRegistry;constructor(e=!1){this.queryCompat=e}resolveRestContentType(e,t){const r=t.getMemberSchemas(),n=Object.values(r).find(e=>!!e.getMergedTraits().httpPayload);if(n){const t=n.getMergedTraits().mediaType;return t||(n.isStringSchema()?"text/plain":n.isBlobSchema()?"application/octet-stream":e)}if(!t.isUnitSchema()){if(Object.values(r).find(e=>{const{httpQuery:t,httpQueryParams:r,httpHeader:n,httpLabel:i,httpPrefixHeaders:o}=e.getMergedTraits();return!t&&!r&&!n&&!i&&void 0===o}))return e}}async getErrorSchemaOrThrowBaseException(e,t,r,n,i,o){let a=e;e.includes("#")&&([,a]=e.split("#"));const s={$metadata:i,$fault:r.statusCode<500?"client":"server"};if(!this.errorRegistry)throw new Error("@aws-sdk/core/protocols - error handler not initialized.");try{return{errorSchema:o?.(this.errorRegistry,a)??this.errorRegistry.getSchema(e),errorMetadata:s}}catch(e){n.message=n.message??n.Message??"UnknownError";const t=this.errorRegistry,r=t.getBaseException();if(r){const e=t.getErrorCtor(r)??Error;throw this.decorateServiceException(Object.assign(new e({name:a}),s),n)}const i=n,o=i?.message??i?.Message??i?.Error?.Message??i?.Error?.message;throw this.decorateServiceException(Object.assign(new Error(o),{name:a},s),n)}}compose(e,t,r){let n=r;t.includes("#")&&([n]=t.split("#"));const i=o.TypeRegistry.for(n),a=o.TypeRegistry.for("smithy.ts.sdk.synthetic."+r);e.copyFrom(i),e.copyFrom(a),this.errorRegistry=e}decorateServiceException(e,t={}){if(this.queryCompat){const r=e.Message??t.Message,i=(0,n.decorateServiceException)(e,t);r&&(i.message=r);const o=i.Error??{};o.Type=i.Error?.Type,o.Code=i.Error?.Code,o.Message=i.Error?.message??i.Error?.Message??r,i.Error=o;const a=i.$metadata.requestId;return a&&(i.RequestId=a),i}return(0,n.decorateServiceException)(e,t)}setQueryCompatError(e,t){const r=t.headers?.["x-amzn-query-error"];if(void 0!==e&&null!=r){const[t,n]=r.split(";"),i=Object.keys(e),o={Code:t,Type:n};e.Code=t,e.Type=n;for(let t=0;t<i.length;t++){const r=i[t];o["message"===r?"Message":r]=e[r]}delete o.__type,e.Error=o}}queryCompatOutput(e,t){e.Error&&(t.Error=e.Error),e.Type&&(t.Type=e.Type),e.Code&&(t.Code=e.Code)}findQueryCompatibleError(e,t){try{return e.getSchema(t)}catch(r){return e.find(e=>i.NormalizedSchema.of(e).getMergedTraits().awsQueryError?.[0]===t)}}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{JsonCodec2:()=>a});var n=r(302),i=r(303),o=r(312);class a extends n.SerdeContextConfig{settings;constructor(e){super(),this.settings=e}createSerializer(){const e=new o.JsonShapeSerializer2(this.settings);return e.setSerdeContext(this.serdeContext),e}createDeserializer(){const e=new i.JsonShapeDeserializer2(this.settings);return e.setSerdeContext(this.serdeContext),e}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{SerdeContextConfig:()=>n});class n{serdeContext;setSerdeContext(e){this.serdeContext=e}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{JsonShapeDeserializer2:()=>g});var n=r(304),i=r(122),o=r(219),a=r(226),s=r(228),l=r(229),c=r(302),u=r(305),p=r(306),d=r(307),h=r(308),f=r(309),m=r(311);class g extends c.SerdeContextConfig{settings;constructor(e){super(),this.settings=e}async read(e,t){const r=(0,h.needsReviver)(e)?d.jsonReviver:void 0;let n;if("string"==typeof t){if(0===t.length)return{};n=JSON.parse(t,r)}else if(t instanceof Uint8Array&&(0,p.detectBufferParsing)()){if(0===t.byteLength)return{};const e=Buffer.isBuffer(t)?t:Buffer.from(t.buffer,t.byteOffset,t.byteLength);n=JSON.parse(e,r)}else n=await(0,f.parseJsonBody)(t,this.serdeContext,e);return this._read(e,n)}readObject(e,t){return this._read(e,t)}_read(e,t){const r=null!==t&&"object"==typeof t,c=i.NormalizedSchema.of(e);
1if(r){if(c.isStructSchema())return this._readStruct(c,t);if(Array.isArray(t)&&c.isListSchema()){const e=c.getValueSchema();if(this.needsTransform(e))for(let r=0;r<t.length;++r)t[r]=this._read(e,t[r]);return t}if(c.isMapSchema()){const e=c.getValueSchema(),r=t;if(this.needsTransform(e))for(const t in r)"__proto__"===t&&(0,m.writeKey)(r),r[t]=this._read(e,r[t]);return r}}if(c.isBlobSchema()&&"string"==typeof t)return(0,o.fromBase64)(t);const u=c.getMergedTraits().mediaType;if(c.isStringSchema()&&"string"==typeof t&&u){return"application/json"===u||u.endsWith("+json")?s.LazyJsonString.from(t):t}if(c.isTimestampSchema()&&null!=t){switch((0,n.determineTimestampFormat)(c,this.settings)){case 5:return(0,a.parseRfc3339DateTimeWithOffset)(t);case 6:return(0,a.parseRfc7231DateTime)(t);case 7:return(0,a.parseEpochTimestamp)(t);default:return console.warn("Missing timestamp format, parsing value with Date constructor:",t),new Date(t)}}if(c.isBigIntegerSchema()&&("number"==typeof t||"string"==typeof t))return BigInt(t);if(c.isBigDecimalSchema()&&null!=t){if(t instanceof l.NumericValue)return t;const e=t;return"bigDecimal"===e.type&&"string"in e?new l.NumericValue(e.string,e.type):new l.NumericValue(String(t),"bigDecimal")}if(c.isNumericSchema()&&"string"==typeof t){switch(t){case"Infinity":return 1/0;case"-Infinity":return-1/0;case"NaN":return NaN}return t}if(c.isDocumentSchema()&&r)if(Array.isArray(t))for(let e=0;e<t.length;++e){const r=t[e];r instanceof l.NumericValue||(t[e]=this._read(c,r))}else{const e=t;for(const t in e){"__proto__"===t&&(0,m.writeKey)(e);const r=e[t];r instanceof l.NumericValue||(e[t]=this._read(c,r))}}return t}_readStruct(e,t){const r=e.isUnionSchema(),n={};let i;const o="string"==typeof t.__type,{jsonName:a}=this.settings;let s;a&&o&&(i={}),r&&(s=new u.UnionSerde(t,n));for(const[l,c]of e.structIterator()){let e=l;a&&(e=c.getMergedTraits().jsonName??e,o&&(i[e]=l)),r&&s.mark(e),null!=t[e]&&(n[l]=this._read(c,t[e]))}if(r)s.writeUnknown();else if(o)for(const e in t){const r=t[e],o=a?i[e]??e:e;o in n||(n[o]=r)}return n}needsTransform(e){return!!(e.isBlobSchema()||e.isTimestampSchema()||e.isBigIntegerSchema()||e.isBigDecimalSchema())||(!!(e.isDocumentSchema()||e.isStructSchema()||e.isListSchema()||e.isMapSchema())||!(!e.isStringSchema()||!e.getMergedTraits().mediaType))}}},(e,t,r)=>{"use strict";function n(e,t){if(t.timestampFormat.useTrait&&e.isTimestampSchema()&&(5===e.getSchema()||6===e.getSchema()||7===e.getSchema()))return e.getSchema();const{httpLabel:r,httpPrefixHeaders:n,httpHeader:i,httpQuery:o}=e.getMergedTraits();return(t.httpBindings?"string"==typeof n||Boolean(i)?6:Boolean(o)||Boolean(r)?5:void 0:void 0)??t.timestampFormat.default}r.r(t),r.d(t,{determineTimestampFormat:()=>n})},(e,t,r)=>{"use strict";r.r(t),r.d(t,{UnionSerde:()=>n});class n{from;to;keys;constructor(e,t){this.from=e,this.to=t;const r=Object.keys(this.from),n=new Set(r);n.delete("__type"),this.keys=n}mark(e){this.keys.delete(e)}hasUnknown(){return 1===this.keys.size&&0===Object.keys(this.to).length}writeUnknown(){if(this.hasUnknown()){const e=this.keys.values().next().value,t=this.from[e];this.to.$unknown=[e,t]}}}},(e,t,r)=>{"use strict";let n;function i(){if(void 0===n)try{if("function"!=typeof Buffer)n=!1;else{const e=JSON.parse(Buffer.from([123,125]));n=null!==e&&"object"==typeof e}}catch{n=!1}return n}r.r(t),r.d(t,{detectBufferParsing:()=>i})},(e,t,r)=>{"use strict";r.r(t),r.d(t,{jsonReviver:()=>i});var n=r(229);function i(e,t,r){if(r?.source){const e=r.source;if("number"==typeof t){return t<=Number.MAX_SAFE_INTEGER&&t>=Number.MIN_SAFE_INTEGER?function(e,t){if(e===String(t))return!0;if(Object.is(t,-0))return!0;if(/[eE]/.test(e))return o(e)===o(String(t));const r=e.replace(/(\.\d*?)0+$/,"$1").replace(/\.$/,""),n=String(t);if(r===n)return!0;if(/[eE]/.test(n))return r===o(n);return!1}(e,t)?t:new n.NumericValue(e,"bigDecimal"):function(e){const t=e.indexOf(".");if(-1===t)return!1;const r=e.search(/[eE]/);if(-1===r)return!0;const n=r-t-1;return parseInt(e.slice(r+1),10)<n}(e)?new n.NumericValue(e,"bigDecimal"):/[eE]/.test(e)?function(e){const t=e.search(/[eE]/),r=parseInt(e.slice(t+1),10),n=e.startsWith("-"),i=e.slice(n?1:0,t),o=i.indexOf(".");let a,s;if(-1===o)a=i,s=r;else{a=i.slice(0,o)+i.slice(o+1);s=r-(i.length-o-1)}a=a.replace(/0+$/,"")||"0";
1const l=BigInt(a)*10n**BigInt(s+(i.replace(".","").length-a.length));return n?-l:l}(e):BigInt(e)}}return t}function o(e){const t=e.startsWith("-"),r=t?e.slice(1):e,n=r.search(/[eE]/);let i;if(-1===n)i=r;else{const e=parseInt(r.slice(n+1),10),t=r.slice(0,n),o=t.indexOf(".");let a,s;-1===o?(a=t,s=t.length):(a=t.slice(0,o)+t.slice(o+1),s=o),a=a.replace(/0+$/,"")||"0";const l=s+e;i="0"===a?"0":l<=0?"0."+"0".repeat(-l)+a:l>=a.length?a+"0".repeat(l-a.length):a.slice(0,l)+"."+a.slice(l)}return i.includes(".")&&(i=i.replace(/(\.\d*?)0+$/,"$1").replace(/\.$/,"")),(t?"-":"")+i}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{needsReviver:()=>o});var n=r(122);const i=Symbol.for("@aws-sdk/reviver");function o(e){const t=n.NormalizedSchema.of(e),r=t.getSchema();if(Array.isArray(r)&&t.isStructSchema()){if(i in r)return r[i];const e=a(t,new Set);return r[i]=e,e}return a(t,new Set)}function a(e,t){const r=e.getSchema();if(t.has(r))return!1;if(t.add(r),e.isBigIntegerSchema()||e.isBigDecimalSchema())return!0;if(e.isStructSchema()){for(const[,r]of e.structIterator())if(a(r,t))return!0}else if(e.isListSchema()||e.isMapSchema()){if(a(e.getValueSchema(),t))return!0}else if(e.isDocumentSchema())return!0;return!1}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{loadJsonRpcErrorCode:()=>h,loadRestJsonErrorCode:()=>d,parseJsonBody:()=>l,parseJsonErrorBody:()=>c});var n=r(299),i=r(310),o=r(306),a=r(307),s=r(308);async function l(e,t,r){let l;if((0,o.detectBufferParsing)()&&"function"==typeof e?.[Symbol.asyncIterator]){const r=await(0,n.collectBody)(e,t);"function"==typeof Buffer&&(l=Buffer.isBuffer(r)?r:Buffer.from(r.buffer,r.byteOffset,r.byteLength))}if(l||(l=await(0,i.collectBodyString)(e,t)),0===l.length)return{};const c=r&&(0,s.needsReviver)(r)?a.jsonReviver:void 0;try{return JSON.parse(l,c)}catch(e){throw"SyntaxError"===e?.name&&Object.defineProperty(e,"$responseBodyText",{value:"string"==typeof l?l:l.toString("utf8")}),e}}const c=async(e,t)=>{const r=await l(e,t);return r.message=r.message??r.Message,r},u=(e,t)=>Object.keys(e).find(e=>e.toLowerCase()===t.toLowerCase()),p=e=>{let t=e;return"number"==typeof t&&(t=t.toString()),t.indexOf(",")>=0&&(t=t.split(",")[0]),t.indexOf(":")>=0&&(t=t.split(":")[0]),t.indexOf("#")>=0&&(t=t.split("#")[1]),t},d=(e,t)=>f(e,t,["header","code","type"]),h=(e,t,r=!1)=>f(e,t,r?["code","header","type"]:["type","code","header"]),f=({headers:e},t,r)=>{for(;r.length>0;){switch(r.shift()){case"header":const r=u(e??{},"x-amzn-errortype");if(void 0!==r)return p(e[r]);break;case"code":const n=u(t??{},"code");if(n&&void 0!==t[n])return p(t[n]);break;case"type":if(void 0!==t?.__type)return p(t.__type)}}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{collectBodyString:()=>o});var n=r(299),i=r(224);const o=(e,t)=>(0,n.collectBody)(e,t).then(e=>(t?.utf8Encoder??i.toUtf8)(e))},(e,t,r)=>{"use strict";function n(e){Object.defineProperty(e,"__proto__",{value:void 0,writable:!0,enumerable:!0,configurable:!0})}r.r(t),r.d(t,{writeKey:()=>n})},(e,t,r)=>{"use strict";r.r(t),r.d(t,{JsonShapeSerializer2:()=>v});var n=r(304),i=r(122),o=r(218),a=r(221),s=r(226),l=r(228),c=r(229),u=r(302),p=r(313);const d=new TextEncoder,h=34,f=new Uint8Array([116,114,117,101]),m=new Uint8Array([102,97,108,115,101]),g=new Uint8Array([110,117,108,108]),y=new Array(128).fill(null);y[8]="b",y[9]="t",y[10]="n",y[12]="f",y[13]="r",y[34]='"',y[92]="\\";for(let e=0;e<32;e++)null===y[e]&&(y[e]="u00"+e.toString(16).padStart(2,"0"));function b(e){return p.JsonBytesStringAdapter.allocUnsafe(e)}class v extends u.SerdeContextConfig{settings;json;i=0;rootSchema;rawValue;passthrough=!1;constructor(e){super(),this.settings=e,this.json=b(2048)}write(e,t){this.i=0,this.rawValue=t,this.rootSchema=i.NormalizedSchema.of(e),this.passthrough=this.rootSchema.isBlobSchema()||this.rootSchema.isStringSchema(),this.passthrough||this.writeValue(this.rootSchema,t,void 0)}writeDiscriminatedDocument(e,t){this.i=0,this.rootSchema=i.NormalizedSchema.of(e);const r=this.rootSchema;if(r.isStructSchema()&&null!=t&&"object"==typeof t){this.writeValue(r,t,void 0);const e=`"__type":"${r.getName(!0)??"Unknown"}",`,n=e.length;this.ensure(n),this.json.copyWithin(1+n,1,this.i),d.encodeInto(e,this.json.subarray(1)),this.i+=n}else this.writeValue(r,t,void 0)}flush(){this.rootSchema=void 0;const e=this.i;this.i=0;const t=this.rawValue;if(this.rawValue=void 0,0===e)return t;const r=this.json.subarray(0,e);return this.json=b(2048),r}ensure(e){const{i:t,json:r}=this;if(t+e>r.length){let n=2*r.length;for(;n<t+e;)n*=2;const i=b(n);i.set(this.json),this.json=i}}writeAscii(e){const t=e.length;this.ensure(t);let{i:r,json:n}=this;for(let i=0;i<t;++i)n[r]=e.charCodeAt(i),r+=1;this.i=r}writeAsciiQuoted(e){const t=e.length;this.ensure(t+4);let{json:r,i:n}=this;r[n++]=h;for(let i=0;i<t;++i)r[n++]=e.charCodeAt(i);r[n++]=h,this.i=n}writeJsonString(e){this.ensure(3*e.length+2),this.json[this.i++]=h;const t=e.length;for(let r=0;r<t;++r){const n=e.charCodeAt(r);if(n>34&&n<92)this.json[this.i++]=n;else if(n<128){const e=y[n];if(null!==e){this.ensure(e.length+1),this.json[this.i++]=92;for(let t=0;t<e.length;t++)this.json[this.i++]=e.charCodeAt(t)}else this.json[this.i++]=n}else if(n>=55296&&n<=56319){const i=r+1<t?e.charCodeAt(r+1):0;if(i>=56320&&i<=57343){this.ensure(4);const{written:t}=d.encodeInto(e.substring(r,r+2),this.json.subarray(this.i));this.i+=t,++r}else this.ensure(6),this.writeUnicodeEscape(n)}else if(n>=56320&&n<=57343)this.ensure(6),this.writeUnicodeEscape(n);else{let{i:e,json:t}=this;
1n<2048?(t[e++]=192|n>>6,t[e++]=128|63&n):(t[e++]=224|n>>12,t[e++]=128|n>>6&63,t[e++]=128|63&n),this.i=e}}this.json[this.i++]=h}writeUnicodeEscape(e){let{json:t,i:r}=this;t[r++]=92,t[r++]=117;const n=e.toString(16).padStart(4,"0");for(let e=0;e<4;++e)t[r++]=n.charCodeAt(e);this.i=r}static B64=(()=>{const e=new Uint8Array(64);for(let t=0;t<64;++t)e[t]="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charCodeAt(t);return e})();writeBase64(e){const t=4*Math.ceil(e.length/3);this.ensure(t+2);const r=this.json,n=v.B64;let i=this.i;r[i++]=h;const o=e.length,a=o%3,s=o-a;for(let t=0;t<s;t+=3){const o=e[t],a=e[t+1],s=e[t+2];r[i++]=n[o>>2],r[i++]=n[(3&o)<<4|a>>4],r[i++]=n[(15&a)<<2|s>>6],r[i++]=n[63&s]}if(2===a){const t=e[s],o=e[s+1];r[i++]=n[t>>2],r[i++]=n[(3&t)<<4|o>>4],r[i++]=n[(15&o)<<2],r[i++]=61}else if(1===a){const t=e[s];r[i++]=n[t>>2],r[i++]=n[(3&t)<<4],r[i++]=61,r[i++]=61}r[i++]=h,this.i=i}writeValue(e,t,r){if(null==t){if(r?.isStructSchema()){if(void 0===t){if(i.NormalizedSchema.of(e).isIdempotencyToken())return void this.writeAsciiQuoted((0,o.generateIdempotencyToken)())}return}return this.ensure(4),this.json.set(g,this.i),void(this.i+=4)}const n=i.NormalizedSchema.of(e),s="object"==typeof t;if(n.isStringSchema()){const e=n.getMergedTraits().mediaType;if(e){if("application/json"===e||e.endsWith("+json"))return void this.writeJsonString(l.LazyJsonString.from(t).toString())}}if(s){if(n.isStructSchema())return void this.writeStruct(n,t);if(Array.isArray(t)&&(n.isListSchema()||n.isDocumentSchema()))return void this.writeList(n,t,n.isDocumentSchema());if(n.isMapSchema())return void this.writeMap(n,t,!1);if(t instanceof Uint8Array&&(n.isBlobSchema()||n.isDocumentSchema()))return void this.writeBase64(t);if(t instanceof Date&&(n.isTimestampSchema()||n.isDocumentSchema()))return void this.writeTimestamp(n,t);if(t instanceof c.NumericValue)return void this.writeAscii(t.string);if(n.isDocumentSchema())return void(Array.isArray(t)?this.writeList(n,t,!0):this.writeMap(n,t,!0));const e=JSON.stringify(t);return void this.writeAscii(e)}if("string"!=typeof t){if("number"==typeof t){if(Math.abs(t)===1/0||Number.isNaN(t))return void this.writeAsciiQuoted(String(t));const e=String(t);return void this.writeAscii(e)}if("boolean"==typeof t){this.ensure(5);let{i:e,json:r}=this;return t?(r.set(f,e),e+=4):(r.set(m,e),e+=5),void(this.i=e)}"bigint"!=typeof t?this.writeAscii(String(t)):this.writeAscii(t.toString())}else{if(n.isBlobSchema()){const e=(this.serdeContext?.base64Encoder??a.toBase64)(t);return void this.writeAsciiQuoted(e)}this.writeJsonString(t)}}writeStruct(e,t){this.ensure(2),this.json[this.i++]=123;let r=!1;const n="string"==typeof t.__type;let i;n&&(i=new Set);for(const[n,o]of e.structIterator()){const a=t[n];if(null==a&&!o.isIdempotencyToken())continue;r&&(this.ensure(1),this.json[this.i++]=44),r=!0;const s=this.settings.jsonName?o.getMergedTraits().jsonName??n:n;i&&(i.add(n),i.add(s)),this.writeAsciiQuoted(s),this.json[this.i++]=58,this.writeValue(o,a,e)}
1if(!r&&e.isUnionSchema()){const{$unknown:r}=t;if(Array.isArray(r)){const[t,n]=r;this.writeAsciiQuoted(t),this.ensure(1),this.json[this.i++]=58,this.writeValue(15,n,e)}}else if(n)for(const e in t){if(i.has(e))continue;i.add(e);const n=t[e];r&&(this.ensure(1),this.json[this.i++]=44),r=!0,this.writeAsciiQuoted(e),this.ensure(1),this.json[this.i++]=58,this.writeValue(15,n,void 0)}this.ensure(1),this.json[this.i++]=125}writeList(e,t,r){const n=!!e.getMergedTraits().sparse,i=e.getValueSchema();if(!r&&(i.isStringSchema()||i.isNumericSchema()||i.isBooleanSchema())){let e,r=!1;for(let e=0;e<t.length;++e){const i=t[e];if(Number.isNaN(i)||i===1/0||i===-1/0||null==i&&!n){r=!0;break}}if(r){const r=[];for(let e=0;e<t.length;++e){const i=t[e];(null!=i||n)&&(Number.isNaN(i)||i===1/0||i===-1/0?r.push(String(i)):r.push(i))}e=JSON.stringify(r)}else e=JSON.stringify(t);return this.ensure(3*e.length),void(this.i+=d.encodeInto(e,this.json.subarray(this.i)).written)}this.ensure(2),this.json[this.i++]=91;let o=!1;for(let e=0;e<t.length;++e){const a=t[e];(r?void 0!==a:null!=a||n)&&(o&&(this.ensure(1),this.json[this.i++]=44),this.writeValue(i,a,void 0),o=!0)}this.ensure(1),this.json[this.i++]=93}writeMap(e,t,r){const n=!!e.getMergedTraits().sparse,i=e.getValueSchema();if(!r&&(i.isStringSchema()||i.isNumericSchema()||i.isBooleanSchema())){let e;for(const r in t){const i=t[r];Number.isNaN(i)||i===1/0||i===-1/0?((e??={})[r]=i,t[r]=String(i)):null!==i||n||((e??={})[r]=null,t[r]=void 0)}const r=JSON.stringify(t);return e&&Object.assign(t,e),this.ensure(3*r.length),void(this.i+=d.encodeInto(r,this.json.subarray(this.i)).written)}this.ensure(2),this.json[this.i++]=123;let o=!0;for(const e in t){const a=t[e];(r?void 0!==a:null!=a||n)&&(o||(this.ensure(1),this.json[this.i++]=44),o=!1,this.writeJsonString(e),this.ensure(1),this.json[this.i++]=58,this.writeValue(i,a,void 0))}this.ensure(1),this.json[this.i++]=125}writeTimestamp(e,t){switch((0,n.determineTimestampFormat)(e,this.settings)){case 5:{const e=t.toISOString().replace(".000Z","Z");return void this.writeAsciiQuoted(e)}case 6:return void this.writeAsciiQuoted((0,s.dateToUtcString)(t));case 7:{const e=String(t.getTime()/1e3);return void this.writeAscii(e)}default:{const e=String(t.getTime()/1e3);return void this.writeAscii(e)}}}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{JsonBytesStringAdapter:()=>i});var n=r(224);class i extends Uint8Array{string=null;static allocUnsafe(e){if("function"==typeof Buffer){const t=Buffer.allocUnsafe(e);return new i(t.buffer,t.byteOffset,t.byteLength)}return new i(e)}toString(){return this.s()}valueOf(){return this.s()}includes(e,t){return"string"==typeof e?this.s().includes(e,t):Uint8Array.prototype.includes.call(this,e,t)}indexOf(e,t){return"string"==typeof e?this.s().indexOf(e,t):Uint8Array.prototype.indexOf.call(this,e,t)}lastIndexOf(e,t){if("string"==typeof e)return this.s().lastIndexOf(e,t);const r=Uint8Array.prototype.lastIndexOf;return void 0!==t?r.call(this,e,t):r.call(this,e)}startsWith(e,t){return this.s().startsWith(e,t)}endsWith(e,t){return this.s().endsWith(e,t)}match(e){return this.s().match(e)}replace(e,t){return this.s().replace(e,t)}search(e){return this.s().search(e)}split(e,t){return this.s().split(e,t)}substring(e,t){return this.s().substring(e,t)}trim(){return this.s().trim()}trimStart(){return this.s().trimStart()}trimEnd(){return this.s().trimEnd()}charAt(e){return this.s().charAt(e)}charCodeAt(e){return this.s().charCodeAt(e)}padStart(e,t){return this.s().padStart(e,t)}padEnd(e,t){return this.s().padEnd(e,t)}repeat(e){return this.s().repeat(e)}toUpperCase(){return this.s().toUpperCase()}toLowerCase(){return this.s().toLowerCase()}s(){if(null==this.string){const e=Date.now();e>o+6e4&&(console.warn("@aws-sdk/core/protocols - WARN - JsonCodec2: you have called a string method on a Uint8Array request body. It has been automatically converted to string. In a future version this will throw an error."),o=e),this.string=(0,n.toUtf8)(this)}return this.string}}var o=0},(e,t,r)=>{"use strict";r.r(t),r.d(t,{Sha256WebCrypto:()=>u});var n=r(232),i=r(233),o=r(315);const{digest:a,sign:s,importKey:l}=globalThis?.crypto?.subtle??{},c="function"==typeof a&&"function"==typeof s&&"function"==typeof l?globalThis.crypto.subtle:void 0;class u{digestLength=32;secret;pending=[];
1pendingBytes=0;fallback;finished=!1;constructor(e){e&&(this.secret=(0,n.toUint8Array)(e))}update(e){if(this.finished)throw new Error("Attempted to update an already finished HMAC.");this.fallback?this.fallback.update(e):(this.pending.push(e.slice()),this.pendingBytes+=e.byteLength,this.pendingBytes>=8388608&&this.switchToFallback())}async digest(){if(this.fallback)return this.fallback.digest();if(this.secret&&this.finished)throw new Error("Attempted to digest an already finished HMAC.");const e=(0,i.concatBytes)(this.pending);if(c){if(this.secret){this.finished=!0;const t=await c.importKey("raw",this.secret,{name:"HMAC",hash:"SHA-256"},!1,["sign"]),r=await c.sign("HMAC",t,e);return new Uint8Array(r)}const t=await c.digest("SHA-256",e);return new Uint8Array(t)}const t=new o.Sha256Js(this.secret);return t.update(e),t.digest()}reset(){this.pending=[],this.pendingBytes=0,this.fallback=void 0,this.finished=!1}switchToFallback(){const e=new o.Sha256Js(this.secret);for(const t of this.pending)e.update(t);this.fallback=e,this.pending=[],this.pendingBytes=0}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{Sha256Js:()=>a});var n=r(232);const i=64,o=2**53-1;class a{digestLength=32;state=Int32Array.from(s);w;buffer=new Uint8Array(64);bufferLength=0;bytesHashed=0;finished=!1;inner;outer;constructor(e){if(e){const t=a.normalizeKey(e);this.inner=new a,this.outer=new a;const{inner:r,outer:n}=this,o=new Uint8Array(128);for(let e=0;e<i;++e)o[e]=54^t[e],o[e+i]=92^t[e];r.update(o.subarray(0,i)),n.update(o.subarray(i))}}update(e){if(this.finished)throw new Error("Attempted to update an already finished HMAC.");if(this.inner)return void this.inner.update(e);const t=(0,n.toUint8Array)(e);let r=0,{byteLength:a}=t;if(this.bytesHashed+=a,8*this.bytesHashed>o)throw new Error("Cannot hash more than 2^53 - 1 bits");for(;a>0;)this.buffer[this.bufferLength++]=t[r++],a--,this.bufferLength===i&&(this.hashBuffer(),this.bufferLength=0)}async digest(){const{inner:e,outer:t}=this;if(e&&t){if(this.finished)throw new Error("Attempted to digest an already finished HMAC.");this.finished=!0;const r=e.digestSync();return t.update(r),t.digestSync()}return this.digestSync()}reset(){this.state=Int32Array.from(s),this.buffer=new Uint8Array(64),this.bufferLength=0,this.bytesHashed=0}digestSync(){const e=this.state.slice(),t=this.buffer.slice();let r=this.bufferLength;const n=8*this.bytesHashed,o=new DataView(t.buffer,t.byteOffset,t.byteLength);if(o.setUint8(r++,128),(r-1)%i>=56){for(let e=r;e<i;++e)o.setUint8(e,0);this.hashBufferWith(e,t),r=0}for(let e=r;e<56;++e)o.setUint8(e,0);o.setUint32(56,Math.floor(n/4294967296),!1),o.setUint32(60,n,!1),this.hashBufferWith(e,t);const a=new Uint8Array(32);for(let t=0;t<8;++t)a[4*t]=e[t]>>>24&255,a[4*t+1]=e[t]>>>16&255,a[4*t+2]=e[t]>>>8&255,a[4*t+3]=e[t]>>>0&255;return a}static normalizeKey(e){const t=(0,n.toUint8Array)(e);if(t.byteLength>i){const e=new a;e.update(t);const r=e.digestSync(),n=new Uint8Array(i);return n.set(r),n}if(t.byteLength<i){const e=new Uint8Array(i);return e.set(t),e}return t}hashBuffer(){this.hashBufferWith(this.state,this.buffer)}hashBufferWith(e,t){const r=this.w??=new Int32Array(64);let n=e[0],o=e[1],a=e[2],s=e[3],c=e[4],u=e[5],p=e[6],d=e[7];for(let e=0;e<i;++e){if(e<16)r[e]=(255&t[4*e])<<24|(255&t[4*e+1])<<16|(255&t[4*e+2])<<8|255&t[4*e+3];else{let t=r[e-2];const n=(t>>>17|t<<15)^(t>>>19|t<<13)^t>>>10;t=r[e-15];const i=(t>>>7|t<<25)^(t>>>18|t<<14)^t>>>3;r[e]=(n+r[e-7]|0)+(i+r[e-16]|0)}const i=(((c>>>6|c<<26)^(c>>>11|c<<21)^(c>>>25|c<<7))+(c&u^~c&p)|0)+(d+(l[e]+r[e]|0)|0)|0,h=((n>>>2|n<<30)^(n>>>13|n<<19)^(n>>>22|n<<10))+(n&o^n&a^o&a)|0;d=p,p=u,u=c,c=s+i|0,s=a,a=o,o=n,n=i+h|0}e[0]+=n,e[1]+=o,e[2]+=a,e[3]+=s,e[4]+=c,e[5]+=u,e[6]+=p,e[7]+=d}}const s=new Int32Array([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),l=new Int32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756
1734187,3204031479,3329325298])},(e,t,r)=>{"use strict";r.r(t),r.d(t,{defaultEndpointResolver:()=>c});var n=r(317),i=r(140),o=r(141),a=r(147),s=r(320);const l=new i.EndpointCache({size:50,params:["Endpoint","Region","UseDualStack","UseFIPS"]}),c=(e,t={})=>l.get(e,()=>(0,o.decideEndpoint)(s.bdd,{endpointParams:e,logger:t.logger}));a.customEndpointFunctions.aws=n.awsEndpointFunctions},(e,t,r)=>{"use strict";r.r(t),r.d(t,{awsEndpointFunctions:()=>s});var n=r(147),i=r(318),o=r(319),a=r(194);const s={isVirtualHostableS3Bucket:i.isVirtualHostableS3Bucket,parseArn:o.parseArn,partition:a.partition};n.customEndpointFunctions.aws=s},(e,t,r)=>{"use strict";r.r(t),r.d(t,{isVirtualHostableS3Bucket:()=>o});var n=r(154),i=r(159);const o=(e,t=!1)=>{if(t){for(const t of e.split("."))if(!o(t))return!1;return!0}return!!(0,n.isValidHostLabel)(e)&&(!(e.length<3||e.length>63)&&(e===e.toLowerCase()&&!(0,i.isIpAddress)(e)))}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{parseArn:()=>n});const n=e=>{const t=e.split(":");if(t.length<6)return null;const[r,n,i,o,a,...s]=t;if("arn"!==r||""===n||""===i||""===s.join(":"))return null;return{partition:n,service:i,region:o,accountId:a,resourceId:s.map(e=>e.split("/")).flat()}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{bdd:()=>b});var n=r(139);const i="ref",o=-1,a=!0,s="isSet",l="PartitionResult",c="booleanEquals",u="getAttr",p={[i]:"Endpoint"},d={[i]:l},h={},f=[{[i]:"Region"}],m={conditions:[[s,[p]],[s,f],["aws.partition",f,l],[c,[{[i]:"UseFIPS"},a]],[c,[{[i]:"UseDualStack"},a]],[c,[{fn:u,argv:[d,"supportsDualStack"]},a]],[c,[{fn:u,argv:[d,"supportsFIPS"]},a]]],results:[[o],[o,"Invalid Configuration: FIPS and custom endpoint are not supported"],[o,"Invalid Configuration: Dualstack and custom endpoint are not supported"],[p,h],["https://firehose-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",h],[o,"FIPS and DualStack are enabled, but this partition does not support one or both"],["https://firehose-fips.{Region}.{PartitionResult#dnsSuffix}",h],[o,"FIPS is enabled but this partition does not support FIPS"],["https://firehose.{Region}.{PartitionResult#dualStackDnsSuffix}",h],[o,"DualStack is enabled but this partition does not support DualStack"],["https://firehose.{Region}.{PartitionResult#dnsSuffix}",h],[o,"Invalid Configuration: Missing Region"]]},g=1e8,y=new Int32Array([-1,1,-1,0,12,3,1,4,g+11,2,5,g+11,3,8,6,4,7,g+10,5,g+8,g+9,4,10,9,6,g+6,g+7,5,11,g+5,6,g+4,g+5,3,g+1,13,4,g+2,g+3]),b=n.BinaryDecisionDiagram.from(y,2,m.conditions,m.results)},(e,t,r)=>{"use strict";r.r(t),r.d(t,{resolveRuntimeExtensions:()=>s});var n=r(322),i=r(323),o=r(327),a=r(328);const s=(e,t)=>{const r=Object.assign((0,n.getAwsRegionExtensionConfiguration)(e),(0,i.getDefaultExtensionConfiguration)(e),(0,o.getHttpHandlerExtensionConfiguration)(e),(0,a.getHttpAuthExtensionConfiguration)(e));return t.forEach(e=>e.configure(r)),Object.assign(e,(0,n.resolveAwsRegionExtensionConfiguration)(r),(0,i.resolveDefaultRuntimeConfig)(r),(0,o.resolveHttpHandlerRuntimeConfig)(r),(0,a.resolveHttpAuthRuntimeConfig)(r))}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{getAwsRegionExtensionConfiguration:()=>n,resolveAwsRegionExtensionConfiguration:()=>i});const n=e=>({setRegion(t){e.region=t},region:()=>e.region}),i=e=>({region:e.region()})},(e,t,r)=>{"use strict";r.r(t),r.d(t,{getDefaultClientConfiguration:()=>a,getDefaultExtensionConfiguration:()=>o,resolveDefaultRuntimeConfig:()=>s});var n=r(324),i=r(326);const o=e=>Object.assign((0,n.getChecksumConfiguration)(e),(0,i.getRetryConfiguration)(e)),a=o,s=e=>Object.assign((0,n.resolveChecksumRuntimeConfig)(e),(0,i.resolveRetryRuntimeConfig)(e))},(e,t,r)=>{"use strict";r.r(t),r.d(t,{getChecksumConfiguration:()=>a,resolveChecksumRuntimeConfig:()=>s});var n=r(131),i=r(325);const o=Object.values(i.AlgorithmId),a=e=>{const t=[];for(const r in i.AlgorithmId){if(!(0,n.hasOwn)(i.AlgorithmId,r))continue;const o=i.AlgorithmId[r];void 0!==e[o]&&t.push({algorithmId:()=>o,checksumConstructor:()=>e[o]})}for(const[r,n]of Object.entries(e.checksumAlgorithms??{}))t.push({algorithmId:()=>r,checksumConstructor:()=>n});return{addChecksumAlgorithm(r){e.checksumAlgorithms=e.checksumAlgorithms??{};const n=r.algorithmId(),i=r.checksumConstructor();o.includes(n)?e.checksumAlgorithms[n.toUpperCase()]=i:e.checksumAlgorithms[n]=i,t.pu
1sh(r)},checksumAlgorithms:()=>t}},s=e=>{const t={};return e.checksumAlgorithms().forEach(e=>{const r=e.algorithmId();o.includes(r)&&(t[r]=e.checksumConstructor())}),t}},(e,t,r)=>{"use strict";var n;r.r(t),r.d(t,{AlgorithmId:()=>n,getChecksumConfiguration:()=>i,resolveChecksumRuntimeConfig:()=>o}),function(e){e.MD5="md5",e.CRC32="crc32",e.CRC32C="crc32c",e.SHA1="sha1",e.SHA256="sha256"}(n||(n={}));const i=e=>{const t=[];return void 0!==e.sha256&&t.push({algorithmId:()=>n.SHA256,checksumConstructor:()=>e.sha256}),null!=e.md5&&t.push({algorithmId:()=>n.MD5,checksumConstructor:()=>e.md5}),{addChecksumAlgorithm(e){t.push(e)},checksumAlgorithms:()=>t}},o=e=>{const t={};return e.checksumAlgorithms().forEach(e=>{t[e.algorithmId()]=e.checksumConstructor()}),t}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{getRetryConfiguration:()=>n,resolveRetryRuntimeConfig:()=>i});const n=e=>({setRetryStrategy(t){e.retryStrategy=t},retryStrategy:()=>e.retryStrategy}),i=e=>{const t={};return t.retryStrategy=e.retryStrategy(),t}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{getHttpHandlerExtensionConfiguration:()=>n,resolveHttpHandlerRuntimeConfig:()=>i});const n=e=>(e.logger&&"NoOpLogger"!==e.logger.constructor?.name&&e.requestHandler?.updateHttpClientConfig?.(Symbol.for("logger"),e.logger),{setHttpHandler(t){e.requestHandler=t},httpHandler:()=>e.requestHandler,updateHttpClientConfig(t,r){e.requestHandler?.updateHttpClientConfig(t,r)},httpHandlerConfigs:()=>e.requestHandler.httpHandlerConfigs()}),i=e=>({requestHandler:e.httpHandler()})},(e,t,r)=>{"use strict";r.r(t),r.d(t,{getHttpAuthExtensionConfiguration:()=>n,resolveHttpAuthRuntimeConfig:()=>i});const n=e=>{const t=e.httpAuthSchemes;let r=e.httpAuthSchemeProvider,n=e.credentials;return{setHttpAuthScheme(e){const r=t.findIndex(t=>t.schemeId===e.schemeId);-1===r?t.push(e):t.splice(r,1,e)},httpAuthSchemes:()=>t,setHttpAuthSchemeProvider(e){r=e},httpAuthSchemeProvider:()=>r,setCredentials(e){n=e},credentials:()=>n}},i=e=>({httpAuthSchemes:e.httpAuthSchemes(),httpAuthSchemeProvider:e.httpAuthSchemeProvider(),credentials:e.credentials()})},(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if((0,n.default)(e),!e||/[\s<>]/.test(e))return!1;if(0===e.indexOf("mailto:"))return!1;if((t=(0,l.default)(t,p)).validate_length&&e.length>t.max_allowed_length)return!1;if(!t.allow_fragments&&(0,o.default)(e,"#"))return!1;if(!t.allow_query_components&&((0,o.default)(e,"?")||(0,o.default)(e,"&")))return!1;var r,c,h,f,m,g,y,b;y=e.split("#"),e=y.shift(),y=e.split("?");var v=(e=y.shift()).match(/^([a-z][a-z0-9+\-.]*):/i),_=!1,S=function(n){return _=!0,r=n.toLowerCase(),(!t.require_valid_protocol||-1!==t.protocols.indexOf(r))&&e.substring(v[0].length)};if(v){var E=v[1],T=e.substring(v[0].length);if("//"===T.slice(0,2)){if(!1===(e=S(E)))return!1}else{var w=T.indexOf("/"),x=-1===w?T:T.substring(0,w),O=x.indexOf("@");if(-1!==O){var I=x.substring(0,O),A=/^[a-zA-Z0-9\-_.%:]*$/.test(I),k=/%[0-9a-fA-F]{2}/.test(I);if(A&&!k){if(t.require_protocol)return!1}else if(!1===(e=S(E)))return!1}else{if(/^[0-9]/.test(T)){if(t.require_protocol)return!1}else if(!1===(e=S(E)))return!1}}}else if(t.require_protocol)return!1;if("//"===e.slice(0,2)){if(!_&&!t.allow_protocol_relative_urls)return!1;e=e.slice(2)}if(""===e)return!1;if(y=e.split("/"),""===(e=y.shift())&&!t.require_host)return!0;if((y=e.split("@")).length>1){if(t.disallow_auth)return!1;if(""===y[0])return!1;if((c=y.shift()).indexOf(":")>=0&&c.split(":").length>2)return!1;var R=c.split(":"),C=(N=2,function(e){if(Array.isArray(e))return e}(M=R)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,i,o,a,s=[],l=!0,c=!1;try{if(o=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=o.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(e){c=!0,i=e}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw i}}return s}}(M,N)||function(e,t){if(e){if("string"==typeof e)return u(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?u(e,t):void 0}}
vendor: 4,567 bytes, line 1
1(M,N)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),P=C[0],D=C[1];if(""===P&&""===D)return!1}var M,N;f=y.join("@"),g=null,b=null;var L=f.match(d);L?(h="",b=L[1],g=L[2]||null):(h=(y=f.split(":")).shift(),y.length&&(g=y.join(":")));if(null!==g&&g.length>0){if(m=parseInt(g,10),!/^[0-9]+$/.test(g)||m<=0||m>65535)return!1}else if(t.require_port)return!1;if(t.host_whitelist)return(0,i.default)(h,t.host_whitelist);if(""===h&&!t.require_host)return!0;if(!((0,s.default)(h)||(0,a.default)(h,t)||b&&(0,s.default)(b,6)))return!1;if(h=h||b,t.host_blacklist&&(0,i.default)(h,t.host_blacklist))return!1;return!0};var n=c(r(330)),i=c(r(331)),o=c(r(332)),a=c(r(333)),s=c(r(335)),l=c(r(334));function c(e){return e&&e.__esModule?e:{default:e}}function u(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}var p={protocols:["http","https","ftp"],require_tld:!0,require_protocol:!1,require_host:!0,require_port:!1,require_valid_protocol:!0,allow_underscores:!1,allow_trailing_dot:!1,allow_protocol_relative_urls:!1,allow_fragments:!0,allow_query_components:!0,validate_length:!0,max_allowed_length:2084},d=/^\[([^\]]+)\](?::([0-9]+))?$/;e.exports=t.default,e.exports.default=t.default},(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){if(null==e)throw new TypeError("Expected a string but received a ".concat(e));if("String"!==e.constructor.name)throw new TypeError("Expected a string but received a ".concat(e.constructor.name))},e.exports=t.default,e.exports.default=t.default},(e,t)=>{"use strict";function r(e){return"[object RegExp]"===Object.prototype.toString.call(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){for(var n=0;n<t.length;n++){var i=t[n];if(e===i||r(i)&&i.test(e))return!0}return!1},e.exports=t.default,e.exports.default=t.default},(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default=function(e,t){return-1!==e.indexOf(t)};e.exports=t.default,e.exports.default=t.default},(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){(0,n.default)(e),(t=(0,i.default)(t,a)).allow_trailing_dot&&"."===e[e.length-1]&&(e=e.substring(0,e.length-1));!0===t.allow_wildcard&&0===e.indexOf("*.")&&(e=e.substring(2));var r=e.split("."),o=r[r.length-1];if(t.require_tld){if(r.length<2)return!1;if(!t.allow_numeric_tld&&!/^([a-z\u00A1-\u00A8\u00AA-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}|xn[a-z0-9-]{2,})$/i.test(o))return!1;if(/\s/.test(o))return!1}if(!t.allow_numeric_tld&&/^\d+$/.test(o))return!1;return r.every(function(e){return!(e.length>63&&!t.ignore_max_length)&&(!!/^[a-z_\u00a1-\uffff0-9-]+$/i.test(e)&&(!/[\uff01-\uff5e]/.test(e)&&(!/^-|-$/.test(e)&&!(!t.allow_underscores&&/_/.test(e)))))})};var n=o(r(330)),i=o(r(334));function o(e){return e&&e.__esModule?e:{default:e}}var a={require_tld:!0,allow_underscores:!1,allow_trailing_dot:!1,allow_numeric_tld:!1,allow_wildcard:!1,ignore_max_length:!1};e.exports=t.default,e.exports.default=t.default},(e,t)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;"object"===r(e)&&null!==e||(e={});for(var n in t)void 0===e[n]&&(e[n]=t[n]);return e},e.exports=t.default,e.exports.default=t.default},(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function e(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};(0,i.default)(t);var n=("object"===o(r)?r.version:arguments[1])||"";if(!n)return e(t,{version:4})||e(t,{version:6});if("4"===n.toString())return l.test(t);if("6"===n.toString())return u.test(t);return!1};var n,i=(n=r(330))&&n.__esModule?n:{default:n};function o(e){return o="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},o(e)}var a="(?:[0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])",s="(".concat(a,"[.]){3}").concat(a),l=new RegExp("^".concat(s,"$")),c="(?:[0-9a-fA-F]{1,4})",u=new RegExp("^("+"(?:".concat(c,":){7}
1(?:").concat(c,"|:)|")+"(?:".concat(c,":){6}(?:").concat(s,"|:").concat(c,"|:)|")+"(?:".concat(c,":){5}(?::").concat(s,"|(:").concat(c,"){1,2}|:)|")+"(?:".concat(c,":){4}(?:(:").concat(c,"){0,1}:").concat(s,"|(:").concat(c,"){1,3}|:)|")+"(?:".concat(c,":){3}(?:(:").concat(c,"){0,2}:").concat(s,"|(:").concat(c,"){1,4}|:)|")+"(?:".concat(c,":){2}(?:(:").concat(c,"){0,3}:").concat(s,"|(:").concat(c,"){1,5}|:)|")+"(?:".concat(c,":){1}(?:(:").concat(c,"){0,4}:").concat(s,"|(:").concat(c,"){1,6}|:)|")+"(?::((?::".concat(c,"){0,5}:").concat(s,"|(?::").concat(c,"){1,7}|:))")+")(%[0-9a-zA-Z.]{1,})?$");e.exports=t.default,e.exports.default=t.default},,,,,,,,,(e,t,r)=>{"use strict";var n=r(341);t.createRoot=n.createRoot,t.hydrateRoot=n.hydrateRoot},(e,t,r)=>{"use strict";r.r(t),r.d(t,{addEventProcessor:()=>D,captureCheckIn:()=>I,captureEvent:()=>g,captureException:()=>f,captureMessage:()=>m,captureSession:()=>F,close:()=>R,endSession:()=>N,flush:()=>k,isEnabled:()=>P,isInitialized:()=>C,lastEventId:()=>O,setAttribute:()=>T,setAttributes:()=>E,setContext:()=>y,setConversationId:()=>x,setExtra:()=>v,setExtras:()=>b,setTag:()=>S,setTags:()=>_,setUser:()=>w,startSession:()=>M,withMonitor:()=>A});var n=r(346),i=r(354),o=r(355),a=r(371),s=r(358),l=r(359),c=r(356),u=r(396),p=r(400),d=r(365),h=r(350);function f(e,t){return(0,n.getCurrentScope)().captureException(e,(0,u.parseEventHintOrCaptureContext)(t))}function m(e,t){const r="string"==typeof t?t:void 0,i="string"!=typeof t?{captureContext:t}:void 0;return(0,n.getCurrentScope)().captureMessage(e,r,i)}function g(e,t){return(0,n.getCurrentScope)().captureEvent(e,t)}function y(e,t){(0,n.getIsolationScope)().setContext(e,t)}function b(e){(0,n.getIsolationScope)().setExtras(e)}function v(e,t){(0,n.getIsolationScope)().setExtra(e,t)}function _(e){(0,n.getIsolationScope)().setTags(e)}function S(e,t){(0,n.getIsolationScope)().setTag(e,t)}function E(e){(0,n.getIsolationScope)().setAttributes(e)}function T(e,t){(0,n.getIsolationScope)().setAttribute(e,t)}function w(e){(0,n.getIsolationScope)().setUser(e)}function x(e){(0,n.getIsolationScope)().setConversationId(e)}function O(){return(0,n.getIsolationScope)().lastEventId()}function I(e,t){const r=(0,n.getCurrentScope)(),o=(0,n.getClient)();if(o){if(o.captureCheckIn)return o.captureCheckIn(e,t,r);i.DEBUG_BUILD&&s.debug.warn("Cannot capture check-in. Client does not support sending check-ins.")}else i.DEBUG_BUILD&&s.debug.warn("Cannot capture check-in. No client defined.");return(0,c.uuid4)()}function A(e,t,r){function i(){const n=I({monitorSlug:e,status:"in_progress"},r),i=(0,d.timestampInSeconds)();function o(t){I({monitorSlug:e,status:t,checkInId:n,duration:(0,d.timestampInSeconds)()-i})}let a;try{a=t()}catch(e){throw o("error"),e}return(0,l.isThenable)(a)?a.then(e=>(o("ok"),e),e=>{throw o("error"),e}):(o("ok"),a)}return(0,n.withIsolationScope)(()=>r?.isolateTrace?(0,a.startNewTrace)(i):i())}async function k(e){const t=(0,n.getClient)();return t?t.flush(e):(i.DEBUG_BUILD&&s.debug.warn("Cannot flush events. No client defined."),Promise.resolve(!1))}async function R(e){const t=(0,n.getClient)();return t?t.close(e):(i.DEBUG_BUILD&&s.debug.warn("Cannot flush events and disable SDK. No client defined."),Promise.resolve(!1))}function C(){return!!(0,n.getClient)()}function P(){const e=(0,n.getClient)();return!1!==e?.getOptions().enabled&&!!e?.getTransport()}function D(e){(0,n.getIsolationScope)().addEventProcessor(e)}function M(e){const t=(0,n.getIsolationScope)(),{user:r}=(0,p.getCombinedScopeData)(t,(0,n.getCurrentScope)()),{userAgent:i}=h.GLOBAL_OBJ.navigator||{},a=(0,o.makeSession)({user:r,...i&&{userAgent:i},...e}),s=t.getSession();return"ok"===s?.status&&(0,o.updateSession)(s,{status:"exited"}),N(),t.setSession(a),a}function N(){const e=(0,n.getIsolationScope)(),t=(0,n.getCurrentScope)().getSession()||e.getSession();t&&(0,o.closeSession)(t),L(),e.setSession()}function L(){const e=(0,n.getIsolationScope)(),t=(0,n.getClient)(),r=e.getSession();r&&t&&t.captureSession(r)}function F(e=!1){e?N():L()}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{getClient:()=>g,getCurrentScope:()=>p,getExternalPropagationContext:()=>c,getGlobalScope:()=>h,getIsolationScope:()=>d,getTraceContextFromScope:()=>y,hasExternalPropagationContext:()=>u,registerExternalPropagationContext:()=>l,withIsolationScope:()=>m,withScope:()=>f});var n=r(347),i=r(348),o=r(353),a=r(367);let s;function l(e){s=e}function c(){return s?.()}function u(){return void 0!==s}function p(){const e=(0,i.getMainCarrier)();return(0,n.getAsyncContextStrategy)(e).getCurrentScope()}function d(){const e=(0,i.getMainCarrier)();return(0,n.getAsyncContextStrategy)(e).getIsolationScope()}function h(){return(0,i.getGlobalSingleton)("globalScope",()=>new o.Scope)}function f(...e){const t=(0,i.getMainCarrier)(),r=(0,n.getAsyncContextStrategy)(t);if(2===e.length){const[t,n]=e;return t?r.withSetScope(t,n):r.withScope(n)}return r.withScope(e[0])}function m(...e){const t=(0,i.getMainCarrier)(),r=(0,n.getAsyncContextStrategy)(t);if(2===e.length){const[t,n]=e;return t?r.withSetIsolationScope(t,n):r.withIsolationScope(n)}return r.withIsolationScope(e[0])}function g(){return p().getClient()}function y(e){const t=c();if(t)return{trace_id:t.traceId,span_id:t.spanId};const r=e.getPropagationContext(),{traceId:n,parentSpanId:i,propagationSpanId:o}=r,s={trace_id:n,span_id:o||(0,a.generateSpanId)()};return i&&(s.parent_span_id=i),s}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{getAsyncContextStrategy:()=>a,setAsyncContextStrategy:()=>o});var n=r(348),i=r(351);function o(e){const t=(0,n.getMainCarrier)();(0,n.getSentryCarrier)(t).acs=e}function a(e){const t=(0,n.getSentryCarrier)(e);return t.acs?t.acs:(0,i.getStackAsyncContextStrategy)()}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{getGlobalSingleton:()=>s,getMainCarrier:()=>o,getSentryCarrier:()=>a});var n=r(349),i=r(350);function o(){return a(i.GLOBAL_OBJ),i.GLOBAL_OBJ}function a(e){const t=e.__SENTRY__=e.__SENTRY__||{};return t.version=t.version||n.SDK_VERSION,t[n.SDK_VERSION]=t[n.SDK_VERSION]||{}}function s(e,t,r=i.GLOBAL_OBJ){const o=r.__SENTRY__=r.__SENTRY__||{},a=o[n.SDK_VERSION]=o[n.SDK_VERSION]||{};return a[e]||(a[e]=t())}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{SDK_VERSION:()=>n});const n="10.72.0"},(e,t,r)=>{"use strict";r.r(t),r.d(t,{GLOBAL_OBJ:()=>n});const n=globalThis},(e,t,r)=>{"use strict";r.r(t),r.d(t,{AsyncContextStack:()=>l,getStackAsyncContextStrategy:()=>h});var n=r(352),i=r(353),o=r(370),a=r(359),s=r(348);class l{constructor(e,t){let r,n;r=e||new i.Scope,n=t||new i.Scope,this._stack=[{scope:r}],this._isolationScope=n}withScope(e){const t=this._pushScope();let r;try{r=e(t)}catch(e){throw this._popScope(),e}return(0,a.isThenable)(r)?(0,o.chainAndCopyPromiseLike)(r,()=>this._popScope(),()=>this._popScope()):(this._popScope(),r)}
1getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getIsolationScope(){return this._isolationScope}getStackTop(){return this._stack[this._stack.length-1]}_pushScope(){const e=this.getScope().clone();return this._stack.push({client:this.getClient(),scope:e}),e}_popScope(){return!(this._stack.length<=1)&&!!this._stack.pop()}}function c(){const e=(0,s.getMainCarrier)(),t=(0,s.getSentryCarrier)(e);return t.stack=t.stack||new l((0,n.getDefaultCurrentScope)(),(0,n.getDefaultIsolationScope)())}function u(e){return c().withScope(e)}function p(e,t){const r=c();return r.withScope(()=>(r.getStackTop().scope=e,t(e)))}function d(e){return c().withScope(()=>e(c().getIsolationScope()))}function h(){return{withIsolationScope:d,withScope:u,withSetScope:p,withSetIsolationScope:(e,t)=>d(t),getCurrentScope:()=>c().getScope(),getIsolationScope:()=>c().getIsolationScope()}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{getDefaultCurrentScope:()=>o,getDefaultIsolationScope:()=>a});var n=r(348),i=r(353);function o(){return(0,n.getGlobalSingleton)("defaultCurrentScope",()=>new i.Scope)}function a(){return(0,n.getGlobalSingleton)("defaultIsolationScope",()=>new i.Scope)}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{Scope:()=>f});var n=r(354),i=r(355),o=r(358),a=r(359),s=r(366),l=r(356),c=r(367),u=r(360),p=r(368),d=r
vendor: 5,065 bytes, line 1
1(361),h=r(365);class f{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._attributes={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext={traceId:(0,c.generateTraceId)(),sampleRand:(0,u.safeMathRandom)()}}clone(){const e=new f;return e._breadcrumbs=[...this._breadcrumbs],e._tags={...this._tags},e._attributes={...this._attributes},e._extra={...this._extra},e._contexts={...this._contexts},this._contexts.flags&&(e._contexts.flags={values:[...this._contexts.flags.values]}),e._user=this._user,e._level=this._level,e._session=this._session,e._transactionName=this._transactionName,e._fingerprint=this._fingerprint,e._eventProcessors=[...this._eventProcessors],e._attachments=[...this._attachments],e._sdkProcessingMetadata={...this._sdkProcessingMetadata},e._propagationContext={...this._propagationContext},e._client=this._client,e._lastEventId=this._lastEventId,e._conversationId=this._conversationId,(0,p._setSpanForScope)(e,(0,p._getSpanForScope)(this)),e}setClient(e){this._client=e}setLastEventId(e){this._lastEventId=e}getClient(){return this._client}lastEventId(){return this._lastEventId}addScopeListener(e){this._scopeListeners.push(e)}addEventProcessor(e){return this._eventProcessors.push(e),this}setUser(e){return this._user=e||{email:void 0,id:void 0,ip_address:void 0,username:void 0},this._session&&(0,i.updateSession)(this._session,{user:e}),this._notifyScopeListeners(),this}getUser(){return this._user}setConversationId(e){return this._conversationId=e||void 0,this._notifyScopeListeners(),this}setTags(e){return this._tags={...this._tags,...e},this._notifyScopeListeners(),this}setTag(e,t){return this.setTags({[e]:t})}setAttributes(e){return this._attributes={...this._attributes,...e},this._notifyScopeListeners(),this}setAttribute(e,t){return this.setAttributes({[e]:t})}removeAttribute(e){return e in this._attributes&&(delete this._attributes[e],this._notifyScopeListeners()),this}setExtras(e){return this._extra={...this._extra,...e},this._notifyScopeListeners(),this}setExtra(e,t){return this._extra={...this._extra,[e]:t},this._notifyScopeListeners(),this}setFingerprint(e){return this._fingerprint=e,this._notifyScopeListeners(),this}setLevel(e){return this._level=e,this._notifyScopeListeners(),this}setTransactionName(e){return this._transactionName=e,this._notifyScopeListeners(),this}setContext(e,t){return null===t?delete this._contexts[e]:this._contexts[e]=t,this._notifyScopeListeners(),this}setSession(e){return e?this._session=e:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(e){if(!e)return this;const t="function"==typeof e?e(this):e,r=t instanceof f?t.getScopeData():(0,a.isPlainObject)(t)?e:void 0,{tags:n,attributes:i,extra:o,user:s,contexts:l,level:c,fingerprint:u=[],propagationContext:p,conversationId:d}=r||{};return this._tags={...this._tags,...n},this._attributes={...this._attributes,...i},this._extra={...this._extra,...o},this._contexts={...this._contexts,...l},s&&Object.keys(s).length&&(this._user=s),c&&(this._level=c),u.length&&(this._fingerprint=u),p&&(this._propagationContext=p),d&&(this._conversationId=d),this}clear(){return this._breadcrumbs=[],this._tags={},this._attributes={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._session=void 0,this._conversationId=void 0,(0,p._setSpanForScope)(this,void 0),this._attachments=[],this.setPropagationContext({traceId:(0,c.generateTraceId)(),sampleRand:(0,u.safeMathRandom)()}),this._notifyScopeListeners(),this}addBreadcrumb(e,t){const r="number"==typeof t?t:100;if(r<=0)return this;const n={timestamp:(0,h.dateTimestampInSeconds)(),...e,message:e.message?(0,d.truncate)(e.message,2048):e.message};return this._breadcrumbs.push(n),this._breadcrumbs.length>r&&(this._breadcrumbs=this._breadcrumbs.slice(-r),this._client?.recordDroppedEvent("buffer_overflow","log_item")),this._notifyScopeListeners(),this}getLastBreadcrumb(){return this._breadcrumbs[this._breadcrumbs.length-1]}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(e){return this._attachments.push(e),this}clearAttachments(){return this._attachments=[],this}getScopeData(){return{breadcrumbs:this._breadcrumbs,attachments:this._attachments,contexts:this._contexts,tags:this._tags,attributes:this._attributes,extra:this._extra,user:this._user,level:this._level,fingerprint:this._fingerprint||[],eventProcessors:this._eventProcessors,propagationContext:this._propagationContext,sdkProcessingMetadata:this._sdkProcessingMetadata,transactionName:this._transactionName,span:(0,p._getSpanForScope)(this),conversationId:this._conversationId}}setSDKProcessingMetadata(e){return this._sdkProcessingMetadata=(0,s.merge)(this._sdkProcessingMetadata,e,2),this}setPropagationContext(e){return this._propagationContext=e,this}getPropagationContext(){return this._propagationContext}
1captureException(e,t){const r=t?.event_id||(0,l.uuid4)();if(!this._client)return n.DEBUG_BUILD&&o.debug.warn("No client configured on scope - will not capture exception!"),r;const i=new Error("Sentry syntheticException");return this._client.captureException(e,{originalException:e,syntheticException:i,...t,event_id:r},this),r}captureMessage(e,t,r){const i=r?.event_id||(0,l.uuid4)();if(!this._client)return n.DEBUG_BUILD&&o.debug.warn("No client configured on scope - will not capture message!"),i;const a=r?.syntheticException??new Error(e);return this._client.captureMessage(e,t,{originalException:e,syntheticException:a,...r,event_id:i},this),i}captureEvent(e,t){const r=e.event_id||t?.event_id||(0,l.uuid4)();return this._client?(this._client.captureEvent(e,{...t,event_id:r},this),r):(n.DEBUG_BUILD&&o.debug.warn("No client configured on scope - will not capture event!"),r)}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach(e=>{e(this)}),this._notifyingListeners=!1)}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{DEBUG_BUILD:()=>n});const n="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__},(e,t,r)=>{"use strict";r.r(t),r.d(t,{closeSession:()=>s,makeSession:()=>o,updateSession:()=>a});var n=r(356),i=r(365);function o(e){const t=(0,i.timestampInSeconds)(),r={sid:(0,n.uuid4)(),init:!0,timestamp:t,started:t,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>function(e){return{sid:`${e.sid}`,init:e.init,started:new Date(1e3*e.started).toISOString(),timestamp:new Date(1e3*e.timestamp).toISOString(),status:e.status,errors:e.errors,did:"number"==typeof e.did||"string"==typeof e.did?`${e.did}`:void 0,duration:e.duration,abnormal_mechanism:e.abnormal_mechanism,attrs:{release:e.release,environment:e.environment,ip_address:e.ipAddress,user_agent:e.userAgent}}}(r)};return e&&a(r,e),r}function a(e,t={}){if(t.user&&(!e.ipAddress&&t.user.ip_address&&(e.ipAddress=t.user.ip_address),e.did||t.did||(e.did=t.user.id||t.user.email||t.user.username)),e.timestamp=t.timestamp||(0,i.timestampInSeconds)(),t.abnormal_mechanism&&(e.abnormal_mechanism=t.abnormal_mechanism),t.ignoreDuration&&(e.ignoreDuration=t.ignoreDuration),t.sid&&(e.sid=32===t.sid.length?t.sid:(0,n.uuid4)()),void 0!==t.init&&(e.init=t.init),!e.did&&t.did&&(e.did=`${t.did}`),"number"==typeof t.started&&(e.started=t.started),e.ignoreDuration)e.duration=void 0;else if("number"==typeof t.duration)e.duration=t.duration;else{const t=e.timestamp-e.started;e.duration=t>=0?t:0}t.release&&(e.release=t.release),t.environment&&(e.environment=t.environment),!e.ipAddress&&t.ipAddress&&(e.ipAddress=t.ipAddress),!e.userAgent&&t.userAgent&&(e.userAgent=t.userAgent),"number"==typeof t.errors&&(e.errors=t.errors),t.status&&(e.status=t.status)}function s(e,t){let r={};t?r={status:t}:"ok"===e.status&&(r={status:"exited"}),a(e,r)}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{addContextToFrame:()=>g,addExceptionMechanism:()=>d,addExceptionTypeValue:()=>p,checkOrSetAlreadyCaught:()=>y,getEventDescription:()=>u,isAlreadyCaptured:()=>b,parseSemver:()=>m,uuid4:()=>l});var n=r(357),i=r(360),o=r(361),a=r(350);let s;function l(e=function(){const e=a.GLOBAL_OBJ;return e.crypto||e.msCrypto}()){try{if(e?.randomUUID)return(0,i.withRandomSafeContext)(()=>e.randomUUID()).replace(/-/g,"")}catch{}return s||(s="10000000100040008000100000000000"),s.replace(/[018]/g,e=>(e^(16*(0,i.safeMathRandom)()&15)>>e/4).toString(16))}function c(e){return e.exception?.values?.[0]}function u(e){const{message:t,event_id:r}=e;if(t)return t;const n=c(e);return n?n.type&&n.value?`${n.type}: ${n.value}`:n.type||n.value||r||"<unknown>":r||"<unknown>"}function p(e,t,r){const n=e.exception=e.exception||{},i=n.values=n.values||[],o=i[0]=i[0]||{};o.value||(o.value=t||""),o.type||(o.type=r||"Error")}function d(e,t){const r=c(e);if(!r)return;const n=r.mechanism;if(r.mechanism={type:"generic",handled:!0,...n,...t},t&&"data"in t){const e={...n?.data,...t.data};r.mechanism.data=e}}const h=/^(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)(?:-((?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\+([0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?$/;function f(e){return parseInt(e||"",10)}function m(e){const t=e.match(h)||[],r=f(t[1]),n=f(t[2]),i=f(t[3]);return{buildmetadata:t[5],major:isNaN(r)?void 0:r,minor:isNaN(n)?void 0:n,patch:isNaN(i)?void 0:i,prerelease:t[4]}}function g(e,t,r=5){if(void 0===t.lineno)return;const n=e.length,i=Math.max(Math.min(n-1,t.lineno-1),0);t.pre_context=e.slice(Math.max(0,i-r),i).map(e=>(0,o.snipLine)(e,0));const a=Math.min(n-1,i);t.context_line=(0,o.snipLine)(e[a],t.colno||0),t.post_context=e.slice(Math.min(i+1,n),i+1+r).map(e=>(0,o.snipLine)(e,0))}function y(e){if(b(e))return!0;try{(0,n.addNonEnumerableProperty)(e,"__sentry_captured__",!0)}catch{}return!1}function b(e){try{return e.__sentry_captured__}catch{}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{addNonEnumerableProperty:()=>s,convertToPlainObject:()=>p,dropUndefinedKeys:()=>f,extractExceptionKeysForMessage:()=>h,fill:()=>a,getOriginalFunction:()=>u,markFunctionWrapped:()=>l,objectify:()=>g,wrapMethod:()=>c});var n=r(354),i=r(358),o=r(359);function a(e,t,r){if(!(t in e))return;const o=e[t];if("function"!=typeof o)return;const a=r(o);"function"==typeof a&&l(a,o);try{e[t]=a}catch{n.DEBUG_BUILD&&i.debug.log(`Failed to replace method "${t}" in object`,e)}}function s(e,t,r){try{Object.defineProperty(e,t,{value:r,writable:!0,configurable:!0})}catch{n.DEBUG_BUILD&&i.debug.log(`Failed to add non-enumerable property "${String(t)}" to object`,e)}}function l(e,t){try{const r=t.prototype||{};e.prototype=t.prototype=r,s(e,"__sentry_original__",t)}catch{}}function c(e,t,r,n=!0){const i=e[t];if("function"!=typeof i)throw new Error(`Cannot wrap method: ${t} is not a function`);if(u(i))throw new Error(`Attempting to wrap method ${t} multiple times`);l(r,i),Object.defineProperty(e,t,{writable:!0,configurable:!0,enumerable:n,value:r})}function u(e){return e.__sentry_original__}function p(e){if((0,o.isError)(e))return{message:e.message,name:e.name,stack:e.stack,...d(e)};if((0,o.isEvent)(e)){const{type:t,target:r,currentTarget:n,detail:i}=e;return{type:t,target:r,currentTarget:n,...i?{detail:i}:{},...d(e)}}return e}function d(e){return(0,o.isObjectLike)(e)?Object.fromEntries(Object.entries(e)):{}}function h(e){const t=Object.keys(p(e));return t.sort(),t[0]?t.join(", "):"[object has no keys]"}function f(e){return m(e,new Map)}function m(e,t){if(null===e||"object"!=typeof e)return e;const r=t.get(e);if(void 0!==r)return r;if(Array.isArray(e)){const r=[];
1return t.set(e,r),e.forEach(e=>{r.push(m(e,t))}),r}if(function(e){const t=e.constructor;return t===Object||void 0===t}(e)){const r={};t.set(e,r);return Object.keys(e).forEach(n=>{const i=e[n];void 0!==i&&(r[n]=m(i,t))}),r}return e}function g(e){let t;switch(!0){case null==e:t=new String(e);break;case"symbol"==typeof e||"bigint"==typeof e:t=Object(e);break;case(0,o.isPrimitive)(e):t=new e.constructor(e);break;default:t=e}return t}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{CONSOLE_LEVELS:()=>a,consoleSandbox:()=>l,debug:()=>d,originalConsoleMethods:()=>s});var n=r(348),i=r(354),o=r(350);const a=["debug","info","warn","error","log","assert","trace"],s={};function l(e){if(!("console"in o.GLOBAL_OBJ))return e();const t=o.GLOBAL_OBJ.console,r={},n=Object.keys(s);n.forEach(e=>{const n=s[e];r[e]=t[e],t[e]=n});try{return e()}finally{n.forEach(e=>{t[e]=r[e]})}}function c(){return p().enabled}function u(e,...t){i.DEBUG_BUILD&&c()&&l(()=>{o.GLOBAL_OBJ.console[e](`Sentry Logger [${e}]:`,...t)})}function p(){return i.DEBUG_BUILD?(0,n.getGlobalSingleton)("loggerSettings",()=>({enabled:!1})):{enabled:!1}}const d={enable:function(){p().enabled=!0},disable:function(){p().enabled=!1},isEnabled:c,log:function(...e){u("log",...e)},warn:function(...e){u("warn",...e)},error:function(...e){u("error",...e)}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{isDOMError:()=>s,isDOMException:()=>l,isElement:()=>m,isError:()=>i,isErrorEvent:()=>a,isEvent:()=>f,isInstanceOf:()=>v,isObjectLike:()=>h,isParameterizedString:()=>u,isPlainObject:()=>d,isPrimitive:()=>p,isRegExp:()=>g,isRequest:()=>S,isString:()=>c,isSyntheticEvent:()=>b,isThenable:()=>y,isVueViewModel:()=>_});const n=Object.prototype.toString;function i(e){switch(n.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":case"[object WebAssembly.Exception]":return!0;default:return v(e,Error)}}function o(e,t){return n.call(e)===`[object ${t}]`}function a(e){return o(e,"ErrorEvent")}function s(e){return o(e,"DOMError")}function l(e){return o(e,"DOMException")}function c(e){return o(e,"String")}function u(e){return"object"==typeof e&&null!==e&&"__sentry_template_string__"in e&&"__sentry_template_values__"in e}function p(e){return null===e||u(e)||"object"!=typeof e&&"function"!=typeof e}function d(e){return o(e,"Object")}function h(e){return"object"==typeof e&&null!==e}function f(e){return"undefined"!=typeof Event&&v(e,Event)}function m(e){return"undefined"!=typeof Element&&v(e,Element)}function g(e){return o(e,"RegExp")}function y(e){return Boolean(e?.then&&"function"==typeof e.then)}function b(e){return d(e)&&"nativeEvent"in e&&"preventDefault"in e&&"stopPropagation"in e}function v(e,t){try{return e instanceof t}catch{return!1}}function _(e){return!("object"!=typeof e||null===e||!(e.__isVue||e._isVue||e.__v_isVNode))}function S(e){return"undefined"!=typeof Request&&v(e,Request)}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{safeDateNow:()=>s,safeMathRandom:()=>a,withRandomSafeContext:()=>o});var n=r(350);let i;function o(e){if(void 0!==i)return i?i(e):e();const t=Symbol.for("__SENTRY_SAFE_RANDOM_ID_WRAPPER__"),r=n.GLOBAL_OBJ;return t in r&&"function"==typeof r[t]?(i=r[t],i(e)):(i=null,e())}function a(){return o(()=>Math.random())}function s(){return o(()=>Date.now())}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{isMatchingPattern:()=>c,safeJoin:()=>l,snipLine:()=>s,stringMatchesSomePattern:()=>u,stringify:()=>o,truncate:()=>a});var n=r(359),i=r(362);function o(e,t="[unserializable]"){if("string"==typeof e)return e;try{return JSON.stringify(e)}catch{return"function"==typeof t?t(e):t}}function a(e,t=0){return"string"!=typeof e||0===t||e.length<=t?e:`${e.slice(0,t)}...`}function s(e,t){let r=e;const n=r.length;if(n<=150)return r;t>n&&(t=n);let i=Math.max(t-60,0);i<5&&(i=0);let o=Math.min(i+140,n);return o>n-5&&(o=n),o===n&&(i=Math.max(o-140,0)),r=r.slice(i,o),i>0&&(r=`'{snip} ${r}`),o<n&&(r+=" {snip}"),r}function l(e,t){if(!Array.isArray(e))return"";const r=[];for(let t=0;t<e.length;t++){const o=e[t];(0,n.isPrimitive)(o)?r.push(String(o)):o instanceof Error?r.push(o.message?`${o.name}: ${o.message}`:o.name):r.push((0,i.stringifyValue)(void 0,o))}return r.join(t)}function c(e,t,r=!1){return!!(0,n.isString)(e)&&((0,n.isRegExp)(t)?t.test(e):(0,n.isString)(t)?r?e===t:e.includes(t):"function"==typeof t&&t(e))}function u(e,t=[],r=!1){for(const n of t)if(c(e,n,r))return!0;return!1}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{normalize:()=>l,normalizeToSize:()=>c,normalizeUrlToBase:()=>d,setNormalizeStringifier:()=>s,stringifyValue:()=>p});var n=r(363),i=r(357),o=r(364);let a;function s(e){a=e}function l(e,t=100,r=1/0){try{return u("",e,t,r)}catch(e){return{ERROR:`**non-serializable** (${e})`}}}function c(e,t=3,r=102400){const n=l(e,t);return i=n,function(e){return~-encodeURI(e).split(/%..|./).length}(JSON.stringify(i))>r?c(e,t-1,r):n;var i}function u(e,t,r=1/0,o=1/0,a=function(){const e=new WeakSet;function t(t){return!!e.has(t)||(e.add(t),!1)}function r(t){e.delete(t)}return[t,r]}()){const[s,l]=a;if(null==t||["boolean","string"].includes(typeof t)||"number"==typeof t&&Number.isFinite(t))return t;const c=p(e,t);if(!c.startsWith("[object "))return c;if((0,n.hasSkipNormalizationHint)(t))return t;const d=(0,n.getNormalizationDepthOverrideHint)(t),h=void 0!==d?d:r;if(0===h)return c.replace("object ","");if(s(t))return"[Circular ~]";const f=t;if(f&&"function"==typeof f.toJSON)try{return u("",f.toJSON(),h-1,o,a)}catch{}const m=Array.isArray(t)?[]:{};let g=0;const y=(0,i.convertToPlainObject)(t);for(const e in y){if(!Object.prototype.hasOwnProperty.call(y,e))continue;if(g>=o){m[e]="[MaxProperties ~]";break}const t=y[e];m[e]=u(e,t,h-1,o,a),g++}return l(t),m}function p(e,t){try{if(a){const e=a(t);if(e)return e}if("undefined"!=typeof globalThis&&t===globalThis)return"[Global]";if("number"==typeof t&&!Number.isFinite(t))return`[${t}]`;if("function"==typeof t)return`[Function: ${(0,o.getFunctionName)(t)}]`;if("symbol"==typeof t)return`[${String(t)}]`;if("bigint"==typeof t)return`[BigInt: ${String(t)}]`;const e=function(e){const t=Object.getPrototypeOf(e);return t?.constructor?t.constructor.name:"null prototype"}(t);return`[object ${e}]`}catch(e){return`**non-serializable** (${e})`}}function d(e,t){const r=t.replace(/\\/g,"/").replace(/[|\\{}()[\]^$+*?.]/g,"\\$&");let n=e;try{n=decodeURI(e)}catch{}return n.replace(/\\/g,"/").replace(/webpack:\/?/g,"").replace(new RegExp(`(file://)?/*${r}/*`,"ig"),"app:///")}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{getNormalizationDepthOverrideHint:()=>c,hasSkipNormalizationHint:()=>l,setNormalizationDepthOverrideHint:()=>s,setSkipNormalizationHint:()=>a});var n=r(357);const i=Symbol.for("sentry.skipNormalization"),o=Symbol.for("sentry.overrideNormalizationDepth");function a(e){(0,n.addNonEnumerableProperty)(e,i,!0)}function s(e,t){(0,n.addNonEnumerableProperty)(e,o,t)}function l(e){return Boolean(e[i])}function c(e){const t=e[o];return"number"==typeof t?t:void 0}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{UNKNOWN_FUNCTION:()=>i,createStackParser:()=>s,getFramesFromEvent:()=>h,getFunctionName:()=>d,normalizeStackTracePath:()=>f,stackParserFromStackParserOptions:()=>l,stripSentryFramesAndReverse:()=>c});const n=50,i="?",o=/\(error: (.*)\)/,a=/captureMessage|captureException/;function s(...e){const t=e.sort((e,t)=>
1e[0]-t[0]).map(e=>e[1]);return(e,r=0,i=0)=>{const a=[],s=e.split("\n");for(let e=r;e<s.length;e++){let r=s[e];r.length>1024&&(r=r.slice(0,1024));const l=o.test(r)?r.replace(o,"$1"):r;if(!l.includes("Error: ")){for(const e of t){const t=e(l);if(t){a.push(t);break}}if(a.length>=n+i)break}}return c(a.slice(i))}}function l(e){return Array.isArray(e)?s(...e):e}function c(e){if(!e.length)return[];const t=Array.from(e);return/sentryWrapped/.test(u(t).function||"")&&t.pop(),t.reverse(),a.test(u(t).function||"")&&(t.pop(),a.test(u(t).function||"")&&t.pop()),t.slice(0,n).map(e=>({...e,filename:e.filename||u(t).filename,function:e.function||i}))}function u(e){return e[e.length-1]||{}}const p="<anonymous>";function d(e){try{return e&&"function"==typeof e&&e.name||p}catch{return p}}function h(e){const t=e.exception;if(t){const e=[];try{return t.values.forEach(t=>{t.stacktrace.frames&&e.push(...t.stacktrace.frames)}),e}catch{return}}}function f(e){let t=e?.startsWith("file://")?e.slice(7):e;return t?.match(/\/[A-Z]:/)&&(t=t.slice(1)),t}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{browserPerformanceTimeOrigin:()=>u,dateTimestampInSeconds:()=>a,timestampInSeconds:()=>l});var n=r(360),i=r(350);const o=1e3;function a(){return(0,n.safeDateNow)()/o}let s;function l(){return(s??(s=function(){const{performance:e}=i.GLOBAL_OBJ;if(!e?.now||!e.timeOrigin)return a;const t=e.timeOrigin;return()=>(t+(0,n.withRandomSafeContext)(()=>e.now()))/o}()))()}let c=null;function u(){return null===c&&(c=function(){const{performance:e}=i.GLOBAL_OBJ;if(!e?.now)return;const t=3e5,r=(0,n.withRandomSafeContext)(()=>e.now()),o=(0,n.safeDateNow)(),a=e.timeOrigin;if("number"==typeof a&&Math.abs(a+r-o)<t)return a;const s=e.timing?.navigationStart;if("number"==typeof s&&Math.abs(s+r-o)<t)return s;return o-r}()),c}},(e,t,r)=>{"use strict";function n(e,t,r=2){if(!t||"object"!=typeof t||r<=0)return t;if(e&&0===Object.keys(t).length)return e;const i={...e};for(const e in t)Object.prototype.hasOwnProperty.call(t,e)&&(i[e]=n(i[e],t[e],r-1));return i}r.r(t),r.d(t,{merge:()=>n})},(e,t,r)=>{"use strict";r.r(t),r.d(t,{generateSpanId:()=>o,generateTraceId:()=>i});var n=r(356);function i(){return(0,n.uuid4)()}function o(){return(0,n.uuid4)().substring(16)}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{_getSpanForScope:()=>s,_setSpanForScope:()=>a});var n=r(357),i=r(369);const o="_sentrySpan";function a(e,t){t?(0,n.addNonEnumerableProperty)(e,o,(0,i.makeWeakRef)(t)):delete e[o]}function s(e){return(0,i.derefWeakRef)(e[o])}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{derefWeakRef:()=>o,makeWeakRef:()=>i});var n=r(350);function i(e){try{const t=n.GLOBAL_OBJ.WeakRef;if("function"==typeof t)return new t(e)}catch{}return e}function o(e){if(e){if("object"==typeof e&&"deref"in e&&"function"==typeof e.deref)try{return e.deref()}catch{return}return e}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{chainAndCopyPromiseLike:()=>o});const n=e=>e instanceof Promise&&!e[i],i=Symbol("chained PromiseLike"),o=(e,t,r)=>{const i=e.then(e=>(t(e),e),e=>{throw r(e),e});return n(i)&&n(e)?i:a(e,i)},a=(e,t)=>{if(!t)return e;let r=!1;for(const n in e){if(n in t)continue;r=!0;const i=e[n];"function"==typeof i?Object.defineProperty(t,n,{value:(...t)=>i.apply(e,t),enumerable:!0,configurable:!0,writable:!0}):t[n]=i}return r&&Object.assign(t,{[i]:!0}),t}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{SUPPRESS_TRACING_KEY:()=>I,_INTERNAL_startInactiveSpan:()=>C,continueTrace:()=>D,isTracingSuppressed:()=>L,spanIsIgnored:()=>q,startInactiveSpan:()=>R,startNewTrace:()=>F,startSpan:()=>A,startSpanManual:()=>k,suppressTracing:()=>N,withActiveSpan:()=>M});var n=r(347),i=r(348),o=r(346),a=r(354),s=r(372),l=r(373),c=r(358),u=r(374),p=r(375),d=r(376),h=r(377),f=r(378),m=r(367),g=r(360),y=r(368),b=r(379),v=r(383),_=r(385),S=r(388),E=r(389),T=r(387),w=r(390),x=r(381),O=r(382);const I="__SENTRY_SUPPRESS_TRACING__";function A(e,t){const r=H();if(r.startSpan)return r.startSpan(e,t);const n=j(e),{forceTransaction:i,parentSpan:a,scope:s}=e,l=s?.clone();return(0,o.withScope)(l,()=>G(a)(()=>{const r=(0,o.getCurrentScope)(),s=z(r,a),l=(0,o.getClient)(),c=e.onlyIfParent&&!s?B(r,l):U({parentSpan:s,spanArguments:n,forceTransaction:i,scope:r});return q(c)&&s||(0,y._setSpanForScope)(r,c),(0,u.handleCallbackErrors)(()=>t(c),()=>{const{status:e}=(0,b.spanToJSON)(c);!c.isRecording()||e&&"ok"!==e||c.setStatus({code:x.SPAN_STATUS_ERROR,message:"internal_error"})},()=>{c.end()})}))}function k(e,t){const r=H();if(r.startSpanManual)return r.startSpanManual(e,t);const n=j(e),{forceTransaction:i,parentSpan:a,scope:s}=e,l=s?.clone();return(0,o.withScope)(l,()=>G(a)(()=>{const r=(0,o.getCurrentScope)(),s=z(r,a),l=e.onlyIfParent&&!s?B(r,(0,o.getClient)()):U({parentSpan:s,spanArguments:n,forceTransaction:i,scope:r});return q(l)&&s||(0,y._setSpanForScope)(r,l),(0,u.handleCallbackErrors)(()=>t(l,()=>l.end()),()=>{const{status:e}=(0,b.spanToJSON)(l);!l.isRecording()||e&&"ok"!==e||l.setStatus({code:x.SPAN_STATUS_ERROR,message:"internal_error"})})}))}function R(e){const t=H();return t.startInactiveSpan?t.startInactiveSpan(e):P(e)}function C(e){return P(e)}function P(e){const t=j(e),{forceTransaction:r,parentSpan:n}=e;return(e.scope?t=>(0,o.withScope)(e.scope,t):void 0!==n?e=>M(n,e):e=>e())(()=>{const i=(0,o.getCurrentScope)(),a=z(i,n),s=(0,o.getClient)();return e.onlyIfParent&&!a?B(i,s):U({parentSpan:a,spanArguments:t,forceTransaction:r,scope:i})})}const D=(e,t)=>{const r=(0,i.getMainCarrier)(),a=(0,n.getAsyncContextStrategy)(r);if(a.continueTrace)return a.continueTrace(e,t);const{sentryTrace:s,baggage:c}=e,u=(0,o.getClient)(),p=(0,l.baggageHeaderToDynamicSamplingContext)(c);return u&&!(0,v.shouldContinueTrace)(u,p?.org_id)?F(t):(0,o.withScope)(e=>{const r=(0,v.propagationContextFromHeaders)(s,c);return e.setPropagationContext(r),(0,y._setSpanForScope)(e,void 0),t()})};function M(e,t){const r=H();return r.withActiveSpan?r.withActiveSpan(e,t):(0,o.withScope)(r=>((0,y._setSpanForScope)(r,e||void 0),t(r)))}function N(e){const t=H();return t.suppressTracing?t.suppressTracing(e):(0,o.withScope)(t=>{t.setSDKProcessingMetadata({[I]:!0});const r=e();return t.setSDKProcessingMetadata({[I]:void 0}),r})}function L(e=(0,o.getCurrentScope)()){const t=H();return t.isTracingSuppressed?t.isTracingSuppressed(e):!0===e.getScopeData().sdkProcessingMetadata[I]}function F(e){const t=H();return t.startNewTrace?t.startNewTrace(e):(0,o.withScope)(t=>(t.setPropagationContext({traceId:(0,m.generateTraceId)(),sampleRand:(0,g.safeMathRandom)()}
1),a.DEBUG_BUILD&&c.debug.log(`Starting a new trace with id ${t.getPropagationContext().traceId}`),M(null,e)))}function B(e,t){t?.recordDroppedEvent("no_parent_span","span");const r=new T.SentryNonRecordingSpan({traceId:e.getPropagationContext().traceId});return(0,O.setCapturedScopesOnSpan)(r,e,(0,o.getIsolationScope)()),r}function U({parentSpan:e,spanArguments:t,forceTransaction:r,scope:n}){const i=(0,o.getIsolationScope)();if(!(0,p.hasSpansEnabled)()){const t={...i.getPropagationContext(),...n.getPropagationContext()},o=e?e.spanContext().traceId:t.traceId,a=new T.SentryNonRecordingSpan({traceId:o});return e&&!r&&(0,b.addChildSpanToSpan)(e,a),(0,O.setCapturedScopesOnSpan)(a,n,i),a}const a=(0,o.getClient)();if(function(e,t){const r=e?.getOptions().ignoreSpans;if(!e||!(0,h.hasSpanStreamingEnabled)(e)||!r?.length)return!1;return(0,d.shouldIgnoreSpan)({description:t.name||"",op:t.attributes?.[s.SEMANTIC_ATTRIBUTE_SENTRY_OP]||t.op,attributes:t.attributes},r)}(a,t)){L(n)||a?.recordDroppedEvent("ignored","span");const t=new T.SentryNonRecordingSpan({dropReason:"ignored",traceId:e?.spanContext().traceId??n.getPropagationContext().traceId});return e&&!r&&(0,b.addChildSpanToSpan)(e,t),(0,O.setCapturedScopesOnSpan)(t,n,i),t}let l;if(e&&!r)l=function(e,t,r,n){const{spanId:i,traceId:a}=e.spanContext(),s=L(t),l=!s&&(0,b.spanIsSampled)(e),c=l?new w.SentrySpan({...r,parentSpanId:i,traceId:a,sampled:l}):new T.SentryNonRecordingSpan({traceId:a});(0,b.addChildSpanToSpan)(e,c),(0,O.setCapturedScopesOnSpan)(c,t,n);const u=(0,o.getClient)();if(!u)return c;(0,h.hasSpanStreamingEnabled)(u)&&(0,T.spanIsNonRecordingSpan)(c)&&((0,T.spanIsNonRecordingSpan)(e)&&e.dropReason?(c.dropReason=e.dropReason,u.recordDroppedEvent(e.dropReason,"span")):s||(c.dropReason="sample_rate",u.recordDroppedEvent("sample_rate","span")));u.emit("spanStart",c),r.endTimestamp&&(u.emit("spanEnd",c),u.emit("afterSpanEnd",c));return c}(e,n,t,i),(0,b.addChildSpanToSpan)(e,l);else if(e){const r=(0,_.getDynamicSamplingContextFromSpan)(e),{traceId:o,spanId:a}=e.spanContext(),s=(0,b.spanIsSampled)(e);l=V({traceId:o,parentSpanId:a,...t},n,i,s),(0,_.freezeDscOnSpan)(l,r)}else{const{traceId:e,dsc:r,parentSpanId:o,sampled:a}={...i.getPropagationContext(),...n.getPropagationContext()};l=V({traceId:e,parentSpanId:o,...t},n,i,a),r&&(0,_.freezeDscOnSpan)(l,r)}return(0,S.logSpanStart)(l),l}function j(e){const t={isStandalone:(e.experimental||{}).standalone,...e};if(e.startTime){const r={...t};return r.startTimestamp=(0,b.spanTimeInputToSeconds)(e.startTime),delete r.startTime,r}return t}function H(){const e=(0,i.getMainCarrier)();return(0,n.getAsyncContextStrategy)(e)}function V(e,t,r,n){const i=(0,o.getClient)(),l=i?.getOptions()||{},{name:u=""}=e,p={spanAttributes:{...e.attributes},spanName:u,parentSampled:n};i?.emit("beforeSampling",p,{decision:!1});const d=p.parentSampled??n,m=p.spanAttributes,g=t.getPropagationContext(),y=L(t),[b,v,_]=y?[!1]:(0,E.sampleSpan)(l,{name:u,parentSampled:d,attributes:m,normalizedRequest:r.getScopeData().sdkProcessingMetadata.normalizedRequest,parentSampleRate:(0,f.parseSampleRate)(g.dsc?.sample_rate)},g.sampleRand),S=new w.SentrySpan({...e,attributes:{[s.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]:"custom",[s.SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE]:void 0!==v&&_?v:void 0,...m},sampled:b});return b||!i||y||(a.DEBUG_BUILD&&c.debug.log("[Tracing] Discarding root span because its trace was not chosen to be sampled."),i.recordDroppedEvent("sample_rate",(0,h.hasSpanStreamingEnabled)(i)?"span":"transaction")),(0,O.setCapturedScopesOnSpan)(S,t,r),i&&i.emit("spanStart",S),S}function z(e,t){if(t)return t;if(null===t)return;const r=(0,y._getSpanForScope)(e);if(!r)return;const n=(0,o.getClient)();return(n?n.getOptions():{}).parentSpanIsAlwaysRootSpan?(0,b.getRootSpan)(r):r}function G(e){return void 0!==e?t=>M(e,t):e=>e()}function q(e){return(0,T.spanIsNonRecordingSpan)(e)&&"ignored"===e.dropReason}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{GEN_AI_CONVERSATION_ID_ATTRIBUTE:()=>P,SEMANTIC_ATTRIBUTE_CACHE_HIT:()=>O,SEMANTIC_ATTRIBUTE_CACHE_ITEM_SIZE:()=>A,SEMANTIC_ATTRIBUTE_CACHE_KEY:()=>I,SEMANTIC_ATTRIBUTE_EXCLUSIVE_TIME:()=>x,SEMANTIC_ATTRIBUTE_HTTP_REQUEST_METHOD:()=>k,SEMANTIC_ATTRIBUTE_PROFILE_ID:()=>w,SEMANTIC_ATTRIBUTE_SENTRY_CUSTOM_SPAN_NAME:()=>T,SEMANTIC_ATTRIBUTE_SENTRY_ENVIRONMENT:()=>h,SEMANTIC_ATTRIBUTE_SENTRY_IDLE_SPAN_FINISH_REASON:()=>c,SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_UNIT:()=>u,SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_VALUE:()=>p,SEMANTIC_ATTRIBUTE_SENTRY_OP:()=>a,SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN:()=>s,SEMANTIC_ATTRIBUTE_SENTRY_PREVIOUS_TRACE_SAMPLE_RATE:()=>o,SEMANTIC_ATTRIBUTE_SENTRY_RELEASE:()=>d,SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE:()=>i,SEMANTIC_ATTRIBUTE_SENTRY_SDK_INTEGRATIONS:()=>b,SEMANTIC_ATTRIBUTE_SENTRY_SDK_NAME:()=>g,SEMANTIC_ATTRIBUTE_SENTRY_SDK_VERSION:()=>y,SEMANTIC_ATTRIBUTE_SENTRY_SEGMENT_ID:()=>m,SEMANTIC_ATTRIBUTE_SENTRY_SEGMENT_NAME:()=>f,SEMANTIC_ATTRIBUTE_SENTRY_SOURCE:()=>n,SEMANTIC_ATTRIBUTE_SENTRY_STATUS_MESSAGE:()=>l,SEMANTIC_ATTRIBUTE_URL_FULL:()=>R,SEMANTIC_ATTRIBUTE_USER_EMAIL:()=>_,SEMANTIC_ATTRIBUTE_USER_ID:()=>v,SEMANTIC_ATTRIBUTE_USER_IP_ADDRESS:()=>S,SEMANTIC_ATTRIBUTE_USER_USERNAME:()=>E,SEMANTIC_LINK_ATTRIBUTE_LINK_TYPE:()=>C});const n="sentry.source",i="sentry.sample_rate",o="sentry.previous_trace_sample_rate",a="sentry.op",s="sentry.origin",l="sentry.status.message",c="sentry.idle_span_finish_reason",u="sentry.measurement_unit",p="sentry.measurement_value",d="sentry.release",h="sentry.environment",f="sentry.segment.name",m="sentry.segment.id",g="sentry.sdk.name",y="sentry.sdk.version",b="sentry.sdk.integrations",v="user.id",_="user.email",S="user.ip_address",E="user.name",T="sentry.custom_span_name",w="sentry.profile_id",x="sentry.exclusive_time",O="cache.hit",I="cache.key",A="cache.item_size",k="http.request.method",R="url.full",C="sentry.link.type",P="gen_ai.conversation.id"},(e,t,r)=>{"use strict";r.r(t),r.d(t,{MAX_BAGGAGE_STRING_LENGTH:()=>l,SENTRY_BAGGAGE_KEY_PREFIX:()=>a,SENTRY_BAGGAGE_KEY_PREFIX_REGEX:()=>s,baggageHeaderToDynamicSamplingContext:()=>c,dynamicSamplingContextToSentryBaggageHeader:()=>u,mergeBaggageHeaders:()=>f,objectToBaggageHeader:()=>h,parseBaggageHeader:()=>p});var n=r(354),i=r(358),o=r(359);const a="sentry-",s=/^sentry-/,l=8192;function c(e){const t=p(e);if(!t)return;const r=Object.entries(t).reduce((e,[t,r])=>
1{if(t.startsWith(a)){e[t.slice(a.length)]=r}return e},{});return Object.keys(r).length>0?r:void 0}function u(e){if(!e)return;return h(Object.entries(e).reduce((e,[t,r])=>(r&&(e[`${a}${t}`]=r),e),{}))}function p(e){if(e&&((0,o.isString)(e)||Array.isArray(e)))return Array.isArray(e)?e.reduce((e,t)=>{const r=d(t);return Object.entries(r).forEach(([t,r])=>{e[t]=r}),e},{}):d(e)}function d(e){return e.split(",").map(e=>{const t=e.indexOf("=");if(-1===t)return[];return[e.slice(0,t),e.slice(t+1)].map(e=>{try{return decodeURIComponent(e.trim())}catch{return}})}).reduce((e,[t,r])=>(t&&r&&(e[t]=r),e),{})}function h(e){if(0!==Object.keys(e).length)return Object.entries(e).reduce((e,[t,r],o)=>{const a=`${encodeURIComponent(t)}=${encodeURIComponent(r)}`,s=0===o?a:`${e},${a}`;return s.length>l?(n.DEBUG_BUILD&&i.debug.warn(`Not adding key: ${t} with val: ${r} to baggage header due to exceeding baggage size limits.`),e):s},"")}function f(e,t){if(!e)return t;const r=p(e),n=p(t);if(!n)return e;const i={};let o=!1;const s={},l={};for(const[e,t]of Object.entries(n))e.startsWith(a)?(s[e]=t,o=!0):l[e]=t;if(r)for(const[e,t]of Object.entries(r))o&&e.startsWith(a)||(i[e]=t);o&&Object.assign(i,s);for(const[e,t]of Object.entries(l))i[e]??(i[e]=t);return h(i)}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{handleCallbackErrors:()=>o});var n=r(370),i=r(359);function o(e,t,r=()=>{},o=()=>{}){let a;try{a=e()}catch(e){throw t(e),r(),e}return function(e,t,r,o){if((0,i.isThenable)(e))return(0,n.chainAndCopyPromiseLike)(e,e=>{r(),o(e)},e=>{t(e),r()});return r(),o(e),e}(a,t,r,o)}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{hasSpansEnabled:()=>i});var n=r(346);function i(e){if("boolean"==typeof __SENTRY_TRACING__&&!__SENTRY_TRACING__)return!1;const t=e||(0,n.getClient)()?.getOptions();return!(!t||null==t.tracesSampleRate&&!t.tracesSampler)}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{reparentChildSpans:()=>c,shouldIgnoreSpan:()=>s});var n=r(354),i=r(358),o=r(361);function a(e){i.debug.log(`Ignoring span ${e.op} - ${e.description} because it matches \`ignoreSpans\`.`)}function s(e,t){if(!t?.length)return!1;for(const r of t){if(u(r)){if(e.description&&(0,o.isMatchingPattern)(e.description,r))return n.DEBUG_BUILD&&a(e),!0;continue}const t=!!r.attributes&&Object.keys(r.attributes).length>0;if(!r.name&&!r.op&&!t)continue;const i=!r.name||e.description&&(0,o.isMatchingPattern)(e.description,r.name),s=!r.op||e.op&&(0,o.isMatchingPattern)(e.op,r.op),c=!r.attributes||Object.entries(r.attributes).every(([t,r])=>l(e.attributes?.[t],r));if(i&&s&&c)return n.DEBUG_BUILD&&a(e),!0}return!1}function l(e,t){return"string"==typeof e&&("string"==typeof t||t instanceof RegExp)?(0,o.isMatchingPattern)(e,t):Array.isArray(e)&&Array.isArray(t)?e.length===t.length&&e.every((e,r)=>e===t[r]):e===t}function c(e,t){const r=t.parent_span_id,n=t.span_id;if(r)for(const t of e)t.parent_span_id===n&&(t.parent_span_id=r)}function u(e){return"string"==typeof e||e instanceof RegExp}},(e,t,r)=>{"use strict";function n(e){return"stream"===e.getOptions().traceLifecycle}r.r(t),r.d(t,{hasSpanStreamingEnabled:()=>n})},(e,t,r)=>{"use strict";function n(e){if("boolean"==typeof e)return Number(e);const t="string"==typeof e?parseFloat(e):e;return"number"!=typeof t||isNaN(t)||t<0||t>1?void 0:t}r.r(t),r.d(t,{parseSampleRate:()=>n})},(e,t,r)=>{"use strict";r.r(t),r.d(t,{INTERNAL_getSegmentSpan:()=>z,TRACE_FLAG_NONE:()=>g,TRACE_FLAG_SAMPLED:()=>y,addChildSpanToSpan:()=>U,addStatusMessageAttribute:()=>L,convertSpanLinksForEnvelope:()=>T,getActiveSpan:()=>G,getRootSpan:()=>V,getSimpleStatus:()=>N,getSpanDescendants:()=>H,getStatusMessage:()=>M,getStreamedSpanLinks:()=>w,removeChildSpanFromSpan:()=>j,showSpanDropWarning:()=>q,spanIsSampled:()=>D,spanIsSentrySpan:()=>P,spanTimeInputToSeconds:()=>x,spanToJSON:()=>I,spanToStreamedSpanJSON:()=>A,spanToTraceContext:()=>_,spanToTraceHeader:()=>S,spanToTraceparentHeader:()=>E,spanToTransactionTraceContext:()=>v,streamedSpanJsonToSerializedSpan:()=>R,updateSpanName:()=>$});var n=r(347),i=r(380),o=r(348),a=r(346),s=r(372),l=r(381),c=r(382),u=r(357),p=r(367),d=r(365),h=r(383),f=r(358),m=r(368);const g=0,y=1;let b=!1;function v(e){const{spanId:t,traceId:r}=e.spanContext(),{data:n,op:i,parent_span_id:o,status:a,origin:s,links:l}=I(e);return{parent_span_id:o,span_id:t,trace_id:r,data:n,op:i,status:a,origin:s,links:l}}function _(e){const{spanId:t,traceId:r,isRemote:n}=e.spanContext(),i=n?t:I(e).parent_span_id,o=(0,c.getCapturedScopesOnSpan)(e).scope;return{parent_span_id:i,span_id:n?o?.getPropagationContext().propagationSpanId||(0,p.generateSpanId)():t,trace_id:r}}function S(e){const{traceId:t,spanId:r}=e.spanContext(),n=D(e);return(0,h.generateSentryTraceHeader)(t,r,n)}function E(e){const{traceId:t,spanId:r}=e.spanContext(),n=D(e);return(0,h.generateTraceparentHeader)(t,r,n)}function T(e){return e&&e.length>0?e.map(({context:{spanId:e,traceId:t,traceFlags:r,...n},attributes:i})=>({span_id:e,trace_id:t,sampled:r===y,attributes:i,...n})):void 0}function w(e){return e?.length?e.map(({context:{spanId:e,traceId:t,traceFlags:r},attributes:n}
1)=>({span_id:e,trace_id:t,sampled:r===y,attributes:n})):void 0}function x(e){return"number"==typeof e?O(e):Array.isArray(e)?e[0]+e[1]/1e9:e instanceof Date?O(e.getTime()):(0,d.timestampInSeconds)()}function O(e){return e>9999999999?e/1e3:e}function I(e){if(P(e))return e.getSpanJSON();const{spanId:t,traceId:r}=e.spanContext();if(C(e)){const{attributes:n,startTime:i,name:o,endTime:a,status:l,links:c}=e;return{span_id:t,trace_id:r,data:n,description:o,parent_span_id:k(e),start_timestamp:x(i),timestamp:x(a)||void 0,status:M(l),op:n[s.SEMANTIC_ATTRIBUTE_SENTRY_OP],origin:n[s.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN],links:T(c)}}return{span_id:t,trace_id:r,start_timestamp:0,data:{}}}function A(e){if(P(e))return e.getStreamedSpanJSON();const{spanId:t,traceId:r}=e.spanContext();if(C(e)){const{attributes:n,startTime:i,name:o,endTime:a,status:s,links:l}=e;return{name:o,span_id:t,trace_id:r,parent_span_id:k(e),start_timestamp:x(i),end_timestamp:x(a),is_segment:e===z(e),status:N(s),attributes:L(n,s),links:w(l)}}return{span_id:t,trace_id:r,start_timestamp:0,name:"",end_timestamp:0,status:"ok",is_segment:e===z(e)}}function k(e){return"parentSpanId"in e?e.parentSpanId:"parentSpanContext"in e?e.parentSpanContext?.spanId:void 0}function R(e){return{...e,attributes:(0,i.serializeAttributes)(e.attributes),links:e.links?.map(e=>({...e,attributes:(0,i.serializeAttributes)(e.attributes)}))}}function C(e){const t=e;return!!(t.attributes&&t.startTime&&t.name&&t.endTime&&t.status)}function P(e){return"function"==typeof e.getSpanJSON}function D(e){const{traceFlags:t}=e.spanContext();return t===y}function M(e){if(e&&e.code!==l.SPAN_STATUS_UNSET)return e.code===l.SPAN_STATUS_OK?"ok":e.message||"internal_error"}function N(e){return e&&e.code!==l.SPAN_STATUS_OK&&e.code!==l.SPAN_STATUS_UNSET&&"cancelled"!==e.message?"error":"ok"}function L(e,t){const r="error"===N(t)?t?.message:void 0;return{...r&&{[s.SEMANTIC_ATTRIBUTE_SENTRY_STATUS_MESSAGE]:r},...e}}const F="_sentryChildSpans",B="_sentryRootSpan";function U(e,t){const r=e[B]||e;(0,u.addNonEnumerableProperty)(t,B,r),D(e)&&(e.isRecording()||r.isRecording())&&(e[F]?e[F].add(t):(0,u.addNonEnumerableProperty)(e,F,new Set([t])))}function j(e,t){e[F]&&e[F].delete(t)}function H(e){const t=new Set;return function e(r){if(!t.has(r)&&D(r)){t.add(r);const n=r[F]?Array.from(r[F]):[];for(const t of n)e(t)}}(e),Array.from(t)}const V=z;function z(e){return e[B]||e}function G(){const e=(0,o.getMainCarrier)(),t=(0,n.getAsyncContextStrategy)(e);return t.getActiveSpan?t.getActiveSpan():(0,m._getSpanForScope)((0,a.getCurrentScope)())}function q(){b||((0,f.consoleSandbox)(()=>{console.warn("[Sentry] Returning null from `beforeSendSpan` is disallowed. To drop certain spans, configure the respective integrations directly or use `ignoreSpans`.")}),b=!0)}function $(e,t){e.updateName(t),e.setAttributes({[s.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]:"custom",[s.SEMANTIC_ATTRIBUTE_SENTRY_CUSTOM_SPAN_NAME]:t})}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{attributeValueToTypedAttributeValue:()=>o,estimateTypedAttributesSizeInBytes:()=>s,isAttributeObject:()=>i,serializeAttributes:()=>a});var n=r(359);function i(e){return"object"==typeof e&&null!=e&&!Array.isArray(e)&&Object.keys(e).includes("value")}function o(e,t){const{value:r,unit:n}=i(e)?e:{value:e,unit:void 0},o=function(e){if(Array.isArray(e))return{value:e,type:"array"};const t="string"==typeof e?"string":"boolean"==typeof e?"boolean":"number"!=typeof e||Number.isNaN(e)?null:Number.isInteger(e)?"integer":"double";if(t)return{value:e,type:t}}(r),a=n&&"string"==typeof n?{unit:n}:{};if(o)return{...o,...a};if(!t||"skip-undefined"===t&&void 0===r)return;let s="";try{s=JSON.stringify(r)??""}catch{}return{value:s,type:"string",...a}}function a(e,t=!1){const r={};for(const[n,i]of Object.entries(e??{})){const e=o(i,t);e&&(r[n]=e)}return r}function s(e){if(!e)return 0;let t=0;for(const[r,i]of Object.entries(e)){t+=2*r.length,t+=2*i.type.length,t+=2*(i.unit?.length??0);const e=i.value;Array.isArray(e)?t+=l(e[0])*e.length:(0,n.isPrimitive)(e)?t+=l(e):t+=100}return t}function l(e){return"string"==typeof e?2*e.length:"boolean"==typeof e?4:"number"==typeof e?8:0}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{SPAN_STATUS_ERROR:()=>o,SPAN_STATUS_OK:()=>i,SPAN_STATUS_UNSET:()=>n,getSpanStatusFromHttpCode:()=>a,setHttpStatus:()=>s});const n=0,i=1,o=2;function a(e){if(e<400&&e>=100)return{code:i};if(e>=400&&e<500)switch(e){case 401:return{code:o,message:"unauthenticated"};case 403:return{code:o,message:"permission_denied"};case 404:return{code:o,message:"not_found"};case 409:return{code:o,message:"already_exists"};case 413:return{code:o,message:"failed_precondition"};case 429:return{code:o,message:"resource_exhausted"};case 499:return{code:o,message:"cancelled"};default:return{code:o,message:"invalid_argument"}}if(e>=500&&e<600)switch(e){case 501:return{code:o,message:"unimplemented"};case 503:return{code:o,message:"unavailable"};case 504:return{code:o,message:"deadline_exceeded"};default:return{code:o,message:"internal_error"}}return{code:o,message:"internal_error"}}function s(e,t){e.setAttribute("http.response.status_code",t);const r=a(t);"unknown_error"!==r.message&&e.setStatus(r)}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{getCapturedScopesOnSpan:()=>p,markSpanAsTracerProviderSpan:()=>g,markSpanForOtelSourceInference:()=>d,markSpanSourceAsExplicit:()=>f,setCapturedScopesOnSpan:()=>u,spanIsTracerProviderSpan:()=>y,spanShouldInferOtelSource:()=>h,spanSourceWasExplicitlySet:()=>m});var n=r(357),i=r(369);const o="_sentryScope",a="_sentryIsolationScope",s=Symbol.for("sentry.otelSourceInference"),l=Symbol.for("sentry.otelSourceExplicitlySet"),c=Symbol.for("sentry.tracerProviderSpan");function u(e,t,r){e&&((0,n.addNonEnumerableProperty)(e,a,(0,i.makeWeakRef)(r)),(0,n.addNonEnumerableProperty)(e,o,t))}function p(e){const t=e;return{scope:t[o],isolationScope:(0,i.derefWeakRef)(t[a])}}function d(e){(0,n.addNonEnumerableProperty)(e,s,!0)}function h(e){return!0===e[s]}function f(e){(0,n.addNonEnumerableProperty)(e,l,!0)}function m(e){return!0===e[l]}function g(e){(0,n.addNonEnumerableProperty)(e,c,!0)}function y(e){return!0===e[c]}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{TRACEPARENT_REGEXP:()=>c,extractTraceparentData:()=>u,generateSentryTraceHeader:()=>d,generateTraceparentHeader:()=>h,propagationContextFromHeaders:()=>p,shouldContinueTrace:()=>f});var n=r(358),i=r(373),o=r(384),a=r(378),s=r(367),l=r(360);const c=new RegExp("^[ \\t]*([0-9a-f]{32})?-?([0-9a-f]{16})?-?([01])?[ \\t]*$");function u(e){if(!e)return;const t=e.match(c);if(!t)return;let r;return"1"===t[3]?r=!0:"0"===t[3]&&(r=!1),{traceId:t[1],parentSampled:r,parentSpanId:t[2]}}function p(e,t){const r=u(e),n=(0,i.baggageHeaderToDynamicSamplingContext)(t);if(!r?.traceId)return{traceId:(0,s.generateTraceId)(),sampleRand:(0,l.safeMathRandom)()};const o=function(e,t){const r=(0,a.parseSampleRate)(t?.sample_rand);if(void 0!==r)return r;const n=(0,a.parseSampleRate)(t?.sample_rate);return n&&void 0!==e?.parentSampled?e.parentSampled?(0,l.safeMathRandom)()*n:n+(0,l.safeMathRandom)()*(1-n):(0,l.safeMathRandom)()}(r,n);n&&(n.sample_rand=o.toString());const{traceId:c,parentSpanId:p,parentSampled:d}=r;return{traceId:c,parentSpanId:p,sampled:d,dsc:n||{},sampleRand:o}}function d(e=(0,s.generateTraceId)(),t=(0,s.generateSpanId)(),r){let n="";return void 0!==r&&(n=r?"-1":"-0"),`${e}-${t}${n}`}function h(e=(0,s.generateTraceId)(),t=(0,s.generateSpanId)(),r){return`00-${e}-${t}-${r?"01":"00"}`}function f(e,t){const r=(0,o.extractOrgIdFromClient)(e);if(t&&r&&t!==r)return n.debug.log(`Won't continue trace because org IDs don't match (incoming baggage: ${t}, SDK options: ${r})`),!1;return!(e.getOptions().strictTraceContinuation||!1)||!(t&&!r||!t&&r)||(n.debug.log(`Starting a new trace because strict trace continuation is enabled but one org ID is missing (incoming baggage: ${t}, Sentry client: ${r})`),!1)}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{dsnFromString:()=>l,dsnToString:()=>s,extractOrgIdFromClient:()=>p,extractOrgIdFromDsnHost:()=>u,makeDsn:()=>d});var n=r(354),i=r(358);const o=/^o(\d+)\./,a=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)((?:\[[:.%\w]+\]|[\w.-]+))(?::(\d+))?\/(.+)/;function s(e,t=!1){const{host:r,path:n,pass:i,port:o,projectId:a,protocol:s,publicKey:l}=e;return`${s}://${l}${t&&i?`:${i}`:""}@${r}${o?`:${o}`:""}/${n?`${n}/`:n}${a}`}function l(e){const t=a.exec(e);if(!t)return void(0,i.consoleSandbox)(()=>{console.error(`Invalid Sentry Dsn: ${e}`)});const[r,n,o="",s="",l="",u=""]=t.slice(1);let p="",d=u;const h=d.split("/");if(h.length>1&&(p=h.slice(0,-1).join("/"),d=h.pop()),d){const e=d.match(/^\d+/);e&&(d=e[0])}return c({host:s,pass:o,path:p,projectId:d,port:l,protocol:r,publicKey:n})}function c(e){return{protocol:e.protocol,publicKey:e.publicKey||"",pass:e.pass||"",host:e.host,port:e.port||"",path:e.path||"",projectId:e.projectId}}function u(e){const t=e.match(o);return t?.[1]}function p(e){const t=e.getOptions(),{host:r}=e.getDsn()||{};let n;return t.orgId?n=String(t.orgId):r&&(n=u(r)),n}function d(e){const t="string"==typeof e?l(e):c(e);if(t&&function(e){if(!n.DEBUG_BUILD)return!0;const{port:t,projectId:r,protocol:o}=e;return!(["protocol","publicKey","host","projectId"].find(t=>!e[t]&&(i.debug.error(`Invalid Sentry Dsn: ${t} missing`),!0))||(r.match(/^\d+$/)?function(e){return"http"===e||"https"===e}(o)?t&&isNaN(parseInt(t,10))&&(i.debug.error(`Invalid Sentry Dsn: Invalid port ${t}`),1):(i.debug.error(`Invalid Sentry Dsn: Invalid protocol ${o}`),1):(i.debug.error(`Invalid Sentry Dsn: Invalid projectId ${r}`),1)))}(t))return t}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{freezeDscOnSpan:()=>f,getDynamicSamplingContextFromClient:()=>m,getDynamicSamplingContextFromScope:()=>g,getDynamicSamplingContextFromSpan:()=>y,spanToBaggageHeader:()=>b});var n=r(386),i=r(346),o=r(372),a=r(373),s=r(384),l=r(375),c=r(357),u=r(379),p=r(387),d=r(382);const h="_frozenDsc";function f(e,t){const r=e;(0,c.addNonEnumerableProperty)(r,h,t)}function m(e,t){const r=t.getOptions(),{publicKey:i}=t.getDsn()||{},o={environment:r.environment||n.DEFAULT_ENVIRONMENT,release:r.release,public_key:i,trace_id:e,org_id:(0,s.extractOrgIdFromClient)(t)};return t.emit("createDsc",o),o}function g(e,t){const r=t.getPropagationContext();return r.dsc||m(r.traceId,e)}function y(e){const t=(0,i.getClient)();if(!t)return{};const r=(0,u.getRootSpan)(e),n=(0,u.spanToJSON)(r),s=n.data,c=r.spanContext().traceState,f=c?.get("sentry.sample_rate")??s[o.SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE]??s[o.SEMANTIC_ATTRIBUTE_SENTRY_PREVIOUS_TRACE_SAMPLE_RATE];function y(e){return"number"!=typeof f&&"string"!=typeof f||(e.sample_rate=`${f}`),e}const b=r[h];if(b)return y(b);const v=(0,p.spanIsNonRecordingSpan)(r),_=v&&"ignored"===r.dropReason;if(v&&(!(0,l.hasSpansEnabled)(t.getOptions())||_)){const e=(0,d.getCapturedScopesOnSpan)(r).scope;if(e){const r={...g(t,e)};return _&&(r.sampled="false"),y(r)}}const S=c?.get("sentry.dsc"),E=S&&(0,a.baggageHeaderToDynamicSamplingContext)(S);if(E)return y(E);const T=m(e.spanContext().traceId,t),w=s[o.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]??s["sentry.segment.name.source"],x=n.description;return"url"!==w&&x&&(T.transaction=x),(0,l.hasSpansEnabled)()&&(T.sampled=String((0,u.spanIsSampled)(r)),T.sample_rand=c?.get("sentry.sample_rand")??(0,d.getCapturedScopesOnSpan)(r).scope?.getPropagationContext().sampleRand.toString()),y(T),t.emit("createDsc",T,r),T}function b(e){const t=y(e);return(0,a.dynamicSamplingContextToSentryBaggageHeader)(t)}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{DEFAULT_ENVIRONMENT:()=>n,DEV_ENVIRONMENT:()=>i});const n="production",i="development"},(e,t,r)=>{"use strict";r.r(t),r.d(t,{SentryNonRecordingSpan:()=>s,spanIsNonRecordingSpan:()=>l});var n=r(357),i=r(367),o=r(379);const a=Symbol.for("sentry.nonRecordingSpan");class s{constructor(e={}){this._traceId=e.traceId||(0,i.generateTraceId)(),this._spanId=e.spanId||(0,i.generateSpanId)(),this.dropReason=e.dropReason,(0,n.addNonEnumerableProperty)(this,a,!0)}spanContext(){return{spanId:this._spanId,traceId:this._traceId,traceFlags:o.TRACE_FLAG_NONE}}end(e){}setAttribute(e,t){return this}setAttributes(e){return this}setStatus(e){return this}updateName(e){return this}isRecording(){return!1}
1addEvent(e,t,r){return this}addLink(e){return this}addLinks(e){return this}recordException(e,t){}}function l(e){return!!e&&!0===e[a]}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{logSpanEnd:()=>s,logSpanStart:()=>a});var n=r(354),i=r(358),o=r(379);function a(e){if(!n.DEBUG_BUILD)return;const{description:t="< unknown name >",op:r="< unknown op >",parent_span_id:a}=(0,o.spanToJSON)(e),{spanId:s}=e.spanContext(),l=(0,o.spanIsSampled)(e),c=(0,o.getRootSpan)(e),u=c===e,p=`[Tracing] Starting ${l?"sampled":"unsampled"} ${u?"root ":""}span`,d=[`op: ${r}`,`name: ${t}`,`ID: ${s}`];if(a&&d.push(`parent ID: ${a}`),!u){const{op:e,description:t}=(0,o.spanToJSON)(c);d.push(`root ID: ${c.spanContext().spanId}`),e&&d.push(`root op: ${e}`),t&&d.push(`root description: ${t}`)}i.debug.log(`${p}\n  ${d.join("\n  ")}`)}function s(e){if(!n.DEBUG_BUILD)return;const{description:t="< unknown name >",op:r="< unknown op >"}=(0,o.spanToJSON)(e),{spanId:a}=e.spanContext(),s=`[Tracing] Finishing "${r}" ${(0,o.getRootSpan)(e)===e?"root ":""}span "${t}" with ID ${a}`;i.debug.log(s)}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{sampleSpan:()=>s});var n=r(354),i=r(358),o=r(375),a=r(378);function s(e,t,r){if(!(0,o.hasSpansEnabled)(e))return[!1];let s,l;"function"==typeof e.tracesSampler?(l=e.tracesSampler({...t,inheritOrSampleWith:e=>"number"==typeof t.parentSampleRate?t.parentSampleRate:"boolean"==typeof t.parentSampled?Number(t.parentSampled):e}),s=!0):void 0!==t.parentSampled?l=t.parentSampled:void 0!==e.tracesSampleRate&&(l=e.tracesSampleRate,s=!0);const c=(0,a.parseSampleRate)(l);if(void 0===c)return n.DEBUG_BUILD&&i.debug.warn(`[Tracing] Discarding root span because of invalid sample rate. Sample rate must be a boolean or a number between 0 and 1. Got ${JSON.stringify(l)} of type ${JSON.stringify(typeof l)}.`),[!1];if(!c)return n.DEBUG_BUILD&&i.debug.log("[Tracing] Discarding transaction because "+("function"==typeof e.tracesSampler?"tracesSampler returned 0 or false":"a negative sampling decision was inherited or tracesSampleRate is set to 0")),[!1,c,s];const u=r<c;return u||n.DEBUG_BUILD&&i.debug.log(`[Tracing] Discarding transaction because it's not included in the random sample (sampling rate = ${Number(l)})`),[u,c,s]}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{SentrySpan:()=>y});var n=r(346),i=r(354),o=r(391),a=r(372),s=r(358),l=r(367),c=r(379),u=r(365),p=r(385),d=r(388),h=r(394),f=r(395),m=r(377),g=r(382);class y{constructor(e={}){this._traceId=e.traceId||(0,l.generateTraceId)(),this._spanId=e.spanId||(0,l.generateSpanId)(),this._startTime=e.startTimestamp||(0,u.timestampInSeconds)(),this._links=e.links,this._attributes={},this.setAttributes({[a.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"manual",[a.SEMANTIC_ATTRIBUTE_SENTRY_OP]:e.op,...e.attributes}),this._name=e.name,e.parentSpanId&&(this._parentSpanId=e.parentSpanId),"sampled"in e&&(this._sampled=e.sampled),e.endTimestamp&&(this._endTime=e.endTimestamp),this._events=[],this._isStandaloneSpan=e.isStandalone,this._endTime&&this._onSpanEnded()}addLink(e){return this._frozen||(this._links?this._links.push(e):this._links=[e]),this}addLinks(e){return this._frozen||(this._links?this._links.push(...e):this._links=e),this}recordException(e,t){}spanContext(){const{_spanId:e,_traceId:t,_sampled:r}=this;return{spanId:e,traceId:t,traceFlags:r?c.TRACE_FLAG_SAMPLED:c.TRACE_FLAG_NONE}}setAttribute(e,t){return this._frozen||(void 0===t?delete this._attributes[e]:this._attributes[e]=t,e===a.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE&&void 0!==t&&(0,g.spanShouldInferOtelSource)(this)&&(0,g.markSpanSourceAsExplicit)(this)),this}setAttributes(e){return Object.keys(e).forEach(t=>this.setAttribute(t,e[t])),this}updateStartTime(e){this._frozen||(this._startTime=(0,c.spanTimeInputToSeconds)(e))}setStatus(e){return this._frozen||(this._status=e),this}updateName(e){return this._frozen||(this._name=e,(0,g.spanShouldInferOtelSource)(this)||this.setAttribute(a.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE,"custom")),this}end(e){this._endTime||(this._endTime=(0,c.spanTimeInputToSeconds)(e),(0,d.logSpanEnd)(this),this._onSpanEnded()),this._frozen=(0,g.spanIsTracerProviderSpan)(this)}getSpanJSON(){return{data:this._attributes,description:this._name,op:this._attributes[a.SEMANTIC_ATTRIBUTE_SENTRY_OP],parent_span_id:this._parentSpanId,span_id:this._spanId,start_timestamp:this._startTime,status:(0,c.getStatusMessage)(this._status),timestamp:this._endTime,trace_id:this._traceId,origin:this._attributes[a.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN],profile_id:this._attributes[a.SEMANTIC_ATTRIBUTE_PROFILE_ID],exclusive_time:this._attributes[a.SEMANTIC_ATTRIBUTE_EXCLUSIVE_TIME],measurements:(0,h.timedEventsToMeasurements)(this._events),is_segment:this._isStandaloneSpan&&(0,c.getRootSpan)(this)===this||void 0,segment_id:this._isStandaloneSpan?(0,c.getRootSpan)(this).spanContext().spanId:void 0,links:(0,c.convertSpanLinksForEnvelope)(this._links)}}getStreamedSpanJSON(){return{name:this._name??"",span_id:this._spanId,trace_id:this._traceId,parent_span_id:this._parentSpanId,start_timestamp:this._startTime,end_timestamp:this._endTime??this._startTime,is_segment:this._isStandaloneSpan||this===(0,c.getRootSpan)(this),status:(0,c.getSimpleStatus)(this._status),attributes:(0,c.addStatusMessageAttribute)(this._attributes,this._status),links:(0,c.getStreamedSpanLinks)(this._links)}}isRecording(){return!this._endTime&&!!this._sampled}addEvent(e,t,r){if(this._frozen)return this;i.DEBUG_BUILD&&s.debug.log("[Tracing] Adding an event to span:",e);const n=b(t)?t:r||(0,u.timestampInSeconds)(),o=b(t)?{}:t||{},a={name:e,time:(0,c.spanTimeInputToSeconds)(n),attributes:o};return this._events.push(a),this}isStandaloneSpan(){return!!this._isStandaloneSpan}_onSpanEnded(){const e=(0,n.getClient)();e&&(e.emit("spanEnd",this),this._isStandaloneSpan||e.emit("afterSpanEnd",this));const t=(0,c.getRootSpan)(this),r=this._isStandaloneSpan||this===t;if(this._isStandaloneSpan)return void(this._sampled?function(e){const t=(0,n.getClient)();if(!t)return;const r=e[1];if(!r||0===r.length)return void t.recordDroppedEvent("before_send","span");t.sendEnvelope(e)}((0,o.createSpanEnvelope)([this],e)):(i.DEBUG_BUILD&&s.debug.log("[Tracing] Discarding standalone span because its trace was not chosen to be sampled."),e&&e.recordDroppedEvent("sample_rate","span")));if(!r){const e=(0,f.getSegmentSpanCaptureStrategy)();if(e){const r=(0,g.getCapturedScopesOnSpan)(this).scope||(0,n.getCurrentScope)();e.onChildSpanEnded(this,t,e=>this._convertSpanToTransaction(e),r)}return}if(e&&(0,m.hasSpanStreamingEnabled)(e))return void e.emit("afterSegmentSpanEnd",this);const a=(0,g.getCapturedScopesOnSpan)(this).scope||(0,n.getCurrentScope)(),l=(0,f.getSegmentSpanCaptureStrategy)();if(l)l.onSegmentSpanEnded(e=>this._convertSpanToTransaction(e),a);else{const e=this._convertSpanToTransaction();e&&a.captureEvent(e)}}_convertSpanToTransaction(e={}){if(!v((0,c.spanToJSON)(this)))return;this._name||(i.DEBUG_BUILD&&s.debug.warn("Transaction has no name, falling back to `<unlabeled transaction>`."),this._name="<unlabeled transaction>");const{scope:t,isolationScope:r}=(0,g.getCapturedScopesOnSpan)(this),n=t?.getScopeData().sdkProcessingMetadata?.normalizedRequest;if(!0!==this._sampled)return;e.onSpanCaptured?.(this);const o=[];for(const t of(0,c.getSpanDescendants)(this)){if(t===this||_(t)||e.isSpanAlreadyCaptured?.(t))continue;const r=(0,c.spanToJSON)(t);v(r)&&(e.onSpanCaptured?.(t),o.push(r))}const l=this._attributes[a.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE];delete this._attributes[a.SEMANTIC_ATTRIBUTE_SENTRY_CUSTOM_SPAN_NAME];let u=!1;
1o.forEach(e=>{delete e.data[a.SEMANTIC_ATTRIBUTE_SENTRY_CUSTOM_SPAN_NAME],e.op?.startsWith("gen_ai.")&&(u=!0)});const d={contexts:{trace:(0,c.spanToTransactionTraceContext)(this)},spans:o.length>1e3?o.sort((e,t)=>e.start_timestamp-t.start_timestamp).slice(0,1e3):o,start_timestamp:this._startTime,timestamp:this._endTime,transaction:this._name,type:"transaction",sdkProcessingMetadata:{capturedSpanScope:t,capturedSpanIsolationScope:r,dynamicSamplingContext:(0,p.getDynamicSamplingContextFromSpan)(this),hasGenAiSpans:u},request:n,...l&&{transaction_info:{source:l}}},f=(0,h.timedEventsToMeasurements)(this._events);return f&&Object.keys(f).length&&(i.DEBUG_BUILD&&s.debug.log("[Measurements] Adding measurements to transaction event",JSON.stringify(f,void 0,2)),d.measurements=f),d}}function b(e){return e&&"number"==typeof e||e instanceof Date||Array.isArray(e)}function v(e){return!!(e.start_timestamp&&e.timestamp&&e.span_id&&e.trace_id)}function _(e){return e instanceof y&&e.isStandaloneSpan()}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{_enhanceEventWithSdkInfo:()=>u,createEventEnvelope:()=>d,createSessionEnvelope:()=>p,createSpanEnvelope:()=>h});var n=r(385),i=r(392),o=r(384),a=r(393),s=r(360),l=r(376),c=r(379);function u(e,t){if(!t)return e;const r=e.sdk||{};return e.sdk={...r,name:r.name||t.name,version:r.version||t.version,integrations:[...e.sdk?.integrations||[],...t.integrations||[]],packages:[...e.sdk?.packages||[],...t.packages||[]],settings:e.sdk?.settings||t.settings?{...e.sdk?.settings,...t.settings}:void 0},e}function p(e,t,r,n){const i=(0,a.getSdkMetadataForEnvelopeHeader)(r),l={sent_at:new Date((0,s.safeDateNow)()).toISOString(),...i&&{sdk:i},...!!n&&t&&{dsn:(0,o.dsnToString)(t)}},c="aggregates"in e?[{type:"sessions"},e]:[{type:"session"},e.toJSON()];return(0,a.createEnvelope)(l,[c])}function d(e,t,r,n){const i=(0,a.getSdkMetadataForEnvelopeHeader)(r),o=e.type&&"replay_event"!==e.type?e.type:"event";u(e,r?.sdk);const s=(0,a.createEventEnvelopeHeaders)(e,i,n,t);delete e.sdkProcessingMetadata;const l=[{type:o},e];return(0,a.createEnvelope)(s,[l])}function h(e,t){const r=(0,n.getDynamicSamplingContextFromSpan)(e[0]),u=t?.getDsn(),p=t?.getOptions().tunnel,d={sent_at:new Date((0,s.safeDateNow)()).toISOString(),...(h=r,!!h.trace_id&&!!h.public_key&&{trace:r}),...!!p&&u&&{dsn:(0,o.dsnToString)(u)}};var h;const{beforeSendSpan:f,ignoreSpans:m}=t?.getOptions()||{},g=m?.length?e.filter(e=>{const t=(0,c.spanToJSON)(e);return!(0,l.shouldIgnoreSpan)({description:t.description,op:t.op,attributes:t.data},m)}):e,y=e.length-g.length;y&&t?.recordDroppedEvent("before_send","span",y);const b=f?e=>{const t=(0,c.spanToJSON)(e),r=(0,i.isStreamedBeforeSendSpanCallback)(f)?t:f(t);return r||((0,c.showSpanDropWarning)(),t)}:c.spanToJSON,v=[];for(const e of g){const t=b(e);t&&v.push((0,a.createSpanEnvelopeItem)(t))}return(0,a.createEnvelope)(d,v)}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{isStreamedBeforeSendSpanCallback:()=>o,withStreamedSpan:()=>i});var n=r(357);function i(e){return(0,n.addNonEnumerableProperty)(e,"_streamed",!0),e}function o(e){return!!e&&"function"==typeof e&&"_streamed"in e&&!!e._streamed}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{addItemToEnvelope:()=>c,createAttachmentEnvelopeItem:()=>g,createEnvelope:()=>l,createEventEnvelopeHeaders:()=>_,createSpanEnvelopeItem:()=>m,envelopeContainsItemType:()=>p,envelopeItemTypeToDataCategory:()=>b,forEachEnvelopeItem:()=>u,getSdkMetadataForEnvelopeHeader:()=>v,parseEnvelope:()=>f,serializeEnvelope:()=>h});var n=r(348),i=r(384),o=r(362),a=r(360),s=r(350);function l(e,t=[]){return[e,t]}function c(e,t){const[r,n]=e;return[r,[...n,t]]}function u(e,t){const r=e[1];for(const e of r){if(t(e,e[0].type))return!0}return!1}function p(e,t){return u(e,(e,r)=>t.includes(r))}function d(e){const t=(0,n.getSentryCarrier)(s.GLOBAL_OBJ);return t.encodePolyfill?t.encodePolyfill(e):(new TextEncoder).encode(e)}function h(e){const[t,r]=e;let n=JSON.stringify(t);function i(e){"string"==typeof n?n="string"==typeof e?n+e:[d(n),e]:n.push("string"==typeof e?d(e):e)}for(const e of r){const[t,r]=e;if(i(`\n${JSON.stringify(t)}\n`),"string"==typeof r||r instanceof Uint8Array)i(r);else{let e;try{e=JSON.stringify(r)}catch{e=JSON.stringify((0,o.normalize)(r))}i(e)}}return"string"==typeof n?n:function(e){const t=e.reduce((e,t)=>
1e+t.length,0),r=new Uint8Array(t);let n=0;for(const t of e)r.set(t,n),n+=t.length;return r}(n)}function f(e){let t="string"==typeof e?d(e):e;function r(e){const r=t.subarray(0,e);return t=t.subarray(e+1),r}function i(){let e=t.indexOf(10);return e<0&&(e=t.length),JSON.parse(function(e){const t=(0,n.getSentryCarrier)(s.GLOBAL_OBJ);return t.decodePolyfill?t.decodePolyfill(e):(new TextDecoder).decode(e)}(r(e)))}const o=i(),a=[];for(;t.length;){const e=i(),t="number"==typeof e.length?e.length:void 0;a.push([e,t?r(t):i()])}return[o,a]}function m(e){return[{type:"span"},e]}function g(e){const t="string"==typeof e.data?d(e.data):e.data;return[{type:"attachment",length:t.length,filename:e.filename,content_type:e.contentType,attachment_type:e.attachmentType},t]}const y={sessions:"session",event:"error",client_report:"internal",user_report:"default",profile_chunk:"profile",replay_event:"replay",replay_recording:"replay",check_in:"monitor",raw_security:"security",log:"log_item",trace_metric:"metric"};function b(e){return function(e){return e in y}(e)?y[e]:e}function v(e){if(!e?.sdk)return;const{name:t,version:r}=e.sdk;return{name:t,version:r}}function _(e,t,r,n){const o=e.sdkProcessingMetadata?.dynamicSamplingContext;return{event_id:e.event_id,sent_at:new Date((0,a.safeDateNow)()).toISOString(),...t&&{sdk:t},...!!r&&n&&{dsn:(0,i.dsnToString)(n)},...o&&{trace:o}}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{setMeasurement:()=>s,timedEventsToMeasurements:()=>l});var n=r(354),i=r(372),o=r(358),a=r(379);function s(e,t,r,s=(0,a.getActiveSpan)()){const l=s&&(0,a.getRootSpan)(s);l&&(n.DEBUG_BUILD&&o.debug.log(`[Measurement] Setting measurement on root span: ${e} = ${t} ${r}`),l.addEvent(e,{[i.SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_VALUE]:t,[i.SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_UNIT]:r}))}function l(e){if(!e||0===e.length)return;const t={};return e.forEach(e=>{const r=e.attributes||{},n=r[i.SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_UNIT],o=r[i.SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_VALUE];"string"==typeof n&&"number"==typeof o&&(t[e.name]={value:o,unit:n})}),t}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{getSegmentSpanCaptureStrategy:()=>o,setSegmentSpanCaptureStrategy:()=>i});var n=r(348);function i(e){(0,n.getSentryCarrier)((0,n.getMainCarrier)()).segmentSpanCaptureStrategy=e}function o(){return(0,n.getSentryCarrier)((0,n.getMainCarrier)()).segmentSpanCaptureStrategy}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{applyClientOptions:()=>f,applyDebugIds:()=>m,applyDebugMeta:()=>g,parseEventHintOrCaptureContext:()=>y,prepareEvent:()=>h});var n=r(386),i=r(397),o=r(353),a=r(399),s=r(356),l=r(362),c=r(400),u=r(361),p=r(398),d=r(365);function h(e,t,r,n,a,u){const{normalizeDepth:h=3,normalizeMaxBreadth:y=1e3}=e,b={...t,event_id:t.event_id||r.event_id||(0,s.uuid4)(),timestamp:t.timestamp||(0,d.dateTimestampInSeconds)()},v=r.integrations||e.integrations.map(e=>e.name);f(b,e),function(e,t){t.length>0&&(e.sdk=e.sdk||{},e.sdk.integrations=[...e.sdk.integrations||[],...t])}
1(b,v),a&&a.emit("applyFrameMetadata",t),void 0===t.type&&m(b,e.stackParser);const _=function(e,t){if(!t)return e;const r=e?e.clone():new o.Scope;return r.update(t),r}(n,r.captureContext);r.mechanism&&(0,s.addExceptionMechanism)(b,r.mechanism);const S=a?a.getEventProcessors():[],E=(0,c.getCombinedScopeData)(u,_),T=[...r.attachments||[],...E.attachments];T.length&&(r.attachments=T),(0,c.applyScopeDataToEvent)(b,E);const w=[...S,...E.eventProcessors];return(r.data&&!0===r.data.__sentry__?(0,p.resolvedSyncPromise)(b):(0,i.notifyEventProcessors)(w,b,r)).then(e=>(e&&g(e),"number"==typeof h&&h>0?function(e,t,r){if(!e)return null;const n={...e,...e.breadcrumbs&&{breadcrumbs:e.breadcrumbs.map(e=>({...e,...e.data&&{data:(0,l.normalize)(e.data,t,r)}}))},...e.user&&{user:(0,l.normalize)(e.user,t,r)},...e.contexts&&{contexts:(0,l.normalize)(e.contexts,t,r)},...e.extra&&{extra:(0,l.normalize)(e.extra,t,r)}};e.contexts?.trace&&n.contexts&&(n.contexts.trace=e.contexts.trace,e.contexts.trace.data&&(n.contexts.trace.data=(0,l.normalize)(e.contexts.trace.data,t,r)));e.spans&&(n.spans=e.spans.map(e=>({...e,...e.data&&{data:(0,l.normalize)(e.data,t,r)}})));e.contexts?.flags&&n.contexts&&(n.contexts.flags=(0,l.normalize)(e.contexts.flags,3,r));return n}(e,h,y):e))}function f(e,t){const{environment:r,release:i,dist:o,maxValueLength:a}=t;e.environment=e.environment||r||n.DEFAULT_ENVIRONMENT,!e.release&&i&&(e.release=i),!e.dist&&o&&(e.dist=o);const s=e.request;s?.url&&a&&(s.url=(0,u.truncate)(s.url,a)),a&&e.exception?.values?.forEach(e=>{e.value&&(e.value=(0,u.truncate)(e.value,a))})}function m(e,t){const r=(0,a.getFilenameToDebugIdMap)(t);e.exception?.values?.forEach(e=>{e.stacktrace?.frames?.forEach(e=>{e.filename&&(e.debug_id=r[e.filename])})})}function g(e){const t={};if(e.exception?.values?.forEach(e=>{e.stacktrace?.frames?.forEach(e=>{e.debug_id&&(e.abs_path?t[e.abs_path]=e.debug_id:e.filename&&(t[e.filename]=e.debug_id),delete e.debug_id)})}),0===Object.keys(t).length)return;e.debug_meta=e.debug_meta||{},e.debug_meta.images=e.debug_meta.images||[];const r=e.debug_meta.images;Object.entries(t).forEach(([e,t])=>{r.push({type:"sourcemap",code_file:e,debug_id:t})})}function y(e){if(e)return function(e){return e instanceof o.Scope||"function"==typeof e}(e)||function(e){return Object.keys(e).some(e=>b.includes(e))}(e)?{captureContext:e}:e}const b=["user","level","extra","contexts","tags","fingerprint","propagationContext"]},(e,t,r)=>{"use strict";r.r(t),r.d(t,{notifyEventProcessors:()=>s});var n=r(354),i=r(358),o=r(359),a=r(398);function s(e,t,r,n=0){try{const i=l(t,r,e,n);return(0,o.isThenable)(i)?i:(0,a.resolvedSyncPromise)(i)}catch(e){return(0,a.rejectedSyncPromise)(e)}}function l(e,t,r,a){const s=r[a];if(!e||!s)return e;const c=s({...e},t);return n.DEBUG_BUILD&&null===c&&i.debug.log(`Event processor "${s.id||"?"}" dropped event`),(0,o.isThenable)(c)?c.then(e=>l(e,t,r,a+1)):l(c,t,r,a+1)}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{SyncPromise:()=>a,rejectedSyncPromise:()=>o,resolvedSyncPromise:()=>i});var n=r(359);function i(e){return new a(t=>{t(e)})}function o(e){return new a((t,r)=>{r(e)})}class a{constructor(e){this._state=0,this._handlers=[],this._runExecutor(e)}then(e,t){return new a((r,n)=>{this._handlers.push([!1,t=>{if(e)try{r(e(t))}catch(e){n(e)}else r(t)},e=>{if(t)try{r(t(e))}catch(e){n(e)}else n(e)}]),this._executeHandlers()})}catch(e){return this.then(e=>e,e)}finally(e){return new a((t,r)=>{let n,i;return this.then(t=>{i=!1,n=t,e&&e()},t=>{i=!0,n=t,e&&e()}).then(()=>{i?r(n):t(n)})})}_executeHandlers(){if(0===this._state)return;const e=this._handlers.slice();this._handlers=[],e.forEach(e=>{e[0]||(1===this._state&&e[1](this._value),2===this._state&&e[2](this._value),e[0]=!0)})}_runExecutor(e){const t=(e,t)=>{0===this._state&&((0,n.isThenable)(t)?t.then(r,i):(this._state=e,this._value=t,this._executeHandlers()))},r=e=>{t(1,e)},i=e=>{t(2,e)};try{e(r,i)}catch(e){i(e)}}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{getDebugImagesForResources:()=>u,getFilenameToDebugIdMap:()=>c});var n=r(364),i=r(350);let o,a,s,l;function c(e){const t=i.GLOBAL_OBJ._sentryDebugIds,r=i.GLOBAL_OBJ._debugIds;if(!t&&!r)return{};const n=t?Object.keys(t):[],c=r?Object.keys(r):[];if(l&&n.length===a&&c.length===s)return l;a=n.length,s=c.length,l={},o||(o={});const u=(t,r)=>{for(const n of t){const t=r[n],i=o?.[n];if(i&&l&&t)l[i[0]]=t,o&&(o[n]=[i[0],t]);else if(t){const r=e(n);for(let e=r.length-1;e>=0;e--){const i=r[e],a=i?.filename;if(a&&l&&o){l[a]=t,o[n]=[a,t];break}}}}};return t&&u(n,t),r&&u(c,r),l}function u(e,t){const r=c(e);if(!r)return[];const i=[];for(const e of t){const t=(0,n.normalizeStackTracePath)(e);t&&r[t]&&i.push({type:"sourcemap",code_file:e,debug_id:r[t]})}return i}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{applyScopeDataToEvent:()=>s,getCombinedScopeData:()=>u,mergeAndOverwriteScopeData:()=>c,mergeScopeData:()=>l});var n=r(346),i=r(385),o=r(366),a=r(379);function s(e,t){const{fingerprint:r,span:n,breadcrumbs:o,sdkProcessingMetadata:s}=t;!function(e,t){const{extra:r,tags:n,user:i,contexts:o,level:a,transactionName:s}=t;Object.keys(r).length&&(e.extra={...r,...e.extra});Object.keys(n).length&&(e.tags={...n,...e.tags});Object.keys(i).length&&(e.user={...i,...e.user});Object.keys(o).length&&(e.contexts={...o,...e.contexts});a&&(e.level=a);s&&"transaction"!==e.type&&(e.transaction=s)}(e,t),n&&function(e,t){e.contexts={trace:(0,a.spanToTraceContext)(t),...e.contexts},e.sdkProcessingMetadata={dynamicSamplingContext:(0,i.getDynamicSamplingContextFromSpan)(t),...e.sdkProcessingMetadata};const r=(0,a.getRootSpan)(t),n=(0,a.spanToJSON)(r).description;n&&!e.transaction&&"transaction"===e.type&&(e.transaction=n)}(e,n),function(e,t){e.fingerprint=e.fingerprint?Array.isArray(e.fingerprint)?e.fingerprint:[e.fingerprint]:[],t&&(e.fingerprint=e.fingerprint.concat(t));e.fingerprint.length||delete e.fingerprint}(e,r),function(e,t){const r=[...e.breadcrumbs||[],...t];e.breadcrumbs=r.length?r:void 0}(e,o),function(e,t){e.sdkProcessingMetadata={...e.sdkProcessingMetadata,...t}}
1(e,s)}function l(e,t){const{extra:r,tags:n,attributes:i,user:a,contexts:s,level:l,sdkProcessingMetadata:u,breadcrumbs:p,fingerprint:d,eventProcessors:h,attachments:f,propagationContext:m,transactionName:g,span:y}=t;c(e,"extra",r),c(e,"tags",n),c(e,"attributes",i),c(e,"user",a),c(e,"contexts",s),e.sdkProcessingMetadata=(0,o.merge)(e.sdkProcessingMetadata,u,2),l&&(e.level=l),g&&(e.transactionName=g),y&&(e.span=y),p.length&&(e.breadcrumbs=[...e.breadcrumbs,...p]),d.length&&(e.fingerprint=[...e.fingerprint,...d]),h.length&&(e.eventProcessors=[...e.eventProcessors,...h]),f.length&&(e.attachments=[...e.attachments,...f]),e.propagationContext={...e.propagationContext,...m}}function c(e,t,r){e[t]=(0,o.merge)(e[t],r,1)}function u(e,t){const r=(0,n.getGlobalScope)().getScopeData();return e&&l(r,e.getScopeData()),t&&l(r,t.getScopeData()),r}},,,,,,,,,(e,t,r)=>{"use strict";r.r(t),r.d(t,{cacheSlot:()=>i,forgetCache:()=>s,makeVar:()=>c,recallCache:()=>l});var n=r(410);const i=new n.Slot,o=new WeakMap;function a(e){let t=o.get(e);return t||o.set(e,t={vars:new Set,dep:(0,n.dep)()}),t}function s(e){a(e).vars.forEach(t=>t.forgetCache(e))}function l(e){a(e).vars.forEach(t=>t.attachCache(e))}function c(e){const t=new Set,r=new Set,n=function(s){if(arguments.length>0){if(e!==s){e=s,t.forEach(e=>{a(e).dep.dirty(n),function(e){e.broadcastWatches&&e.broadcastWatches()}(e)});const i=Array.from(r);r.clear(),i.forEach(t=>t(e))}}else{const e=i.getValue();e&&(o(e),a(e).dep(n))}return e};n.onNextChange=e=>(r.add(e),()=>{r.delete(e)});const o=n.attachCache=e=>(t.add(e),a(e).vars.add(n),n);return n.forgetCache=e=>t.delete(e),n}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{KeyTrie:()=>n.Trie,Slot:()=>a.Slot,asyncFromGen:()=>a.asyncFromGen,bindContext:()=>a.bindContext,defaultMakeCacheKey:()=>c,dep:()=>s.dep,noContext:()=>a.noContext,nonReactive:()=>a.nonReactive,setTimeout:()=>a.setTimeout,wrap:()=>p});var n=r(411),i=r(412),o=r(413),a=r(414),s=r(418);let l;function c(...e){return(l||(l=new n.Trie("function"==typeof WeakMap))).lookupArray(e)}const u=new Set;function p(e,{max:t=Math.pow(2,16),keyArgs:r,makeCacheKey:n=c,normalizeResult:s,subscribe:l,cache:p=i.StrongCache}=Object.create(null)){const d="function"==typeof p?new p(t,e=>e.dispose()):p,h=function(){const t=n.apply(null,r?r.apply(null,arguments):arguments);if(void 0===t)return e.apply(null,arguments);let i=d.get(t);i||(d.set(t,i=new o.Entry(e)),i.normalizeResult=s,i.subscribe=l,i.forget=()=>d.delete(t));const c=i.recompute(Array.prototype.slice.call(arguments));return d.set(t,i),u.add(d),a.parentEntrySlot.hasValue()||(u.forEach(e=>e.clean()),u.clear()),c};function f(e){const t=e&&d.get(e);t&&t.setDirty()}function m(e){const t=e&&d.get(e);if(t)return t.peek()}function g(e){return!!e&&d.delete(e)}return Object.defineProperty(h,"size",{get:()=>d.size,configurable:!1,enumerable:!1}),Object.freeze(h.options={max:t,keyArgs:r,makeCacheKey:n,normalizeResult:s,subscribe:l,cache:d}),h.dirtyKey=f,h.dirty=function(){f(n.apply(null,arguments))},h.peekKey=m,h.peek=function(){return m(n.apply(null,arguments))},h.forgetKey=g,h.forget=function(){return g(n.apply(null,arguments))},h.makeCacheKey=n,h.getKey=r?function(){return n.apply(null,r.apply(null,arguments))}:n,Object.freeze(h)}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{Trie:()=>s});const n=()=>Object.create(null),{forEach:i,slice:o}=Array.prototype,{hasOwnProperty:a}=Object.prototype;class s{constructor(e=!0,t=n){this.weakness=e,this.makeData=t}lookup(){return this.lookupArray(arguments)}lookupArray(e){let t=this;return i.call(e,e=>t=t.getChildTrie(e)),a.call(t,"data")?t.data:t.data=this.makeData(o.call(e))}peek(){return this.peekArray(arguments)}peekArray(e){let t=this;for(let r=0,n=e.length;t&&r<n;++r){const n=t.mapFor(e[r],!1);t=n&&n.get(e[r])}return t&&t.data}remove(){return this.removeArray(arguments)}removeArray(e){let t;if(e.length){const r=e[0],n=this.mapFor(r,!1),i=n&&n.get(r);i&&(t=i.removeArray(o.call(e,1)),i.data||i.weak||i.strong&&i.strong.size||n.delete(r))}else t=this.data,delete this.data;return t}getChildTrie(e){const t=this.mapFor(e,!0);let r=t.get(e);return r||t.set(e,r=new s(this.weakness,this.makeData)),r}mapFor(e,t){return this.weakness&&function(e){switch(typeof e){case"object":if(null===e)break;case"function":return!0}return!1}(e)?this.weak||(t?this.weak=new WeakMap:void 0):this.strong||(t?this.strong=new Map:void 0)}}},(e,t,r)=>{"use strict";function n(){}r.r(t),r.d(t,{StrongCache:()=>i});class i{constructor(e=1/0,t=n){this.max=e,this.dispose=t,this.map=new Map,this.newest=null,this.oldest=null}has(e){return this.map.has(e)}get(e){const t=this.getNode(e);return t&&t.value}get size(){return this.map.size}getNode(e){const t=this.map.get(e);if(t&&t!==this.newest){const{older:e,newer:r}=t;r&&(r.older=e),e&&(e.newer=r),t.older=this.newest,t.older.newer=t,t.newer=null,this.newest=t,t===this.oldest&&(this.oldest=r)}return t}set(e,t){let r=this.getNode(e);return r?r.value=t:(r={key:e,value:t,newer:null,older:this.newest},this.newest&&(this.newest.newer=r),this.newest=r,this.oldest=this.oldest||r,this.map.set(e,r),r.value)}clean(){for(;this.oldest&&this.map.size>this.max;)this.delete(this.oldest.key)}delete(e){const t=this.map.get(e);return!!t&&(t===this.newest&&(this.newest=t.older),t===this.oldest&&(this.oldest=t.newer),t.newer&&(t.newer.older=t.older),t.older&&(t.older.newer=t.newer),this.map.delete(e),this.dispose(t.value,e),!0)}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{Entry:()=>u});var n=r(414),i=r(417);const o=[];function a(e,t){if(!e)throw new Error(t||"assertion failure")}function s(e,t){const r=e.length;return r>0&&r===t.length&&e[r-1]===t[r-1]}function l(e){switch(e.length){case 0:throw new Error("unknown value");case 1:return e[0];case 2:throw e[1]}}function c(e){return e.slice(0)}class u{constructor(e){this.fn=e,this.parents=new Set,this.childValues=new Map,this.dirtyChildren=null,this.dirty=!0,this.recomputing=!1,this.value=[],this.deps=null,++u.count}peek(){if(1===this.value.length&&!h(this))return p(this),this.value[0]}recompute(e){return a(!this.recomputing,"already recomputing"),p(this),h(this)?function(e,t){_(e),n.parentEntrySlot.withValue(e,d,[e,t]),function(e,t){if("function"==typeof e.subscribe)try{(0,i.maybeUnsubscribe)(e),e.unsubscribe=e.subscribe.apply(null,t)}catch(t){return e.setDirty(),!1}return!0}(e,t)&&function(e){if(e.dirty=!1,h(e))return;m(e)}(e);return l(e.value)}(this,e):l(this.value)}setDirty(){this.dirty||(this.dirty=!0,f(this),(0,i.maybeUnsubscribe)(this))}dispose(){this.setDirty(),_(this),g(this,(e,t)=>{e.setDirty(),S(e,this)})}forget(){this.dispose()}dependOn(e){e.add(this),this.deps||(this.deps=o.pop()||new Set),this.deps.add(e)}
1forgetDeps(){this.deps&&((0,i.arrayFromSet)(this.deps).forEach(e=>e.delete(this)),this.deps.clear(),o.push(this.deps),this.deps=null)}}function p(e){const t=n.parentEntrySlot.getValue();if(t)return e.parents.add(t),t.childValues.has(e)||t.childValues.set(e,[]),h(e)?y(t,e):b(t,e),t}function d(e,t){e.recomputing=!0;const{normalizeResult:r}=e;let n;r&&1===e.value.length&&(n=c(e.value)),e.value.length=0;try{if(e.value[0]=e.fn.apply(null,t),r&&n&&!s(n,e.value))try{e.value[0]=r(e.value[0],n[0])}catch(e){}}catch(t){e.value[1]=t}e.recomputing=!1}function h(e){return e.dirty||!(!e.dirtyChildren||!e.dirtyChildren.size)}function f(e){g(e,y)}function m(e){g(e,b)}function g(e,t){const r=e.parents.size;if(r){const n=(0,i.arrayFromSet)(e.parents);for(let i=0;i<r;++i)t(n[i],e)}}function y(e,t){a(e.childValues.has(t)),a(h(t));const r=!h(e);if(e.dirtyChildren){if(e.dirtyChildren.has(t))return}else e.dirtyChildren=o.pop()||new Set;e.dirtyChildren.add(t),r&&f(e)}function b(e,t){a(e.childValues.has(t)),a(!h(t));const r=e.childValues.get(t);0===r.length?e.childValues.set(t,c(t.value)):s(r,t.value)||e.setDirty(),v(e,t),h(e)||m(e)}function v(e,t){const r=e.dirtyChildren;r&&(r.delete(t),0===r.size&&(o.length<100&&o.push(r),e.dirtyChildren=null))}function _(e){e.childValues.size>0&&e.childValues.forEach((t,r)=>{S(e,r)}),e.forgetDeps(),a(null===e.dirtyChildren)}function S(e,t){t.parents.delete(e),e.childValues.delete(t),v(e,t)}u.count=0},(e,t,r)=>{"use strict";r.r(t),r.d(t,{Slot:()=>n.Slot,asyncFromGen:()=>n.asyncFromGen,bindContext:()=>n.bind,noContext:()=>n.noContext,nonReactive:()=>o,parentEntrySlot:()=>i,setTimeout:()=>n.setTimeout});var n=r(415);const i=new n.Slot;function o(e){return i.withValue(void 0,e)}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{Slot:()=>n.Slot,asyncFromGen:()=>s,bind:()=>i,noContext:()=>o,setTimeout:()=>a,wrapYieldingFiberMethods:()=>c});var n=r(416);const{bind:i,noContext:o}=n.Slot;function a(e,t){return setTimeout(i(e),t)}function s(e){return function(){const t=e.apply(this,arguments),r=i(t.next),n=i(t.throw);return new Promise((e,i)=>{function o(r,n){try{var o=r.call(t,n)}catch(e){return i(e)}const l=o.done?e:a;var c;(c=o.value)&&"function"==typeof c.then?o.value.then(l,o.done?i:s):l(o.value)}const a=e=>o(r,e),s=e=>o(n,e);a()})}}const l=[];function c(e){if(l.indexOf(e)<0){const t=(e,t)=>{const r=e[t];e[t]=function(){return o(r,arguments,this)}};t(e,"yield"),t(e.prototype,"run"),t(e.prototype,"throwInto"),l.push(e)}return e}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{Slot:()=>c});let n=null;const i={};let o=1;function a(e){try{return e()}catch(e){}}const s="@wry/context:Slot",l=a(()=>globalThis)||a(()=>globalThis)||Object.create(null),c=l[s]||Array[s]||function(e){try{Object.defineProperty(l,s,{value:e,enumerable:!1,writable:!1,configurable:!0})}finally{return e}}(class{constructor(){this.id=["slot",o++,Date.now(),Math.random().toString(36).slice(2)].join(":")}hasValue(){for(let e=n;e;e=e.parent)if(this.id in e.slots){const t=e.slots[this.id];if(t===i)break;return e!==n&&(n.slots[this.id]=t),!0}return n&&(n.slots[this.id]=i),!1}getValue(){if(this.hasValue())return n.slots[this.id]}withValue(e,t,r,i){const o={__proto__:null,[this.id]:e},a=n;n={parent:a,slots:o};try{return t.apply(i,r)}finally{n=a}}static bind(e){const t=n;return function(){const r=n;try{return n=t,e.apply(this,arguments)}finally{n=r}}}static noContext(e,t,r){if(!n)return e.apply(r,t);{const i=n;try{return n=null,e.apply(r,t)}finally{n=i}}}})},(e,t,r)=>{"use strict";r.r(t),r.d(t,{arrayFromSet:()=>i,hasOwnProperty:()=>n,maybeUnsubscribe:()=>o});const{hasOwnProperty:n}=Object.prototype,i=Array.from||function(e){const t=[];return e.forEach(e=>t.push(e)),t};function o(e){const{unsubscribe:t}=e;"function"==typeof t&&(e.unsubscribe=void 0,t())}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{dep:()=>a});var n=r(414),i=r(417);const o={setDirty:!0,dispose:!0,forget:!0};function a(e){const t=new Map,r=e&&e.subscribe;function a(e){const o=n.parentEntrySlot.getValue();if(o){let n=t.get(e);n||t.set(e,n=new Set),o.dependOn(n),"function"==typeof r&&((0,i.maybeUnsubscribe)(n),n.unsubscribe=r(e))}}return a.dirty=function(e,r){const n=t.get(e);if(n){const a=r&&i.hasOwnProperty.call(o,r)?r:"setDirty";
1(0,i.arrayFromSet)(n).forEach(e=>e[a]()),t.delete(e),(0,i.maybeUnsubscribe)(n)}},a}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{useReactiveVar:()=>o});var n=r(341),i=r(420);function o(e){return(0,i.useSyncExternalStore)(n.useCallback(t=>e.onNextChange(function r(){t(),e.onNextChange(r)}),[e]),e,e)}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{useSyncExternalStore:()=>h});var n=r(341),i=r(421),o=r(422),a=r(423),s=r(424);let l=!1;const c=n.useSyncExternalStore,u="ReactNative"==(0,a.maybe)(()=>navigator.product),p=(0,a.maybe)(()=>navigator.userAgent.indexOf("jsdom")>=0)||!1,d=(o.canUseDOM||u)&&!p,h=c||((e,t,r)=>{const o=t();i.__DEV__&&!l&&o!==t()&&(l=!0,s.invariant.error(34));const[{inst:a},c]=n.useState({inst:{value:o,getSnapshot:t}});return d?n.useLayoutEffect(()=>{Object.assign(a,{value:o,getSnapshot:t}),f(a)&&c({inst:a})},[e,o,t]):Object.assign(a,{value:o,getSnapshot:t}),n.useEffect(()=>(f(a)&&c({inst:a}),e(function(){f(a)&&c({inst:a})})),[e]),o});function f({value:e,getSnapshot:t}){try{return e!==t()}catch{return!0}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{__DEV__:()=>n});const n=!1},(e,t,r)=>{"use strict";r.r(t),r.d(t,{canUseDOM:()=>n});const n="function"==typeof(0,r(423).maybe)(()=>window.document.createElement)},(e,t,r)=>{"use strict";function n(e){try{return e()}catch{}}r.r(t),r.d(t,{maybe:()=>n})},(e,t,r)=>{"use strict";r.r(t),r.d(t,{ApolloErrorMessageHandler:()=>m,InvariantError:()=>l,invariant:()=>p,newInvariantError:()=>f,setVerbosity:()=>h});var n=r(421),i=r(425),o=r(426),a=r(427);const s="Invariant Violation";class l extends Error{constructor(e=s){super(e),this.name=s,Object.setPrototypeOf(this,l.prototype)}}const c=["debug","log","warn","error","silent"];let u=c.indexOf(n.__DEV__?"log":"silent");function p(e,...t){if(!e)throw f(...t)}function d(e){return function(t,...r){if(c.indexOf(e)>=u){const n=console[e]||console.log;if("number"==typeof t){const e=t;(t=y(e))||(t=b(e,r),r=[])}n(t,...r)}}}function h(e){const t=c[u];return u=Math.max(0,c.indexOf(e)),t}function f(e,...t){return new l(y(e,t)||b(e,t))}p.debug=d("debug"),p.log=d("log"),p.warn=d("warn"),p.error=d("error");const m=Symbol.for("ApolloErrorMessageHandler_"+o.version);function g(e){if("string"==typeof e)return e;try{return(0,a.stringifyForDisplay)(e,2).slice(0,1e3)}catch{return"<non-serializable>"}}function y(e,t=[]){if(e)return i.default[m]&&i.default[m](e,t.map(g))}function b(e,t=[]){if(e)return"string"==typeof e?t.reduce((e,t)=>e.replace(/%[sdfo]/,g(t)),e):`An error occurred! For more details, see the full error text at https://go.apollo.dev/c/err#${encodeURIComponent(JSON.stringify({version:o.version,message:e,args:t.map(g)}))}`}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>i});var n=r(423);const i=(0,n.maybe)(()=>globalThis)||(0,n.maybe)(()=>window)||(0,n.maybe)(()=>self)||(0,n.maybe)(()=>globalThis)||(0,n.maybe)(function(){return n.maybe.constructor("return this")()})},(e,t,r)=>{"use strict";r.r(t),r.d(t,{build:()=>i,version:()=>n});const n="4.2.12",i="esm"},(e,t,r)=>{"use strict";r.r(t),r.d(t,{stringifyForDisplay:()=>i});var n=r(428);function i(e,t=0){const r=(0,n.makeUniqueId)("stringifyForDisplay");return JSON.stringify(e,(e,t)=>void 0===t?r:t,t).split(JSON.stringify(r)).join("<undefined>")}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{makeUniqueId:()=>i});const n=new Map;function i(e){const t=n.get(e)||1;return n.set(e,t+1),`${e}:${t}:${Math.random().toString(36).slice(2)}`}},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,(e,t,r)=>{"use strict";r.r(t),r.d(t,{Observable:()=>u});var n=r(488),i=r(491),o=r(501),a=r(502),s=r(495),l=r(490),c=r(500),u=function(){function e(e){e&&(this._subscribe=e)}return e.prototype.lift=function(t){var r=new e;return r.source=this,r.operator=t,r},e.prototype.subscribe=function(e,t,r){var o,a=this,s=(o=e)&&o instanceof n.Subscriber||function(e){return e&&(0,l.isFunction)(e.next)&&(0,l.isFunction)(e.error)&&(0,l.isFunction)(e.complete)}(o)&&(0,i.isSubscription)(o)?e:new n.SafeSubscriber(e,t,r);return(0,c.errorContext)(function(){var e=a,t=e.operator,r=e.source;s.add(t?t.call(s,r):r?a._subscribe(s):a._trySubscribe(s))}),s},e.prototype._trySubscribe=function(e){try{return this._subscribe(e)}catch(t){e.error(t)}},e.prototype.forEach=function(e,t){var r=this;return new(t=p(t))(function(t,i){var o=new n.SafeSubscriber({next:function(t){try{e(t)}catch(e){i(e),o.unsubscribe()}},error:i,complete:t});r.subscribe(o)})},e.prototype._subscribe=function(e){var t;return null===(t=this.source)||void 0===t?void 0:t.subscribe(e)},e.prototype[o.observable]=function(){return this},e.prototype.pipe=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return(0,a.pipeFromArray)(e)(this)},e.prototype.toPromise=function(e){var t=this;return new(e=p(e))(function(e,r){var n;t.subscribe(function(e){return n=e},function(e){return r(e)},function(){return e(n)})})},e.create=function(t){return new e(t)},e}();function p(e){var t;return null!==(t=null!=e?e:s.config.Promise)&&void 0!==t?t:Promise}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{EMPTY_OBSERVER:()=>v,SafeSubscriber:()=>g,Subscriber:()=>d});var n=r(489),i=r(490),o=r(491),a=r(495),s=r(496),l=r(498),c=r(499),u=r(497),p=r(500),d=function(e){function t(t){var r=e.call(this)||this;return r.isStopped=!1,t?(r.destination=t,(0,o.isSubscription)(t)&&t.add(r)):r.destination=v,r}return(0,n.__extends)(t,e),t.create=function(e,t,r){return new g(e,t,r)},t.prototype.next=function(e){this.isStopped?b((0,c.nextNotification)(e),this):this._next(e)},t.prototype.error=function(e){this.isStopped?b((0,c.errorNotification)(e),this):(this.isStopped=!0,this._error(e))},t.prototype.complete=function(){this.isStopped?b(c.COMPLETE_NOTIFICATION,this):(this.isStopped=!0,this._complete())},t.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,e.prototype.unsubscribe.call(this),this.destination=null)},t.prototype._next=function(e){this.destination.next(e)},t.prototype._error=function(e){try{this.destination.error(e)}finally{this.unsubscribe()}},t.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},t}(o.Subscription),h=Function.prototype.bind;function f(e,t){return h.call(e,t)}var m=function(){function e(e){this.partialObserver=e}return e.prototype.next=function(e){var t=this.partialObserver;if(t.next)try{t.next(e)}catch(e){y(e)}},e.prototype.error=function(e){var t=this.partialObserver;if(t.error)try{t.error(e)}catch(e){y(e)}else y(e)},e.prototype.complete=function(){var e=this.partialObserver;if(e.complete)try{e.complete()}catch(e){y(e)}},e}(),g=function(e){function t(t,r,n){var o,s,l=e.call(this)||this;(0,i.isFunction)(t)||!t?o={next:null!=t?t:void 0,error:null!=r?r:void 0,complete:null!=n?n:void 0}
vendor: 1,285 bytes, line 1
1:l&&a.config.useDeprecatedNextContext?((s=Object.create(t)).unsubscribe=function(){return l.unsubscribe()},o={next:t.next&&f(t.next,s),error:t.error&&f(t.error,s),complete:t.complete&&f(t.complete,s)}):o=t;return l.destination=new m(o),l}return(0,n.__extends)(t,e),t}(d);function y(e){a.config.useDeprecatedSynchronousErrorHandling?(0,p.captureError)(e):(0,s.reportUnhandledError)(e)}function b(e,t){var r=a.config.onStoppedNotification;r&&u.timeoutProvider.setTimeout(function(){return r(e,t)})}var v={closed:!0,next:l.noop,error:function(e){throw e},complete:l.noop}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{__addDisposableResource:()=>N,__assign:()=>o,__asyncDelegator:()=>x,__asyncGenerator:()=>w,__asyncValues:()=>O,__await:()=>T,__awaiter:()=>f,__classPrivateFieldGet:()=>P,__classPrivateFieldIn:()=>M,__classPrivateFieldSet:()=>D,__createBinding:()=>g,__decorate:()=>s,__disposeResources:()=>F,__esDecorate:()=>c,__exportStar:()=>y,__extends:()=>i,__generator:()=>m,__importDefault:()=>C,__importStar:()=>R,__makeTemplateObject:()=>I,__metadata:()=>h,__param:()=>l,__propKey:()=>p,__read:()=>v,__rest:()=>a,__rewriteRelativeImportExtension:()=>B,__runInitializers:()=>u,__setFunctionName:()=>d,__spread:()=>_,__spreadArray:()=>E,__spreadArrays:()=>S,__values:()=>b,default:()=>U});
vendor: 10,218 bytes, line 1
1var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)};function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}var o=function(){return o=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},o.apply(this,arguments)};function a(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]])}return r}function s(e,t,r,n){var i,o=arguments.length,a=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,r,a):i(t,r))||a);return o>3&&a&&Object.defineProperty(t,r,a),a}function l(e,t){return function(r,n){t(r,n,e)}}function c(e,t,r,n,i,o){function a(e){if(void 0!==e&&"function"!=typeof e)throw new TypeError("Function expected");return e}for(var s,l=n.kind,c="getter"===l?"get":"setter"===l?"set":"value",u=!t&&e?n.static?e:e.prototype:null,p=t||(u?Object.getOwnPropertyDescriptor(u,n.name):{}),d=!1,h=r.length-1;h>=0;h--){var f={};for(var m in n)f[m]="access"===m?{}:n[m];for(var m in n.access)f.access[m]=n.access[m];f.addInitializer=function(e){if(d)throw new TypeError("Cannot add initializers after decoration has completed");o.push(a(e||null))};var g=(0,r[h])("accessor"===l?{get:p.get,set:p.set}:p[c],f);if("accessor"===l){if(void 0===g)continue;if(null===g||"object"!=typeof g)throw new TypeError("Object expected");(s=a(g.get))&&(p.get=s),(s=a(g.set))&&(p.set=s),(s=a(g.init))&&i.unshift(s)}else(s=a(g))&&("field"===l?i.unshift(s):p[c]=s)}u&&Object.defineProperty(u,n.name,p),d=!0}function u(e,t,r){for(var n=arguments.length>2,i=0;i<t.length;i++)r=n?t[i].call(e,r):t[i].call(e);return n?r:void 0}function p(e){return"symbol"==typeof e?e:"".concat(e)}function d(e,t,r){return"symbol"==typeof t&&(t=t.description?"[".concat(t.description,"]"):""),Object.defineProperty(e,"name",{configurable:!0,value:r?"".concat(r," ",t):t})}function h(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function f(e,t,r,n){return new(r||(r=Promise))(function(i,o){function a(e){try{l(n.next(e))}catch(e){o(e)}}function s(e){try{l(n.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?i(e.value):(t=e.value,t instanceof r?t:new r(function(e){e(t)})).then(a,s)}l((n=n.apply(e,t||[])).next())})}function m(e,t){var r,n,i,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]},a=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return a.next=s(0),a.throw=s(1),a.return=s(2),"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(s){return function(l){return function(s){if(r)throw new TypeError("Generator is already executing.");for(;a&&(a=0,s[0]&&(o=0)),o;)try{if(r=1,n&&(i=2&s[0]?n.return:s[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,s[1])).done)return i;switch(n=0,i&&(s=[2&s[0],i.value]),s[0]){case 0:case 1:i=s;break;case 4:return o.label++,{value:s[1],done:!1};case 5:o.label++,n=s[1],s=[0];continue;case 7:s=o.ops.pop(),o.trys.pop();continue;default:if(!(i=o.trys,(i=i.length>0&&i[i.length-1])||6!==s[0]&&2!==s[0])){o=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]<i[3])){o.label=s[1];break}if(6===s[0]&&o.label<i[1]){o.label=i[1],i=s;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(s);break}i[2]&&o.ops.pop(),o.trys.pop();continue}s=t.call(e,o)}catch(e){s=[6,e],n=0}finally{r=i=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,l])}}}var g=Object.create?function(e,t,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]};function y(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||g(t,e,r)}function b(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function v(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,o=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)a.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return a}function _(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(v(arguments[t]));return e}function S(){for(var e=0,t=0,r=arguments.length;t<r;t++)e+=arguments[t].length;var n=Array(e),i=0;for(t=0;t<r;t++)for(var o=arguments[t],a=0,s=o.length;a<s;a++,i++)n[i]=o[a];return n}function E(e,t,r){if(r||2===arguments.length)for(var n,i=0,o=t.length;i<o;i++)!n&&i in t||(n||(n=Array.prototype.slice.call(t,0,i)),n[i]=t[i]);return e.concat(n||Array.prototype.slice.call(t))}function T(e){return this instanceof T?(this.v=e,this):new T(e)}function w(e,t,r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n,i=r.apply(e,t||[]),o=[];return n=Object.create(("function"==typeof AsyncIterator?AsyncIterator:Object).prototype),a("next"),a("throw"),a("return",function(e){return function(t){return Promise.resolve(t).then(e,c)}}),n[Symbol.asyncIterator]=function(){return this},n;function a(e,t){i[e]&&(n[e]=function(t){return new Promise(function(r,n){o.push([e,t,r,n])>1||s(e,t)})},t&&(n[e]=t(n[e])))}function s(e,t){try{(r=i[e](t)).value instanceof T?Promise.resolve(r.value.v).then(l,c):u(o[0][2],r)}catch(e){u(o[0][3],e)}var r}function l(e){s("next",e)}function c(e){s("throw",e)}function u(e,t){e(t),o.shift(),o.length&&s(o[0][0],o[0][1])}}function x(e){var t,r;return t={},n("next"),n("throw",function(e){throw e}),n("return"),t[Symbol.iterator]=function(){return this},t;function n(n,i){t[n]=e[n]?function(t){return(r=!r)?{value:T(e[n](t)),done:!1}:i?i(t):t}:i}}function O(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,r=e[Symbol.asyncIterator];return r?r.call(e):(e=b(e),t={},n("next"),n("throw"),n("return"),t[Symbol.asyncIterator]=function(){return this},t);function n(r){t[r]=e[r]&&function(t){return new Promise(function(n,i){(function(e,t,r,n){Promise.resolve(n).then(function(t){e({value:t,done:r})},t)})(n,i,(t=e[r](t)).done,t.value)})}}}function I(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}var A=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t},k=function(e){return k=Object.getOwnPropertyNames||function(e){var t=[];for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[t.length]=r);return t},k(e)};function R(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r=k(e),n=0;n<r.length;n++)"default"!==r[n]&&g(t,e,r[n]);return A(t,e),t}function C(e){return e&&e.__esModule?e:{default:e}}function P(e,t,r,n){if("a"===r&&!n)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===r?n:"a"===r?n.call(e):n?n.value:t.get(e)}function D(e,t,r,n,i){if("m"===n)throw new TypeError("Private method is not writable");if("a"===n&&!i)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!i:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===n?i.call(e,r):i?i.value=r:t.set(e,r),r}function M(e,t){if(null===t||"object"!=typeof t&&"function"!=typeof t)throw new TypeError("Cannot use 'in' operator on non-object");return"function"==typeof e?t===e:e.has(t)}function N(e,t,r){if(null!=t){if("object"!=typeof t&&"function"!=typeof t)throw new TypeError("Object expected.");var n,i;if(r){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");n=t[Symbol.asyncDispose]}if(void 0===n){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");n=t[Symbol.dispose],r&&(i=n)}if("function"!=typeof n)throw new TypeError("Object not disposable.");i&&(n=function(){try{i.call(this)}catch(e){return Promise.reject(e)}}),e.stack.push({value:t,dispose:n,async:r})}else r&&e.stack.push({async:!0});return t}var L="function"==typeof SuppressedError?SuppressedError:function(e,t,r){var n=new Error(r);return n.name="SuppressedError",n.error=e,n.suppressed=t,n};function F(e){function t(t){e.error=e.hasError?new L(t,e.error,"An error was suppressed during disposal."):t,e.hasError=!0}var r,n=0;return function i(){for(;r=e.stack.pop();)try{if(!r.async&&1===n)return n=0,e.stack.push(r),Promise.resolve().then(i);if(r.dispose){var o=r.dispose.call(r.value);if(r.async)return n|=2,Promise.resolve(o).then(i,function(e){return t(e),i()})}else n|=1}catch(e){t(e)}if(1===n)return e.hasError?Promise.reject(e.error):Promise.resolve();if(e.hasError)throw e.error}()}function B(e,t){return"string"==typeof e&&/^\.\.?\//.test(e)?e.replace(/\.(tsx)$|((?:\.d)?)((?:\.[^./]+?)?)\.([cm]?)ts$/i,function(e,r,n,i,o){return r?t?".jsx":".js":!n||i&&o?n+i+"."+o.toLowerCase()+"js":e}):e}const U={__extends:i,__assign:o,__rest:a,__decorate:s,__param:l,__esDecorate:c,__runInitializers:u,__propKey:p,__setFunctionName:d,__metadata:h,__awaiter:f,__generator:m,__createBinding:g,__exportStar:y,__values:b,__read:v,__spread:_,__spreadArrays:S,__spreadArray:E,__await:T,__asyncGenerator:w,__asyncDelegator:x,__asyncValues:O,__makeTemplateOb
1ject:I,__importStar:R,__importDefault:C,__classPrivateFieldGet:P,__classPrivateFieldSet:D,__classPrivateFieldIn:M,__addDisposableResource:N,__disposeResources:F,__rewriteRelativeImportExtension:B}},(e,t,r)=>{"use strict";function n(e){return"function"==typeof e}r.r(t),r.d(t,{isFunction:()=>n})},(e,t,r)=>{"use strict";r.r(t),r.d(t,{EMPTY_SUBSCRIPTION:()=>l,Subscription:()=>s,isSubscription:()=>c});var n=r(489),i=r(490),o=r(492),a=r(494),s=function(){function e(e){this.initialTeardown=e,this.closed=!1,this._parentage=null,this._finalizers=null}var t;return e.prototype.unsubscribe=function(){var e,t,r,a,s;if(!this.closed){this.closed=!0;var l=this._parentage;if(l)if(this._parentage=null,Array.isArray(l))try{for(var c=(0,n.__values)(l),p=c.next();!p.done;p=c.next()){p.value.remove(this)}}catch(t){e={error:t}}finally{try{p&&!p.done&&(t=c.return)&&t.call(c)}finally{if(e)throw e.error}}else l.remove(this);var d=this.initialTeardown;if((0,i.isFunction)(d))try{d()}catch(e){s=e instanceof o.UnsubscriptionError?e.errors:[e]}var h=this._finalizers;if(h){this._finalizers=null;try{for(var f=(0,n.__values)(h),m=f.next();!m.done;m=f.next()){var g=m.value;try{u(g)}catch(e){s=null!=s?s:[],e instanceof o.UnsubscriptionError?s=(0,n.__spreadArray)((0,n.__spreadArray)([],(0,n.__read)(s)),(0,n.__read)(e.errors)):s.push(e)}}}catch(e){r={error:e}}finally{try{m&&!m.done&&(a=f.return)&&a.call(f)}finally{if(r)throw r.error}}}if(s)throw new o.UnsubscriptionError(s)}},e.prototype.add=function(t){var r;if(t&&t!==this)if(this.closed)u(t);else{if(t instanceof e){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=null!==(r=this._finalizers)&&void 0!==r?r:[]).push(t)}},e.prototype._hasParent=function(e){var t=this._parentage;return t===e||Array.isArray(t)&&t.includes(e)},e.prototype._addParent=function(e){var t=this._parentage;this._parentage=Array.isArray(t)?(t.push(e),t):t?[t,e]:e},e.prototype._removeParent=function(e){var t=this._parentage;t===e?this._parentage=null:Array.isArray(t)&&(0,a.arrRemove)(t,e)},e.prototype.remove=function(t){var r=this._finalizers;r&&(0,a.arrRemove)(r,t),t instanceof e&&t._removeParent(this)},e.EMPTY=((t=new e).closed=!0,t),e}(),l=s.EMPTY;function c(e){return e instanceof s||e&&"closed"in e&&(0,i.isFunction)(e.remove)&&(0,i.isFunction)(e.add)&&(0,i.isFunction)(e.unsubscribe)}function u(e){(0,i.isFunction)(e)?e():e.unsubscribe()}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{UnsubscriptionError:()=>n});var n=(0,r(493).createErrorClass)(function(e){return function(t){e(this),this.message=t?t.length+" errors occurred during unsubscription:\n"+t.map(function(e,t){return t+1+") "+e.toString()}).join("\n  "):"",this.name="UnsubscriptionError",this.errors=t}})},(e,t,r)=>{"use strict";function n(e){var t=e(function(e){Error.call(e),e.stack=(new Error).stack});return t.prototype=Object.create(Error.prototype),t.prototype.constructor=t,t}r.r(t),r.d(t,{createErrorClass:()=>n})},(e,t,r)=>{"use strict";function n(e,t){if(e){var r=e.indexOf(t);0<=r&&e.splice(r,1)}}r.r(t),r.d(t,{arrRemove:()=>n})},(e,t,r)=>{"use strict";r.r(t),r.d(t,{config:()=>n});var n={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{reportUnhandledError:()=>o});var n=r(495),i=r(497);function o(e){i.timeoutProvider.setTimeout(function(){var t=n.config.onUnhandledError;if(!t)throw e;t(e)})}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{timeoutProvider:()=>i});var n=r(489),i={setTimeout:function(e,t){for(var r=[],o=2;o<arguments.length;o++)r[o-2]=arguments[o];var a=i.delegate;return(null==a?void 0:a.setTimeout)?a.setTimeout.apply(a,(0,n.__spreadArray)([e,t],(0,n.__read)(r))):setTimeout.apply(void 0,(0,n.__spreadArray)([e,t],(0,n.__read)(r)))},clearTimeout:function(e){var t=i.delegate;return((null==t?void 0:t.clearTimeout)||clearTimeout)(e)},delegate:void 0}},(e,t,r)=>{"use strict";function n(){}r.r(t),r.d(t,{noop:()=>n})},(e,t,r)=>{"use strict";r.r(t),r.d(t,{COMPLETE_NOTIFICATION:()=>n,createNotification:()=>a,errorNotification:()=>i,nextNotification:()=>o});var n=a("C",void 0,void 0);function i(e){return a("E",void 0,e)}function o(e){return a("N",e,void 0)}function a(e,t,r){return{kind:e,value:t,error:r}}},(e,t,r)=>{"use strict";
1r.r(t),r.d(t,{captureError:()=>a,errorContext:()=>o});var n=r(495),i=null;function o(e){if(n.config.useDeprecatedSynchronousErrorHandling){var t=!i;if(t&&(i={errorThrown:!1,error:null}),e(),t){var r=i,o=r.errorThrown,a=r.error;if(i=null,o)throw a}}else e()}function a(e){n.config.useDeprecatedSynchronousErrorHandling&&i&&(i.errorThrown=!0,i.error=e)}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{observable:()=>n});var n="function"==typeof Symbol&&Symbol.observable||"@@observable"},(e,t,r)=>{"use strict";r.r(t),r.d(t,{pipe:()=>i,pipeFromArray:()=>o});var n=r(503);function i(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return o(e)}function o(e){return 0===e.length?n.identity:1===e.length?e[0]:function(t){return e.reduce(function(e,t){return t(e)},t)}}},(e,t,r)=>{"use strict";function n(e){return e}r.r(t),r.d(t,{identity:()=>n})},(e,t,r)=>{"use strict";r.r(t),r.d(t,{ApolloClient:()=>_});var n=r(505),i=r(506),o=r(509),a=r(515),s=r(526),l=r(421),c=r(527),u=r(520),p=r(533),d=r(522),h=r(564),f=r(568),m=r(576),g=r(424),y=r(426),b=r(594);let v=!1;class _{link;cache;disableNetworkFetches;set prioritizeCacheValues(e){this.queryManager.prioritizeCacheValues=e}get prioritizeCacheValues(){return this.queryManager.prioritizeCacheValues}version;queryDeduplication;defaultOptions;devtoolsConfig;refetchEventManager;queryManager;devToolsHookCb;resetStoreCallbacks=[];clearStoreCallbacks=[];constructor(e){l.__DEV__&&((0,g.invariant)(e.cache,68),(0,g.invariant)(e.link,69));const{cache:t,documentTransform:r,ssrMode:n=!1,ssrForceFetchDelay:i=0,queryDeduplication:a=!0,defaultOptions:s,defaultContext:c,assumeImmutableResults:u=t.assumeImmutableResults,localState:p,devtools:d,dataMasking:h,link:f,incrementalHandler:m=new o.NotImplementedHandler,experiments:v=[],refetchEventManager:_}=e;this.link=f,this.cache=t,this.queryDeduplication=a,this.defaultOptions=s||{},this.devtoolsConfig={...d,enabled:d?.enabled??l.__DEV__},this.watchQuery=this.watchQuery.bind(this),this.query=this.query.bind(this),this.mutate=this.mutate.bind(this),this.watchFragment=this.watchFragment.bind(this),this.resetStore=this.resetStore.bind(this),this.reFetchObservableQueries=this.refetchObservableQueries=this.refetchObservableQueries.bind(this),this.version=y.version,this.queryManager=new b.QueryManager({client:this,defaultOptions:this.defaultOptions,defaultContext:c,documentTransform:r,queryDeduplication:a,ssrMode:n,dataMasking:!!h,clientOptions:e,incrementalHandler:m,assumeImmutableResults:u,onBroadcast:this.devtoolsConfig.enabled?()=>{this.devToolsHookCb&&this.devToolsHookCb()}:void 0,localState:p}),this.prioritizeCacheValues=n||i>0,i&&setTimeout(()=>{this.prioritizeCacheValues=!1},i),this.devtoolsConfig.enabled&&this.connectToDevTools(),v.forEach(t=>t.call(this,e)),this.refetchEventManager=_,this.refetchEventManager?.connect(this)}connectToDevTools(){if("undefined"==typeof window)return;const e=window,t=Symbol.for("apollo.devtools");if((e[t]=e[t]||[]).push(this),e.__APOLLO_CLIENT__=this,!v&&l.__DEV__){v=!0;const e=window,t=e.navigator.userAgent;let r;"string"==typeof t&&(t.indexOf("Chrome/")>-1?r="https://chrome.google.com/webstore/detail/apollo-client-developer-t/jdkknkkbebbapilgoeccciglkfbmbnfm":t.indexOf("Firefox/")>-1&&(r="https://addons.mozilla.org/en-US/firefox/addon/apollo-developer-tools/")),e.document&&e.top===e.self&&/^(https?|file):$/.test(e.location.protocol)&&r&&setTimeout(()=>{e.__APOLLO_DEVTOOLS_GLOBAL_HOOK__||l.__DEV__&&g.invariant.log("Download the Apollo DevTools for a better development experience: %s",r)},1e4)}}get documentTransform(){return this.queryManager.documentTransform}get localState(){return this.queryManager.localState}set localState(e){this.queryManager.localState=e}stop(){this.queryManager.stop(),this.refetchEventManager?.disconnect(this)}watchQuery(e){const{refetchOn:t}=e;if(this.defaultOptions.watchQuery){const r=this.defaultOptions.watchQuery.refetchOn;let n;t&&"object"==typeof t&&("object"==typeof r?n={...r,...t}:null!=r&&(n=e=>{const n=t[e.source]??r;return"function"==typeof n?n(e):n})),e=(0,h.mergeOptions)(this.defaultOptions.watchQuery,e),n&&(e.refetchOn=n)}if(l.__DEV__){const{query:r}=e,{refetchEventManager:n}=this;if(t){const e=(0,d.getOperationName)(r,"(anonymous)");n?"object"==typeof t&&Object.keys(t).forEach(t=>{n.hasSource(t)||l.__DEV__&&g.invariant.warn(71,t,e)}):l.__DEV__&&g.invariant.warn(70,e)}}return this.queryManager.watchQuery(e)}query=e=>(this.defaultOptions.query&&(e=(0,h.mergeOptions)(this.defaultOptions.query,e)),l.__DEV__&&((0,g.invariant)("cache-and-network"!==e.fetchPolicy,72),(0,g.invariant)("standby"!==e.fetchPolicy,73),(0,g.invariant)(e.query,74),(0,g.invariant)("Document"===e.query.kind,75),(0,g.invariant)(!e.returnPartialData,76),(0,g.invariant)(!e.pollInterval,77),(0,g.invariant)(!e.notifyOnNetworkStatusChange,78)),this.queryManager.query(e));mutate=e=>{const t=(0,h.mergeOptions)((0,p.compact)({fetchPolicy:"network-only",errorPolicy:"none"},this.defaultOptions.mutate),e);return l.__DEV__&&((0,g.invariant)(t.mutation,79),(0,g.invariant)("network-only"===t.fetchPolicy||"no-cache"===t.fetchPolicy,80)),(0,u.checkDocument)(t.mutation,n.OperationTypeNode.MUTATION),this.queryManager.mutate(t)};subscribe(e){const t={},r=this.queryManager.startGraphQLSubscription(e),n=r.pipe((0,i.map)(r=>({...r,data:this.queryManager.maskOperation({document:e.query,data:r.data,fetchPolicy:e.fetchPolicy,cause:t})})));return Object.assign(n,{restart:r.restart})}readQuery(e,t=!!e.optimistic){return this.cache.readQuery({...e,query:this.transform(e.query)},t)}watchFragment(e){const t=this.queryManager.dataMasking,r=this.cache.watchFragment({...e,fragment:this.transform(e.fragment,t)});return l.__DEV__?(0,m.mapObservableFragmentMemoized)(r,Symbol.for("apollo.transform.dev.mask"),t=>({...t,data:this.queryManager.maskFragment({...e,data:t.data})})):r}
1readFragment(e,t=!!e.optimistic){return this.cache.readFragment({...e,fragment:this.transform(e.fragment)},t)}writeQuery(e){const t=this.cache.writeQuery(e);return!1!==e.broadcast&&this.queryManager.broadcastQueries(),t}writeFragment(e){const t=this.cache.writeFragment(e);return!1!==e.broadcast&&this.queryManager.broadcastQueries(),t}__actionHookForDevTools(e){this.devToolsHookCb=e}__requestRaw(e){return(0,a.execute)(this.link,e,{client:this})}resetStore(){return Promise.resolve().then(()=>this.queryManager.clearStore({discardWatches:!1})).then(()=>Promise.all(this.resetStoreCallbacks.map(e=>e()))).then(()=>this.refetchObservableQueries())}clearStore(){return Promise.resolve().then(()=>this.queryManager.clearStore({discardWatches:!0})).then(()=>Promise.all(this.clearStoreCallbacks.map(e=>e())))}onResetStore(e){return this.resetStoreCallbacks.push(e),()=>{this.resetStoreCallbacks=this.resetStoreCallbacks.filter(t=>t!==e)}}onClearStore(e){return this.clearStoreCallbacks.push(e),()=>{this.clearStoreCallbacks=this.clearStoreCallbacks.filter(t=>t!==e)}}reFetchObservableQueries;refetchObservableQueries(e){return this.queryManager.refetchObservableQueries(e)}refetchQueries(e){const t=this.queryManager.refetchQueries(e),r=[],n=[];t.forEach((e,t)=>{r.push(t),n.push(e)});const i=Promise.all(n);return i.queries=r,i.results=n,i.catch(e=>{l.__DEV__&&g.invariant.debug(81,e)}),i}getObservableQueries(e="active"){return this.queryManager.getObservableQueries(e)}extract(e){return this.cache.extract(e)}restore(e){return this.cache.restore(e)}setLink(e){this.link=e}get defaultContext(){return this.queryManager.defaultContext}maskedFragmentTransform=new s.DocumentTransform(f.removeMaskedFragmentSpreads);transform(e,t=!1){const r=this.queryManager.transform(e);return t?this.maskedFragmentTransform.transformDocument(r):r}}l.__DEV__&&(_.prototype.getMemoryInternals=c.getApolloClientMemoryInternals)},(e,t,r)=>{"use strict";r.r(t),r.d(t,{Location:()=>n,OperationTypeNode:()=>l,QueryDocumentKeys:()=>o,Token:()=>i,isNode:()=>s});class n{constructor(e,t,r){this.start=e.start,this.end=t.end,this.startToken=e,this.endToken=t,this.source=r}get[Symbol.toStringTag](){return"Location"}toJSON(){return{start:this.start,end:this.end}}}class i{constructor(e,t,r,n,i,o){this.kind=e,this.start=t,this.end=r,this.line=n,this.column=i,this.value=o,this.prev=null,this.next=null}get[Symbol.toStringTag](){return"Token"}toJSON(){return{kind:this.kind,value:this.value,line:this.line,column:this.column}}}const o={Name:[],Document:["definitions"],OperationDefinition:["description","name","variableDefinitions","directives","selectionSet"],VariableDefinition:["description","variable","type","defaultValue","directives"],Variable:["name"],SelectionSet:["selections"],Field:["alias","name","arguments","directives","selectionSet"],Argument:["name","value"],FragmentArgument:["name","value"],FragmentSpread:["name","arguments","directives"],InlineFragment:["typeCondition","directives","selectionSet"],FragmentDefinition:["description","name","variableDefinitions","typeCondition","directives","selectionSet"],IntValue:[],FloatValue:[],StringValue:[],BooleanValue:[],NullValue:[],EnumValue:[],ListValue:["values"],ObjectValue:["fields"],ObjectField:["name","value"],Directive:["name","arguments"],NamedType:["name"],ListType:["type"],NonNullType:["type"],SchemaDefinition:["description","directives","operationTypes"],OperationTypeDefinition:["type"],ScalarTypeDefinition:["description","name","directives"],ObjectTypeDefinition:["description","name","interfaces","directives","fields"],FieldDefinition:["description","name","arguments","type","directives"],InputValueDefinition:["description","name","type","defaultValue","directives"],InterfaceTypeDefinition:["description","name","interfaces","directives","fields"],UnionTypeDefinition:["description","name","directives","types"],EnumTypeDefinition:["description","name","directives","values"],EnumValueDefinition:["description","name","directives"],InputObjectTypeDefinition:["description","name","directives","fields"],DirectiveDefinition:["description","name","arguments","directives","locations"],SchemaExtension:["directives","operationTypes"],DirectiveExtension:["name","directives"],ScalarTypeExtension:["name","directives"],ObjectTypeExtension:["name","interfaces","directives","fields"],InterfaceTypeExtension:["name","interfaces","directives","fields"],UnionTypeExtension:["name","directives","types"],EnumTypeExtension:["name","directives","values"],InputObjectTypeExtension:["name","directives","fields"],TypeCoordinate:["name"],MemberCoordinate:["name","memberName"],ArgumentCoordinate:["name","fieldName","argumentName"],DirectiveCoordinate:["name"],DirectiveArgumentCoordinate:["name","argumentName"]},a=new Set(Object.keys(o));function s(e){const t=e?.kind;return"string"==typeof t&&a.has(t)}const l={QUERY:"query",MUTATION:"mutation",SUBSCRIPTION:"subscription"}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{map:()=>o});var n=r(507),i=r(508);function o(e,t){return(0,n.operate)(function(r,n){var o=0;r.subscribe((0,i.createOperatorSubscriber)(n,function(r){n.next(e.call(t,r,o++))}))})}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{hasLift:()=>i,operate:()=>o});var n=r(490);function i(e){return(0,n.isFunction)(null==e?void 0:e.lift)}function o(e){return function(t){if(i(t))return t.lift(function(t){try{return e(t,this)}catch(e){this.error(e)}});throw new TypeError("Unable to lift unknown Observable type")}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{OperatorSubscriber:()=>o,createOperatorSubscriber:()=>i});var n=r(489);function i(e,t,r,n,i){return new o(e,t,r,n,i)}var o=function(e){function t(t,r,n,i,o,a){var s=e.call(this,t)||this;return s.onFinalize=o,s.shouldUnsubscribe=a,s._next=r?function(e){try{r(e)}catch(e){t.error(e)}}:e.prototype._next,s._error=i?function(e){try{i(e)}catch(e){t.error(e)}finally{this.unsubscribe()}}:e.prototype._error,s._complete=n?function(){try{n()}catch(e){t.error(e)}finally{this.unsubscribe()}}:e.prototype._complete,s}return(0,n.__extends)(t,e),t.prototype.unsubscribe=function(){var t;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){var r=this.closed;e.prototype.unsubscribe.call(this),!r&&(null===(t=this.onFinalize)||void 0===t||t.call(this))}},t}(r(488).Subscriber)},(e,t,r)=>{"use strict";r.r(t),r.d(t,{NotImplementedHandler:()=>o});var n=r(510),i=r(424);class o{isIncrementalResult(e){return!1}prepareRequest(e){return(0,i.invariant)(!(0,n.hasDirectives)(["defer","stream"],e.query),67),e}extractErrors(){}startRequest=void 0}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{hasDirectives:()=>i});var n=r(511);function i(e,t,r){const i=new Set(e),o=i.size;return(0,n.visit)(t,{Directive(e){if(i.delete(e.name.value)&&(!r||!i.size))return n.BREAK}}),r?!i.size:i.size<o}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{BREAK:()=>s,getEnterLeaveForKind:()=>u,visit:()=>l,visitInParallel:()=>c});var n=r(512),i=r(513),o=r(505),a=r(514);const s=Object.freeze({});
1function l(e,t,r=o.QueryDocumentKeys){const l=new Map;for(const e of Object.values(a))l.set(e,u(t,e));let c,p,d,h=Array.isArray(e),f=[e],m=-1,g=[],y=e;const b=[],v=[];do{m++;const e=m===f.length,a=e&&0!==g.length;if(e){if(p=0===v.length?void 0:b[b.length-1],y=d,d=v.pop(),a)if(h){y=y.slice();let e=0;for(const[t,r]of g){const n=t-e;null===r?(y.splice(n,1),e++):y[n]=r}}else{y={...y};for(const[e,t]of g)y[e]=t}m=c.index,f=c.keys,g=c.edits,h=c.inArray,c=c.prev}else if(null!=d){if(p=h?m:f[m],y=d[p],null==y)continue;b.push(p)}let u;if(!Array.isArray(y)){(0,o.isNode)(y)||(0,n.devAssert)(!1,`Invalid AST Node: ${(0,i.inspect)(y)}.`);const r=e?l.get(y.kind)?.leave:l.get(y.kind)?.enter;if(u=r?.call(t,y,p,d,b,v),u===s)break;if(!1===u){if(!e){b.pop();continue}}else if(void 0!==u&&(g.push([p,u]),!e)){if(!(0,o.isNode)(u)){b.pop();continue}y=u}}void 0===u&&a&&g.push([p,y]),e?b.pop():(c={inArray:h,index:m,keys:f,edits:g,prev:c},h=Array.isArray(y),f=h?y:r[y.kind]??[],m=-1,g=[],null!=d&&v.push(d),d=y)}while(void 0!==c);return 0!==g.length?g.at(-1)[1]:e}function c(e){const t=new Array(e.length).fill(null),r=Object.create(null);for(const n of Object.values(a)){let i=!1;const o=new Array(e.length).fill(void 0),a=new Array(e.length).fill(void 0);for(let t=0;t<e.length;++t){const{enter:r,leave:s}=u(e[t],n);i||=null!=r||null!=s,o[t]=r,a[t]=s}if(!i)continue;const l={enter(...r){const n=r[0];for(let i=0;i<e.length;i++)if(null===t[i]){const a=o[i]?.apply(e[i],r);if(!1===a)t[i]=n;else if(a===s)t[i]=s;else if(void 0!==a)return a}},leave(...r){const n=r[0];for(let i=0;i<e.length;i++)if(null===t[i]){const n=a[i]?.apply(e[i],r);if(n===s)t[i]=s;else if(void 0!==n&&!1!==n)return n}else t[i]===n&&(t[i]=null)}};r[n]=l}return r}function u(e,t){const r=e[t];return"object"==typeof r?r:"function"==typeof r?{enter:r,leave:void 0}:{enter:e.enter,leave:e.leave}}},(e,t,r)=>{"use strict";function n(e,t){if(!e)throw new Error(t)}r.r(t),r.d(t,{devAssert:()=>n})},(e,t,r)=>{"use strict";r.r(t),r.d(t,{inspect:()=>o});const n=10,i=2;function o(e){return a(e,[])}function a(e,t){switch(typeof e){case"string":return JSON.stringify(e);case"function":return e.name?`[function ${e.name}]`:"[function]";case"object":return function(e,t){if(null===e)return"null";if(t.includes(e))return"[Circular]";const r=[...t,e];if(function(e){return"function"==typeof e.toJSON}(e)){const t=e.toJSON();if(t!==e)return"string"==typeof t?t:a(t,r)}else if(Array.isArray(e))return function(e,t){if(0===e.length)return"[]";if(t.length>i)return"[Array]";const r=Math.min(n,e.length),o=e.length-r,s=[];for(let n=0;n<r;++n)s.push(a(e[n],t));1===o?s.push("... 1 more item"):o>1&&s.push(`... ${o} more items`);return"["+s.join(", ")+"]"}(e,r);return function(e,t){const r=Object.entries(e);if(0===r.length)return"{}";if(t.length>i)return"["+function(e){const t=Object.prototype.toString.call(e).replace(/^\[object /,"").replace(/]$/,"");if("Object"===t&&"function"==typeof e.constructor){const t=e.constructor.name;if("string"==typeof t&&""!==t)return t}return t}(e)+"]";const n=r.map(([e,r])=>e+": "+a(r,t));return"{ "+n.join(", ")+" }"}(e,r)}(e,t);default:return String(e)}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{ARGUMENT:()=>c,ARGUMENT_COORDINATE:()=>J,BOOLEAN:()=>b,DIRECTIVE:()=>w,DIRECTIVE_ARGUMENT_COORDINATE:()=>X,DIRECTIVE_COORDINATE:()=>Q,DIRECTIVE_DEFINITION:()=>U,DIRECTIVE_EXTENSION:()=>H,DOCUMENT:()=>i,ENUM:()=>_,ENUM_TYPE_DEFINITION:()=>L,ENUM_TYPE_EXTENSION:()=>$,ENUM_VALUE_DEFINITION:()=>F,FIELD:()=>l,FIELD_DEFINITION:()=>P,FLOAT:()=>g,FRAGMENT_ARGUMENT:()=>u,FRAGMENT_DEFINITION:()=>h,FRAGMENT_SPREAD:()=>p,INLINE_FRAGMENT:()=>d,INPUT_OBJECT_TYPE_DEFINITION:()=>B,INPUT_OBJECT_TYPE_EXTENSION:()=>W,INPUT_VALUE_DEFINITION:()=>D,INT:()=>m,INTERFACE_TYPE_DEFINITION:()=>M,INTERFACE_TYPE_EXTENSION:()=>G,LIST:()=>S,LIST_TYPE:()=>O,MEMBER_COORDINATE:()=>K,NAME:()=>n,NAMED_TYPE:()=>x,NON_NULL_TYPE:()=>I,NULL:()=>v,OBJECT:()=>E,OBJECT_FIELD:()=>T,OBJECT_TYPE_DEFINITION:()=>C,OBJECT_TYPE_EXTENSION:()=>z,OPERATION_DEFINITION:()=>o,OPERATION_TYPE_DEFINITION:()=>k,SCALAR_TYPE_DEFINITION:()=>R,SCALAR_TYPE_EXTENSION:()=>V,SCHEMA_DEFINITION:()=>A,SCHEMA_EXTENSION:()=>j,SELECTION_SET:()=>s,STRING:()=>y,TYPE_COORDINATE:()=>Y,UNION_TYPE_DEFINITION:()=>N,UNION_TYPE_EXTENSION:()=>q,VARIABLE:()=>f,VARIABLE_DEFINITION:()=>a});const n="Name",i="Document",o="OperationDefinition",a="VariableDefinition",s="SelectionSet",l="Field",c="Argument",u="FragmentArgument",p="FragmentSpread",d="InlineFragment",h="FragmentDefinition",f="Variable",m="IntValue",g="Float
1Value",y="StringValue",b="BooleanValue",v="NullValue",_="EnumValue",S="ListValue",E="ObjectValue",T="ObjectField",w="Directive",x="NamedType",O="ListType",I="NonNullType",A="SchemaDefinition",k="OperationTypeDefinition",R="ScalarTypeDefinition",C="ObjectTypeDefinition",P="FieldDefinition",D="InputValueDefinition",M="InterfaceTypeDefinition",N="UnionTypeDefinition",L="EnumTypeDefinition",F="EnumValueDefinition",B="InputObjectTypeDefinition",U="DirectiveDefinition",j="SchemaExtension",H="DirectiveExtension",V="ScalarTypeExtension",z="ObjectTypeExtension",G="InterfaceTypeExtension",q="UnionTypeExtension",$="EnumTypeExtension",W="InputObjectTypeExtension",Y="TypeCoordinate",K="MemberCoordinate",J="ArgumentCoordinate",Q="DirectiveCoordinate",X="DirectiveArgumentCoordinate"},(e,t,r)=>{"use strict";r.r(t),r.d(t,{execute:()=>n});const n=r(516).ApolloLink.execute},(e,t,r)=>{"use strict";r.r(t),r.d(t,{ApolloLink:()=>s});var n=r(517),i=r(518),o=r(421),a=r(424);class s{static empty(){return new s(()=>n.EMPTY)}static from(e){if(0===e.length)return s.empty();const[t,...r]=e;return t.concat(...r)}static split(e,t,r=new s((e,t)=>t(e))){const n=new s((n,i)=>{const s=e(n);return o.__DEV__&&"boolean"!=typeof s&&o.__DEV__&&a.invariant.warn(63,s),s?t.request(n,i):r.request(n,i)});return Object.assign(n,{left:t,right:r})}static execute(e,t,r){return e.request((0,i.createOperation)(t,r),()=>(o.__DEV__&&o.__DEV__&&a.invariant.warn(64),n.EMPTY))}static concat(...e){return s.from(e)}constructor(e){e&&(this.request=e)}split(e,t,r){return this.concat(s.split(e,t,r))}concat(...e){return 0===e.length?this:e.reduce(this.combine.bind(this),this)}combine(e,t){const r=new s((r,n)=>e.request(r,e=>t.request(e,n)));return Object.assign(r,{left:e,right:t})}request(e,t){throw(0,a.newInvariantError)(65)}left;right}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{EMPTY:()=>i,empty:()=>o});var n=r(487),i=new n.Observable(function(e){return e.complete()});function o(e){return e?function(e){return new n.Observable(function(t){return e.schedule(function(){return t.complete()})})}(e):i}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{createOperation:()=>o});var n=r(519),i=r(522);function o(e,{client:t}){const r={query:e.query,variables:e.variables||{},extensions:e.extensions||{},operationName:(0,i.getOperationName)(e.query),operationType:(0,n.getOperationDefinition)(e.query).operation};let o={...e.context};const a=()=>Object.freeze({...o});return Object.defineProperty(r,"setContext",{enumerable:!1,value:e=>{o="function"==typeof e?{...o,...e(a())}:{...o,...e}}}),Object.defineProperty(r,"getContext",{enumerable:!1,value:a}),Object.defineProperty(r,"client",{enumerable:!1,value:t}),r}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{getOperationDefinition:()=>i});var n=r(520);function i(e){return(0,n.checkDocument)(e),e.definitions.filter(e=>"OperationDefinition"===e.kind)[0]}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{checkDocument:()=>c});var n=r(514),i=r(511),o=r(421),a=r(424),s=r(521),l=r(522);const c=(0,r(523).memoize)((e,t)=>{(0,a.invariant)(e&&"Document"===e.kind,1);const r=e.definitions.filter(e=>"OperationDefinition"===e.kind);o.__DEV__&&(e.definitions.forEach(e=>{if("OperationDefinition"!==e.kind&&"FragmentDefinition"!==e.kind)throw(0,a.newInvariantError)(2,e.kind)}),(0,a.invariant)(r.length<=1,3,r.length)),t&&(0,a.invariant)(1==r.length&&r[0].operation===t,4,t,t,r[0].operation),(0,i.visit)(e,{Field(t,i,o,s){if(t.alias&&("__typename"===t.alias.value||t.alias.value.startsWith("__ac_"))&&t.alias.value!==t.name.value){let i=e,o=[];for(const e of s)i=i[e],i.kind===n.FIELD&&o.push(i.alias?.value||i.name.value);throw o.splice(-1,1,t.name.value),(0,a.newInvariantError)(5,t.alias.value,o.join("."),r[0].operation,(0,l.getOperationName)(e,"(anonymous)"))}}})},{max:s.cacheSizes.checkDocument||2e3})},(e,t,r)=>{"use strict";r.r(t),r.d(t,{cacheSizes:()=>o});var n=r(425);const i=Symbol.for("apollo.cacheSize"),o={...n.default[i]}},(e,t,r)=>{"use strict";function n(e,t){return e.definitions.find(e=>"OperationDefinition"===e.kind&&!!e.name)?.name.value??t}r.r(t),r.d(t,{getOperationName:()=>n})},(e,t,r)=>{"use strict";r.r(t),r.d(t,{memoize:()=>o});var n=r(411),i=r(524);function o(e,{max:t,makeCacheKey:r=e=>e}){const o=new n.Trie(!0),a=new i.AutoCleanedWeakCache(t);return(...t)=>{const n=o.lookupArray(r(t)),i=a.get(n);if(i){if(i.error)throw i.error;return i.result}const s=a.set(n,{});try{return s.result=e(...t)}catch(e){throw s.error=e,e}}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{AutoCleanedStrongCache:()=>l,AutoCleanedWeakCache:()=>s});var n=r(412),i=r(525);const o=new WeakSet;function a(e){e.size<=(e.max||-1)||o.has(e)||(o.add(e),setTimeout(()=>{e.clean(),o.delete(e)},100))}const s=function(e,t){const r=new i.WeakCache(e,t);return r.set=function(e,t){const r=i.WeakCache.prototype.set.call(this,e,t);return a(this),r},r},l=function(e,t){const r=new n.StrongCache(e,t);return r.set=function(e,t){const r=n.StrongCache.prototype.set.call(this,e,t);return a(this),r},r}},(e,t,r)=>{"use strict";function n(){}r.r(t),r.d(t,{WeakCache:()=>l});const i=n,o="undefined"!=typeof WeakRef?WeakRef:function(e){return{deref:()=>e}}
1,a="undefined"!=typeof WeakMap?WeakMap:Map,s="undefined"!=typeof FinalizationRegistry?FinalizationRegistry:function(){return{register:n,unregister:n}};class l{constructor(e=1/0,t=i){this.max=e,this.dispose=t,this.map=new a,this.newest=null,this.oldest=null,this.unfinalizedNodes=new Set,this.finalizationScheduled=!1,this.size=0,this.finalize=()=>{const e=this.unfinalizedNodes.values();for(let t=0;t<10024;t++){const t=e.next().value;if(!t)break;this.unfinalizedNodes.delete(t);const r=t.key;delete t.key,t.keyRef=new o(r),this.registry.register(r,t,t)}this.unfinalizedNodes.size>0?queueMicrotask(this.finalize):this.finalizationScheduled=!1},this.registry=new s(this.deleteNode.bind(this))}has(e){return this.map.has(e)}get(e){const t=this.getNode(e);return t&&t.value}getNode(e){const t=this.map.get(e);if(t&&t!==this.newest){const{older:e,newer:r}=t;r&&(r.older=e),e&&(e.newer=r),t.older=this.newest,t.older.newer=t,t.newer=null,this.newest=t,t===this.oldest&&(this.oldest=r)}return t}set(e,t){let r=this.getNode(e);return r?r.value=t:(r={key:e,value:t,newer:null,older:this.newest},this.newest&&(this.newest.newer=r),this.newest=r,this.oldest=this.oldest||r,this.scheduleFinalization(r),this.map.set(e,r),this.size++,r.value)}clean(){for(;this.oldest&&this.size>this.max;)this.deleteNode(this.oldest)}deleteNode(e){e===this.newest&&(this.newest=e.older),e===this.oldest&&(this.oldest=e.newer),e.newer&&(e.newer.older=e.older),e.older&&(e.older.newer=e.newer),this.size--;const t=e.key||e.keyRef&&e.keyRef.deref();this.dispose(e.value,t),e.keyRef?this.registry.unregister(e):this.unfinalizedNodes.delete(e),t&&this.map.delete(t)}delete(e){const t=this.map.get(e);return!!t&&(this.deleteNode(t),!0)}scheduleFinalization(e){this.unfinalizedNodes.add(e),this.finalizationScheduled||(this.finalizationScheduled=!0,queueMicrotask(this.finalize))}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{DocumentTransform:()=>u});var n=r(525),i=r(411),o=r(410),a=r(520),s=r(424),l=r(521);function c(e){return e}class u{transform;cached;resultCache=new WeakSet;getCacheKey(e){return[e]}static identity(){return new u(c,{cache:!1})}static split(e,t,r=u.identity()){return Object.assign(new u(n=>(e(n)?t:r).transformDocument(n),{cache:!1}),{left:t,right:r})}constructor(e,t={}){this.transform=e,t.getCacheKey&&(this.getCacheKey=t.getCacheKey),this.cached=!1!==t.cache,this.resetCache()}resetCache(){if(this.cached){const e=new i.Trie;this.performWork=(0,o.wrap)(u.prototype.performWork.bind(this),{makeCacheKey:t=>{const r=this.getCacheKey(t);if(r)return(0,s.invariant)(Array.isArray(r),20),e.lookupArray(r)},max:l.cacheSizes["documentTransform.cache"],cache:n.WeakCache})}}performWork(e){return(0,a.checkDocument)(e),this.transform(e)}transformDocument(e){if(this.resultCache.has(e))return e;const t=this.performWork(e);return this.resultCache.add(t),t}concat(e){return Object.assign(new u(t=>e.transformDocument(this.transformDocument(t)),{cache:!1}),{left:this,right:e})}left;right}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{AutoCleanedStrongCache:()=>n.AutoCleanedStrongCache,AutoCleanedWeakCache:()=>n.AutoCleanedWeakCache,DeepMerger:()=>n.DeepMerger,argumentsObjectFromField:()=>n.argumentsObjectFromField,bindCacheKey:()=>n.bindCacheKey,canUseDOM:()=>n.canUseDOM,canonicalStringify:()=>n.canonicalStringify,checkDocument:()=>n.checkDocument,cloneDeep:()=>n.cloneDeep,combineLatestBatched:()=>n.combineLatestBatched,compact:()=>n.compact,createFragmentMap:()=>n.createFragmentMap,createFulfilledPromise:()=>n.createFulfilledPromise,createRejectedPromise:()=>n.createRejectedPromise,dealias:()=>n.dealias,decoratePromise:()=>n.decoratePromise,equalByQuery:()=>n.equalByQuery,extensionsSymbol:()=>n.extensionsSymbol,filterMap:()=>n.filterMap,getApolloCacheMemoryInternals:()=>o,getApolloClientMemoryInternals:()=>a,getDefaultValues:()=>n.getDefaultValues,getFragmentDefinition:()=>n.getFragmentDefinition,getFragmentDefinitions:()=>n.getFragmentDefinitions,getFragmentFromSelection:()=>n.getFragmentFromSelection,getFragmentQueryDocument:()=>n.getFragmentQueryDocument,getGraphQLErrorsFromResult:()=>n.getGraphQLErrorsFromResult,getInMemoryCacheMemoryInternals:()=>s,getMainDefinition:()=>n.getMainDefinition,getOperationDefinition:()=>n.getOperationDefinition,getOperationName:()=>n.getOperationName,getQueryDefinition:()=>n.getQueryDefinition,getStoreKeyName:()=>n.getStoreKeyName,graphQLResultHasError:()=>n.graphQLResultHasError,hasDirectives:()=>n.hasDirectives,hasForcedResolvers:()=>n.hasForcedResolvers,isArray:()=>n.isArray,isDocumentNode:()=>n.isDocumentNode,isField:()=>n.isField,isNonEmptyArray:()=>n.isNonEmptyArray,isNonNullObject:()=>n.isNonNullObject,isPlainObject:()=>n.isPlainObject,makeReference:()=>n.makeReference,makeUniqueId:()=>n.makeUniqueId,mapObservableFragmentMemoized:()=>n.mapObservableFragmentMemoized,maybeDeepFreeze:()=>n.maybeDeepFreeze,mergeDeep:()=>n.mergeDeep,mergeDeepArray:()=>n.mergeDeepArray,mergeOptions:()=>n.mergeOptions,omitDeep:()=>n.omitDeep,preventUnhandledRejection:()=>n.preventUnhandledRejection,registerGlobalCache:()=>n.registerGlobalCache,removeDirectivesFromDocument:()=>n.removeDirectivesFromDocument,removeMaskedFragmentSpreads:()=>n.removeMaskedFragmentSpreads,resultKeyNameFromField:()=>n.resultKeyNameFromField,shouldInclude:()=>n.shouldInclude,storeKeyNameFromField:()=>n.storeKeyNameFromField,streamInfoSymbol:()=>n.streamInfoSymbol,stringifyForDisplay:()=>n.stringifyForDisplay,toQueryResult:()=>n.toQueryResult,variablesUnknownSymbol:()=>n.variablesUnknownSymbol});var n=r(528);function i(){throw new Error("only supported in development mode")}const o=i,a=i,s=i},(e,t,r)=>{"use strict";r.r(t),r.d(t,{AutoCleanedStrongCache:()=>ne.AutoCleanedStrongCache,AutoCleanedWeakCache:()=>ne.AutoCleanedWeakCache,DeepMerger:()=>f.DeepMerger,argumentsObjectFromField:()=>n.argumentsObjectFromField,bindCacheKey:()=>te.bindCacheKey,canUseDOM:()=>i.canUseDOM,canonicalStringify:()=>X.canonicalStringify,checkDocument:()=>o.checkDocument,cloneDeep:()=>a.cloneDeep,combineLatestBatched:()=>s.combineLatestBatched,compact:()=>l.compact,createFragmentMap:()=>c.createFragmentMap,createFulfilledPromise:()=>u.createFulfilledPromise,createRejectedPromise:()=>p.createRejectedPromise,dealias:()=>d.dealias,decoratePromise:()=>h.decoratePromise,equalByQuery:()=>Q.equalByQuery,extensionsSymbol:()=>ee.extensionsSymbol,filterMap:()=>J.filterMap,getApolloCacheMemoryInternals:()=>re.getApolloCacheMemoryInternals,getApolloClientMemoryInternals:()=>re.getApolloClientMemoryInternals,getDefaultValues:()=>m.getDefaultValues,getFragmentDefinition:()=>b.getFragmentDefinition,getFragmentDefinitions:()=>v.getFragmentDefinitions,getFragmentFromSelection:()=>g.getFragmentFromSelection,getFragmentQueryDocument:()=>y.getFragmentQueryDocument,getGraphQLErrorsFromResult:()=>_.getGraphQLErrorsFromResult,getInMemoryCacheMemoryInternals:()=>re.getInMemoryCacheMemoryInternals,getMainDefinition:()=>S.getMainDefinition,getOperationDefinition:()=>E.getOperationDefinition,getOperationName:()=>T.getOperationName,getQueryDefinition:()=>w.getQueryDefinition,getStoreKeyName:()=>x.getStoreKeyName,graphQLResultHasError:()=>O.graphQLResultHasError,hasDirectives:()=>I.hasDirectives,hasForcedResolvers:()=>A.hasForcedResolvers,isArray:()=>k.isArray,isDocumentNode:()=>R.isDocumentNode,isField:()=>C.isField,isNonEmptyArray:()=>P.isNonEmptyArray,isNonNullObject:()=>D.isNonNullObject,isPlainObject:()=>M.isPlainObject,makeReference:()=>N.makeReference,makeUniqueId:()=>L.makeUniqueId,mapObservableFragmentMemoized:()=>Z.mapObservableFragmentMemoized,maybeDeepFreeze:()=>F.maybeDeepFreeze,mergeDeep:()=>B.mergeDeep,mergeDeepArray:()=>U.mergeDeepArray,mergeOptions:()=>j.mergeOptions,omitDeep:()=>H.omitDeep,preventUnhandledRejection:()=>V.preventUnhandledRejection,registerGlobalCache:()=>re.registerGlobalCache,removeDirectivesFromDocument:()=>z.removeDirectivesFromDocument,removeMaskedFragmentSpreads:()=>G.removeMaskedFragmentSpreads,resultKeyNameFromField:()=>q.resultKeyNameFromField,shouldInclude:()=>$.shouldInclude,storeKeyNameFromField:()=>W.storeKeyNameFromField,streamInfoSymbol:()=>ee.streamInfoSymbol,stringifyForDisplay:()=>Y.stringifyForDisplay,toQueryResult:()=>K.toQueryResult,variablesUnknownSymbol:()=>ee.variablesUnknownSymbol});var n=r(529),i=r(422),o=r(520),a=r(531),s=r(532),l=r(533),c=r(534),u=r(535),p=r(536),d=r(537),h=r(538),f=r(539),m=r(541),g=r(542),y=r(543),b=r(544),v=r(545),_=r(546),S=r(547),E=r(519),T=r(522),w=r(548),x=r(549),O=r(552),I=r(510),A=r(553),k=r(554),R=r(555),C=r(556),P=r(557),D=r(540),M=r(558),N=r(559),L=r(428),F=r(560),B=r
1(562),U=r(563),j=r(564),H=r(565),V=r(566),z=r(567),G=r(568),q=r(569),$=r(570),W=r(571),Y=r(427),K=r(572),J=r(573),Q=r(574),X=r(550),Z=r(576),ee=r(592),te=r(593),re=r(551),ne=r(524)},(e,t,r)=>{"use strict";r.r(t),r.d(t,{argumentsObjectFromField:()=>i});var n=r(530);function i(e,t){if(e.arguments&&e.arguments.length){const r={};return e.arguments.forEach(({name:e,value:i})=>(0,n.valueToObjectRepresentation)(r,e,i,t)),r}return null}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{valueToObjectRepresentation:()=>o});var n=r(514),i=r(424);function o(e,t,r,a){if(r.kind===n.INT||r.kind===n.FLOAT)e[t.value]=Number(r.value);else if(r.kind===n.BOOLEAN||r.kind===n.STRING)e[t.value]=r.value;else if(r.kind===n.OBJECT){const n={};r.fields.map(e=>o(n,e.name,e.value,a)),e[t.value]=n}else if(r.kind===n.VARIABLE){const n=(a||{})[r.name.value];e[t.value]=n}else if(r.kind===n.LIST)e[t.value]=r.values.map(e=>{const r={};return o(r,t,e,a),r[t.value]});else if(r.kind===n.ENUM)e[t.value]=r.value;else{if(r.kind!==n.NULL)throw(0,i.newInvariantError)(19,t.value,r.kind);e[t.value]=null}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{cloneDeep:()=>i});const{toString:n}=Object.prototype;function i(e){return o(e)}function o(e,t){switch(n.call(e)){case"[object Array]":{if((t=t||new Map).has(e))return t.get(e);const r=e.slice(0);return t.set(e,r),r.forEach(function(e,n){r[n]=o(e,t)}),r}case"[object Object]":{if((t=t||new Map).has(e))return t.get(e);const r=Object.create(Object.getPrototypeOf(e));return t.set(e,r),Object.keys(e).forEach(n=>{r[n]=o(e[n],t)}),r}default:return e}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{combineLatestBatched:()=>o});var n=r(487),i=r(517);function o(e){return 0===e.length?i.EMPTY:new n.Observable(t=>{const{length:r}=e,n=new Array(r),i=new Map;e.forEach((e,t)=>{i.has(e)||i.set(e,new Set),i.get(e).add(t)});let o,a=i.size,s=i.size;i.forEach((r,i)=>{let l=!1;const c=i.subscribe({next:a=>{r.forEach(e=>n[e]=a),l||(l=!0,s--),s||(o||=new Set(e.filter(e=>e.dirty)),o.delete(i),o.size||(t.next(n.slice()),o=void 0))},complete:()=>{a--,a||t.complete()},error:t.error.bind(t)});t.add(c)})})}},(e,t,r)=>{"use strict";function n(...e){const t={};return e.forEach(e=>{e&&Reflect.ownKeys(e).forEach(r=>{const n=e[r];void 0!==n&&(t[r]=n)})}),t}r.r(t),r.d(t,{compact:()=>n})},(e,t,r)=>{"use strict";function n(e=[]){const t={};return e.forEach(e=>{t[e.name.value]=e}),t}r.r(t),r.d(t,{createFragmentMap:()=>n})},(e,t,r)=>{"use strict";function n(e){const t=Promise.resolve(e);return t.status="fulfilled",t.value=e,t}r.r(t),r.d(t,{createFulfilledPromise:()=>n})},(e,t,r)=>{"use strict";function n(e){const t=Promise.reject(e);return t.catch(()=>{}),t.status="rejected",t.reason=e,t}r.r(t),r.d(t,{createRejectedPromise:()=>n})},(e,t,r)=>{"use strict";r.r(t),r.d(t,{dealias:()=>i});var n=r(514);function i(e,t){if(!e)return e;const r={...e};for(const i of t.selections)i.kind===n.FIELD&&i.alias&&(r[i.name.value]=e[
1i.alias.value],delete r[i.alias.value]);return r}},(e,t,r)=>{"use strict";function n(e){if(function(e){return"status"in e}(e))return e;const t=e;return t.status="pending",t.then(e=>{if("pending"===t.status){const r=t;r.status="fulfilled",r.value=e}},e=>{if("pending"===t.status){const r=t;r.status="rejected",r.reason=e}}),e}r.r(t),r.d(t,{decoratePromise:()=>n})},(e,t,r)=>{"use strict";r.r(t),r.d(t,{DeepMerger:()=>s});var n=r(540);const{hasOwnProperty:i}=Object.prototype,o=function(e,t,r){return this.merge(e[r],t[r])},a=e=>isNaN(+e)?{}:[];class s{options;reconciler;constructor(e={}){this.options=e,this.reconciler=e.reconciler||o}merge(e,t,r={}){const o=r.atPath;if(o?.length){const[n,...i]=o;void 0===e&&(e=a(n));let s=e[n];void 0===s&&i.length&&(s=a(i[0]));const l=this.merge(s,t,{...r,atPath:i});return s!==l&&((e=this.shallowCopyForMerge(e))[n]=l),e}return Array.isArray(e)&&Array.isArray(t)&&"truncate"===this.options.arrayMerge&&e.length>t.length&&(e=e.slice(0,t.length),this.pastCopies.add(e)),(0,n.isNonNullObject)(t)&&(0,n.isNonNullObject)(e)?(Object.keys(t).forEach(r=>{if(i.call(e,r)){const n=e[r];if(t[r]!==n){const i=this.reconciler(e,t,r);i!==n&&((e=this.shallowCopyForMerge(e))[r]=i)}}else(e=this.shallowCopyForMerge(e))[r]=t[r]}),e):t}isObject=n.isNonNullObject;pastCopies=new Set;shallowCopyForMerge(e){return(0,n.isNonNullObject)(e)&&(this.pastCopies.has(e)||(e=Array.isArray(e)?e.slice(0):{__proto__:Object.getPrototypeOf(e),...e},this.pastCopies.add(e))),e}}},(e,t,r)=>{"use strict";function n(e){return null!==e&&"object"==typeof e}r.r(t),r.d(t,{isNonNullObject:()=>n})},(e,t,r)=>{"use strict";r.r(t),r.d(t,{getDefaultValues:()=>i});var n=r(530);function i(e){const t={},r=e&&e.variableDefinitions;return r&&r.length&&r.forEach(e=>{e.defaultValue&&(0,n.valueToObjectRepresentation)(t,e.variable.name,e.defaultValue)}),t}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{getFragmentFromSelection:()=>i});var n=r(424);function i(e,t){switch(e.kind){case"InlineFragment":return e;case"FragmentSpread":{const r=e.name.value;if("function"==typeof t)return t(r);const i=t&&t[r];return(0,n.invariant)(i,9,r),i||null}default:return null}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{getFragmentQueryDocument:()=>i});var n=r(424);function i(e,t){let r=t;const i=[];e.definitions.forEach(e=>{if("OperationDefinition"===e.kind)throw(0,n.newInvariantError)(10,e.operation,e.name?` named '${e.name.value}'`:"");"FragmentDefinition"===e.kind&&i.push(e)}),void 0===r&&((0,n.invariant)(1===i.length,11,i.length),r=i[0].name.value);return{...e,definitions:[{kind:"OperationDefinition",operation:"query",selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:r}}]}},...e.definitions]}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{getFragmentDefinition:()=>i});var n=r(424);function i(e){(0,n.invariant)("Document"===e.kind,6),(0,n.invariant)(e.definitions.length<=1,7);const t=e.definitions[0];return(0,n.invariant)("FragmentDefinition"===t.kind,8),t}},(e,t,r)=>{"use strict";function n(e){return e.definitions.filter(e=>"FragmentDefinition"===e.kind)}r.r(t),r.d(t,{getFragmentDefinitions:()=>n})},(e,t,r)=>{"use strict";function n(e){return[...e.errors||[]]}r.r(t),r.d(t,{getGraphQLErrorsFromResult:()=>n})},(e,t,r)=>{"use strict";r.r(t),r.d(t,{getMainDefinition:()=>o});var n=r(424),i=r(520);function o(e){let t;(0,i.checkDocument)(e);for(let r of e.definitions){if("OperationDefinition"===r.kind)return r;"FragmentDefinition"!==r.kind||t||(t=r)}if(t)return t;throw(0,n.newInvariantError)(12)}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{getQueryDefinition:()=>o});var n=r(424),i=r(519);function o(e){const t=(0,i.getOperationDefinition)(e);return(0,n.invariant)(t&&"query"===t.operation,13),t}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{getStoreKeyName:()=>a});var n=r(550);const i=["connection","include","skip","client","rest","export","nonreactive","stream"];let o=n.canonicalStringify;const a=Object.assign(function(e,t,r){if(t&&r&&r.connection&&r.connection.key){if(r.connection.filter&&r.connection.filter.length>0){const e=r.connection.filter?r.connection.filter:[];e.sort();const n={};
1e.forEach(e=>{n[e]=t[e]});const i=o(n);if("{}"!==i)return`${r.connection.key}(${i})`}return r.connection.key}let n=e;if(t){const e=o(t);"{}"!==e&&(n+=`(${e})`)}return r&&Object.keys(r).forEach(e=>{-1===i.indexOf(e)&&(r[e]&&Object.keys(r[e]).length?n+=`@${e}(${o(r[e])})`:n+=`@${e}`)}),n},{setStringify(e){const t=o;return o=e,t}})},(e,t,r)=>{"use strict";r.r(t),r.d(t,{canonicalStringify:()=>s});var n=r(421),i=r(521),o=r(524),a=r(551);const s=Object.assign(function(e){return JSON.stringify(e,c)},{reset(){l=new o.AutoCleanedStrongCache(i.cacheSizes.canonicalStringify||1e3)}});let l;function c(e,t){if(t&&"object"==typeof t){const e=Object.getPrototypeOf(t);if(e===Object.prototype||null===e){const r=Object.keys(t);if(r.every(u))return t;const n=JSON.stringify(r);let i=l.get(n);if(!i){r.sort();const e=JSON.stringify(r);i=l.get(e)||r,l.set(n,i),l.set(e,i)}const o=Object.create(e);return i.forEach(e=>{o[e]=t[e]}),o}}return t}function u(e,t,r){return 0===t||r[t-1]<=e}n.__DEV__&&(0,a.registerGlobalCache)("canonicalStringify",()=>l.size),s.reset()},(e,t,r)=>{"use strict";r.r(t),r.d(t,{getApolloCacheMemoryInternals:()=>c,getApolloClientMemoryInternals:()=>s,getInMemoryCacheMemoryInternals:()=>l,registerGlobalCache:()=>a});var n=r(421),i=r(521);const o={};function a(e,t){o[e]=t}const s=n.__DEV__?function(){if(!n.__DEV__)throw new Error("only supported in development mode");return{limits:u(),sizes:{print:o.print?.(),canonicalStringify:o.canonicalStringify?.(),links:g(this.link),queryManager:{getDocumentInfo:this.queryManager.transformCache.size,documentTransforms:f(this.queryManager.documentTransform)},...this.cache.getMemoryInternals?.()}}}:void 0,l=n.__DEV__?function(){const e=this.config.fragments;return{...p.apply(this),addTypenameDocumentTransform:f(this.addTypenameTransform),inMemoryCache:{executeSelectionSet:d(this.storeReader.executeSelectionSet),executeSubSelectedArray:d(this.storeReader.executeSubSelectedArray),maybeBroadcastWatch:d(this.maybeBroadcastWatch)},fragmentRegistry:{findFragmentSpreads:d(e?.findFragmentSpreads),lookup:d(e?.lookup),transform:d(e?.transform)}}}:void 0,c=n.__DEV__?p:void 0;function u(){return Object.fromEntries(Object.entries({canonicalStringify:1e3,checkDocument:2e3,print:2e3,"documentTransform.cache":2e3,"queryManager.getDocumentInfo":2e3,"PersistedQueryLink.persistedQueryHashes":2e3,"fragmentRegistry.transform":2e3,"fragmentRegistry.lookup":1e3,"fragmentRegistry.findFragmentSpreads":4e3,"cache.fragmentQueryDocuments":1e3,"removeTypenameFromVariables.getVariableDefinitions":2e3,"inMemoryCache.maybeBroadcastWatch":5e3,"inMemoryCache.executeSelectionSet":5e4,"inMemoryCache.executeSubSelectedArray":1e4}).map(([e,t])=>[e,i.cacheSizes[e]||t]))}function p(){return{cache:{fragmentQueryDocuments:d(this.getFragmentDoc)}}}function d(e){return function(e){return!!e&&"dirtyKey"in e}(e)?e.size:void 0}function h(e){return null!=e}function f(e){return m(e).map(e=>({cache:e}))}function m(e){return e?[d(e?.performWork),...m(e?.left),...m(e?.right)].filter(h):[]}function g(e){return e?[e?.getMemoryInternals?.(),...g(e?.left),...g(e?.right)].filter(h):[]}},(e,t,r)=>{"use strict";function n(e){return!!e.errors?.length}r.r(t),r.d(t,{graphQLResultHasError:()=>n})},(e,t,r)=>{"use strict";r.r(t),r.d(t,{hasForcedResolvers:()=>i});var n=r(511);function i(e){let t=!1;return(0,n.visit)(e,{Directive:{enter(e){if("client"===e.name.value&&e.arguments&&(t=e.arguments.some(e=>"always"===e.name.value&&"BooleanValue"===e.value.kind&&!0===e.value.value),t))return n.BREAK}}}),t}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{isArray:()=>n});const n=Array.isArray},(e,t,r)=>{"use strict";r.r(t),r.d(t,{isDocumentNode:()=>i});var n=r(540);function i(e){return(0,n.isNonNullObject)(e)&&"Document"===e.kind&&Array.isArray(e.definitions)}},(e,t,r)=>{"use strict";function n(e){return"Field"===e.kind}r.r(t),r.d(t,{isField:()=>n})},(e,t,r)=>{"use strict";function n(e){return Array.isArray(e)&&e.length>0}r.r(t),r.d(t,{isNonEmptyArray:()=>n})},(e,t,r)=>{"use strict";function n(e){return null!==e&&"object"==typeof e&&(Object.getPrototypeOf(e)===Object.prototype||null===Object.getPrototypeOf(e))}r.r(t),r.d(t,{isPlainObject:()=>n})},(e,t,r)=>{"use strict";function n(e){return{__ref:String(e)}}r.r(t),r.d(t,{makeReference:()=>n})},(e,t,r)=>{"use strict";r.r(t),r.d(t,{maybeDeepFreeze:()=>o});var n=r(421),i=r(561);function o(e){return n.__DEV__&&(0,i.deepFreeze)(e),e}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{deepFreeze:()=>o});var n=r(421),i=r(540);function o(e){const t=new Set([e]);
1return t.forEach(e=>{(0,i.isNonNullObject)(e)&&function(e){if(n.__DEV__&&!Object.isFrozen(e))try{Object.freeze(e)}catch(e){if(e instanceof TypeError)return null;throw e}return e}(e)===e&&Object.getOwnPropertyNames(e).forEach(r=>{(0,i.isNonNullObject)(e[r])&&t.add(e[r])})}),e}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{mergeDeep:()=>i});var n=r(563);function i(...e){return(0,n.mergeDeepArray)(e)}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{mergeDeepArray:()=>i});var n=r(539);function i(e){let t=e[0]||{};const r=e.length;if(r>1){const i=new n.DeepMerger;for(let n=1;n<r;++n)t=i.merge(t,e[n])}return t}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{mergeOptions:()=>i});var n=r(533);function i(e,t){return(0,n.compact)(e,t,t.variables&&{variables:(0,n.compact)({...e&&e.variables,...t.variables})})}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{omitDeep:()=>i});var n=r(558);function i(e,t){return o(e,t)}function o(e,t,r=new Map){if(r.has(e))return r.get(e);let i=!1;if(Array.isArray(e)){const n=[];if(r.set(e,n),e.forEach((e,a)=>{const s=o(e,t,r);i||=s!==e,n[a]=s}),i)return n}else if((0,n.isPlainObject)(e)){const n=Object.create(Object.getPrototypeOf(e));if(r.set(e,n),Object.keys(e).forEach(a=>{if(a===t)return void(i=!0);const s=o(e[a],t,r);i||=s!==e[a],n[a]=s}),i)return n}return e}},(e,t,r)=>{"use strict";function n(e){return e.catch(()=>{}),e}r.r(t),r.d(t,{preventUnhandledRejection:()=>n})},(e,t,r)=>{"use strict";r.r(t),r.d(t,{removeDirectivesFromDocument:()=>h});var n=r(514),i=r(511),o=r(424),a=r(520),s=r(534),l=r(544),c=r(545),u=r(519),p=r(554),d=r(557);function h(e,t){(0,a.checkDocument)(t);const r=f(""),h=f(""),g=e=>{for(let t,i=0;i<e.length&&(t=e[i]);++i)if(!(0,p.isArray)(t)){if(t.kind===n.OPERATION_DEFINITION)return r(t.name&&t.name.value);if(t.kind===n.FRAGMENT_DEFINITION)return h(t.name.value)}return o.invariant.error(14),null};let y=0;for(let e=t.definitions.length-1;e>=0;--e)t.definitions[e].kind===n.OPERATION_DEFINITION&&++y;const b=function(e){const t=new Map,r=new Map;return e.forEach(e=>{e&&(e.name?t.set(e.name,e):e.test&&r.set(e.test,e))}),e=>{let n=t.get(e.name.value);return!n&&r.size&&r.forEach((t,r)=>{r(e)&&(n=t)}),n}}(e),v=e=>(0,d.isNonEmptyArray)(e)&&e.map(b).some(e=>e&&e.remove),_=new Map;let S=!1;const E={enter(e){if(v(e.directives))return S=!0,null}},T=(0,i.visit)(t,{Field:E,InlineFragment:E,VariableDefinition:{enter:()=>!1},Variable:{enter(e,t,r,n,i){const o=g(i);o&&o.variables.add(e.name.value)}},FragmentSpread:{enter(e,t,r,n,i){if(v(e.directives))return S=!0,null;const o=g(i);o&&o.fragmentSpreads.add(e.name.value)}},FragmentDefinition:{enter(e,t,r,n){_.set(JSON.stringify(n),e)},leave:(e,t,r,i)=>e===_.get(JSON.stringify(i))?e:y>0&&e.selectionSet.selections.every(e=>e.kind===n.FIELD&&"__typename"===e.name.value)?(h(e.name.value).removed=!0,S=!0,null):void 0},Directive:{leave(e){if(b(e))return S=!0,null}}});if(!S)return t;const w=e=>(e.transitiveVars||(e.transitiveVars=new Set(e.variables),e.removed||e.fragmentSpreads.forEach(t=>{w(h(t)).transitiveVars.forEach(t=>{e.transitiveVars.add(t)})})),e),x=new Set;T.definitions.forEach(e=>{e.kind===n.OPERATION_DEFINITION?w(r(e.name&&e.name.value)).fragmentSpreads.forEach(e=>{x.add(e)}):e.kind!==n.FRAGMENT_DEFINITION||0!==y||h(e.name.value).removed||x.add(e.name.value)}),x.forEach(e=>{w(h(e)).fragmentSpreads.forEach(e=>{x.add(e)})});const O={enter(e){if(t=e.name.value,!x.has(t)||h(t).removed)return null;var t}};return function(e){return m((0,u.getOperationDefinition)(e)||(0,l.getFragmentDefinition)(e),(0,s.createFragmentMap)((0,c.getFragmentDefinitions)(e)))?null:e}((0,i.visit)(T,{FragmentSpread:O,FragmentDefinition:O,OperationDefinition:{leave(e){if(e.variableDefinitions){const t=w(r(e.name&&e.name.value)).transitiveVars;if(t.size<e.variableDefinitions.length)return{...e,variableDefinitions:e.variableDefinitions.filter(e=>t.has(e.variable.name.value))}}}}}))}function f(e){const t=new Map;return function(r=e){let n=t.get(r);return n||t.set(r,n={variables:new Set,fragmentSpreads:new Set}),n}}function m(e,t){return!e||e.selectionSet.selections.every(e=>e.kind===n.FRAGMENT_SPREAD&&m(t[e.name.value],t))}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{removeMaskedFragmentSpreads:()=>i});var n=r(511);function i(e){return(0,n.visit)(e,{FragmentSpread(e){if(!e.directives?.some(({name:e})=>"unmask"===e.value))return null}})}},(e,t,r)=>{"use strict";function n(e){return e.alias?e.alias.value:e.name.value}r.r(t),r.d(t,{resultKeyNameFromField:()=>n})},(e,t,r)=>{"use strict";r.r(t),r.d(t,{shouldInclude:()=>i});var n=r(424);function i({directives:e},t){return!e||!e.length||function(e){const t=[];
1e&&e.length&&e.forEach(e=>{if(!function({name:{value:e}}){return"skip"===e||"include"===e}(e))return;const r=e.arguments,i=e.name.value;(0,n.invariant)(r&&1===r.length,16,i);const o=r[0];(0,n.invariant)(o.name&&"if"===o.name.value,17,i);const a=o.value;(0,n.invariant)(a&&("Variable"===a.kind||"BooleanValue"===a.kind),18,i),t.push({directive:e,ifArgument:o})});return t}(e).every(({directive:e,ifArgument:r})=>{let i=!1;return"Variable"===r.value.kind?(i=t&&t[r.value.name.value],(0,n.invariant)(void 0!==i,15,e.name.value)):i=r.value.value,"skip"===e.name.value?!i:i})}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{storeKeyNameFromField:()=>o});var n=r(549),i=r(530);function o(e,t){let r=null;e.directives&&(r={},e.directives.forEach(e=>{r[e.name.value]={},e.arguments&&e.arguments.forEach(({name:n,value:o})=>(0,i.valueToObjectRepresentation)(r[e.name.value],n,o,t))}));let o=null;return e.arguments&&e.arguments.length&&(o={},e.arguments.forEach(({name:e,value:r})=>(0,i.valueToObjectRepresentation)(o,e,r,t))),(0,n.getStoreKeyName)(e.name.value,o,r)}},(e,t,r)=>{"use strict";function n(e){const t={data:e.data};return e.error&&(t.error=e.error),t}r.r(t),r.d(t,{toQueryResult:()=>n})},(e,t,r)=>{"use strict";r.r(t),r.d(t,{filterMap:()=>i});var n=r(487);function i(e,t=()=>{}){return r=>new n.Observable(n=>{let i=t();return r.subscribe({next(t){let r;try{r=e(t,i)}catch(e){n.error(e)}void 0!==r&&n.next(r)},error(e){n.error(e)},complete(){n.complete()}})})}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{equalByQuery:()=>p});var n=r(575),i=r(534),o=r(545),a=r(542),s=r(547),l=r(556),c=r(569),u=r(570);function p(e,{data:t,...r},{data:a,...l},c){return(0,n.equal)(r,l)&&d((0,s.getMainDefinition)(e).selectionSet,t,a,{fragmentMap:(0,i.createFragmentMap)((0,o.getFragmentDefinitions)(e)),variables:c})}function d(e,t,r,i){if(t===r)return!0;const o=new Set;return e.selections.every(e=>{if(o.has(e))return!0;if(o.add(e),!(0,u.shouldInclude)(e,i.variables))return!0;if(h(e))return!0;if((0,l.isField)(e)){const o=(0,c.resultKeyNameFromField)(e),a=t&&t[o],s=r&&r[o],l=e.selectionSet;if(!l)return(0,n.equal)(a,s);const u=Array.isArray(a),p=Array.isArray(s);if(u!==p)return!1;if(u&&p){const e=a.length;if(s.length!==e)return!1;for(let t=0;t<e;++t)if(!d(l,a[t],s[t],i))return!1;return!0}return d(l,a,s,i)}{const n=(0,a.getFragmentFromSelection)(e,i.fragmentMap);if(n)return!!h(n)||d(n.selectionSet,t,r,i)}})}function h(e){return!!e.directives&&e.directives.some(f)}function f(e){return"nonreactive"===e.name.value}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>l,equal:()=>s});const{toString:n,hasOwnProperty:i}=Object.prototype,o=Function.prototype.toString,a=new Map;function s(e,t){try{return c(e,t)}finally{a.clear()}}const l=s;function c(e,t){if(e===t)return!0;const r=n.call(e);if(r!==n.call(t))return!1;switch(r){case"[object Array]":if(e.length!==t.length)return!1;case"[object Object]":{if(h(e,t))return!0;const r=u(e),n=u(t),o=r.length;if(o!==n.length)return!1;for(let e=0;e<o;++e)if(!i.call(t,r[e]))return!1;for(let n=0;n<o;++n){const i=r[n];if(!c(e[i],t[i]))return!1}return!0}case"[object Error]":return e.name===t.name&&e.message===t.message;case"[object Number]":if(e!=e)return t!=t;case"[object Boolean]":case"[object Date]":return+e===+t;case"[object RegExp]":case"[object String]":return e==`${t}`;case"[object Map]":case"[object Set]":{if(e.size!==t.size)return!1;if(h(e,t))return!0;const n=e.entries(),i="[object Map]"===r;for(;;){const e=n.next();if(e.done)break;const[r,o]=e.value;if(!t.has(r))return!1;if(i&&!c(o,t.get(r)))return!1}return!0}case"[object Uint16Array]":case"[object Uint8Array]":case"[object Uint32Array]":case"[object Int32Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object ArrayBuffer]":e=new Uint8Array(e),t=new Uint8Array(t);case"[object DataView]":{let r=e.byteLength;if(r===t.byteLength)for(;r--&&e[r]===t[r];);return-1===r}case"[object AsyncFunction]":case"[object GeneratorFunction]":case"[object AsyncGeneratorFunction]":case"[object Function]":{const r=o.call(e);return r===o.call(t)&&!function(e,t){const r=e.length-t.length;return r>=0&&e.indexOf(t,r)===r}(r,d)}}return!1}function u(e){return Object.keys(e).filter(p,e)}function p(e){return void 0!==this[e]}const d="{ [native code] }";function h(e,t){let r=a.get(e);if(r){if(r.has(t))return!0}else a.set(e,r=new Set);return r.add(t),!1}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{mapObservableFragmentMemoized:()=>o});var n=r(506),i=r(577);const o=(0,r(523).memoize)(function(e,t,r){return function(e,t){let r,o;function a(e){return e!==r&&(r=e,o=t(r)),o}return Object.assign(e.pipe((0,n.map)(a),(0,i.shareReplay)({bufferSize:1,refCount:!0})),{getCurrentResult:()=>a(e.getCurrentResult())})}(e,r)},{max:1,makeCacheKey:e=>e.slice(0,2)})},(e,t,r)=>{"use strict";r.r(t),r.d(t,{shareReplay:()=>o});var n=r(578),i=r(582);function o(e,t,r){var o,a,s,l,c=!1;return e&&"object"==typeof e?(o=e.bufferSize,l=void 0===o?1/0:o,a=e.windowTime,t=void 0===a?1/0:a,c=void 0!==(s=e.refCount)&&s,r=e.scheduler):l=null!=e?e:1/0,(0,i.share)({connector:function(){return new n.ReplaySubject(l,t,r)},resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:c})}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{ReplaySubject:()=>a});var n=r(489),i=r(579),o=r(581),a=function(e){function t(t,r,n){void 0===t&&(t=1/0),void 0===r&&(r=1/0),void 0===n&&(n=o.dateTimestampProvider);var i=e.call(this)||this;return i._bufferSize=t,i._windowTime=r,i._timestampProvider=n,i._buffer=[],i._infiniteTimeWindow=!0,i._infiniteTimeWindow=r===1/0,i._bufferSize=Math.max(1,t),i._windowTime=Math.max(1,r),i}return(0,n.__extends)(t,e),t.prototype.next=function(t){var r=this,n=r.isStopped,i=r._buffer,o=r._infiniteTimeWindow,a=r._timestampProvider,s=r._windowTime;n||(i.push(t),!o&&i.push(a.now()+s)),this._trimBuffer(),e.prototype.next.call(this,t)},t.prototype._subscribe=function(e){this._throwIfClosed(),this._trimBuffer();for(var t=this._innerSubscribe(e),r=this._infiniteTimeWindow,n=this._buffer.slice(),i=0;i<n.length&&!e.closed;i+=r?1:2)e.next(n[i]);return this._checkFinalizedStatuses(e),t},t.prototype._trimBuffer=function(){var e=this,t=e._bufferSize,r=e._timestampProvider,n=e._buffer,i=e._infiniteTimeWindow,o=(i?1:2)*t;if(t<1/0&&o<n.length&&n.splice(0,n.length-o),!i){for(var a=r.now(),s=0,l=1;l<n.length&&n[l]<=a;l+=2)s=l;s&&n.splice(0,s+1)}},t}(i.Subject)},(e,t,r)=>{"use strict";r.r(t),r.d(t,{AnonymousSubject:()=>u,Subject:()=>c});var n=r(489),i=r(487),o=r(491),a=r(580),s=r(494),l=r(500),c=function(e){function t(){var t=e.call(this)||this;return t.closed=!1,t.currentObservers=null,t.observers=[],t.isStopped=!1,t.hasError=!1,t.thrownError=null,t}return(0,n.__extends)(t,e),t.prototype.lift=function(e){var t=new u(this,this);return t.operator=e,t},t.prototype._throwIfClosed=function(){if(this.closed)throw new a.ObjectUnsubscribedError},t.prototype.next=function(e){var t=this;(0,l.errorContext)(function(){var r,i;if(t._throwIfClosed(),!t.isStopped){t.currentObservers||(t.currentObservers=Array.from(t.observers));try{for(var o=(0,n.__values)(t.currentObservers),a=o.next();!a.done;a=o.next()){a.value.next(e)}}catch(e){r={error:e}}finally{try{a&&!a.done&&(i=o.return)&&i.call(o)}finally{if(r)throw r.error}}}})},t.prototype.error=function(e){var t=this;(0,l.errorContext)(function(){if(t._throwIfClosed(),!t.isStopped){t.hasError=t.isStopped=!0,t.thrownError=e;for(var r=t.observers;r.length;)r.shift().error(e)}})},t.prototype.complete=function(){var e=this;(0,l.errorContext)(function(){if(e._throwIfClosed(),!e.isStopped){e.isStopped=!0;for(var t=e.observers;t.length;)t.shift().complete()}})},t.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(t.prototype,"observed",{get:function(){var e;return(null===(e=this.observers)||void 0===e?void 0:e.length)>0}
vendor: 4,964 bytes, line 1
1,enumerable:!1,configurable:!0}),t.prototype._trySubscribe=function(t){return this._throwIfClosed(),e.prototype._trySubscribe.call(this,t)},t.prototype._subscribe=function(e){return this._throwIfClosed(),this._checkFinalizedStatuses(e),this._innerSubscribe(e)},t.prototype._innerSubscribe=function(e){var t=this,r=this,n=r.hasError,i=r.isStopped,a=r.observers;return n||i?o.EMPTY_SUBSCRIPTION:(this.currentObservers=null,a.push(e),new o.Subscription(function(){t.currentObservers=null,(0,s.arrRemove)(a,e)}))},t.prototype._checkFinalizedStatuses=function(e){var t=this,r=t.hasError,n=t.thrownError,i=t.isStopped;r?e.error(n):i&&e.complete()},t.prototype.asObservable=function(){var e=new i.Observable;return e.source=this,e},t.create=function(e,t){return new u(e,t)},t}(i.Observable),u=function(e){function t(t,r){var n=e.call(this)||this;return n.destination=t,n.source=r,n}return(0,n.__extends)(t,e),t.prototype.next=function(e){var t,r;null===(r=null===(t=this.destination)||void 0===t?void 0:t.next)||void 0===r||r.call(t,e)},t.prototype.error=function(e){var t,r;null===(r=null===(t=this.destination)||void 0===t?void 0:t.error)||void 0===r||r.call(t,e)},t.prototype.complete=function(){var e,t;null===(t=null===(e=this.destination)||void 0===e?void 0:e.complete)||void 0===t||t.call(e)},t.prototype._subscribe=function(e){var t,r;return null!==(r=null===(t=this.source)||void 0===t?void 0:t.subscribe(e))&&void 0!==r?r:o.EMPTY_SUBSCRIPTION},t}(c)},(e,t,r)=>{"use strict";r.r(t),r.d(t,{ObjectUnsubscribedError:()=>n});var n=(0,r(493).createErrorClass)(function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}})},(e,t,r)=>{"use strict";r.r(t),r.d(t,{dateTimestampProvider:()=>n});var n={now:function(){return(n.delegate||Date).now()},delegate:void 0}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{share:()=>l});var n=r(489),i=r(583),o=r(579),a=r(488),s=r(507);function l(e){void 0===e&&(e={});var t=e.connector,r=void 0===t?function(){return new o.Subject}:t,n=e.resetOnError,l=void 0===n||n,u=e.resetOnComplete,p=void 0===u||u,d=e.resetOnRefCountZero,h=void 0===d||d;return function(e){var t,n,o,u=0,d=!1,f=!1,m=function(){null==n||n.unsubscribe(),n=void 0},g=function(){m(),t=o=void 0,d=f=!1},y=function(){var e=t;g(),null==e||e.unsubscribe()};return(0,s.operate)(function(e,s){u++,f||d||m();var b=o=null!=o?o:r();s.add(function(){0!==--u||f||d||(n=c(y,h))}),b.subscribe(s),!t&&u>0&&(t=new a.SafeSubscriber({next:function(e){return b.next(e)},error:function(e){f=!0,m(),n=c(g,l,e),b.error(e)},complete:function(){d=!0,m(),n=c(g,p),b.complete()}}),(0,i.innerFrom)(e).subscribe(t))})(e)}}function c(e,t){for(var r=[],o=2;o<arguments.length;o++)r[o-2]=arguments[o];if(!0!==t){if(!1!==t){var s=new a.SafeSubscriber({next:function(){s.unsubscribe(),e()}});return(0,i.innerFrom)(t.apply(void 0,(0,n.__spreadArray)([],(0,n.__read)(r)))).subscribe(s)}}else e()}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{fromArrayLike:()=>y,fromAsyncIterable:()=>_,fromInteropObservable:()=>g,fromIterable:()=>v,fromPromise:()=>b,fromReadableStreamLike:()=>S,innerFrom:()=>m});var n=r(489),i=r(584),o=r(585),a=r(487),s=r(586),l=r(587),c=r(588),u=r(589),p=r(591),d=r(490),h=r(496),f=r(501);function m(e){if(e instanceof a.Observable)return e;if(null!=e){if((0,s.isInteropObservable)(e))return g(e);if((0,i.isArrayLike)(e))return y(e);if((0,o.isPromise)(e))return b(e);if((0,l.isAsyncIterable)(e))return _(e);if((0,u.isIterable)(e))return v(e);if((0,p.isReadableStreamLike)(e))return S(e)}throw(0,c.createInvalidObservableTypeError)(e)}function g(e){return new a.Observable(function(t){var r=e[f.observable]();if((0,d.isFunction)(r.subscribe))return r.subscribe(t);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function y(e){return new a.Observable(function(t){for(var r=0;r<e.length&&!t.closed;r++)t.next(e[r]);t.complete()})}function b(e){return new a.Observable(function(t){e.then(function(e){t.closed||(t.next(e),t.complete())},function(e){return t.error(e)}).then(null,h.reportUnhandledError)})}function v(e){return new a.Observable(function(t){var r,i;try{for(var o=(0,n.__values)(e),a=o.next();!a.done;a=o.next()){var s=a.value;if(t.next(s),t.closed)return}}catch(e){r={error:e}}finally{try{a&&!a.done&&(i=o.return)&&i.call(o)}finally{if(r)throw r.error}}t.complete()})}function _(e){return new a.Observable(function(t){(function(e,t){var r,i,o,a;return(0,n.__awaiter)(this,void 0,void 0,function(){var s,l;return(0,n.__generator)(this,function(c){switch(c.label){case 0:c.trys.push([0,5,6,11]),r=(0,n.__asyncValues)(e),c.label=1;case 1:return[4,r.next()];case 2:if((i=c.sent()).done)return[3,4];if(s=i.value,t.next(s),t.closed)return[2];c.label=3;case 3:return[3,1];case 4:return[3,11];case 5:return l=c.sent(),o={error:l},[3,11];case 6:return c.trys.push([6,,9,10]),i&&!i.done&&(a=r.return)?[4,a.call(r)]:[3,8];case 7:c.sent(),c.label=8;case 8:return[3,10];case 9:if(o)throw o.error;return[7];
1case 10:return[7];case 11:return t.complete(),[2]}})})})(e,t).catch(function(e){return t.error(e)})})}function S(e){return _((0,p.readableStreamLikeToAsyncGenerator)(e))}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{isArrayLike:()=>n});var n=function(e){return e&&"number"==typeof e.length&&"function"!=typeof e}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{isPromise:()=>i});var n=r(490);function i(e){return(0,n.isFunction)(null==e?void 0:e.then)}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{isInteropObservable:()=>o});var n=r(501),i=r(490);function o(e){return(0,i.isFunction)(e[n.observable])}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{isAsyncIterable:()=>i});var n=r(490);function i(e){return Symbol.asyncIterator&&(0,n.isFunction)(null==e?void 0:e[Symbol.asyncIterator])}},(e,t,r)=>{"use strict";function n(e){return new TypeError("You provided "+(null!==e&&"object"==typeof e?"an invalid object":"'"+e+"'")+" where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.")}r.r(t),r.d(t,{createInvalidObservableTypeError:()=>n})},(e,t,r)=>{"use strict";r.r(t),r.d(t,{isIterable:()=>o});var n=r(590),i=r(490);function o(e){return(0,i.isFunction)(null==e?void 0:e[n.iterator])}},(e,t,r)=>{"use strict";function n(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}r.r(t),r.d(t,{getSymbolIterator:()=>n,iterator:()=>i});var i=n()},(e,t,r)=>{"use strict";r.r(t),r.d(t,{isReadableStreamLike:()=>a,readableStreamLikeToAsyncGenerator:()=>o});var n=r(489),i=r(490);function o(e){return(0,n.__asyncGenerator)(this,arguments,function(){var t,r,i;return(0,n.__generator)(this,function(o){switch(o.label){case 0:t=e.getReader(),o.label=1;case 1:o.trys.push([1,,9,10]),o.label=2;case 2:return[4,(0,n.__await)(t.read())];case 3:return r=o.sent(),i=r.value,r.done?[4,(0,n.__await)(void 0)]:[3,5];case 4:return[2,o.sent()];case 5:return[4,(0,n.__await)(i)];case 6:return[4,o.sent()];case 7:return o.sent(),[3,2];case 8:return[3,10];case 9:return t.releaseLock(),[7];case 10:return[2]}})})}function a(e){return(0,i.isFunction)(null==e?void 0:e.getReader)}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{extensionsSymbol:()=>n,streamInfoSymbol:()=>i,variablesUnknownSymbol:()=>o});const n=Symbol.for("apollo.result.extensions"),i=Symbol.for("apollo.result.streamInfo"),o=Symbol.for("apollo.observableQuery.variablesUnknown")},(e,t,r)=>{"use strict";r.r(t),r.d(t,{bindCacheKey:()=>i});var n=r(410);function i(...e){return n.defaultMakeCacheKey.bind(null,...e)}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{QueryManager:()=>re});var n=r(411),i=r(514),o=r(511),a=r(505),s=r(487),l=r(595),c=r(579),u=r(596),p=r(598),d=r(606),h=r(616),f=r(517),m=r(617),g=r(618),y=r(619),b=r(506),v=r(620),_=r(601),S=r(582),E=r(577),T=r(622),w=r(550),x=r(623),O=r(628),I=r(629),A=r(515),k=r(633),R=r(636),C=r(521),P=r(526),D=r(637),M=r(642),N=r(421),L=r(520),F=r(541),B=r(519),U=r(522),j=r(552),H=r(510),V=r(553),z=r(555),G=r(540),q=r(428),$=r(564),W=r(567),Y=r(572),K=r(573),J=r(592),Q=r(524),X=r(424),Z=r(644),ee=r(645),te=r(647);class re{defaultOptions;client;clientOptions;assumeImmutableResults;documentTransform;ssrMode;defaultContext;dataMasking;incrementalHandler;localState;queryDeduplication;prioritizeCacheValues=!1;onBroadcast;mutationStore;obsQueries=new Set;fetchCancelFns=new Map;constructor(e){const t=new P.DocumentTransform(e=>this.cache.transformDocument(e),{cache:!1});this.client=e.client,this.defaultOptions=e.defaultOptions,this.queryDeduplication=e.queryDeduplication,this.clientOptions=e.clientOptions,this.ssrMode=e.ssrMode,this.assumeImmutableResults=e.assumeImmutableResults,this.dataMasking=e.dataMasking,this.localState=e.localState,this.incrementalHandler=e.incrementalHandler;const r=e.documentTransform;this.documentTransform=r?t.concat(r).concat(t):t,this.defaultContext=e.defaultContext||{},(this.onBroadcast=e.onBroadcast)&&(this.mutationStore={})}get link(){return this.client.link}get cache(){return this.client.cache}stop(){this.obsQueries.forEach(e=>e.stop()),this.cancelPendingFetches((0,X.newInvariantError)(90))}cancelPendingFetches(e){this.fetchCancelFns.forEach(t=>t(e)),this.fetchCancelFns.clear()}async mutate({mutation:e,variables:t,optimisticResponse:r,updateQueries:n,refetchQueries:i=[],awaitRefetchQueries:o=!1,update:a,onQueryUpdated:s,fetchPolicy:l,errorPolicy:c,keepRootFields:u,context:p}){const h=new te.QueryInfo(this);e=this.cache.transformForLink(this.transform(e));const{hasClientExports:f}=this.getDocumentInfo(e);t=this.getVariables(e,t),f&&(N.__DEV__&&(0,X.invariant)(this.localState,91,(0,U.getOperationName)(e,"(anonymous)")),t=await this.localState.getExportedVariables({client:this.client,document:e,variables:t,context:p}));const m=this.mutationStore&&(this.mutationStore[h.id]={mutation:e,variables:t,loading:!0,error:null}),g=r&&h.markMutationOptimistic(r,{document:e,variables:t,cacheWriteBehavior:"no-cache"===l?0:2,errorPolicy:c,context:p,updateQueries:n,update:a,keepRootFields:u});return this.broadcastQueries(),new Promise((f,y)=>{const v={};return this.getObservableFromLink(e,{...p,optimisticResponse:g?r:void 0},t,l,{},!1).observable.pipe(ne(),(0,_.mergeMap)(r=>{const f={...r};return(0,d.from)(h.markMutationResult(f,{document:e,variables:t,cacheWriteBehavior:"no-cache"===l?0:2,errorPolicy:c,context:p,update:a,updateQueries:n,awaitRefetchQueries:o,refetchQueries:i,removeOptimistic:g?h.id:void 0,onQueryUpdated:s,keepRootFields:u}))}
1)).pipe((0,b.map)(e=>{if((0,j.graphQLResultHasError)(e)&&"none"===c)throw new O.CombinedGraphQLErrors(oe(e));return m&&(m.loading=!1,m.error=null),e})).subscribe({next:t=>{if(this.broadcastQueries(),!h.hasNext){const r={data:this.maskOperation({document:e,data:t.data,fetchPolicy:l,cause:v})};(0,j.graphQLResultHasError)(t)&&(r.error=new O.CombinedGraphQLErrors(t)),Object.keys(t.extensions||{}).length&&(r.extensions=t.extensions),f(r)}},error:e=>(m&&(m.loading=!1,m.error=e),g&&this.cache.removeOptimistic(h.id),this.broadcastQueries(),"ignore"===c?f({data:void 0}):"all"===c?f({data:void 0,error:e}):void y(e))})})}fetchQuery(e,t){return(0,L.checkDocument)(e.query,a.OperationTypeNode.QUERY),(async()=>(0,u.lastValueFrom)(this.fetchObservableWithInfo(e,{networkStatus:t}).observable.pipe((0,K.filterMap)(e=>{switch(e.kind){case"E":throw e.error;case"N":if("newNetworkStatus"!==e.source)return(0,Y.toQueryResult)(e.value)}})),{defaultValue:{data:void 0}}))()}transform(e){return this.documentTransform.transformDocument(e)}transformCache=new Q.AutoCleanedWeakCache(C.cacheSizes["queryManager.getDocumentInfo"]||2e3);getDocumentInfo(e){const{transformCache:t}=this;if(!t.has(e)){const r=(0,B.getOperationDefinition)(e),n={hasClientExports:(0,H.hasDirectives)(["client","export"],e,!0),hasForcedResolvers:(0,V.hasForcedResolvers)(e),hasNonreactiveDirective:(0,H.hasDirectives)(["nonreactive"],e),hasIncrementalDirective:(0,H.hasDirectives)(["defer"],e),nonReactiveQuery:ie(e),clientQuery:(0,H.hasDirectives)(["client"],e)?e:null,serverQuery:(0,W.removeDirectivesFromDocument)([{name:"client",remove:!0},{name:"connection"},{name:"nonreactive"},{name:"unmask"}],e),operationType:r?.operation,defaultVars:(0,F.getDefaultValues)(r),asQuery:{...e,definitions:e.definitions.map(e=>"OperationDefinition"===e.kind&&"query"!==e.operation?{...e,operation:"query"}:e)}};t.set(e,n)}const r=t.get(e);if(r.violation)throw r.violation;return r}getVariables(e,t){const r=this.getDocumentInfo(e).defaultVars,n=Object.entries(t??{}).map(([e,t])=>[e,void 0===t?r[e]:t]);return{...r,...Object.fromEntries(n)}}watchQuery(e){(0,L.checkDocument)(e.query,a.OperationTypeNode.QUERY);const t=this.transform(e.query);void 0===(e={...e,variables:this.getVariables(t,e.variables)}).notifyOnNetworkStatusChange&&(e.notifyOnNetworkStatusChange=!0);return new ee.ObservableQuery({queryManager:this,options:e,transformedQuery:t})}query(e){const t=this.transform(e.query);return this.fetchQuery({...e,query:t}).then(r=>({...r,data:this.maskOperation({document:t,data:r?.data,fetchPolicy:e.fetchPolicy})}))}clearStore(e={discardWatches:!0}){return this.cancelPendingFetches((0,X.newInvariantError)(92)),this.obsQueries.forEach(e=>{e.reset()}),this.mutationStore&&(this.mutationStore={}),this.cache.reset(e)}getObservableQueries(e="active"){const t=new Set,r=new Map,n=new Map,i=new Set;return Array.isArray(e)&&e.forEach(e=>{if("string"==typeof e)r.set(e,e),n.set(e,!1);else if((0,z.isDocumentNode)(e)){const t=(0,D.print)(this.transform(e));r.set(t,(0,U.getOperationName)(e)),n.set(t,!1)}else(0,G.isNonNullObject)(e)&&e.query&&i.add(e)}),this.obsQueries.forEach(r=>{const i=(0,D.print)(this.transform(r.options.query));if("all"===e)return void t.add(r);const{queryName:o,options:{fetchPolicy:a}}=r;"active"===e&&"standby"===a||("active"===e||o&&n.has(o)||i&&n.has(i))&&(t.add(r),o&&n.set(o,!0),i&&n.set(i,!0))}),i.size&&i.forEach(e=>{const r=new ee.ObservableQuery({queryManager:this,options:{...(0,$.mergeOptions)(this.defaultOptions.watchQuery,e),fetchPolicy:"network-only"}});t.add(r)}),N.__DEV__&&n.size&&n.forEach((e,t)=>{if(!e){const e=r.get(t);e?N.__DEV__&&X.invariant.warn(93,e):N.__DEV__&&X.invariant.warn(94)}}),t}refetchObservableQueries(e=!1){const t=[];return this.getObservableQueries(e?"all":"active").forEach(r=>{const{fetchPolicy:n}=r.options;!e&&"standby"===n||"cache-only"===n||t.push(r.refetch())}),this.broadcastQueries(),Promise.all(t)}startGraphQLSubscription(e){let{query:t,variables:r}=e;const{fetchPolicy:n="cache-first",errorPolicy:i="none",context:o={},extensions:s={}}=e;let l;(0,L.checkDocument)(t,a.OperationTypeNode.SUBSCRIPTION),t=this.transform(t),r=this.getVariables(t,r),N.__DEV__&&(0,X.invariant)(!this.getDocumentInfo(t).hasCl
1ientExports||this.localState,95,(0,U.getOperationName)(t,"(anonymous)"));const c=(this.getDocumentInfo(t).hasClientExports?(0,d.from)(this.localState.getExportedVariables({client:this.client,document:t,variables:r,context:o})):(0,h.of)(r)).pipe((0,_.mergeMap)(e=>{const{observable:r,restart:a}=this.getObservableFromLink(t,o,e,n,s),c=new te.QueryInfo(this);return l=a,r.pipe((0,b.map)(r=>{c.markSubscriptionResult(r,{document:t,variables:e,errorPolicy:i,cacheWriteBehavior:"no-cache"===n?0:2});const o={data:r.data??void 0};return(0,j.graphQLResultHasError)(r)?o.error=new O.CombinedGraphQLErrors(r):(0,x.graphQLResultHasProtocolErrors)(r)&&(o.error=r.extensions[x.PROTOCOL_ERRORS_SYMBOL],delete r.extensions[x.PROTOCOL_ERRORS_SYMBOL]),r.extensions&&Object.keys(r.extensions).length&&(o.extensions=r.extensions),o.error&&"none"===i&&(o.data=void 0),"ignore"===i&&delete o.error,o}),(0,m.catchError)(e=>"ignore"===i?(0,h.of)({data:void 0}):(0,h.of)({data:void 0,error:e})),(0,g.filter)(e=>!(!e.data&&!e.error)))}));return Object.assign(c,{restart:()=>l?.()})}broadcastQueries(){this.onBroadcast&&this.onBroadcast(),this.obsQueries.forEach(e=>e.notify())}inFlightLinkObservables=new n.Trie(!1);getObservableFromLink(e,t,r,n,i,o=t?.queryDeduplication??this.queryDeduplication){let c={};const{serverQuery:u,clientQuery:p,operationType:f,hasIncrementalDirective:g}=this.getDocumentInfo(e),b=(0,U.getOperationName)(e),v={client:this.client};if(u){const{inFlightLinkObservables:T,link:O}=this;try{const k=this.incrementalHandler.prepareRequest({query:u,variables:r,context:{...this.defaultContext,...t,queryDeduplication:o},extensions:i});function R(e){return new s.Observable(t=>{function r(){return e.subscribe({next:t.next.bind(t),complete:t.complete.bind(t),error:t.error.bind(t)})}let n=r();return c.restart||=()=>{n.unsubscribe(),n=r()},()=>{n.unsubscribe(),c.restart=void 0}})}if(t=k.context,o){const C=(0,D.print)(u),P=(0,w.canonicalStringify)(r);c=T.lookup(C,P),c.observable||(c.observable=(0,A.execute)(O,k,v).pipe(R,(0,y.finalize)(()=>{T.peek(C,P)===c&&T.remove(C,P)}),f===a.OperationTypeNode.SUBSCRIPTION?(0,S.share)():(0,E.shareReplay)({refCount:!0})))}else c.observable=(0,A.execute)(O,k,v).pipe(R)}catch(M){c.observable=(0,l.throwError)(()=>M)}}else c.observable=(0,h.of)({data:{}});if(p){const{operation:L}=(0,B.getOperationDefinition)(e);N.__DEV__&&(0,X.invariant)(this.localState,96,L[0].toUpperCase()+L.slice(1),b??"(anonymous)"),(0,X.invariant)(!g,97,L[0].toUpperCase()+L.slice(1),b??"(anonymous)"),c.observable=c.observable.pipe((0,_.mergeMap)(e=>(0,d.from)(this.localState.execute({client:this.client,document:p,remoteResult:e,context:t,variables:r,fetchPolicy:n}))))}return{restart:()=>c.restart?.(),observable:c.observable.pipe((0,m.catchError)(e=>{throw e=(0,x.toErrorLike)(e),(0,I.registerLinkError)(e),e}))}}getResultsFromLink(e,{queryInfo:t,cacheWriteBehavior:r,observableQuery:n,exposeExtensions:i}){const{errorPolicy:o}=e,a=this.cache.transformForLink(e.query);return this.getObservableFromLink(a,e.context,e.variables,e.fetchPolicy).observable.pipe((0,b.map)(s=>{const l=t.markQueryResult(s,{...e,document:a,cacheWriteBehavior:r}),c=(0,j.graphQLResultHasError)(l);if(c&&"none"===o)throw t.resetLastWrite(),n?.resetNotifications(),new O.CombinedGraphQLErrors(oe(l));const u={data:l.data,...t.hasNext?{loading:!0,networkStatus:Z.NetworkStatus.streaming,dataState:"streaming",partial:!0}:{dataState:l.data?"complete":"empty",loading:!1,networkStatus:Z.NetworkStatus.ready,partial:!l.data}};return i&&"extensions"in l&&(u[J.extensionsSymbol]=l.extensions),c&&("none"===o&&(u.data=void 0,u.dataState="empty"),"ignore"!==o&&(u.error=new O.CombinedGraphQLErrors(oe(l)),"streaming"!==u.dataState&&(u.networkStatus=Z.NetworkStatus.error))),u}),(0,m.catchError)(e=>{if("none"===o)throw t.resetLastWrite(),n?.resetNotifications(),e;const r={data:void 0,dataState:"empty",loading:!1,networkStatus:Z.NetworkStatus.ready,partial:!0};return"ignore"!==o&&(r.error=e,r.networkStatus=Z.NetworkStatus.error),(0,h.of)(r)}))}fetchObservableWithInfo(e,{networkStatus:t=Z.NetworkStatus.loading,query:r=e.query,fetchQueryOperator:n=e=>e,onCacheHit:i=()=>{},observableQuery:o,exposeExtensions:a}){const l=this.getVariables(r,e.variables);let{fetchPolicy:u="cache-first",errorPolicy:p="none",returnPartialData:h=!1,notifyOnNetworkStatusChange:f=!0,context:m={}}=e;!this.prioritizeCacheValues||"network-only"!==u&&"cache-and-network"!==u||(u="cache-first");const g=Object.assign({},e,{query:r,variables:l,fetchPolicy:u,errorPolicy:p,returnPartialData:h,notifyOnNetworkStatusChange:f,context:m}),y=new te.QueryInfo(this,o),b=r=>{g.variables=r;const s="no-cache"===u?0:t===Z.NetworkStatus.refetch&&"merge"!==g.refetchWritePolicy?1:2,l=this.fetchQueryByPolicy(g,{queryInfo:y,cacheWriteBehavior:s,onCacheHit:i,observableQuery:o,exposeExtensions:a});return l.observable=l.observable.pipe(n),"standby"!==g.fetchPolicy&&o?.applyNextFetchPolicy("after-fetch",e),l},v=()=>{this.fetchCancelFns.delete(y.id)};this.fetchCancelFns.set(y.id,e=>{E.next({kind:"E",error:e,source:"network"})});const E=new c.Subject;let T,w;if(this.getDocumentInfo(g.query).hasClientExports)N.__DEV__&&(0,X.invariant)(this.localState,98,(0,U.getOperationName)(g.query,"(anonymous)")),T=(0,d.from)(this.localState.getExportedVariables({client:this.client,document:g.query,variables:g.variables,context:g.context})).pipe((0,_.mergeMap)(e=>b(e).observable)),w=!0;else{const e=b(g.variables);w=e.fromLink,T=e.observable}return{observable:new s.Observable(e=>{e.add(v),T.subscribe(e),E.subscribe(e)}).pipe((0,S.share)()),fromLink:w}}refetchQueries({updateCache:e,include:t,optimistic:r=!1,removeOptimistic:n=(r?(0,q.makeUniqueId)("refetchQueries"):void 0),onQueryUpdated:i}){const o=new Map;
1t&&this.getObservableQueries(t).forEach(e=>{if("cache-only"===e.options.fetchPolicy||e.variablesUnknown)return;const t=e.getCurrentResult();o.set(e,{oq:e,lastDiff:{result:t?.data,complete:!t?.partial}})});const a=new Map;if(e){const t=new Set;this.cache.batch({update:e,optimistic:r&&n||!1,removeOptimistic:n,onWatchUpdated(e,r,n){const s=e.watcher;if(s instanceof ee.ObservableQuery&&!t.has(s)){if(t.add(s),i){o.delete(s);let e=i(s,r,n);return!0===e&&(e=s.refetch().retain()),!1!==e&&a.set(s,e),e}null!==i&&"cache-only"!==s.options.fetchPolicy&&o.set(s,{oq:s,lastDiff:n,diff:r})}}})}return o.size&&o.forEach(({oq:e,lastDiff:t,diff:r})=>{let n;i&&(r||(r=e.getCacheDiff()),n=i(e,r,t)),i&&!0!==n||(n=e.refetch().retain()),!1!==n&&a.set(e,n)}),n&&this.cache.removeOptimistic(n),a}noCacheWarningsByCause=new WeakSet;maskOperation(e){const{document:t,data:r}=e;if(N.__DEV__){const{fetchPolicy:r,cause:n={}}=e,i=(0,B.getOperationDefinition)(t)?.operation;!this.dataMasking||"no-cache"!==r||function(e){let t=!0;return(0,o.visit)(e,{FragmentSpread:e=>{if(t=!!e.directives&&e.directives.some(e=>"unmask"===e.name.value),!t)return o.BREAK}}),t}(t)||this.noCacheWarningsByCause.has(n)||(this.noCacheWarningsByCause.add(n),N.__DEV__&&X.invariant.warn(99,(0,U.getOperationName)(t,`Unnamed ${i??"operation"}`)))}return this.dataMasking?(0,R.maskOperation)(r,t,this.cache):r}maskFragment(e){const{data:t,fragment:r,fragmentName:n}=e;return this.dataMasking?(0,k.maskFragment)(t,r,this.cache,n):t}fetchQueryByPolicy({query:e,variables:t,fetchPolicy:r,errorPolicy:n,returnPartialData:i,context:o},{cacheWriteBehavior:a,onCacheHit:s,queryInfo:l,observableQuery:c,exposeExtensions:u}){const m=()=>this.cache.diff({query:e,variables:t,returnPartialData:!0,optimistic:!0}),g=(a,l)=>{const c=a.result;N.__DEV__&&!i&&null!==c&&(0,ee.logMissingFieldErrors)(a.missing);const u=e=>(a.complete||i||(e=void 0),{data:e,dataState:a.complete?"complete":e?"partial":"empty",loading:(0,M.isNetworkRequestInFlight)(l),networkStatus:l,partial:!a.complete}),p=e=>(0,h.of)({kind:"N",value:u(e),resolvedVariables:t,source:"cache"});return(a.complete||i)&&this.getDocumentInfo(e).hasForcedResolvers?(N.__DEV__&&(0,X.invariant)(this.localState,100,(0,U.getOperationName)(e,"(anonymous)")),s(),(0,d.from)(this.localState.execute({client:this.client,document:e,remoteResult:c?{data:c}:void 0,context:o,variables:t,onlyRunForcedResolvers:!0,returnPartialData:!0,fetchPolicy:r}).then(e=>({kind:"N",value:u(e.data||void 0),resolvedVariables:t,source:"cache"})))):"none"===n&&l===Z.NetworkStatus.refetch&&a.missing?p(void 0):p(c||void 0)},y=()=>this.getResultsFromLink({query:e,variables:t,context:o,fetchPolicy:r,errorPolicy:n},{cacheWriteBehavior:a,queryInfo:l,observableQuery:c,exposeExtensions:u}).pipe(ne(),(0,v.materialize)(),(0,b.map)(e=>({...e,resolvedVariables:t,source:"network"})));switch(r){default:case"cache-first":{const e=m();return e.complete?{fromLink:!1,observable:g(e,Z.NetworkStatus.ready)}:i?{fromLink:!0,observable:(0,p.concat)(g(e,Z.NetworkStatus.loading),y())}:{fromLink:!0,observable:y()}}case"cache-and-network":{const e=m();return e.complete||i?{fromLink:!0,observable:(0,p.concat)(g(e,Z.NetworkStatus.loading),y())}:{fromLink:!0,observable:y()}}case"cache-only":return{fromLink:!1,observable:(0,p.concat)(g(m(),Z.NetworkStatus.ready))};case"network-only":case"no-cache":return{fromLink:!0,observable:y()};case"standby":return{fromLink:!1,observable:f.EMPTY}}}}function ne(){let e=!1;return(0,T.tap)({next(){e=!0},complete(){(0,X.invariant)(e,101)}})}function ie(e){return(0,o.visit)(e,{FragmentSpread:e=>{if(!e.directives?.some(e=>"unmask"===e.name.value))return{...e,directives:[...e.directives||[],{kind:i.DIRECTIVE,name:{kind:i.NAME,value:"nonreactive"}}
1]}}})}function oe(e){if(null==e.extensions?.[J.streamInfoSymbol])return e;const{extensions:{[J.streamInfoSymbol]:t,...r},...n}=e;return Object.keys(r).length>0&&(n.extensions=r),n}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{throwError:()=>o});var n=r(487),i=r(490);function o(e,t){var r=(0,i.isFunction)(e)?e:function(){return e},o=function(e){return e.error(r())};return new n.Observable(t?function(e){return t.schedule(o,0,e)}:o)}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{lastValueFrom:()=>i});var n=r(597);function i(e,t){var r="object"==typeof t;return new Promise(function(i,o){var a,s=!1;e.subscribe({next:function(e){a=e,s=!0},error:o,complete:function(){s?i(a):r?i(t.defaultValue):o(new n.EmptyError)}})})}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{EmptyError:()=>n});var n=(0,r(493).createErrorClass)(function(e){return function(){e(this),this.name="EmptyError",this.message="no elements in sequence"}})},(e,t,r)=>{"use strict";r.r(t),r.d(t,{concat:()=>a});var n=r(599),i=r(604),o=r(606);function a(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return(0,n.concatAll)()((0,o.from)(e,(0,i.popScheduler)(e)))}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{concatAll:()=>i});var n=r(600);function i(){return(0,n.mergeAll)(1)}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{mergeAll:()=>o});var n=r(601),i=r(503);function o(e){return void 0===e&&(e=1/0),(0,n.mergeMap)(i.identity,e)}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{mergeMap:()=>l});var n=r(506),i=r(583),o=r(507),a=r(602),s=r(490);function l(e,t,r){return void 0===r&&(r=1/0),(0,s.isFunction)(t)?l(function(r,o){return(0,n.map)(function(e,n){return t(r,e,o,n)})((0,i.innerFrom)(e(r,o)))},r):("number"==typeof t&&(r=t),(0,o.operate)(function(t,n){return(0,a.mergeInternals)(t,n,e,r)}))}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{mergeInternals:()=>a});var n=r(583),i=r(603),o=r(508);function a(e,t,r,a,s,l,c,u){var p=[],d=0,h=0,f=!1,m=function(){!f||p.length||d||t.complete()},g=function(e){return d<a?y(e):p.push(e)},y=function(e){l&&t.next(e),d++;var u=!1;(0,n.innerFrom)(r(e,h++)).subscribe((0,o.createOperatorSubscriber)(t,function(e){null==s||s(e),l?g(e):t.next(e)},function(){u=!0},void 0,function(){if(u)try{d--;for(var e=function(){var e=p.shift();c?(0,i.executeSchedule)(t,c,function(){return y(e)}):y(e)};p.length&&d<a;)e();m()}catch(e){t.error(e)}}))};return e.subscribe((0,o.createOperatorSubscriber)(t,g,function(){f=!0,m()})),function(){null==u||u()}}},(e,t,r)=>{"use strict";function n(e,t,r,n,i){void 0===n&&(n=0),void 0===i&&(i=!1);var o=t.schedule(function(){r(),i?e.add(this.schedule(null,n)):this.unsubscribe()},n);if(e.add(o),!i)return o}r.r(t),r.d(t,{executeSchedule:()=>n})},(e,t,r)=>{"use strict";r.r(t),r.d(t,{popNumber:()=>l,popResultSelector:()=>a,popScheduler:()=>s});var n=r(490),i=r(605);function o(e){return e[e.length-1]}function a(e){return(0,n.isFunction)(o(e))?e.pop():void 0}function s(e){return(0,i.isScheduler)(o(e))?e.pop():void 0}function l(e,t){return"number"==typeof o(e)?e.pop():t}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{isScheduler:()=>i});var n=r(490);function i(e){return e&&(0,n.isFunction)(e.schedule)}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{from:()=>o});var n=r(607),i=r(583);function o(e,t){return t?(0,n.scheduled)(e,t):(0,i.innerFrom)(e)}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{scheduled:()=>g});var n=r(608),i=r(611),o=r(612),a=r(613),s=r(614),l=r(586),c=r(585),u=r(584),p=r(589),d=r(587),h=r(588),f=r(591),m=r(615);function g(e,t){if(null!=e){if((0,l.isInteropObservable)(e))return(0,n.scheduleObservable)(e,t);if((0,u.isArrayLike)(e))return(0,o.scheduleArray)(e,t);if((0,c.isPromise)(e))return(0,i.schedulePromise)(e,t);if((0,d.isAsyncIterable)(e))return(0,s.scheduleAsyncIterable)(e,t);if((0,p.isIterable)(e))return(0,a.scheduleIterable)(e,t);if((0,f.isReadableStreamLike)(e))return(0,m.scheduleReadableStreamLike)(e,t)}throw(0,h.createInvalidObservableTypeError)(e)}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{scheduleObservable:()=>a});var n=r(583),i=r(609),o=r(610);function a(e,t){return(0,n.innerFrom)(e).pipe((0,o.subscribeOn)(t),(0,i.observeOn)(t))}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{observeOn:()=>a});var n=r(603),i=r(507),o=r(508);function a(e,t){return void 0===t&&(t=0),(0,i.operate)(function(r,i){r.subscribe((0,o.createOperatorSubscriber)(i,function(r){return(0,n.executeSchedule)(i,e,function(){return i.next(r)},t)},function(){return(0,n.executeSchedule)(i,e,function(){return i.complete()},t)},function(r){return(0,n.executeSchedule)(i,e,function(){return i.error(r)},t)}
1))})}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{subscribeOn:()=>i});var n=r(507);function i(e,t){return void 0===t&&(t=0),(0,n.operate)(function(r,n){n.add(e.schedule(function(){return r.subscribe(n)},t))})}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{schedulePromise:()=>a});var n=r(583),i=r(609),o=r(610);function a(e,t){return(0,n.innerFrom)(e).pipe((0,o.subscribeOn)(t),(0,i.observeOn)(t))}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{scheduleArray:()=>i});var n=r(487);function i(e,t){return new n.Observable(function(r){var n=0;return t.schedule(function(){n===e.length?r.complete():(r.next(e[n++]),r.closed||this.schedule())})})}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{scheduleIterable:()=>s});var n=r(487),i=r(590),o=r(490),a=r(603);function s(e,t){return new n.Observable(function(r){var n;return(0,a.executeSchedule)(r,t,function(){n=e[i.iterator](),(0,a.executeSchedule)(r,t,function(){var e,t,i;try{t=(e=n.next()).value,i=e.done}catch(e){return void r.error(e)}i?r.complete():r.next(t)},0,!0)}),function(){return(0,o.isFunction)(null==n?void 0:n.return)&&n.return()}})}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{scheduleAsyncIterable:()=>o});var n=r(487),i=r(603);function o(e,t){if(!e)throw new Error("Iterable cannot be null");return new n.Observable(function(r){(0,i.executeSchedule)(r,t,function(){var n=e[Symbol.asyncIterator]();(0,i.executeSchedule)(r,t,function(){n.next().then(function(e){e.done?r.complete():r.next(e.value)})},0,!0)})})}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{scheduleReadableStreamLike:()=>o});var n=r(614),i=r(591);function o(e,t){return(0,n.scheduleAsyncIterable)((0,i.readableStreamLikeToAsyncGenerator)(e),t)}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{of:()=>o});var n=r(604),i=r(606);function o(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=(0,n.popScheduler)(e);return(0,i.from)(e,r)}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{catchError:()=>a});var n=r(583),i=r(508),o=r(507);function a(e){return(0,o.operate)(function(t,r){var o,s=null,l=!1;s=t.subscribe((0,i.createOperatorSubscriber)(r,void 0,void 0,function(i){o=(0,n.innerFrom)(e(i,a(e)(t))),s?(s.unsubscribe(),s=null,o.subscribe(r)):l=!0})),l&&(s.unsubscribe(),s=null,o.subscribe(r))})}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{filter:()=>o});var n=r(507),i=r(508);function o(e,t){return(0,n.operate)(function(r,n){var o=0;r.subscribe((0,i.createOperatorSubscriber)(n,function(r){return e.call(t,r,o++)&&n.next(r)}))})}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{finalize:()=>i});var n=r(507);function i(e){return(0,n.operate)(function(t,r){try{t.subscribe(r)}finally{r.add(e)}})}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{materialize:()=>a});var n=r(621),i=r(507),o=r(508);function a(){return(0,i.operate)(function(e,t){e.subscribe((0,o.createOperatorSubscriber)(t,function(e){t.next(n.Notification.createNext(e))},function(){t.next(n.Notification.createComplete()),t.complete()},function(e){t.next(n.Notification.createError(e)),t.complete()}))})}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{Notification:()=>l,NotificationKind:()=>n,observeNotification:()=>c});var n,i=r(517),o=r(616),a=r(595),s=r(490);!function(e){e.NEXT="N",e.ERROR="E",e.COMPLETE="C"}(n||(n={}));var l=function(){function e(e,t,r){this.kind=e,this.value=t,this.error=r,this.hasValue="N"===e}return e.prototype.observe=function(e){return c(this,e)},e.prototype.do=function(e,t,r){var n=this,i=n.kind,o=n.value,a=n.error;return"N"===i?null==e?void 0:e(o):"E"===i?null==t?void 0:t(a):null==r?void 0:r()},e.prototype.accept=function(e,t,r){var n;return(0,s.isFunction)(null===(n=e)||void 0===n?void 0:n.next)?this.observe(e):this.do(e,t,r)},e.prototype.toObservable=function(){var e=this,t=e.kind,r=e.value,n=e.error,s="N"===t?(0,o.of)(r):"E"===t?(0,a.throwError)(function(){return n}):"C"===t?i.EMPTY:0;if(!s)throw new TypeError("Unexpected notification kind "+t);return s},e.createNext=function(t){return new e("N",t)},e.createError=function(t){return new e("E",void 0,t)},e.createComplete=function(){return e.completeNotification},e.completeNotification=new e("C"),e}();function c(e,t){var r,n,i,o=e,a=o.kind,s=o.value,l=o.error;if("string"!=typeof a)throw new TypeError('Invalid notification, missing "kind"');"N"===a?null===(r=t.next)||void 0===r||r.call(t,s):"E"===a?null===(n=t.error)||void 0===n||n.call(t,l):null===(i=t.complete)||void 0===i||i.call(t)}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{tap:()=>s});var n=r(490),i=r(507),o=r(508),a=r(503);function s(e,t,r){var s=(0,n.isFunction)(e)||t||r?{next:e,error:t,complete:r}:e;return s?(0,i.operate)(function(e,t){var r;null===(r=s.subscribe)||void 0===r||r.call(s);var n=!0;e.subscribe((0,o.createOperatorSubscriber)(t,function(e){var r;null===(r=s.next)||void 0===r||r.call(s,e),t.next(e)},function(){var e;n=!1,null===(e=s.complete)||void 0===e||e.call(s),t.complete()},function(e){var r;n=!1,null===(r=s.error)||void 0===r||r.call(s,e),t.error(e)},function(){var e,t;n&&(null===(e=s.unsubscribe)||void 0===e||e.call(s)),null===(t=s.finalize)||void 0===t||t.call(s)}))}):a.identity}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{CombinedGraphQLErrors:()=>a.CombinedGraphQLErrors,CombinedProtocolErrors:()=>n.CombinedProtocolErrors,LinkError:()=>s.LinkError,LocalStateError:()=>l.LocalStateError,PROTOCOL_ERRORS_SYMBOL:()=>p,ServerError:()=>c.ServerError,ServerParseError:()=>u.ServerParseError,UnconventionalError:()=>o.UnconventionalError,graphQLResultHasProtocolErrors:()=>d,registerLinkError:()=>s.registerLinkError,toErrorLike:()=>h});var n=r(624),i=r(626),o=r(627),a=r(628),s=r(629),l=r(630),c=r(631),u=r(632);const p=Symbol();function d(e){return"extensions"in e&&n.CombinedProtocolErrors.is(e.extensions[p])}function h(e){return(0,i.isErrorLike)(e)?e:"string"==typeof e?new Error(e,{cause:e}):new o.UnconventionalError(e)}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{CombinedProtocolErrors:()=>o});var n=r(625);function i(e){return e.map(e=>e.message||"Error message not found.").join("\n")}
1class o extends Error{static is(e){return(0,n.isBranded)(e,"CombinedProtocolErrors")}static formatMessage=i;errors;constructor(e){super(o.formatMessage(e,{defaultFormatMessage:i})),this.name="CombinedProtocolErrors",this.errors=e,(0,n.brand)(this),Object.setPrototypeOf(this,o.prototype)}}},(e,t,r)=>{"use strict";function n(e,t){return"object"==typeof e&&null!==e&&e[Symbol.for("apollo.error")]===t}function i(e){Object.defineProperty(e,Symbol.for("apollo.error"),{value:e.name,enumerable:!1,writable:!1,configurable:!1})}r.r(t),r.d(t,{brand:()=>i,isBranded:()=>n})},(e,t,r)=>{"use strict";function n(e){return null!==e&&"object"==typeof e&&"string"==typeof e.message&&"string"==typeof e.name&&("string"==typeof e.stack||void 0===e.stack)}r.r(t),r.d(t,{isErrorLike:()=>n})},(e,t,r)=>{"use strict";r.r(t),r.d(t,{UnconventionalError:()=>i});var n=r(625);class i extends Error{static is(e){return(0,n.isBranded)(e,"UnconventionalError")}constructor(e){super("An error of unexpected shape occurred.",{cause:e}),this.name="UnconventionalError",(0,n.brand)(this),Object.setPrototypeOf(this,i.prototype)}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{CombinedGraphQLErrors:()=>o});var n=r(625);function i(e){return e.filter(e=>e).map(e=>e.message||"Error message not found.").join("\n")}class o extends Error{static is(e){return(0,n.isBranded)(e,"CombinedGraphQLErrors")}static formatMessage=i;errors;data;extensions;constructor(e,t=e.errors||[]){super(o.formatMessage(t,{result:e,defaultFormatMessage:i})),this.errors=t,this.data=e.data,this.extensions=e.extensions,this.name="CombinedGraphQLErrors",(0,n.brand)(this),Object.setPrototypeOf(this,o.prototype)}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{LinkError:()=>o,registerLinkError:()=>i});const n=new WeakSet;function i(e){n.add(e)}const o={is:e=>n.has(e)}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{LocalStateError:()=>i});var n=r(625);class i extends Error{static is(e){return(0,n.isBranded)(e,"LocalStateError")}path;constructor(e,t={}){super(e,{cause:t.sourceError}),this.name="LocalStateError",this.path=t.path,(0,n.brand)(this),Object.setPrototypeOf(this,i.prototype)}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{ServerError:()=>i});var n=r(625);class i extends Error{static is(e){return(0,n.isBranded)(e,"ServerError")}response;statusCode;bodyText;constructor(e,t){super(e),this.name="ServerError",this.response=t.response,this.statusCode=t.response.status,this.bodyText=t.bodyText,(0,n.brand)(this),Object.setPrototypeOf(this,i.prototype)}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{ServerParseError:()=>i});var n=r(625);class i extends Error{static is(e){return(0,n.isBranded)(e,"ServerParseError")}response;statusCode;bodyText;constructor(e,t){super(e instanceof Error?e.message:"Could not parse server response",{cause:e}),this.name="ServerParseError",this.response=t.response,this.statusCode=t.response.status,this.bodyText=t.bodyText,(0,n.brand)(this),Object.setPrototypeOf(this,i.prototype)}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{maskFragment:()=>c});var n=r(575),i=r(514),o=r(534),a=r(545),s=r(424),l=r(634);function c(e,t,r,c){const u=t.definitions.filter(e=>e.kind===i.FRAGMENT_DEFINITION);void 0===c&&((0,s.invariant)(1===u.length,41,u.length),c=u[0].name.value);const p=u.find(e=>e.name.value===c);return(0,s.invariant)(!!p,42,c),null==e||(0,n.equal)(e,{})?e:(0,l.maskDefinition)(e,p.selectionSet,{operationType:"fragment",operationName:p.name.value,fragmentMap:(0,o.createFragmentMap)((0,a.getFragmentDefinitions)(t)),cache:r,mutableTargets:new WeakMap,knownChanged:new WeakSet})}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{maskDefinition:()=>c});var n=r(514),i=r(421),o=r(560),a=r(569),s=r(424),l=r(635);function c(e,t,r){return l.disableWarningsSlot.withValue(!0,()=>{const n=u(e,t,r,!1);return Object.isFrozen(e)&&(0,o.maybeDeepFreeze)(n),n})}function u(e,t,r,o,c){const{knownChanged:d}=r,h=function(e,t){if(t.has(e))return t.get(e);const r=Array.isArray(e)?[]:{};return t.set(e,r),r}(e,r.mutableTargets);if(Array.isArray(e)){for(const[n,a]of Array.from(e.entries())){if(null===a){h[n]=null;continue}const e=u(a,t,r,o,i.__DEV__?`${c||""}[${n}]`:void 0);d.has(e)&&d.add(h),h[n]=e}return d.has(h)?h:e}for(const f of t.selections){let t;if(o&&d.add(h),f.kind===n.FIELD){const n=(0,a.resultKeyNameFromField)(f),s=f.selectionSet;if(t=h[n]||e[n],void 0===t)continue;if(s&&null!==t){const a=u(e[n],s,r,o,i.__DEV__?`${c||""}.${n}`:void 0);d.has(a)&&(t=a)}i.__DEV__||(h[n]=t),i.__DEV__&&(o&&"__typename"!==n&&!Object.getOwnPropertyDescriptor(h,n)?.value?Object.defineProperty(h,n,p(n,t,c||"",r.operationName,r.operationType)):(delete h[n],h[n]=t))}if(f.kind!==n.INLINE_FRAGMENT||f.typeCondition&&!r.cache.fragmentMatches(f,e.__typename)||(t=u(e,f.selectionSet,r,o,c)),f.kind===n.FRAGMENT_SPREAD){const n=f.name.value,i=r.fragmentMap[n]||(r.fragmentMap[n]=r.cache.lookupFragment(n));(0,s.invariant)(i,39,n);const o=(0,l.getFragmentMaskMode)(f);"mask"!==o&&(t=u(e,i.selectionSet,r,"migrate"===o,c))}d.has(t)&&d.add(h)}return"__typename"in e&&!("__typename"in h)&&(h.__typename=e.__typename),Object.keys(h).length!==Object.keys(e).length&&d.add(h),d.has(h)?h:e}function p(e,t,r,n,o){let a=()=>(l.disableWarningsSlot.getValue()||(i.__DEV__&&s.invariant.warn(40,n?`${o} '${n}'`:`anonymous ${o}`,`${r}.${e}`.replace(/^\./,"")),a=()=>t),t);return{get:()=>a(),set(e){a=()=>e},enumerable:!0,configurable:!0}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{disableWarningsSlot:()=>s,getFragmentMaskMode:()=>l});var n=r(514),i=r(410),o=r(421),a=r(424);const s=new i.Slot;function l(e){const t=e.directives?.find(({name:e})=>"unmask"===e.value);if(!t)return"mask";const r=t.arguments?.find(({name:e})=>"mode"===e.value);return o.__DEV__&&r&&(r.value.kind===n.VARIABLE?o.__DEV__&&a.invariant.warn(44):r.value.kind!==n.STRING?o.__DEV__&&a.invariant.warn(45):"migrate"!==r.value.value&&o.__DEV__&&a.invariant.warn(46,r.value.value)),r&&"value"in r.value&&"migrate"===r.value.value?"migrate":"unmask"}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{maskOperation:()=>l});var n=r(534),i=r(545),o=r(519),a=r(424),s=r(634);function l(e,t,r){const l=(0,o.getOperationDefinition)(t);return(0,a.invariant)(l,43),null==e?e:(0,s.maskDefinition)(e,l.selectionSet,{operationType:l.operation,operationName:l.name?.value,fragmentMap:(0,n.createFragmentMap)((0,i.getFragmentDefinitions)(t)),cache:r,mutableTargets:new WeakMap,knownChanged:new WeakSet})}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{print:()=>c});var n=r(638),i=r(421),o=r(551),a=r(524),s=r(521);let l;const c=Object.assign(e=>{let t=l.get(e);return t||(t=(0,n.print)(e),l.set(e,t)),t},{reset(){l=new a.AutoCleanedWeakCache(s.cacheSizes.print||2e3)}});c.reset(),i.__DEV__&&(0,o.registerGlobalCache)("print",()=>l?l.size:0)},(e,t,r)=>{"use strict";r.r(t),r.d(t,{print:()=>a});var n=r(639),i=r(641),o=r(511);function a(e){return(0,o.visit)(e,s)}const s={Name:{leave:e=>e.value},Variable:{leave:e=>"$"+e.name},Document:{leave:e=>l(e.definitions,"\n\n")},OperationDefinition:{leave(e){const t=d(e.variableDefinitions)?u("(\n",l(e.variableDefinitions,"\n"),"\n)"):u("(",l(e.variableDefinitions,", "),")"),r=u("",e.description,"\n")+l([e.operation,l([e.name,t]),l(e.directives," ")]," ");return("query"===r?"":r+" ")+e.selectionSet}},VariableDefinition:{leave:({variable:e,type:t,defaultValue:r,directives:n,description:i})=>u("",i,"\n")+e+": "+t+u(" = ",r)+u(" ",l(n," "))},SelectionSet:{leave:({selections:e})=>c(e)},Field:{leave({alias:e,name:t,arguments:r,directives:n,selectionSet:i}){const o=l([u("",e,": "),t],"");return l([h(o,r),u(" ",l(n," ")),u(" ",i)])}},Argument:{leave:({name:e,value:t})=>e+": "+t},FragmentArgument:{leave:({name:e,value:t})=>e+": "+t},FragmentSpread:{leave:({name:e,arguments:t,directives:r})=>h("..."+e,t)+u(" ",l(r," "))},InlineFragment:{leave:({typeCondition:e,directives:t,selectionSet:r})=>l(["...",u("on ",e),l(t," "),r]," ")},FragmentDefinition:{leave:({name:e,typeCondition:t,variableDefinitions:r,directives:n,selectionSet:i,description:o})=>u("",o,"\n")+`fragment ${e}${u("(",l(r,", "),")")} `+`on ${t} ${u("",l(n," ")," ")}`+i},IntValue:{leave:({value:e})=>e},FloatValue:{leave:({value:e})=>e}
1,StringValue:{leave:({value:e,block:t})=>!0===t?(0,n.printBlockString)(e):(0,i.printString)(e)},BooleanValue:{leave:({value:e})=>e?"true":"false"},NullValue:{leave:()=>"null"},EnumValue:{leave:({value:e})=>e},ListValue:{leave:({values:e})=>{const t="["+l(e,", ")+"]";return t.length>80?"[\n"+p(l(e,"\n"))+"\n]":t}},ObjectValue:{leave:({fields:e})=>{const t="{ "+l(e,", ")+" }";return t.length>80?c(e):t}},ObjectField:{leave:({name:e,value:t})=>e+": "+t},Directive:{leave:({name:e,arguments:t})=>"@"+e+u("(",l(t,", "),")")},NamedType:{leave:({name:e})=>e},ListType:{leave:({type:e})=>"["+e+"]"},NonNullType:{leave:({type:e})=>e+"!"},SchemaDefinition:{leave:({description:e,directives:t,operationTypes:r})=>u("",e,"\n")+l(["schema",l(t," "),c(r)]," ")},OperationTypeDefinition:{leave:({operation:e,type:t})=>e+": "+t},ScalarTypeDefinition:{leave:({description:e,name:t,directives:r})=>u("",e,"\n")+l(["scalar",t,l(r," ")]," ")},ObjectTypeDefinition:{leave:({description:e,name:t,interfaces:r,directives:n,fields:i})=>u("",e,"\n")+l(["type",t,u("implements ",l(r," & ")),l(n," "),c(i)]," ")},FieldDefinition:{leave:({description:e,name:t,arguments:r,type:n,directives:i})=>u("",e,"\n")+t+(d(r)?u("(\n",p(l(r,"\n")),"\n)"):u("(",l(r,", "),")"))+": "+n+u(" ",l(i," "))},InputValueDefinition:{leave:({description:e,name:t,type:r,defaultValue:n,directives:i})=>u("",e,"\n")+l([t+": "+r,u("= ",n),l(i," ")]," ")},InterfaceTypeDefinition:{leave:({description:e,name:t,interfaces:r,directives:n,fields:i})=>u("",e,"\n")+l(["interface",t,u("implements ",l(r," & ")),l(n," "),c(i)]," ")},UnionTypeDefinition:{leave:({description:e,name:t,directives:r,types:n})=>u("",e,"\n")+l(["union",t,l(r," "),u("= ",l(n," | "))]," ")},EnumTypeDefinition:{leave:({description:e,name:t,directives:r,values:n})=>u("",e,"\n")+l(["enum",t,l(r," "),c(n)]," ")},EnumValueDefinition:{leave:({description:e,name:t,directives:r})=>u("",e,"\n")+l([t,l(r," ")]," ")},InputObjectTypeDefinition:{leave:({description:e,name:t,directives:r,fields:n})=>u("",e,"\n")+l(["input",t,l(r," "),c(n)]," ")},DirectiveDefinition:{leave:({description:e,name:t,arguments:r,directives:n,repeatable:i,locations:o})=>u("",e,"\n")+"directive @"+t+(d(r)?u("(\n",p(l(r,"\n")),"\n)"):u("(",l(r,", "),")"))+u(" ",l(n," "))+(i?" repeatable":"")+" on "+l(o," | ")},SchemaExtension:{leave:({directives:e,operationTypes:t})=>l(["extend schema",l(e," "),c(t)]," ")},ScalarTypeExtension:{leave:({name:e,directives:t})=>l(["extend scalar",e,l(t," ")]," ")},ObjectTypeExtension:{leave:({name:e,interfaces:t,directives:r,fields:n})=>l(["extend type",e,u("implements ",l(t," & ")),l(r," "),c(n)]," ")},InterfaceTypeExtension:{leave:({name:e,interfaces:t,directives:r,fields:n})=>l(["extend interface",e,u("implements ",l(t," & ")),l(r," "),c(n)]," ")},UnionTypeExtension:{leave:({name:e,directives:t,types:r})=>l(["extend union",e,l(t," "),u("= ",l(r," | "))]," ")},EnumTypeExtension:{leave:({name:e,directives:t,values:r})=>l(["extend enum",e,l(t," "),c(r)]," ")},InputObjectTypeExtension:{leave:({name:e,directives:t,fields:r})=>l(["extend input",e,l(t," "),c(r)]," ")},DirectiveExtension:{leave:({name:e,directives:t})=>l(["extend directive @"+e,l(t," ")]," ")},TypeCoordinate:{leave:({name:e})=>e},MemberCoordinate:{leave:({name:e,memberName:t})=>l([e,u(".",t)])},ArgumentCoordinate:{leave:({name:e,fieldName:t,argumentName:r})=>l([e,u(".",t),u("(",r,":)")])},DirectiveCoordinate:{leave:({name:e})=>l(["@",e])},DirectiveArgumentCoordinate:{leave:({name:e,argumentName:t})=>l(["@",e,u("(",t,":)")])}};function l(e,t=""){return e?.filter(e=>void 0!==e&&""!==e).join(t)??""}function c(e){return u("{\n",p(l(e,"\n")),"\n}")}function u(e,t,r=""){return null!=t&&""!==t?e+t+r:""}function p(e){return u("  ",e.replaceAll("\n","\n  "))}function d(e){return e?.some(e=>e.includes("\n"))??!1}function h(e,t){let r=e+u("(",l(t,", "),")");return r.length>80&&(r=e+u("(\n",p(l(t,"\n")),"\n)")),r}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{dedentBlockStringLines:()=>i,isPrintableAsBlockString:()=>a,printBlockString:()=>s});var n=r(640);function i(e){let t=Number.MAX_SAFE_INTEGER,r=null,n=-1;for(let i=0;i<e.length;++i){const a=e[i],s=o(a);s!==a.length&&(r??=i,n=i,0!==i&&s<t&&(t=s))}return e.map((e,r)=>0===r?e:e.slice(t)).slice(r??0,n+1)}function o(e){let t=0;for(;t<e.length&&(0,n.isWhiteSpace)(e.charCodeAt(t));)++t;return t}function a(e){if(""===e)return!0;let t=!0,r=!1,n=!0,i=!1;for(let o=0;o<e.length;++o)switch(e.codePointAt(o)){case 0:case 1:case 2:case 3:case 4:case 5:case 
16:case 7:case 8:case 11:case 12:case 14:case 15:case 13:return!1;case 10:if(t&&!i)return!1;i=!0,t=!0,r=!1;break;case 9:case 32:r||=t;break;default:n&&=r,t=!1}return!t&&(!n||!i)}function s(e,t){const r=e.replaceAll('"""','\\"""'),i=r.split(/\r\n|[\n\r]/g),o=1===i.length,a=i.length>1&&i.slice(1).every(e=>0===e.length||(0,n.isWhiteSpace)(e.charCodeAt(0))),s=r.endsWith('\\"""'),l=e.endsWith('"')&&!s,c=e.endsWith("\\"),u=l||c,p=!t?.minimize&&(!o||e.length>70||u||a||s);let d="";const h=o&&(0,n.isWhiteSpace)(e.charCodeAt(0));return(p&&!h||a)&&(d+="\n"),d+=r,(p||u)&&(d+="\n"),'"""'+d+'"""'}},(e,t,r)=>{"use strict";function n(e){return 9===e||32===e}function i(e){return e>=48&&e<=57}function o(e){return e>=97&&e<=122||e>=65&&e<=90}function a(e){return o(e)||95===e}function s(e){return o(e)||i(e)||95===e}r.r(t),r.d(t,{isDigit:()=>i,isLetter:()=>o,isNameContinue:()=>s,isNameStart:()=>a,isWhiteSpace:()=>n})},(e,t,r)=>{"use strict";function n(e){return`"${e.replace(i,o)}"`}r.r(t),r.d(t,{printString:()=>n});const i=/[\x00-\x1f\x22\x5c\x7f-\x9f]/g;function o(e){return a[e.charCodeAt(0)]}const a=["\\u0000","\\u0001","\\u0002","\\u0003","\\u0004","\\u0005","\\u0006","\\u0007","\\b","\\t","\\n","\\u000B","\\f","\\r","\\u000E","\\u000F","\\u0010","\\u0011","\\u0012","\\u0013","\\u0014","\\u0015","\\u0016","\\u0017","\\u0018","\\u0019","\\u001A","\\u001B","\\u001C","\\u001D","\\u001E","\\u001F","","",'\\"',"","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\\\","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\u007F","\\u0080","\\u0081","\\u0082","\\u0083","\\u0084","\\u0085","\\u0086","\\u0087","\\u0088","\\u0089","\\u008A","\\u008B","\\u008C","\\u008D","\\u008E","\\u008F","\\u0090","\\u0091","\\u0092","\\u0093","\\u0094","\\u0095","\\u0096","\\u0097","\\u0098","\\u0099","\\u009A","\\u009B","\\u009C","\\u009D","\\u009E","\\u009F"]},(e,t,r)=>{"use strict";r.r(t),r.d(t,{isNetworkRequestInFlight:()=>i});var n=r(643);function i(e){return!(0,n.isNetworkRequestSettled)(e)}},(e,t,r)=>{"use strict";function n(e){return 7===e||8===e}r.r(t),r.d(t,{isNetworkRequestSettled:()=>n})},(e,t,r)=>{"use strict";var n;r.r(t),r.d(t,{NetworkStatus:()=>n}),function(e){e[e.loading=1]="loading",e[e.setVariables=2]="setVariables",e[e.fetchMore=3]="fetchMore",e[e.refetch=4]="refetch",e[e.poll=6]="poll",e[e.ready=7]="ready",e[e.error=8]="error",e[e.streaming=9]="streaming"}(n||(n={}))},(e,t,r)=>{"use strict";r.r(t),r.d(t,{ObservableQuery:()=>A,logMissingFieldErrors:()=>k});var n=r(575),i=r(487),o=r(579),a=r(646),s=r(618),l=r(582),c=r(622),u=r(642),p=r(643),d=r(421),h=r(533),f=r(519),m=r(522),g=r(548),y=r(566),b=r(572),v=r(573),_=r(574),S=r(592),E=r(424),T=r(644);const{assign:w,hasOwnProperty:x}=Object,O={loading:!0,networkStatus:T.NetworkStatus.loading,data:void 0,dataState:"empty",partial:!0},I={loading:!1,networkStatus:T.NetworkStatus.ready,data:void 0,dataState:"empty",partial:!0};class A{options;queryName;variablesUnknown=!1;_lastWrite;get query(){return this.lastQuery}get variables(){return this.options.variables}unsubscribeFromCache;input;subject;isTornDown;queryManager;subscriptions=new Set;waitForNetworkResult;lastQuery;linkSubscription;pollingInfo;get networkStatus(){return this.subject.getValue().result.networkStatus}get cache(){return this.queryManager.cache}constructor({queryManager:e,options:t,transformedQuery:r=e.transform(t.query)}){this.queryManager=e,this.waitForNetworkResult="network-only"===t.fetchPolicy,this.isTornDown=!1,this.subscribeToMore=this.subscribeToMore.bind(this),this.maskResult=this.maskResult.bind(this);const{watchQuery:{fetchPolicy:n="cache-first"}={}}=e.defaultOptions,{fetchPolicy:i=n,initialFetchPolicy:o=("standby"===i?n:i)}=t;t[S.variablesUnknownSymbol]&&((0,E.invariant)("standby"===i,82),this.variablesUnknown=!0),this.lastQuery=r,this.options={...t,initialFetchPolicy:o,fetchPolicy:i,variables:this.getVariablesWithDefaults(t.variables)},this.initializeObservablesQueue(),this["@@observable"]=()=>this,Symbol.observable&&(this[Symbol.observable]=()=>this);const a=(0,f.getOperationDefinition)(this.query);this.queryName=a&&a.name&&a.name.value}
1initializeObservablesQueue(){this.subject=new a.BehaviorSubject({query:this.query,variables:this.variables,result:O,meta:{}});const e=this.subject.pipe((0,c.tap)({subscribe:()=>{this.subject.observed||(this.reobserve(),setTimeout(()=>this.updatePolling()))},unsubscribe:()=>{this.subject.observed||this.tearDownQuery()}}),(0,v.filterMap)(({query:e,variables:t,result:r,meta:i},o)=>{const{shouldEmit:a}=i;if(r===O&&(o.previous=void 0,o.previousVariables=void 0),"standby"===this.options.fetchPolicy||2===a)return;if(1===a)return c();const{previous:s,previousVariables:l}=o;if(s){const i=this.queryManager.getDocumentInfo(e),o=this.queryManager.dataMasking,a=o?i.nonReactiveQuery:e;if((o||i.hasNonreactiveDirective?(0,_.equalByQuery)(a,s,r,t):(0,n.equal)(s,r))&&(0,n.equal)(l,t))return}if(3!==a||this.options.notifyOnNetworkStatusChange&&!(0,n.equal)(s,r))return c();function c(){return o.previous=r,o.previousVariables=t,r}},()=>({})));this.pipe=e.pipe.bind(e),this.subscribe=e.subscribe.bind(e),this.input=new o.Subject,this.input.complete=()=>{},this.input.pipe(this.operator).subscribe(this.subject)}subscribe;pipe;[Symbol.observable];"@@observable";getCacheDiff({optimistic:e=!0}={}){return this.cache.diff({query:this.query,variables:this.variables,returnPartialData:!0,optimistic:e})}getInitialResult(e){let t=e||this.options.fetchPolicy;!this.queryManager.prioritizeCacheValues||"network-only"!==t&&"cache-and-network"!==t||(t="cache-first");const r=()=>{const e=this.getCacheDiff(),t=this.options.returnPartialData||e.complete?e.result??void 0:void 0;return this.maskResult({data:t,dataState:e.complete?"complete":void 0===t?"empty":"partial",loading:!e.complete,networkStatus:e.complete?T.NetworkStatus.ready:T.NetworkStatus.loading,partial:!e.complete})};switch(t){case"cache-only":return{...r(),loading:!1,networkStatus:T.NetworkStatus.ready};case"cache-first":return r();case"cache-and-network":return{...r(),loading:!0,networkStatus:T.NetworkStatus.loading};case"standby":return I;default:return O}}resubscribeCache(){const{variables:e,fetchPolicy:t}=this.options,r=this.query,i="standby"===t||"no-cache"===t||this.waitForNetworkResult,o=!R({query:r,variables:e},this.unsubscribeFromCache)&&!this.waitForNetworkResult;if((i||o)&&this.unsubscribeFromCache?.(),i||!o)return;const a={query:r,variables:e,optimistic:!0,watcher:this,callback:e=>{const t=this.queryManager.getDocumentInfo(r);if((t.hasClientExports||t.hasForcedResolvers)&&(a.lastDiff=void 0),a.lastOwnDiff===e)return;const{result:i}=this.subject.getValue();(e.complete||!i.error&&i!==O&&i!==I)&&((0,n.equal)(i.data,e.result)||this.scheduleNotify())}},s=this.cache.watch(a);this.unsubscribeFromCache=Object.assign(()=>{this.unsubscribeFromCache=void 0,s()},{query:r,variables:e})}stableLastResult;getCurrentResult(){const{result:e}=this.subject.getValue();let t=e.networkStatus===T.NetworkStatus.error||this.hasObservers()||"no-cache"===this.options.fetchPolicy?e:this.getInitialResult();return t===O&&(t=this.getInitialResult()),(0,n.equal)(this.stableLastResult,t)||(this.stableLastResult=t),this.stableLastResult}refetch(e){const{fetchPolicy:t}=this.options,r={pollInterval:0};if(r.fetchPolicy="no-cache"===t?"no-cache":"network-only",d.__DEV__&&e&&x.call(e,"variables")){const t=(0,g.getQueryDefinition)(this.query),r=t.variableDefinitions;r&&r.some(e=>"variables"===e.variable.name.value)||d.__DEV__&&E.invariant.warn(83,e,t.name?.value||t)}return e&&!(0,n.equal)(this.variables,e)&&(r.variables=this.options.variables=this.getVariablesWithDefaults({...this.variables,...e})),this._lastWrite=void 0,this._reobserve(r,{newNetworkStatus:T.NetworkStatus.refetch})}fetchMore({query:e,variables:t,context:r,errorPolicy:i,updateQuery:o}){(0,E.invariant)("cache-only"!==this.options.fetchPolicy,84,(0,m.getOperationName)(this.query,"(anonymous)"));const a={...(0,h.compact)(this.options,{errorPolicy:"none"},{query:e,context:r,errorPolicy:i}),variables:e?t:{...this.variables,...t},fetchPolicy:"no-cache",notifyOnNetworkStatusChange:this.options.notifyOnNetworkStatusChange};a.query=this.transformDocument(a.query),this.lastQuery=e?this.transformDocument(this.options.query):a.query;let l=!1;const c="no-cache"!==this.options.fetchPolicy;c||(0,E.invariant)(o,85);const{finalize:d,pushNotification:f}=this.pushOperation(T.NetworkStatus.fetchMore);f({source:"newNetworkStatus",kind:"N",value:{}},{shouldEmit:3});const{promise:g,operator:v}=C(),{observable:_}=this.queryManager.fetchObservableWithInfo(a,{networkStatus:T.NetworkStatus.fetchMore,exposeExtensions:!0}),w=_.pipe(v,(0,s.filter)(e=>"N"===e.kind&&"network"===e.source)).subscribe({next:e=>{l=!1;const t=e.value,r=t[S.extensionsSymbol];
1if((0,p.isNetworkRequestSettled)(e.value.networkStatus)&&d(),c){const e=this.getCacheDiff();this.cache.batch({update:e=>{o?e.updateQuery({query:this.query,variables:this.variables,returnPartialData:!0,optimistic:!1,extensions:r},e=>o(e,{fetchMoreResult:t.data,variables:a.variables})):e.writeQuery({query:a.query,variables:a.variables,data:t.data,extensions:r})},onWatchUpdated:(r,i)=>{if(r.watcher===this&&!(0,n.equal)(i.result,e.result)){l=!0;const e=this.getCurrentResult();(0,u.isNetworkRequestInFlight)(t.networkStatus)&&f({kind:"N",source:"network",value:{...e,networkStatus:t.networkStatus===T.NetworkStatus.error?T.NetworkStatus.ready:t.networkStatus,loading:!1,data:i.result,dataState:"streaming"===t.dataState?"streaming":"complete"}})}}})}else{const e=this.getCurrentResult(),r=o(e.data,{fetchMoreResult:t.data,variables:a.variables});f({kind:"N",value:{...e,networkStatus:T.NetworkStatus.ready,loading:!1,data:r,dataState:"streaming"===e.dataState?"streaming":"complete"},source:"network"})}}});return(0,y.preventUnhandledRejection)(g.then(e=>(0,b.toQueryResult)(this.maskResult(e))).finally(()=>{if(w.unsubscribe(),d(),c&&!l){const e=this.getCurrentResult();"streaming"===e.dataState?f({kind:"N",source:"network",value:{...e,dataState:"complete",networkStatus:T.NetworkStatus.ready}}):f({kind:"N",source:"newNetworkStatus",value:{}},{shouldEmit:1})}}))}subscribeToMore(e){const t=this.queryManager.startGraphQLSubscription({query:e.document,variables:e.variables,context:e.context}).subscribe({next:t=>{const{updateQuery:r,onError:n}=e,{error:i}=t;i?n?n(i):E.invariant.error(86,i):r&&this.updateQuery((e,n)=>r(e,{subscriptionData:t,...n}))}});return this.subscriptions.add(t),()=>{this.subscriptions.delete(t)&&t.unsubscribe()}}applyOptions(e){const t=(0,h.compact)(this.options,e||{});w(this.options,t),this.updatePolling()}async setVariables(e){return e=this.getVariablesWithDefaults(e),(0,n.equal)(this.variables,e)?(0,b.toQueryResult)(this.getCurrentResult()):(this.options.variables=e,this.hasObservers()?this._reobserve({fetchPolicy:this.options.initialFetchPolicy,variables:e},{newNetworkStatus:T.NetworkStatus.setVariables}):(0,b.toQueryResult)(this.getCurrentResult()))}updateQuery(e){const{queryManager:t}=this,{result:r,complete:n}=this.getCacheDiff({optimistic:!1}),i=e(r,{variables:this.variables,complete:!!n,previousData:r});i&&(this.cache.writeQuery({query:this.options.query,data:i,variables:this.variables}),t.broadcastQueries())}startPolling(e){this.options.pollInterval=e,this.updatePolling()}stopPolling(){this.options.pollInterval=0,this.updatePolling()}applyNextFetchPolicy(e,t){if(t.nextFetchPolicy){const{fetchPolicy:r="cache-first",initialFetchPolicy:n=r}=t;"standby"===r||("function"==typeof t.nextFetchPolicy?t.fetchPolicy=t.nextFetchPolicy.call(t,r,{reason:e,options:t,observable:this,initialFetchPolicy:n}):t.fetchPolicy="variables-changed"===e?n:t.nextFetchPolicy)}return t.fetchPolicy}fetch(e,t,r,n){const o=this.options.fetchPolicy;e.context??={};let a=!1;let{observable:s,fromLink:u}=this.queryManager.fetchObservableWithInfo(e,{networkStatus:t,query:r,onCacheHit:()=>{a=!0},fetchQueryOperator:e=>new i.Observable(r=>{try{return e.subscribe({next(e){a=!0,r.next(e)},error:e=>r.error(e),complete:()=>r.complete()})}finally{a||(h.override=t,this.input.next({kind:"N",source:"newNetworkStatus",value:{resetError:!0},query:p,variables:d,meta:{shouldEmit:3,fetchPolicy:o}}))}}),observableQuery:this});const{query:p,variables:d}=this,h={abort:()=>{m.unsubscribe()},query:p,variables:d};this.activeOperations.add(h);let f=t==T.NetworkStatus.refetch||t==T.NetworkStatus.setVariables;s=s.pipe(n,(0,l.share)());const m=s.pipe((0,c.tap)({next:e=>{"newNetworkStatus"===e.source||"N"===e.kind&&e.value.loading?h.override=t:delete h.override},finalize:()=>this.activeOperations.delete(h)})).subscribe({next:e=>{const t={};f&&"N"===e.kind&&"loading"in e.value&&!e.value.loading&&(f=!1,t.shouldEmit=1),this.input.next({...e,query:p,variables:d,meta:t})}});return{fromLink:u,subscription:m,observable:s}}didWarnCacheOnlyPolling=!1;updatePolling(){if(this.queryManager.ssrMode)return;const{pollingInfo:e,options:{fetchPolicy:t,pollInterval:r}}=this,n=()=>{const{options:e}=this;
1return!e.pollInterval||!this.hasObservers()||"cache-only"===e.fetchPolicy||"standby"===e.fetchPolicy};if(n())return d.__DEV__&&!this.didWarnCacheOnlyPolling&&r&&"cache-only"===t&&(d.__DEV__&&E.invariant.warn(87,(0,m.getOperationName)(this.query,"(anonymous)")),this.didWarnCacheOnlyPolling=!0),void this.cancelPolling();if(e?.interval===r)return;(e||(this.pollingInfo={})).interval=r;const i=()=>{if(n())return this.cancelPolling();this.pollingInfo&&((0,u.isNetworkRequestInFlight)(this.networkStatus)||this.options.skipPollAttempt?.()?o():this._reobserve({fetchPolicy:"no-cache"===this.options.initialFetchPolicy?"no-cache":"network-only"},{newNetworkStatus:T.NetworkStatus.poll}).then(o,o))},o=()=>{const e=this.pollingInfo;e&&(clearTimeout(e.timeout),e.timeout=setTimeout(i,e.interval))};o()}cancelPolling(){this.pollingInfo&&(clearTimeout(this.pollingInfo.timeout),delete this.pollingInfo)}reobserve(e){return this._reobserve(e)}_reobserve(e,t){this.isTornDown=!1;let{newNetworkStatus:r}=t||{};this.queryManager.obsQueries.add(this);const i=r===T.NetworkStatus.refetch||r===T.NetworkStatus.poll,o=this.variables,a=this.options.fetchPolicy,s=(0,h.compact)(this.options,e||{});this.variablesUnknown&&="standby"===s.fetchPolicy;const l=i?s:w(this.options,s),c=this.transformDocument(l.query);this.lastQuery=c,e&&"variables"in e&&(l.variables=this.getVariablesWithDefaults(e.variables)),i||(this.updatePolling(),!e||!e.variables||(0,n.equal)(e.variables,o)||"standby"===l.fetchPolicy||l.fetchPolicy!==a&&"function"!=typeof l.nextFetchPolicy||(this.applyNextFetchPolicy("variables-changed",l),void 0===r&&(r=T.NetworkStatus.setVariables)));const u=this.networkStatus;r||(r=T.NetworkStatus.loading,u!==T.NetworkStatus.loading&&e?.variables&&!(0,n.equal)(e.variables,o)&&(r=T.NetworkStatus.setVariables),"standby"===l.fetchPolicy&&(r=T.NetworkStatus.ready)),"standby"===l.fetchPolicy&&this.cancelPolling(),this.resubscribeCache();const{promise:p,operator:d}=C("standby"===l.fetchPolicy?{data:void 0}:void 0),{subscription:f,observable:m,fromLink:g}=this.fetch(l,r,c,d);i||!g&&this.linkSubscription||(this.linkSubscription&&this.linkSubscription.unsubscribe(),this.linkSubscription=f);const v=Object.assign((0,y.preventUnhandledRejection)(p.then(e=>(0,b.toQueryResult)(this.maskResult(e))).finally(()=>{this.hasObservers()||0!==this.activeOperations.size||this.tearDownQuery()})),{retain:()=>{const e=m.subscribe({}),t=()=>e.unsubscribe();return p.then(t,t),v}});return v}hasObservers(){return this.subject.observed}stop(){this.subject.complete(),this.initializeObservablesQueue(),this.tearDownQuery()}tearDownQuery(){this.isTornDown||(this.resetNotifications(),this.unsubscribeFromCache?.(),this.linkSubscription&&(this.linkSubscription.unsubscribe(),delete this.linkSubscription),this.stopPolling(),this.subscriptions.forEach(e=>e.unsubscribe()),this.subscriptions.clear(),this.queryManager.obsQueries.delete(this),this.isTornDown=!0,this.abortActiveOperations(),this._lastWrite=void 0)}transformDocument(e){return this.queryManager.transform(e)}maskResult(e){const t=this.queryManager.maskOperation({document:this.query,data:e.data,fetchPolicy:this.options.fetchPolicy,cause:this});return t===e.data?e:{...e,data:t}}dirty=!1;notifyTimeout;resetNotifications(){this.notifyTimeout&&(clearTimeout(this.notifyTimeout),this.notifyTimeout=void 0),this.dirty=!1}scheduleNotify(){this.dirty||(this.dirty=!0,this.notifyTimeout||(this.notifyTimeout=setTimeout(()=>this.notify(!0),0)))}notify(e=!1){if(!e){const e=this.queryManager.getDocumentInfo(this.query);if(e.hasClientExports||e.hasForcedResolvers)return}const{dirty:t}=this;if(this.resetNotifications(),t&&("cache-only"===this.options.fetchPolicy||"cache-and-network"===this.options.fetchPolicy||!this.activeOperations.size)){const e=this.getCacheDiff();(0,n.equal)(e.result,this.getCacheDiff({optimistic:!1}).result)?this.reobserveCacheFirst():this.input.next({kind:"N",value:{data:e.result,dataState:e.complete?"complete":e.result?"partial":"empty",networkStatus:T.NetworkStatus.ready,loading:!1,error:void 0,partial:!e.complete},source:"cache",query:this.query,variables:this.variables,meta:{}})}}activeOperations=new Set;pushOperation(e){let t=!1;const{query:r,variables:n}=this,i=()=>{this.activeOperations.delete(o)},o={override:e,abort:()=>{t=!0,i()},query:r,variables:n};return this.activeOperations.add(o),{finalize:i,pushNotification:(e,i)=>{t||this.input.next({...e,query:r,variables:n,meta:{...i}})}}}calculateNetworkStatus(e){if(e===T.NetworkStatus.streaming)return e;const t=Array.from(this.activeOperations.values()).reverse().find(e=>R(e,this)&&void 0!==e.override);return t?.override??e}
1abortActiveOperations(){this.activeOperations.forEach(e=>e.abort())}reset(){const e="cache-only"===this.options.fetchPolicy;this.setResult(e?I:O,{shouldEmit:e?1:2}),this.abortActiveOperations()}setResult(e,t){this.input.next({source:"setResult",kind:"N",value:e,query:this.query,variables:this.variables,meta:{...t}})}operator=(0,v.filterMap)(e=>{const{query:t,meta:r}=e;if("setResult"===e.source)return{query:t,variables:this.variables,result:e.value,meta:r};if("C"===e.kind)return;const i="resolvedVariables"in e?e.resolvedVariables:void 0;if(e.query!==this.query)return;if(!(0,n.equal)(i,this.variables)){if(!(0,n.equal)(e.variables,this.variables))return;i&&(this.options.variables=i,this.resubscribeCache())}const o=this.variables;let a;const s=this.subject.getValue();if("cache"===e.source){if(a=e.value,a.networkStatus===T.NetworkStatus.ready&&a.partial&&(!this.options.returnPartialData||s.result.networkStatus===T.NetworkStatus.error)&&"cache-only"!==this.options.fetchPolicy)return}else if("network"===e.source)this.waitForNetworkResult&&(this.waitForNetworkResult=!1,this.resubscribeCache()),a="E"===e.kind?{...R(s,e)||i&&(0,n.equal)(i,s.variables)?s.result:{data:void 0,dataState:"empty",partial:!0},error:e.error,networkStatus:T.NetworkStatus.error,loading:!1}:e.value,"E"===e.kind&&"streaming"===a.dataState&&(a.dataState="complete"),a.error&&(r.shouldEmit=1);else if("newNetworkStatus"===e.source){const t=R(s,e)?s.result:this.getInitialResult(r.fetchPolicy),{resetError:n}=e.value,i=n?void 0:t.error,o=i?T.NetworkStatus.error:T.NetworkStatus.ready;a={...t,error:i,networkStatus:o}}return(0,E.invariant)(a),a.error||delete a.error,a.networkStatus=this.calculateNetworkStatus(a.networkStatus),a.loading=(0,u.isNetworkRequestInFlight)(a.networkStatus),a=this.maskResult(a),void 0!==s.result.data&&a.data!==s.result.data&&(0,n.equal)(a.data,s.result.data)&&(a.data=s.result.data),{query:t,variables:o,result:a,meta:r}});reobserveCacheFirst(){const{fetchPolicy:e,nextFetchPolicy:t}=this.options;"cache-and-network"===e||"network-only"===e?this.reobserve({fetchPolicy:"cache-first",nextFetchPolicy(r,n){return this.nextFetchPolicy=t,"function"==typeof this.nextFetchPolicy?this.nextFetchPolicy(r,n):e}}):this.reobserve()}getVariablesWithDefaults(e){return this.queryManager.getVariables(this.query,e)}}function k(e){d.__DEV__&&e&&d.__DEV__&&E.invariant.debug(88,e)}function R(e,t){return!!(e&&t&&e.query===t.query&&(0,n.equal)(e.variables,t.variables))}function C(e){let t,r,n=e;return{promise:new Promise((e,n)=>{t=e,r=n}
1),operator:(0,c.tap)({next(e){if("E"===e.kind)return r(e.error);"N"!==e.kind||"newNetworkStatus"===e.source||e.value.loading||(n=e.value)},finalize:()=>{if(n)t(n);else{const e="The operation was aborted.",t="AbortError";r("undefined"!=typeof DOMException?new DOMException(e,t):Object.assign(new Error(e),{name:t}))}}})}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{BehaviorSubject:()=>i});var n=r(489),i=function(e){function t(t){var r=e.call(this)||this;return r._value=t,r}return(0,n.__extends)(t,e),Object.defineProperty(t.prototype,"value",{get:function(){return this.getValue()},enumerable:!1,configurable:!0}),t.prototype._subscribe=function(t){var r=e.prototype._subscribe.call(this,t);return!r.closed&&t.next(this._value),r},t.prototype.getValue=function(){var e=this,t=e.hasError,r=e.thrownError,n=e._value;if(t)throw r;return this._throwIfClosed(),n},t.prototype.next=function(t){e.prototype.next.call(this,this._value=t)},t}(r(579).Subject)},(e,t,r)=>{"use strict";r.r(t),r.d(t,{QueryInfo:()=>h});var n=r(575),i=r(421),o=r(522),a=r(552),s=r(592),l=r(424);const c={},u=new WeakMap;function p(e,t){const r=e[t];"function"==typeof r&&(e[t]=function(){return u.set(e,(u.get(e)+1)%1e15),r.apply(this,arguments)})}const d=new WeakMap;class h{cache;queryManager;id;observableQuery;incremental;constructor(e,t){const r=this.cache=e.cache,n=(d.get(e)||0)+1;d.set(e,n),this.id=n+"",this.observableQuery=t,this.queryManager=e,u.has(r)||(u.set(r,0),p(r,"evict"),p(r,"modify"),p(r,"reset"))}_lastWrite;get lastWrite(){return(this.observableQuery||this)._lastWrite}set lastWrite(e){(this.observableQuery||this)._lastWrite=e}resetLastWrite(){this.lastWrite=void 0}shouldWrite(e,t){const{lastWrite:r}=this;return!(r&&r.dmCount===u.get(this.cache)&&(0,n.equal)(t,r.variables)&&(0,n.equal)(e.data,r.result.data)&&e.extensions?.[s.streamInfoSymbol]===r.result.extensions?.[s.streamInfoSymbol])}get hasNext(){return!!this.incremental&&this.incremental.hasNext}maybeHandleIncrementalResult(e,t,r){const{incrementalHandler:n}=this.queryManager;return n.isIncrementalResult(t)?(this.incremental||=n.startRequest({query:r}),this.incremental.handle(e,t)):t}markQueryResult(e,{document:t,variables:r,errorPolicy:n,cacheWriteBehavior:a}){const s={query:t,variables:r,returnPartialData:!0,optimistic:!0};this.observableQuery?.resetNotifications();const c=0===a,p=c?void 0:this.cache.diff(s);let d=this.maybeHandleIncrementalResult(p?.result,e,t);if(c)return d;if(f(d,n)){let e=!1;this.cache.batch({onWatchUpdated:(e,t)=>{e.watcher===this.observableQuery&&(e.lastOwnDiff=t)}
1,update:n=>{if(this.shouldWrite(d,r))n.writeQuery({query:t,data:d.data,variables:r,overwrite:1===a,extensions:d.extensions}),e=!0,this.lastWrite={result:d,variables:r,dmCount:u.get(this.cache)};else if(p&&p.complete)return void(d={...d,data:p.result});const c=n.diff(s);c.complete?d={...d,data:c.result}:i.__DEV__&&e&&!this.hasNext&&function(e,t,r){i.__DEV__&&l.invariant.warn(89,(0,o.getOperationName)(e,"(anonymous)"),r.missing?.missing,t,r.result)}(t,d.data,c)}})}else this.lastWrite=void 0;return d}markMutationResult(e,t,r=this.cache){const n=[],i=0===t.cacheWriteBehavior;let s=this.maybeHandleIncrementalResult(i?void 0:r.diff({id:"ROOT_MUTATION",query:this.queryManager.getDocumentInfo(t.document).asQuery,variables:t.variables,optimistic:!1,returnPartialData:!0}).result,e,t.document);if("ignore"===t.errorPolicy&&(s={...s,errors:[]}),(0,a.graphQLResultHasError)(s)&&"none"===t.errorPolicy)return Promise.resolve(s);const l=()=>({...s,dataState:this.hasNext?"streaming":"complete"});if(!i&&f(s,t.errorPolicy)){n.push({result:s.data,dataId:"ROOT_MUTATION",query:t.document,variables:t.variables,extensions:s.extensions});const{updateQueries:e}=t;e&&this.queryManager.getObservableQueries("all").forEach(t=>{const r=t&&t.queryName;if(!r||!Object.hasOwnProperty.call(e,r))return;const i=e[r],{query:a,variables:s}=t,{result:c,complete:u}=t.getCacheDiff({optimistic:!1});if(u&&c){const e=i(c,{mutationResult:l(),queryName:a&&(0,o.getOperationName)(a)||void 0,queryVariables:s});e&&n.push({result:e,dataId:"ROOT_QUERY",query:a,variables:s})}})}let c=t.refetchQueries;if("function"==typeof c&&(c=c(l())),n.length>0||(c||"").length>0||t.update||t.onQueryUpdated||t.removeOptimistic){const e=[];if(this.queryManager.refetchQueries({updateCache:e=>{i||n.forEach(t=>e.write(t));const{update:r}=t;if(r){if(!i){const r=e.diff({id:"ROOT_MUTATION",query:this.queryManager.getDocumentInfo(t.document).asQuery,variables:t.variables,optimistic:!1,returnPartialData:!0});r.complete&&(s={...s,data:r.result})}this.hasNext||r(e,s,{context:t.context,variables:t.variables})}i||t.keepRootFields||this.hasNext||e.modify({id:"ROOT_MUTATION",fields:(e,{fieldName:t,DELETE:r})=>"__typename"===t?e:r})},include:c,optimistic:!1,removeOptimistic:t.removeOptimistic,onQueryUpdated:t.onQueryUpdated||null}).forEach(t=>e.push(t)),t.awaitRefetchQueries||t.onQueryUpdated)return Promise.all(e).then(()=>s)}return Promise.resolve(s)}markMutationOptimistic(e,t){const r="function"==typeof e?e(t.variables,{IGNORE:c}):e;return r!==c&&(this.cache.recordOptimisticTransaction(e=>{try{this.markMutationResult({data:r},t,e)}catch(e){l.invariant.error(e)}},this.id),!0)}markSubscriptionResult(e,{document:t,variables:r,errorPolicy:n,cacheWriteBehavior:i}){0!==i&&(f(e,n)&&this.cache.write({query:t,result:e.data,dataId:"ROOT_SUBSCRIPTION",variables:r,extensions:e.extensions}),this.queryManager.broadcastQueries())}}function f(e,t="none"){const r="ignore"===t||"all"===t;let n=!(0,a.graphQLResultHasError)(e);return!n&&r&&e.data&&(n=!0),n}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{TypeOrFieldNameRegExp:()=>b,defaultDataIdFromObject:()=>f,extractFragmentContext:()=>T,fieldNameFromStoreName:()=>v,getTypenameFromStoreObject:()=>y,hasOwn:()=>h,makeProcessedFieldsMerger:()=>E,normalizeConfig:()=>g,selectionSetMatchesResult:()=>_,storeValueIsStoreObject:()=>S});var n=r(649),i=r(533),o=r(534),a=r(539),s=r(545),l=r(554),c=r(556),u=r(540),p=r(569),d=r(570);const{hasOwnProperty:h}=Object.prototype;function f({__typename:e,id:t,_id:r},n){if("string"==typeof e&&(n&&(n.keyObject=null!=t?{id:t}:null!=r?{_id:r}:void 0),null==t&&null!=r&&(t=r),null!=t))return`${e}:${"number"==typeof t||"string"==typeof t?t:JSON.stringify(t)}`}const m={dataIdFromObject:f,resultCaching:!0};function g(e){return(0,i.compact)(m,e)}function y(e,t){return(0,n.isReference)(t)?e.get(t.__ref,"__typename"):t&&t.__typename}const b=/^[_a-z][_0-9a-z]*/i;function v(e){const t=e.match(b);return t?t[0]:e}function _(e,t,r){return!!(0,u.isNonNullObject)(t)&&((0,l.isArray)(t)?t.every(t=>_(e,t,r)):e.selections.every(e=>{if((0,c.isField)(e)&&(0,d.shouldInclude)(e,r)){const n=(0,p.resultKeyNameFromField)(e);return h.call(t,n)&&(!e.selectionSet||_(e.selectionSet,t[n],r))}return!0}))}function S(e){return(0,u.isNonNullObject)(e)&&!(0,n.isReference)(e)&&!(0,l.isArray)(e)}function E(){return new a.DeepMerger}function T(e,t){const r=(0,o.createFragmentMap)((0,s.getFragmentDefinitions)(e));return{fragmentMap:r,lookupFragment(e){let n=r[e];return!n&&t&&(n=t.lookup(e)),n||null}}}},(e,t,r)=>{"use strict";function n(e){return Boolean(e&&"object"==typeof e&&"string"==typeof e.__ref)}r.r(t),r.d(t,{isReference:()=>n})},(e,t,r)=>{"use strict";r.r(t),r.d(t,{InMemoryCache:()=>S});var n=r(575),i=r(410),o=r(521),a=r(526),s=r(637),l=r(649),c=r(651),u=r(550),p=r(421),d=r(527),h=r(424),f=r(652),m=r(662),g=r(648),y=r(663),b=r(409),v=r(665),_=r(667);class S extends f.ApolloCache{data;optimisticData;config;watches=new Set;storeReader;storeWriter;addTypenameTransform=new a.DocumentTransform(c.addTypenameToDocument);maybeBroadcastWatch;assumeImmutableResults=!0;policies;makeVar=b.makeVar;constructor(e={}){super(),this.config=(0,g.normalizeConfig)(e),this.policies=new y.Policies({cache:this,dataIdFromObject:this.config.dataIdFromObject,possibleTypes:this.config.possibleTypes,typePolicies:this.config.typePolicies}),this.init()}init(){const e=this.data=new m.EntityStore.Root({policies:this.policies,resultCaching:this.config.resultCaching});this.optimisticData=e.stump,this.resetResultCache()}resetResultCache(){const{fragments:e}=this.config;this.addTypenameTransform.resetCache(),e?.resetCaches(),this.storeWriter=new _.StoreWriter(this,this.storeReader=new v.StoreReader({cache:this,fragments:e}),e),this.maybeBroadcastWatch=(0,i.wrap)((e,t)=>this.broadcastWatch(e,t),{max:o.cacheSizes["inMemoryCache.maybeBroadcastWatch"]||5e3,makeCacheKey:e=>{const t=e.optimistic?this.optimisticData:this.data;if((0,m.supportsResultCaching)(t)){const{optimistic:r,id:n,variables:i}=e;return t.makeCacheKey(e.query,e.callback,(0,u.canonicalStringify)({optimistic:r,id:n,variables:i}))}}}
1),new Set([this.data.group,this.optimisticData.group]).forEach(e=>e.resetCaching())}restore(e){return this.init(),e&&this.data.replace(e),this}extract(e=!1){return(e?this.optimisticData:this.data).extract()}read(e){const{returnPartialData:t=!1}=e;return this.storeReader.diffQueryAgainstStore({...e,store:e.optimistic?this.optimisticData:this.data,config:this.config,returnPartialData:t}).result}write(e){try{return++this.txCount,this.storeWriter.writeToStore(this.data,e)}finally{--this.txCount||!1===e.broadcast||this.broadcastWatches()}}modify(e){if(g.hasOwn.call(e,"id")&&!e.id)return!1;const t=e.optimistic?this.optimisticData:this.data;try{return++this.txCount,t.modify(e.id||"ROOT_QUERY",e.fields,!1)}finally{--this.txCount||!1===e.broadcast||this.broadcastWatches()}}diff(e){return this.storeReader.diffQueryAgainstStore({...e,store:e.optimistic?this.optimisticData:this.data,rootId:e.id||"ROOT_QUERY",config:this.config})}watch(e){return this.watches.size||(0,b.recallCache)(this),this.watches.add(e),e.immediate&&this.maybeBroadcastWatch(e),()=>{this.watches.delete(e)&&!this.watches.size&&(0,b.forgetCache)(this),this.maybeBroadcastWatch.forget(e)}}gc(e){u.canonicalStringify.reset(),s.print.reset();const t=this.optimisticData.gc();return e&&!this.txCount&&e.resetResultCache&&this.resetResultCache(),t}retain(e,t){return(t?this.optimisticData:this.data).retain(e)}release(e,t){return(t?this.optimisticData:this.data).release(e)}identify(e){if((0,l.isReference)(e))return e.__ref;try{return this.policies.identify(e)[0]}catch(e){p.__DEV__&&h.invariant.warn(e)}}evict(e){if(!e.id){if(g.hasOwn.call(e,"id"))return!1;e={...e,id:"ROOT_QUERY"}}try{return++this.txCount,this.optimisticData.evict(e,this.data)}finally{--this.txCount||!1===e.broadcast||this.broadcastWatches()}}reset(e){return this.init(),u.canonicalStringify.reset(),e&&e.discardWatches?(this.watches.forEach(e=>this.maybeBroadcastWatch.forget(e)),this.watches.clear(),(0,b.forgetCache)(this)):this.broadcastWatches(),Promise.resolve()}removeOptimistic(e){const t=this.optimisticData.removeLayer(e);t!==this.optimisticData&&(this.optimisticData=t,this.broadcastWatches())}txCount=0;batch(e){const{update:t,optimistic:r=!0,removeOptimistic:n,onWatchUpdated:i}=e;let o;const a=e=>{const{data:r,optimisticData:n}=this;++this.txCount,e&&(this.data=this.optimisticData=e);try{return o=t(this)}finally{--this.txCount,this.data=r,this.optimisticData=n}},s=new Set;return i&&!this.txCount&&this.broadcastWatches({...e,onWatchUpdated:e=>(s.add(e),!1)}),"string"==typeof r?this.optimisticData=this.optimisticData.addLayer(r,a):!1===r?a(this.data):a(),"string"==typeof n&&(this.optimisticData=this.optimisticData.removeLayer(n)),i&&s.size?(this.broadcastWatches({...e,onWatchUpdated(e,t){const r=i.call(this,e,t);return!1!==r&&s.delete(e),r}}),s.size&&s.forEach(e=>this.maybeBroadcastWatch.dirty(e))):this.broadcastWatches(e),o}performTransaction(e,t){return this.batch({update:e,optimistic:t||null!==t})}transformDocument(e){return this.addTypenameTransform.transformDocument(this.addFragmentsToDocument(e))}fragmentMatches(e,t){return this.policies.fragmentMatches(e,t)}lookupFragment(e){return this.config.fragments?.lookup(e)||null}resolvesClientField(e,t){return!!this.policies.getReadFunction(e,t)}broadcastWatches(e){if(!this.txCount){const t=this.onAfterBroadcast,r=new Set;this.onAfterBroadcast=e=>{r.add(e)};try{this.watches.forEach(t=>this.maybeBroadcastWatch(t,e)),r.forEach(e=>e())}finally{this.onAfterBroadcast=t}}}addFragmentsToDocument(e){const{fragments:t}=this.config;return t?t.transform(e):e}broadcastWatch(e,t){const{lastDiff:r}=e,i=this.diff(e);t&&(e.optimistic&&"string"==typeof t.optimistic&&(i.fromOptimisticTransaction=!0),t.onWatchUpdated&&!1===t.onWatchUpdated.call(this,e,i,r))||r&&(0,n.equal)(r.result,i.result)||e.callback(e.lastDiff=i,r)}}p.__DEV__&&(S.prototype.getMemoryInternals=d.getInMemoryCacheMemoryInternals)},(e,t,r)=>{"use strict";r.r(t),r.d(t,{addTypenameToDocument:()=>a});var n=r(514),i=r(511);const o={kind:n.FIELD,name:{kind:n.NAME,value:"__typename"}},a=Object.assign(function(e){return(0,i.visit)(e,{SelectionSet:{enter(e,t,r){if(r&&r.kind===n.OPERATION_DEFINITION)return;const{selections:i}=e;if(!i)return;if(i.some(e=>e.kind===n.FIELD&&("__typename"===e.name.value||0===e.name.value.lastIndexOf("__",0))))return;const a=r;return a.kind===n.FIELD&&a.directives&&a.directives.some(e=>"export"===e.name.value)?void 0:{...e,selections:[...i,o]}}}})},{added:e=>e===o})},(e,t,r)=>{"use strict";r.r(t),r.d(t,{ApolloCache:()=>O});var n=r(525),i=r(575),o=r(411),a=r(410),s=r(487),l=r(578),c=r(653),u=r(661),p=r(506),d=r(582),h=r(577),f=r(622),m=r(521),g=r(550),y=r(421),b=r(527),v=r(532),_=r(543),S=r(544),E=r(574),T=r(576),w=r(593),x=r(424);class O{assumeImmutableResults=!1;lookupFragment(e){return null}
1batch(e){const t="string"==typeof e.optimistic?e.optimistic:!1===e.optimistic?null:void 0;let r;return this.performTransaction(()=>r=e.update(this),t),r}recordOptimisticTransaction(e,t){this.performTransaction(e,t)}transformDocument(e){return e}transformForLink(e){return e}identify(e){}gc(){return[]}modify(e){return!1}readQuery(e,t=!!e.optimistic){return this.read({...e,rootId:e.id||"ROOT_QUERY",optimistic:t})}fragmentWatches=new o.Trie(!0);watchFragment(e){const{fragment:t,fragmentName:r,from:n}=e,o=this.getFragmentDoc(t,r),a=(Array.isArray(n)?n:[n]).map(e=>{const n=null==e?e:this.toCacheId(e);if(y.__DEV__){const e=r||(0,S.getFragmentDefinition)(t).name.value;void 0===n&&y.__DEV__&&x.invariant.warn(119,e)}return n});if(!Array.isArray(n)){const t=this.watchSingleFragment(a[0],o,e);return null===n?t:(0,T.mapObservableFragmentMemoized)(t,Symbol.for("apollo.transform.individualResult"),e=>({...e,data:e.data??{}}))}let s;function l(e){const t=e.reduce((e,t,r)=>(e.data.push(t.data),e.complete&&=t.complete,e.dataState=e.complete?"complete":"partial",t.missing&&(e.missing||={},e.missing[r]=t.missing),e),{data:[],dataState:"complete",complete:!0});return(0,i.equal)(s,t)||(s=t),s}if(0===a.length)return R;let c=!1;const u=a.map(t=>this.watchSingleFragment(t,o,e)),d=(0,v.combineLatestBatched)(u).pipe((0,p.map)(l),(0,f.tap)({subscribe:()=>c=!0,unsubscribe:()=>c=!1}),(0,h.shareReplay)({bufferSize:1,refCount:!0}));return Object.assign(d,{getCurrentResult:()=>{if(c&&s)return s;const e=u.map(e=>e.getCurrentResult());return l(e)}})}onAfterBroadcast=e=>e();watchSingleFragment(e,t,r){if(null===e)return A;const{optimistic:n=!0,variables:i}=r,o=[t,(0,g.canonicalStringify)({id:e,optimistic:n,variables:i})],a=this.fragmentWatches.lookupArray(o);if(!a.observable){let p,h=!1;function f(e){const n=e.result;return p&&(0,E.equalByQuery)(t,{data:p.data},{data:n},r.variables)||(p={data:n,dataState:e.complete?"complete":"partial",complete:e.complete},e.missing&&(p.missing=e.missing.missing)),p}const m=new s.Observable(r=>{h=!0;const a=this.watch({variables:i,returnPartialData:!0,id:e,query:t,optimistic:n,immediate:!0,callback:e=>{m.dirty=!0,this.onAfterBroadcast(()=>{r.next(f(e)),m.dirty=!1})}});return()=>{h=!1,a(),this.fragmentWatches.removeArray(o)}}).pipe((0,u.distinctUntilChanged)(),(0,d.share)({connector:()=>new l.ReplaySubject(1),resetOnRefCountZero:()=>(0,c.timer)(0)}));a.observable=Object.assign(m,{dirty:!1,getCurrentResult:()=>h&&p?p:f(this.diff({id:e,query:t,returnPartialData:!0,optimistic:n,variables:i}))})}return a.observable}getFragmentDoc=(0,a.wrap)(_.getFragmentQueryDocument,{max:m.cacheSizes["cache.fragmentQueryDocuments"]||1e3,cache:n.WeakCache,makeCacheKey:(0,w.bindCacheKey)(this)});readFragment(e,t=!!e.optimistic){const r=void 0!==e.from?this.toCacheId(e.from):e.id;return this.read({...e,query:this.getFragmentDoc(e.fragment,e.fragmentName),rootId:r,optimistic:t})}writeQuery({id:e,data:t,...r}){return this.write(Object.assign(r,{dataId:e||"ROOT_QUERY",result:t}))}writeFragment({data:e,fragment:t,fragmentName:r,...n}){const i=void 0!==n.from?this.toCacheId(n.from):n.id;return this.write(Object.assign(n,{query:this.getFragmentDoc(t,r),dataId:i,result:e}))}updateQuery(e,t){return this.batch({update(r){const n=r.readQuery(e),i=t(n);return null==i?n:(r.writeQuery({...e,data:i}),i)}})}updateFragment(e,t){return this.batch({update(r){const n=r.readFragment(e),i=t(n);return null==i?n:(r.writeFragment({...e,data:i}),i)}})}toCacheId(e){return"string"==typeof e?e:this.identify(e)}}y.__DEV__&&(O.prototype.getMemoryInternals=b.getApolloCacheMemoryInternals);const I=Object.freeze({data:null,dataState:"complete",complete:!0}),A=Object.assign(new s.Observable(e=>{e.next(I)}),{dirty:!1,getCurrentResult:()=>I}),k=Object.freeze({data:[],dataState:"complete",complete:!0}),R=Object.assign(new s.Observable(e=>{e.next(k)}),{getCurrentResult:()=>k})},(e,t,r)=>{"use strict";r.r(t),r.d(t,{timer:()=>s});var n=r(487),i=r(654),o=r(605),a=r(660);function s(e,t,r){void 0===e&&(e=0),void 0===r&&(r=i.async);var s=-1;return null!=t&&((0,o.isScheduler)(t)?r=t:s=t),new n.Observable(function(t){var n=(0,a.isValidDate)(e)?+e-r.now():e;n<0&&(n=0);var i=0;return r.schedule(function(){t.closed||(t.next(i++),0<=s?this.schedule(void 0,s):t.complete())},n)})}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{async:()=>o,asyncScheduler:()=>i});var n=r(655),i=new(r(658).AsyncScheduler)(n.AsyncAction),o=i},(e,t,r)=>{"use strict";r.r(t),r.d(t,{AsyncAction:()=>s});var n=r(489),i=r(656),o=r(657),a=r(494),s=function(e){function t(t,r){var n=e.call(this,t,r)||this;
1return n.scheduler=t,n.work=r,n.pending=!1,n}return(0,n.__extends)(t,e),t.prototype.schedule=function(e,t){var r;if(void 0===t&&(t=0),this.closed)return this;this.state=e;var n=this.id,i=this.scheduler;return null!=n&&(this.id=this.recycleAsyncId(i,n,t)),this.pending=!0,this.delay=t,this.id=null!==(r=this.id)&&void 0!==r?r:this.requestAsyncId(i,this.id,t),this},t.prototype.requestAsyncId=function(e,t,r){return void 0===r&&(r=0),o.intervalProvider.setInterval(e.flush.bind(e,this),r)},t.prototype.recycleAsyncId=function(e,t,r){if(void 0===r&&(r=0),null!=r&&this.delay===r&&!1===this.pending)return t;null!=t&&o.intervalProvider.clearInterval(t)},t.prototype.execute=function(e,t){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var r=this._execute(e,t);if(r)return r;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))},t.prototype._execute=function(e,t){var r,n=!1;try{this.work(e)}catch(e){n=!0,r=e||new Error("Scheduled action threw falsy error")}if(n)return this.unsubscribe(),r},t.prototype.unsubscribe=function(){if(!this.closed){var t=this.id,r=this.scheduler,n=r.actions;this.work=this.state=this.scheduler=null,this.pending=!1,(0,a.arrRemove)(n,this),null!=t&&(this.id=this.recycleAsyncId(r,t,null)),this.delay=null,e.prototype.unsubscribe.call(this)}},t}(i.Action)},(e,t,r)=>{"use strict";r.r(t),r.d(t,{Action:()=>i});var n=r(489),i=function(e){function t(t,r){return e.call(this)||this}return(0,n.__extends)(t,e),t.prototype.schedule=function(e,t){return void 0===t&&(t=0),this},t}(r(491).Subscription)},(e,t,r)=>{"use strict";r.r(t),r.d(t,{intervalProvider:()=>i});var n=r(489),i={setInterval:function(e,t){for(var r=[],o=2;o<arguments.length;o++)r[o-2]=arguments[o];var a=i.delegate;return(null==a?void 0:a.setInterval)?a.setInterval.apply(a,(0,n.__spreadArray)([e,t],(0,n.__read)(r))):setInterval.apply(void 0,(0,n.__spreadArray)([e,t],(0,n.__read)(r)))},clearInterval:function(e){var t=i.delegate;return((null==t?void 0:t.clearInterval)||clearInterval)(e)},delegate:void 0}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{AsyncScheduler:()=>o});var n=r(489),i=r(659),o=function(e){function t(t,r){void 0===r&&(r=i.Scheduler.now);var n=e.call(this,t,r)||this;return n.actions=[],n._active=!1,n}return(0,n.__extends)(t,e),t.prototype.flush=function(e){var t=this.actions;if(this._active)t.push(e);else{var r;this._active=!0;do{if(r=e.execute(e.state,e.delay))break}while(e=t.shift());if(this._active=!1,r){for(;e=t.shift();)e.unsubscribe();throw r}}},t}(i.Scheduler)},(e,t,r)=>{"use strict";r.r(t),r.d(t,{Scheduler:()=>i});var n=r(581),i=function(){function e(t,r){void 0===r&&(r=e.now),this.schedulerActionCtor=t,this.now=r}return e.prototype.schedule=function(e,t,r){return void 0===t&&(t=0),new this.schedulerActionCtor(this,e).schedule(r,t)},e.now=n.dateTimestampProvider.now,e}()},(e,t,r)=>{"use strict";function n(e){return e instanceof Date&&!isNaN(e)}r.r(t),r.d(t,{isValidDate:()=>n})},(e,t,r)=>{"use strict";r.r(t),r.d(t,{distinctUntilChanged:()=>a});var n=r(503),i=r(507),o=r(508);function a(e,t){return void 0===t&&(t=n.identity),e=null!=e?e:s,(0,i.operate)(function(r,n){var i,a=!0;r.subscribe((0,o.createOperatorSubscriber)(n,function(r){var o=t(r);!a&&e(i,o)||(a=!1,i=o,n.next(r))}))})}function s(e,t){return e===t}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{EntityStore:()=>y,maybeDependOnExistenceOfEntity:()=>_,supportsResultCaching:()=>w});var n=r(575),i=r(411),o=r(410),a=r(649),s=r(421),l=r(539),c=r(540),u=r(559),p=r(560),d=r(424),h=r(648);const f={},m=()=>f,g={};class y{policies;group;data={};constructor(e,t){this.policies=e,this.group=t}toObject(){return{...this.data}}has(e){return void 0!==this.lookup(e,!0)}get(e,t){if(this.group.depend(e,t),h.hasOwn.call(this.data,e)){const r=this.data[e];if(r&&h.hasOwn.call(r,t))return r[t]}return"__typename"===t&&h.hasOwn.call(this.policies.rootTypenamesById,e)?this.policies.rootTypenamesById[e]:this instanceof S?this.parent.get(e,t):void 0}lookup(e,t){return t&&this.group.depend(e,"__exists"),h.hasOwn.call(this.data,e)?this.data[e]:this instanceof S?this.parent.lookup(e,t):this.policies.rootTypenamesById[e]?{}:void 0}merge(e,t){let r;(0,a.isReference)(e)&&(e=e.__ref),(0,a.isReference)(t)&&(t=t.__ref);const n="string"==typeof e?this.lookup(r=e):e,i="string"==typeof t?this.lookup(r=t):t;if(!i)return;(0,d.invariant)("string"==typeof r,105);const o=new l.DeepMerger({reconciler:T}).merge(n,i);if(this.data[r]=o,o!==n&&(delete this.refs[r],this.group.caching)){const e={};
1n||(e.__exists=1),Object.keys(i).forEach(t=>{if(!n||n[t]!==o[t]){e[t]=1;const r=(0,h.fieldNameFromStoreName)(t);r===t||this.policies.hasKeyArgs(o.__typename,r)||(e[r]=1),void 0!==o[t]||this instanceof S||delete o[t]}}),!e.__typename||n&&n.__typename||this.policies.rootTypenamesById[r]!==o.__typename||delete e.__typename,Object.keys(e).forEach(e=>this.group.dirty(r,e))}}modify(e,t,r){const n=this.lookup(e);if(n){const i={};let o=!1,l=!0;const c={DELETE:f,INVALIDATE:g,isReference:a.isReference,toReference:this.toReference,canRead:this.canRead,readField:(t,r)=>this.policies.readField("string"==typeof t?{fieldName:t,from:r||(0,u.makeReference)(e)}:t,{store:this})};if(Object.keys(n).forEach(u=>{const y=(0,h.fieldNameFromStoreName)(u);let b=n[u];if(void 0===b)return;const v="function"==typeof t?t:t[u]||(r?void 0:t[y]);if(v){let t=v===m?f:v((0,p.maybeDeepFreeze)(b),{...c,fieldName:y,storeFieldName:u,storage:this.getStorage(e,u)});if(t===g)this.group.dirty(e,u);else if(t===f&&(t=void 0),t!==b&&(i[u]=t,o=!0,b=t,s.__DEV__)){const e=e=>{if(void 0===this.lookup(e.__ref))return s.__DEV__&&d.invariant.warn(106,e),!0};if((0,a.isReference)(t))e(t);else if(Array.isArray(t)){let r,n=!1;for(const i of t){if((0,a.isReference)(i)){if(n=!0,e(i))break}else if("object"==typeof i&&i){const[e]=this.policies.identify(i);e&&(r=i)}if(n&&void 0!==r){s.__DEV__&&d.invariant.warn(107,r);break}}}}}void 0!==b&&(l=!1)}),o)return this.merge(e,i),l&&(this instanceof S?this.data[e]=void 0:delete this.data[e],this.group.dirty(e,"__exists")),!0}return!1}delete(e,t,r){const n=this.lookup(e);if(n){const i=this.getFieldValue(n,"__typename"),o=t&&r?this.policies.getStoreFieldName({typename:i,fieldName:t,args:r}):t;return this.modify(e,o?{[o]:m}:m,!!r)}return!1}evict(e,t){let r=!1;return e.id&&(h.hasOwn.call(this.data,e.id)&&(r=this.delete(e.id,e.fieldName,e.args)),this instanceof S&&this!==t&&(r=this.parent.evict(e,t)||r),(e.fieldName||r)&&this.group.dirty(e.id,e.fieldName||"__exists")),r}clear(){this.replace(null)}extract(){const e=this.toObject(),t=[];return this.getRootIdSet().forEach(e=>{h.hasOwn.call(this.policies.rootTypenamesById,e)||t.push(e)}),t.length&&(e.__META={extraRootIds:t.sort()}),e}replace(e){if(Object.keys(this.data).forEach(t=>{e&&h.hasOwn.call(e,t)||this.delete(t)}),e){const{__META:t,...r}=e;Object.keys(r).forEach(e=>{this.merge(e,r[e])}),t&&t.extraRootIds.forEach(this.retain,this)}}rootIds={};retain(e){return this.rootIds[e]=(this.rootIds[e]||0)+1}release(e){if(this.rootIds[e]>0){const t=--this.rootIds[e];return t||delete this.rootIds[e],t}return 0}getRootIdSet(e=new Set){return Object.keys(this.rootIds).forEach(e.add,e),this instanceof S?this.parent.getRootIdSet(e):Object.keys(this.policies.rootTypenamesById).forEach(e.add,e),e}gc(){const e=this.getRootIdSet(),t=this.toObject();e.forEach(r=>{h.hasOwn.call(t,r)&&(Object.keys(this.findChildRefIds(r)).forEach(e.add,e),delete t[r])});const r=Object.keys(t);if(r.length){let e=this;for(;e instanceof S;)e=e.parent;r.forEach(t=>e.delete(t))}return r}refs={};findChildRefIds(e){if(!h.hasOwn.call(this.refs,e)){const t=this.refs[e]={},r=this.data[e];if(!r)return t;const n=new Set([r]);n.forEach(e=>{(0,a.isReference)(e)&&(t[e.__ref]=!0),(0,c.isNonNullObject)(e)&&Object.keys(e).forEach(t=>{const r=e[t];(0,c.isNonNullObject)(r)&&n.add(r)})})}return this.refs[e]}makeCacheKey(){return this.group.keyMaker.lookupArray(arguments)}getFieldValue=(e,t)=>(0,p.maybeDeepFreeze)((0,a.isReference)(e)?this.get(e.__ref,t):e&&e[t]);canRead=e=>(0,a.isReference)(e)?this.has(e.__ref):"object"==typeof e;toReference=(e,t)=>{if("string"==typeof e)return(0,u.makeReference)(e);if((0,a.isReference)(e))return e;const[r]=this.policies.identify(e);if(r){const n=(0,u.makeReference)(r);return t&&this.merge(r,e),n}};get supportsResultCaching(){return this.group.caching}}class b{caching;parent;d=null;keyMaker;constructor(e,t=null){this.caching=e,this.parent=t,this.resetCaching()}resetCaching(){this.d=this.caching?(0,o.dep)():null,this.keyMaker=new i.Trie}depend(e,t){if(this.d){this.d(v(e,t));const r=(0,h.fieldNameFromStoreName)(t);r!==t&&this.d(v(e,r)),this.parent&&this.parent.depend(e,t)}}dirty(e,t){this.d&&this.d.dirty(v(e,t),"__exists"===t?"forget":"setDirty")}}function v(e,t){return t+"#"+e}function _(e,t){w(e)&&e.group.depend(t,"__exists")}y.Root=class extends y{constructor({policies:e,resultCaching:t=!0,seed:r}){super(e,new b(t)),r&&this.replace(r)}stump=new E(this);addLayer(e,t){return this.stump.addLayer(e,t)}removeLayer(){return this}storageTrie=new i.Trie;getStorage(){return this.storageTrie.lookupArray(arguments)}};class S extends y{id;parent;replay;group;constructor(e,t,r,n){super(t.policies,n),this.id=e,this.parent=t,this.replay=r,this.group=n,r(this)}addLayer(e,t){return new S(e,this,t,this.group)}removeLayer(e){const t=this.parent.removeLayer(e);return e===this.id?(this.group.caching&&Object.keys(this.data).forEac
1h(e=>{const r=this.data[e],i=t.lookup(e);i?r?r!==i&&Object.keys(r).forEach(t=>{(0,n.equal)(r[t],i[t])||this.group.dirty(e,t)}):(this.group.dirty(e,"__exists"),Object.keys(i).forEach(t=>{this.group.dirty(e,t)})):this.delete(e)}),t):t===this.parent?this:t.addLayer(this.id,this.replay)}toObject(){return{...this.parent.toObject(),...this.data}}findChildRefIds(e){const t=this.parent.findChildRefIds(e);return h.hasOwn.call(this.data,e)?{...t,...super.findChildRefIds(e)}:t}getStorage(...e){let t=this.parent;for(;t.parent;)t=t.parent;return t.getStorage(...e)}}class E extends S{constructor(e){super("EntityStore.Stump",e,()=>{},new b(e.group.caching,e.group))}removeLayer(){return this}merge(e,t){return this.parent.merge(e,t)}}function T(e,t,r){const i=e[r],o=t[r];return(0,n.equal)(i,o)?i:o}function w(e){return!(!e||!e.supportsResultCaching)}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{Policies:()=>w,defaultStreamFieldMergeFn:()=>T,normalizeReadFieldOptions:()=>O});var n=r(575),i=r(635),o=r(649),a=r(421),s=r(592),l=r(529),c=r(549),u=r(554),p=r(540),d=r(571),h=r(427),f=r(424),m=r(648),g=r(664),y=r(409);function b(e){return void 0!==e.args?e.args:e.field?(0,l.argumentsObjectFromField)(e.field,e.variables):null}const v=()=>{},_=(e,t)=>t.fieldName,S=(e,t,{mergeObjects:r})=>r(e,t),E=(e,t)=>t,T=(e,t,{streamFieldInfo:r,existingData:n})=>{if(!e&&!n)return t;const i=[],o=e??n,a=r?.isLastChunk?t.length:Math.max(o.length,t.length);for(let e=0;e<a;e++)i[e]=void 0===t[e]?o[e]:t[e];return i};class w{config;typePolicies={};toBeAdded={};supertypeMap=new Map;fuzzySubtypes=new Map;cache;rootIdsByTypename={};rootTypenamesById={};usingPossibleTypes=!1;constructor(e){this.config=e,this.config={dataIdFromObject:m.defaultDataIdFromObject,...e},this.cache=this.config.cache,this.setRootTypename("Query"),this.setRootTypename("Mutation"),this.setRootTypename("Subscription"),e.possibleTypes&&this.addPossibleTypes(e.possibleTypes),e.typePolicies&&this.addTypePolicies(e.typePolicies)}identify(e,t){const r=this,n=t&&(t.typename||t.storeObject?.__typename)||e.__typename;if(n===this.rootTypenamesById.ROOT_QUERY)return["ROOT_QUERY"];const o=t&&t.storeObject||e,a={...t,typename:n,storeObject:o,readField:t&&t.readField||((...e)=>{const t=O(e,o);return r.readField(t,{store:r.cache.data,variables:t.variables})})};let s;const l=n&&this.getTypePolicy(n);let c=l&&l.keyFn||this.config.dataIdFromObject;return i.disableWarningsSlot.withValue(!0,()=>{for(;c;){const t=c({...e,...o},a);if(!(0,u.isArray)(t)){s=t;break}c=(0,g.keyFieldsFnFromSpecifier)(t)}}),s=s?String(s):void 0,a.keyObject?[s,a.keyObject]:[s]}addTypePolicies(e){Object.keys(e).forEach(t=>{const{queryType:r,mutationType:n,subscriptionType:i,...o}=e[t];r&&this.setRootTypename("Query",t),n&&this.setRootTypename("Mutation",t),i&&this.setRootTypename("Subscription",t),m.hasOwn.call(this.toBeAdded,t)?this.toBeAdded[t].push(o):this.toBeAdded[t]=[o]})}updateTypePolicy(e,t,r){const n=this.getTypePolicy(e),{keyFields:i,fields:o}=t;function a(e,t){e.merge="function"==typeof t?t:!0===t?S:!1===t?E:e.merge}a(n,t.merge),n.keyFn=!1===i?v:(0,u.isArray)(i)?(0,g.keyFieldsFnFromSpecifier)(i):"function"==typeof i?i:n.keyFn,o&&Object.keys(o).forEach(t=>{let n=r[t];n&&n?.typename===e||(n=r[t]={typename:e});const i=o[t];if("function"==typeof i)n.read=i;else{const{keyArgs:e,read:t,merge:r}=i;n.keyFn=!1===e?_:(0,u.isArray)(e)?(0,g.keyArgsFnFromSpecifier)(e):"function"==typeof e?e:n.keyFn,"function"==typeof t&&(n.read=t),a(n,r)}n.read&&n.merge&&(n.keyFn=n.keyFn||_)})}setRootTypename(e,t=e){const r="ROOT_"+e.toUpperCase(),n=this.rootTypenamesById[r];t!==n&&((0,f.invariant)(!n||n===e,109,e),n&&delete this.rootIdsByTypename[n],this.rootIdsByTypename[t]=r,this.rootTypenamesById[r]=t)}addPossibleTypes(e){this.usingPossibleTypes=!0,Object.keys(e).forEach(t=>{this.getSupertypeSet(t,!0),e[t].forEach(e=>{this.getSupertypeSet(e,!0).add(t);const r=e.match(m.TypeOrFieldNameRegExp);r&&r[0]===e||this.fuzzySubtypes.set(e,new RegExp(e))})})}getTypePolicy(e){if(!m.hasOwn.call(this.typePolicies,e)){const t=this.typePolicies[e]={};t.fields={};let r=this.supertypeMap.get(e);!r&&this.fuzzySubtypes.size&&(r=this.getSupertypeSet(e,!0),this.fuzzySubtypes.forEac
1h((t,n)=>{if(t.test(e)){const e=this.supertypeMap.get(n);e&&e.forEach(e=>r.add(e))}})),r&&r.size&&r.forEach(e=>{const{fields:r,...n}=this.getTypePolicy(e);Object.assign(t,n),Object.assign(t.fields,r)})}const t=this.toBeAdded[e];return t&&t.length&&t.splice(0).forEach(t=>{this.updateTypePolicy(e,t,this.typePolicies[e].fields)}),this.typePolicies[e]}getFieldPolicy(e,t){if(e)return this.getTypePolicy(e).fields[t]}getSupertypeSet(e,t){let r=this.supertypeMap.get(e);return!r&&t&&this.supertypeMap.set(e,r=new Set),r}fragmentMatches(e,t,r,n){if(!e.typeCondition)return!0;if(!t)return!1;const i=e.typeCondition.name.value;if(t===i)return!0;if(this.usingPossibleTypes&&this.supertypeMap.has(i)){const o=this.getSupertypeSet(t,!0),s=[o],l=e=>{const t=this.getSupertypeSet(e,!1);t&&t.size&&s.indexOf(t)<0&&s.push(t)};let c=!(!r||!this.fuzzySubtypes.size),u=!1;for(let p=0;p<s.length;++p){const d=s[p];if(d.has(i))return o.has(i)||(u&&a.__DEV__&&f.invariant.warn(110,t,i),o.add(i)),!0;d.forEach(l),c&&p===s.length-1&&(0,m.selectionSetMatchesResult)(e.selectionSet,r,n)&&(c=!1,u=!0,this.fuzzySubtypes.forEach((e,r)=>{const n=t.match(e);n&&n[0]===t&&l(r)}))}}return!1}hasKeyArgs(e,t){const r=this.getFieldPolicy(e,t);return!(!r||!r.keyFn)}getStoreFieldName(e){const{typename:t,fieldName:r}=e,n=this.getFieldPolicy(t,r);let i,o=n&&n.keyFn;if(o&&t){const n={typename:t,fieldName:r,field:e.field||null,variables:e.variables},a=b(e);for(;o;){const e=o(a,n);if(!(0,u.isArray)(e)){i=e||r;break}o=(0,g.keyArgsFnFromSpecifier)(e)}}return void 0===i&&(i=e.field?(0,d.storeKeyNameFromField)(e.field,e.variables):(0,c.getStoreKeyName)(r,b(e))),!1===i?r:r===(0,m.fieldNameFromStoreName)(i)?i:r+":"+i}readField(e,t){const r=e.from;if(!r)return;if(!(e.field||e.fieldName))return;if(void 0===e.typename){const n=t.store.getFieldValue(r,"__typename");n&&(e.typename=n)}const n=this.getStoreFieldName(e),i=(0,m.fieldNameFromStoreName)(n),a=t.store.getFieldValue(r,n),s=this.getFieldPolicy(e.typename,i),l=s&&s.read;if(l){const i=x(this,r,e,t,t.store.getStorage((0,o.isReference)(r)?r.__ref:r,n));return y.cacheSlot.withValue(this.cache,l,[a,i])}return a}getReadFunction(e,t){const r=this.getFieldPolicy(e,t);return r&&r.read}getMergeFunction(e,t,r){let n=this.getFieldPolicy(e,t),i=n&&n.merge;return!i&&r&&(n=this.getTypePolicy(r),i=n&&n.merge),i}runMergeFunction(e,t,{field:r,typename:i,merge:o,path:a},l,c){const u=e;if(o===S)return I(l.store)(e,t);if(o===E)return t;l.overwrite&&(e=void 0);const p=l.extensions?.[s.streamInfoSymbol]?.deref()?.peekArray(a);if(p){const{current:e,previous:r}=p;if(r&&(0,n.equal)(r.incoming,t)&&(0,n.equal)(r.streamFieldInfo,e))return r.result}const d=o(e,t,function(e,t,r,n,i,o){const a={...x(e,t,r,n,i),extensions:n.extensions,existingData:o},l=n.extensions;if(l&&s.streamInfoSymbol in l){const{[s.streamInfoSymbol]:e,...t}=l,n=e?.deref()?.peekArray(r.path);n&&(a.streamFieldInfo=n.current),a.extensions=0===Object.keys(t).length?void 0:t}return a}(this,void 0,{typename:i,fieldName:r.name.value,field:r,variables:l.variables,path:a},l,c||{},u));return p&&(p.previous={incoming:t,streamFieldInfo:p.current,result:d}),d}}function x(e,t,r,n,i){const a=e.getStoreFieldName(r),s=(0,m.fieldNameFromStoreName)(a),l=r.variables||n.variables,{toReference:c,canRead:u}=n.store;return{args:b(r),field:r.field||null,fieldName:s,storeFieldName:a,variables:l,isReference:o.isReference,toReference:c,storage:i,cache:e.cache,canRead:u,readField:(...r)=>e.readField(O(r,t,l),n),mergeObjects:I(n.store)}}function O(e,t,r){const{0:n,1:i,length:o}=e;let s;return"string"==typeof n?s={fieldName:n,from:o>1?i:t}:(s={...n},m.hasOwn.call(s,"from")||(s.from=t)),a.__DEV__&&void 0===s.from&&a.__DEV__&&f.invariant.warn(111,(0,h.stringifyForDisplay)(Array.from(e))),void 0===s.variables&&(s.variables=r),s}function I(e){return function(t,r){if((0,u.isArray)(t)||(0,u.isArray)(r))throw(0,f.newInvariantError)(112);if((0,p.isNonNullObject)(t)&&(0,p.isNonNullObject)(r)){const n=e.getFieldValue(t,"__typename"),i=e.getFieldValue(r,"__typename");if(n&&i&&n!==i)return r;if((0,o.isReference)(t)&&(0,m.storeValueIsStoreObject)(r))return e.merge(t.__ref,r),t;if((0,m.storeValueIsStoreObject)(t)&&(0,o.isReference)(r))return e.merge(t,r.__ref),r;if((0,m.storeValueIsStoreObject)(t)&&(0,m.storeValueIsStoreObject)(r))return{...t,...r}}return r}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{collectSpecifierPaths:()=>f,extractKeyPath:()=>y,getSpecifierPaths:()=>m,keyArgsFnFromSpecifier:()=>h,keyFieldsFnFromSpecifier:()=>d});
1var n=r(529),i=r(539),o=r(554),a=r(557),s=r(540),l=r(424),c=r(648);const u={};function p(e){const t=JSON.stringify(e);return u[t]||(u[t]={})}function d(e){const t=p(e);return t.keyFieldsFn||(t.keyFieldsFn=(t,r)=>{const n=(e,t)=>r.readField(t,e),i=r.keyObject=f(e,e=>{let i=y(r.storeObject,e,n);return void 0===i&&t!==r.storeObject&&c.hasOwn.call(t,e[0])&&(i=y(t,e,g)),(0,l.invariant)(void 0!==i,108,e.join("."),t),i});return`${r.typename}:${JSON.stringify(i)}`})}function h(e){const t=p(e);return t.keyArgsFn||(t.keyArgsFn=(t,{field:r,variables:i,fieldName:o})=>{const s=f(e,e=>{const o=e[0],s=o.charAt(0);if("@"!==s){if("$"===s){const t=o.slice(1);if(i&&c.hasOwn.call(i,t)){const r=e.slice(0);return r[0]=t,y(i,r)}return}if(t)return y(t,e)}else if(r&&(0,a.isNonEmptyArray)(r.directives)){const t=o.slice(1),a=r.directives.find(e=>e.name.value===t),s=a&&(0,n.argumentsObjectFromField)(a,i);return s&&y(s,e.slice(1))}}),l=JSON.stringify(s);return(t||"{}"!==l)&&(o+=":"+l),o})}function f(e,t){const r=new i.DeepMerger;return m(e).reduce((e,n)=>{let i=t(n);if(void 0!==i){for(let e=n.length-1;e>=0;--e)i={[n[e]]:i};e=r.merge(e,i)}return e},{})}function m(e){const t=p(e);if(!t.paths){const r=t.paths=[],n=[];e.forEach((t,i)=>{(0,o.isArray)(t)?(m(t).forEach(e=>r.push(n.concat(e))),n.length=0):(n.push(t),(0,o.isArray)(e[i+1])||(r.push(n.slice(0)),n.length=0))})}return t.paths}function g(e,t){return e[t]}function y(e,t,r){return r=r||g,b(t.reduce(function e(t,n){return(0,o.isArray)(t)?t.map(t=>e(t,n)):t&&r(t,n)},e))}function b(e){return(0,s.isNonNullObject)(e)?(0,o.isArray)(e)?e.map(b):f(Object.keys(e).sort(),t=>y(e,t)):e}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{StoreReader:()=>k});var n=r(514),i=r(410),o=r(521),a=r(649),s=r(651),l=r(550),c=r(421),u=r(533),p=r(539),d=r(541),h=r(542),f=r(547),m=r(548),g=r(554),y=r(556),b=r(540),v=r(559),_=r(560),S=r(563),E=r(569),T=r(570),w=r(424),x=r(666),O=r(662),I=r(648);function A(e){return[e.selectionSet,e.objectOrReference,e.context]}class k{executeSelectionSet;executeSubSelectedArray;config;knownResults=new WeakMap;constructor(e){this.config=e,this.executeSelectionSet=(0,i.wrap)(e=>{const t=A(e),r=this.executeSelectionSet.peek(...t);return r||((0,O.maybeDependOnExistenceOfEntity)(e.context.store,e.enclosingRef.__ref),this.execSelectionSetImpl(e))},{max:o.cacheSizes["inMemoryCache.executeSelectionSet"]||5e4,keyArgs:A,makeCacheKey(e,t,r){if((0,O.supportsResultCaching)(r.store))return r.store.makeCacheKey(e,(0,a.isReference)(t)?t.__ref:t,r.varString)}}),this.executeSubSelectedArray=(0,i.wrap)(e=>((0,O.maybeDependOnExistenceOfEntity)(e.context.store,e.enclosingRef.__ref),this.execSubSelectedArrayImpl(e)),{max:o.cacheSizes["inMemoryCache.executeSubSelectedArray"]||1e4,makeCacheKey({field:e,array:t,context:r}){if((0,O.supportsResultCaching)(r.store))return r.store.makeCacheKey(e,t,r.varString)}})}diffQueryAgainstStore({store:e,query:t,rootId:r="ROOT_QUERY",variables:n,returnPartialData:i=!0}){const o=this.config.cache.policies;n=(0,u.compact)((0,d.getDefaultValues)((0,m.getQueryDefinition)(t)),n);const a=(0,v.makeReference)(r),s=this.executeSelectionSet({selectionSet:(0,f.getMainDefinition)(t).selectionSet,objectOrReference:a,enclosingRef:a,context:{store:e,query:t,policies:o,variables:n,varString:(0,l.canonicalStringify)(n),...(0,I.extractFragmentContext)(t,this.config.fragments)}});let c;s.missing&&(c=new x.MissingFieldError(function(e){try{JSON.stringify(e,(e,t)=>{if("string"==typeof t)throw t;return t})}catch(e){return e}}(s.missing),s.missing,t,n));const p=!c,{result:h}=s;return{result:p?h:i?0===Object.keys(h).length?null:h:null,complete:p,missing:c}}isFresh(e,t,r,n){if((0,O.supportsResultCaching)(n.store)&&this.knownResults.get(e)===r){const i=this.executeSelectionSet.peek(r,t,n);if(i&&e===i.result)return!0}return!1}execSelectionSetImpl({selectionSet:e,objectOrReference:t,enclosingRef:r,context:i}){if((0,a.isReference)(t)&&!i.policies.rootTypenamesById[t.__ref]&&!i.store.has(t.__ref))return{result:{},missing:`Dangling reference to missing ${t.__ref} object`};const{variables:o,policies:l,store:c}=i,u=c.getFieldValue(t,"__typename"),d=[];let f;const m=new p.DeepMerger;function b(e,t){return e.missing&&(f=m.merge(f,{[t]:e.missing})),e.result}"string"!=typeof u||l.rootIdsByTypename[u]||d.push({__typename:u});const v=new Set(e.selections);
1v.forEach(e=>{if((0,T.shouldInclude)(e,o))if((0,y.isField)(e)){let n=l.readField({fieldName:e.name.value,field:e,variables:i.variables,from:t},i);const o=(0,E.resultKeyNameFromField)(e);void 0===n?s.addTypenameToDocument.added(e)||(f=m.merge(f,{[o]:`Can't find field '${e.name.value}' on ${(0,a.isReference)(t)?t.__ref+" object":"object "+JSON.stringify(t,null,2)}`})):(0,g.isArray)(n)?n.length>0&&(n=b(this.executeSubSelectedArray({field:e,array:n,enclosingRef:r,context:i}),o)):e.selectionSet&&null!=n&&(n=b(this.executeSelectionSet({selectionSet:e.selectionSet,objectOrReference:n,enclosingRef:(0,a.isReference)(n)?n:r,context:i}),o)),void 0!==n&&d.push({[o]:n})}else{const t=(0,h.getFragmentFromSelection)(e,i.lookupFragment);if(!t&&e.kind===n.FRAGMENT_SPREAD)throw(0,w.newInvariantError)(113,e.name.value);t&&l.fragmentMatches(t,u)&&t.selectionSet.selections.forEach(v.add,v)}});const x={result:(0,S.mergeDeepArray)(d),missing:f},O=(0,_.maybeDeepFreeze)(x);return O.result&&this.knownResults.set(O.result,e),O}execSubSelectedArrayImpl({field:e,array:t,enclosingRef:r,context:n}){let i,o=new p.DeepMerger;function s(e,t){return e.missing&&(i=o.merge(i,{[t]:e.missing})),e.result}return e.selectionSet&&(t=t.filter(e=>void 0===e||n.store.canRead(e))),t=t.map((t,i)=>null===t?null:(0,g.isArray)(t)?s(this.executeSubSelectedArray({field:e,array:t,enclosingRef:r,context:n}),i):e.selectionSet?s(this.executeSelectionSet({selectionSet:e.selectionSet,objectOrReference:t,enclosingRef:(0,a.isReference)(t)?t:r,context:n}),i):(c.__DEV__&&function(e,t,r){if(!t.selectionSet){const n=new Set([r]);n.forEach(r=>{(0,b.isNonNullObject)(r)&&((0,w.invariant)(!(0,a.isReference)(r),114,(0,I.getTypenameFromStoreObject)(e,r),t.name.value),Object.values(r).forEach(n.add,n))})}}(n.store,e,t),t)),{result:t,missing:i}}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{MissingFieldError:()=>n});class n extends Error{message;path;query;variables;
1constructor(e,t,r,i){if(super(e),this.message=e,this.path=t,this.query=r,this.variables=i,this.name="MissingFieldError",Array.isArray(this.path)){this.missing=this.message;for(let e=this.path.length-1;e>=0;--e)this.missing={[this.path[e]]:this.missing}}else this.missing=this.path;this.__proto__=n.prototype}missing}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{StoreWriter:()=>O});var n=r(575),i=r(411),o=r(514),a=r(649),s=r(651),l=r(550),c=r(421),u=r(529),p=r(531),d=r(541),h=r(542),f=r(519),m=r(554),g=r(556),y=r(557),b=r(559),v=r(569),_=r(570),S=r(592),E=r(424),T=r(648),w=r(663);function x(e,t,r){const n=`${t}${r}`;let i=e.flavors.get(n);return i||e.flavors.set(n,i=e.clientOnly===t&&e.deferred===r?e:{...e,clientOnly:t,deferred:r}),i}class O{cache;reader;fragments;constructor(e,t,r){this.cache=e,this.reader=t,this.fragments=r}writeToStore(e,{query:t,result:r,dataId:i,variables:o,overwrite:s,extensions:u}){const p=(0,f.getOperationDefinition)(t),h=(0,T.makeProcessedFieldsMerger)();o={...(0,d.getDefaultValues)(p),...o};const g={store:e,written:{},merge:(e,t)=>h.merge(e,t),variables:o,varString:(0,l.canonicalStringify)(o),...(0,T.extractFragmentContext)(t,this.fragments),overwrite:!!s,incomingById:new Map,clientOnly:!1,deferred:!1,flavors:new Map,extensions:u},y=this.processSelectionSet({result:r||{},dataId:i,selectionSet:p.selectionSet,mergeTree:{map:new Map},context:g,path:[]});if(!(0,a.isReference)(y))throw(0,E.newInvariantError)(115,r);return g.incomingById.forEach(({storeObject:t,mergeTree:r,fieldNodeSet:i},o)=>{const s=(0,b.makeReference)(o);if(r&&r.map.size){const e=this.applyMerges(r,s,t,g);if((0,a.isReference)(e))return;t=e}if(c.__DEV__&&!g.overwrite){const e={};i.forEach(t=>{t.selectionSet&&(e[t.name.value]=!0)});const o=t=>!0===e[(0,T.fieldNameFromStoreName)(t)],l=e=>{const t=r&&r.map.get(e);return Boolean(t&&t.info&&t.info.merge)};Object.keys(t).forEach(e=>{o(e)&&!l(e)&&function(e,t,r,i){const o=e=>{const t=i.getFieldValue(e,r);return"object"==typeof t&&t},s=o(e);if(!s)return;const l=o(t);if(!l)return;if((0,a.isReference)(s))return;if((0,n.equal)(s,l))return;if(Object.keys(s).every(e=>void 0!==i.getFieldValue(l,e)))return;const u=i.getFieldValue(e,"__typename")||i.getFieldValue(t,"__typename"),p=(0,T.fieldNameFromStoreName)(r),d=`${u}.${p}`;if(P.has(d))return;P.add(d);const h=[];(0,m.isArray)(s)||(0,m.isArray)(l)||[s,l].forEach(e=>{const t=i.getFieldValue(e,"__typename");"string"!=typeof t||h.includes(t)||h.push(t)});c.__DEV__&&E.invariant.warn(118,p,u,h.length?"either ensure all objects of type "+h.join(" and ")+" have an ID or a custom merge function, or ":"",d,Array.isArray(s)?[...s]:{...s},Array.isArray(l)?[...l]:{...l})}(s,t,e,g.store)})}e.merge(o,t)}),e.retain(y.__ref),y}processSelectionSet({dataId:e,result:t,selectionSet:r,context:n,mergeTree:i,path:o}){const{policies:l}=this.cache;let u={};const p=e&&l.rootTypenamesById[e]||D(t,r,n.fragmentMap)||e&&n.store.get(e,"__typename");"string"==typeof p&&(u.__typename=p);const d=(...e)=>{const t=(0,w.normalizeReadFieldOptions)(e,u,n.variables);if((0,a.isReference)(t.from)){const e=n.incomingById.get(t.from.__ref);if(e){const r=l.readField({...t,from:e.storeObject},n);if(void 0!==r)return r}}return l.readField(t,n)},h=new Set;this.flattenFields(r,t,n,p).forEach((e,r)=>{const n=(0,v.resultKeyNameFromField)(r),f=t[n],m=[...o,r.name.value];if(h.add(r),void 0!==f){const t=l.getStoreFieldName({typename:p,fieldName:r.name.value,field:r,variables:e.variables}),n=A(i,t);let o,s=this.processFieldValue(f,r,r.selectionSet?x(e,!1,!1):e,n,m);r.selectionSet&&((0,a.isReference)(s)||(0,T.storeValueIsStoreObject)(s))&&(o=d("__typename",s));const c=l.getMergeFunction(p,r.name.value,o);c?n.info={field:r,typename:p,merge:c,path:m}:e.extensions?.[S.streamInfoSymbol]&&Array.isArray(s)&&function(e){return!!e.directives&&e.directives.some(e=>"stream"===e.name.value)}(r)?n.info={field:r,typename:p,merge:w.defaultStreamFieldMergeFn,path:m}:C(i,t),u=e.merge(u,{[t]:s})}else!c.__DEV__||e.clientOnly||e.deferred||s.addTypenameToDocument.added(r)||l.getReadFunction(p,r.name.value)||E.invariant.error(116,(0,v.resultKeyNameFromField)(r),t)});try{const[i,o]=l.identify(t,{typename:p,selectionSet:r,fragmentMap:n.fragmentMap,storeObject:u,readField:d});e=e||i,o&&(u=n.merge(u,o))}catch(t){if(!e)throw t}if("string"==typeof e){const o=(0,b.makeReference)(e),a=n.written[e]||(n.written[e]=[]);if(a.indexOf(r)>=0)return o;if(a.push(r),this.reader&&this.reader.isFresh(t,o,r,n))return o;const s=n.incomingById.get(e);return s?(s.storeObject=n.merge(s.storeObject,u),s.mergeTree=k(s.mergeTree,i),h.forEach(e
1=>s.fieldNodeSet.add(e))):n.incomingById.set(e,{storeObject:u,mergeTree:R(i)?void 0:i,fieldNodeSet:h}),o}return u}processFieldValue(e,t,r,n,i){return t.selectionSet&&null!==e?(0,m.isArray)(e)?e.map((e,o)=>{const a=this.processFieldValue(e,t,r,A(n,o),[...i,o]);return C(n,o),a}):this.processSelectionSet({result:e,selectionSet:t.selectionSet,context:r,mergeTree:n,path:i}):c.__DEV__?(0,p.cloneDeep)(e):e}flattenFields(e,t,r,n=D(t,e,r.fragmentMap)){const a=new Map,{policies:s}=this.cache,l=new i.Trie(!1);return function e(i,c){const p=l.lookup(i,c.clientOnly,c.deferred);p.visited||(p.visited=!0,i.selections.forEach(i=>{if(!(0,_.shouldInclude)(i,r.variables))return;let{clientOnly:l,deferred:p}=c;if(l&&p||!(0,y.isNonEmptyArray)(i.directives)||i.directives.forEach(e=>{const t=e.name.value;if("client"===t&&(l=!0),"defer"===t){const t=(0,u.argumentsObjectFromField)(e,r.variables);t&&!1===t.if||(p=!0)}}),(0,g.isField)(i)){const e=a.get(i);e&&(l=l&&e.clientOnly,p=p&&e.deferred),a.set(i,x(r,l,p))}else{const a=(0,h.getFragmentFromSelection)(i,r.lookupFragment);if(!a&&i.kind===o.FRAGMENT_SPREAD)throw(0,E.newInvariantError)(117,i.name.value);a&&s.fragmentMatches(a,n,t,r.variables)&&e(a.selectionSet,x(r,l,p))}}))}(e,r),a}applyMerges(e,t,r,n,i){if(e.map.size&&!(0,a.isReference)(r)){const o=(0,m.isArray)(r)||!(0,a.isReference)(t)&&!(0,T.storeValueIsStoreObject)(t)?void 0:t,s=r;let l;o&&!i&&(i=[(0,a.isReference)(o)?o.__ref:o]);const c=(e,t)=>(0,m.isArray)(e)?"number"==typeof t?e[t]:void 0:n.store.getFieldValue(e,String(t));e.map.forEach((e,t)=>{const r=c(o,t),a=c(s,t);if(void 0===a)return;i&&i.push(t);const u=this.applyMerges(e,r,a,n,i);u!==a&&(l=l||new Map,l.set(t,u)),i&&(0,E.invariant)(i.pop()===t)}),l&&(r=(0,m.isArray)(s)?s.slice(0):{...s},l.forEach((e,t)=>{r[t]=e}))}return e.info?this.cache.policies.runMergeFunction(t,r,e.info,n,i&&n.store.getStorage(...i)):r}}const I=[];function A({map:e},t){return e.has(t)||e.set(t,I.pop()||{map:new Map}),e.get(t)}function k(e,t){if(e===t||!t||R(t))return e;if(!e||R(e))return t;const r=e.info&&t.info?{...e.info,...t.info}:e.info||t.info,n=e.map.size&&t.map.size,i={info:r,map:n?new Map:e.map.size?e.map:t.map};if(n){const r=new Set(t.map.keys());e.map.forEach((e,n)=>{i.map.set(n,k(e,t.map.get(n))),r.delete(n)}),r.forEach(r=>{i.map.set(r,k(t.map.get(r),e.map.get(r)))})}return i}function R(e){return!e||!(e.info||e.map.size)}function C({map:e},t){const r=e.get(t);r&&R(r)&&(I.push(r),e.delete(t))}const P=new Set;function D(e,t,r){let n;for(const r of t.selections)if((0,g.isField)(r)){if("__typename"===r.name.value)return e[(0,v.resultKeyNameFromField)(r)]}else n?n.push(r):n=[r];if("string"==typeof e.__typename)return e.__typename;if(n)for(const t of n){const n=D(e,(0,h.getFragmentFromSelection)(t,r).selectionSet,r);if("string"==typeof n)return n}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{HttpLink:()=>a,createHttpLink:()=>s});var n=r(516),i=r(669),o=r(670);class a extends n.ApolloLink{constructor(e={}){const{left:t,right:r,request:a}=n.ApolloLink.from([new i.ClientAwarenessLink(e),new o.BaseHttpLink(e)]);super(a),Object.assign(this,{left:t,right:r})}}const s=(e={})=>new a(e)},(e,t,r)=>{"use strict";r.r(t),r.d(t,{ClientAwarenessLink:()=>o});var n=r(516),i=r(533);class o extends n.ApolloLink{constructor(e={}){super((t,r)=>{const n=t.client,o=n.queryManager.clientOptions,a=t.getContext();{const{name:r,version:n,transport:s="headers"}=(0,i.compact)({},o.clientAwareness,e.clientAwareness,a.clientAwareness);"headers"===s&&t.setContext(({headers:e})=>({headers:(0,i.compact)({"apollographql-client-name":r,"apollographql-client-version":n},e)}))}{const{transport:r="extensions"}=(0,i.compact)({},o.enhancedClientAwareness,e.enhancedClientAwareness);"extensions"===r&&(t.extensions=(0,i.compact)({clientLibrary:{name:"@apollo/client",version:n.version}},t.extensions)),"headers"===r&&t.setContext(({headers:e})=>({headers:(0,i.compact)({"apollographql-library-name":"@apollo/client","apollographql-library-version":n.version},e)}))}return r(t)})}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{BaseHttpLink:()=>y});var n=r(487),i=r(516),o=r(671),a=r(672),s=r(421),l=r(533),c=r(423),u=r(673),p=r(674),d=r(675),h=r(676),f=r(677);const m=(0,c.maybe)(()=>fetch);function g(){}class y extends i.ApolloLink{constructor(e={}){let{uri:t="/graphql",fetch:r,print:i=h.defaultPrinter,includeExtensions:y,preserveHeaderCase:b,useGETForQueries:v,includeUnusedVariables:_=!1,...S}=e;s.__DEV__&&(0,u.checkFetcher)(r||m);const E={http:(0,l.compact)({includeExtensions:y,preserveHeaderCase:b}),options:S.fetchOptions,credentials:S.credentials,headers:S.headers};super(e=>{let s=(0,f.selectURI)(e,t);const l=e.getContext(),u={...l.http};(0,a.isSubscriptionOperation)(e.query)&&(u.accept=["multipart/mixed;
1boundary=graphql;subscriptionSpec=1.0",...u.accept||[]]);const y={http:u,options:l.fetchOptions,credentials:l.credentials,headers:l.headers},{options:b,body:S}=(0,h.selectHttpOptionsAndBodyInternal)(e,i,h.fallbackHttpConfig,E,y);S.variables&&!_&&(S.variables=(0,o.filterOperationVariables)(S.variables,e.query));let T=new AbortController,w=()=>{T=void 0};if(b.signal){const e=b.signal,t=()=>{T?.abort(e.reason)};e.addEventListener("abort",t,{once:!0}),w=()=>{T?.signal.removeEventListener("abort",w),T=void 0,e.removeEventListener("abort",t),w=g},T.signal.addEventListener("abort",w,{once:!0})}return b.signal=T.signal,v&&!(0,a.isMutationOperation)(e.query)&&(b.method="GET"),new n.Observable(t=>{if("GET"===b.method){const{newURI:e,parseError:t}=(0,d.rewriteURIForGET)(s,S);if(t)throw t;s=e}else b.body=JSON.stringify(S);const n=r||(0,c.maybe)(()=>fetch)||m,i=t.next.bind(t);return n(s,b).then(t=>{e.setContext({response:t});const r=t.headers?.get("content-type");return null!==r&&/^multipart\/mixed/i.test(r)?(0,p.readMultipartBody)(t,i):(0,p.parseAndCheckHttpResponse)(e)(t).then(i)}).then(()=>{w(),t.complete()}).catch(e=>{w(),t.error(e)}),()=>{T&&T.abort()}})})}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{filterOperationVariables:()=>i});var n=r(511);function i(e,t){const r={...e},i=new Set(Object.keys(e));return(0,n.visit)(t,{Variable(e,t,r){r&&"VariableDefinition"!==r.kind&&i.delete(e.name.value)}}
1),i.forEach(e=>{delete r[e]}),r}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{isMutationOperation:()=>o,isQueryOperation:()=>a,isSubscriptionOperation:()=>s});var n=r(519);function i(e,t){return(0,n.getOperationDefinition)(e)?.operation===t}function o(e){return i(e,"mutation")}function a(e){return i(e,"query")}function s(e){return i(e,"subscription")}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{checkFetcher:()=>i});var n=r(424);const i=e=>{(0,n.invariant)(e||"undefined"!=typeof fetch,61)}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{parseAndCheckHttpResponse:()=>m,readMultipartBody:()=>p});var n=r(623),i=r(624),o=r(631),a=r(632),s=r(540),l=r(424);const{hasOwnProperty:c}=Object.prototype;function u(e){return(0,s.isNonNullObject)(e)&&"payload"in e}async function p(e,t){for await(const r of async function*(e){const t=new TextDecoder("utf-8"),r=e.headers?.get("content-type"),n=r?.match(/;\s*boundary=(?:'([^']+)'|"([^"]+)"|([^"'].+?))\s*(?:;|$)/i),i="\r\n--"+(n?n[1]??n[2]??n[3]??"-":"-");let o="";(0,l.invariant)(e.body&&"function"==typeof e.body.getReader,62);const a=e.body.getReader();let s,c=!1,u=!1;const p=()=>u&&"-"==o[0]&&"-"==o[1];try{for(;!c;){({value:s,done:c}=await a.read());const e="string"==typeof s?s:t.decode(s,{stream:!c}),r=o.length-i.length+1;o+=e;let n=o.indexOf(i,r);for(;n>-1&&!p();){let e;u=!0,[e,o]=[o.slice(0,n),o.slice(n+i.length)];const t=e.indexOf("\r\n\r\n"),r=d(e.slice(0,t))["content-type"];if(r&&-1===r.toLowerCase().indexOf("application/json"))throw new Error("Unsupported patch content type: application/json is required.");const a=e.slice(t);a&&(yield a),n=o.indexOf(i)}if(p())return}throw new Error("premature end of multipart body")}finally{a.cancel()}}(e)){const o=h(e,r);if(0!=Object.keys(o).length)if(u(o)){if(1===Object.keys(o).length&&null===o.payload)return;let e={...o.payload};"errors"in o&&(e.extensions={...e.extensions,[n.PROTOCOL_ERRORS_SYMBOL]:new i.CombinedProtocolErrors(o.errors??[])}),t(e)}else t(o)}}function d(e){const t={};return e.split("\n").forEach(e=>{const r=e.indexOf(":");if(r>-1){const n=e.slice(0,r).trim().toLowerCase(),i=e.slice(r+1).trim();t[n]=i}}),t}function h(e,t){if(e.status>=300)throw new o.ServerError(`Response not successful: Received status code ${e.status}`,{response:e,bodyText:t});try{return JSON.parse(t)}catch(r){throw new a.ServerParseError(r,{response:e,bodyText:t})}}function f(e,t){const r=e.headers.get("content-type");return r?.includes("application/graphql-response+json")?function(e,t){try{return JSON.parse(t)}catch(r){throw new a.ServerParseError(r,{response:e,bodyText:t})}}(e,t):h(e,t)}function m(e){return t=>t.text().then(r=>{const n=f(t,r);if(!Array.isArray(n)&&!c.call(n,"data")&&!c.call(n,"errors"))throw new o.ServerError(`Server response was malformed for query '${Array.isArray(e)?e.map(e=>e.operationName):e.operationName}'.`,{response:t,bodyText:r});return n})}},(e,t,r)=>{"use strict";function n(e,t){const r=[],n=(e,t)=>{r.push(`${e}=${encodeURIComponent(t)}`)};if("query"in t&&n("query",t.query),t.operationName&&n("operationName",t.operationName),t.variables){let e;try{e=JSON.stringify(t.variables)}catch(e){return{parseError:e}}n("variables",e)}if(t.extensions){let e;try{e=JSON.stringify(t.extensions)}catch(e){return{parseError:e}}n("extensions",e)}let i="",o=e;const a=e.indexOf("#");-1!==a&&(i=e.substr(a),o=e.substr(0,a));const s=-1===o.indexOf("?")?"?":"&";return{newURI:o+s+r.join("&")+i}}r.r(t),r.d(t,{rewriteURIForGET:()=>n})},(e,t,r)=>{"use strict";r.r(t),r.d(t,{defaultPrinter:()=>o,fallbackHttpConfig:()=>i,selectHttpOptionsAndBody:()=>a,selectHttpOptionsAndBodyInternal:()=>s});var n=r(637);const i={http:{includeQuery:!0,includeExtensions:!0,preserveHeaderCase:!1},headers:{accept:"application/graphql-response+json,application/json;q=0.9","content-type":"application/json"},options:{method:"POST"}},o=(e,t)=>t(e);function a(e,t,...r){return r.unshift(t),s(e,o,...r)}function s(e,t,...r){let i={},o={};r.forEach(e=>{i={...i,...e.options,headers:{...i.headers,...e.headers}},e.credentials&&(i.credentials=e.credentials),i.headers.accept=(e.http?.accept||[]).concat(i.headers.accept).join(","),o={...o,...e.http}}),i.headers=function(e,t){if(!t){const t={};
1return Object.keys(Object(e)).forEach(r=>{t[r.toLowerCase()]=e[r]}),t}const r={};Object.keys(Object(e)).forEach(t=>{r[t.toLowerCase()]={originalName:t,value:e[t]}});const n={};return Object.keys(r).forEach(e=>{n[r[e].originalName]=r[e].value}),n}(i.headers,o.preserveHeaderCase);const{operationName:a,extensions:s,variables:l,query:c}=e,u={operationName:a,variables:l};return o.includeExtensions&&Object.keys(s||{}).length&&(u.extensions=s),o.includeQuery&&(u.query=t(c,n.print)),{options:i,body:u}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{selectURI:()=>n});const n=(e,t)=>{const r=e.getContext().uri;return r||("function"==typeof t?t(e):t||"/graphql")}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{GraphQL17Alpha9Handler:()=>u});var n=r(411),i=r(539),o=r(592),a=r(510),s=r(557),l=r(424);class c{hasNext=!0;data={};errors=[];extensions={};pending=new Map;streamInfo=new n.Trie(!1,()=>({current:{isFirstChunk:!0,isLastChunk:!1}}));streamPositions={};handle(e=this.data,t){if(this.hasNext=t.hasNext,this.data=e,t.pending)for(const e of t.pending)if(this.pending.set(e.id,e),"data"in t){const r=e.path.reduce((e,t)=>e[t],t.data);Array.isArray(r)&&(this.streamPositions[e.id]=r.length,this.streamInfo.lookupArray(e.path).current={isFirstChunk:!0,isLastChunk:!1})}if(p(t))for(const e of t.incremental){const t=this.pending.get(e.id);(0,l.invariant)(t,66);const r=t.path.concat(e.subPath??[]);let n;if("items"in e){const i=e.items,o=[];for(let e=0;e<i.length;e++)o[e+this.streamPositions[t.id]]=i[e];this.streamPositions[t.id]+=i.length,this.streamInfo.lookupArray(r).current={isFirstChunk:!1,isLastChunk:!1},n=o}else n=e.data,this.pending.forEach(r=>{if(!(r.id in this.streamPositions)){const n=r.path.slice(t.path.length).reduce((e,t)=>e?.[t],e.data);Array.isArray(n)&&(this.streamPositions[r.id]=n.length)}});this.merge({data:n,extensions:e.extensions,errors:e.errors},r)}
1else this.merge(t);if("completed"in t&&t.completed)for(const e of t.completed){const{path:t}=this.pending.get(e.id),r=this.streamPositions[e.id];if(void 0!==r){const e=t.reduce((e,t)=>e?.[t],this.data);this.merge({data:e.slice(0,r)},t)}const n=this.streamInfo.peekArray(t);n&&(n.current={isFirstChunk:!1,isLastChunk:!0}),this.pending.delete(e.id),e.errors&&this.errors.push(...e.errors)}const r={data:this.data};return(0,s.isNonEmptyArray)(this.errors)&&(r.errors=this.errors),Object.keys(this.extensions).length>0&&(r.extensions=this.extensions),this.streamInfo.strong&&(r.extensions={...r.extensions,[o.streamInfoSymbol]:new WeakRef(this.streamInfo)}),r}merge(e,t){void 0!==e.data&&(this.data=new i.DeepMerger({arrayMerge:"truncate"}).merge(this.data,e.data,{atPath:t})),e.errors&&this.errors.push(...e.errors),Object.assign(this.extensions,e.extensions)}}class u{isIncrementalResult(e){return"hasNext"in e}prepareRequest(e){if((0,a.hasDirectives)(["defer","stream"],e.query)){const t=e.context??{},r=t.http??={};r.accept=["multipart/mixed;incrementalSpec=v0.2",...r.accept||[]],e.context=t}return e}extractErrors(e){const t=[],r=({errors:e})=>{e&&t.push(...e)};if(this.isIncrementalResult(e)?("errors"in e&&r(e),p(e)&&e.incremental.forEach(r),function(e){return(0,s.isNonEmptyArray)(e.completed)}(e)&&e.completed.forEach(r)):"errors"in e&&r(e),t.length)return t}startRequest(e){return new c}}function p(e){return(0,s.isNonEmptyArray)(e.incremental)}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{BatchHttpLink:()=>a});var n=r(516),i=r(669),o=r(680);class a extends n.ApolloLink{constructor(e={}){const{left:t,right:r,request:a}=n.ApolloLink.from([new i.ClientAwarenessLink(e),new o.BaseBatchHttpLink(e)]);super(a),Object.assign(this,{left:t,right:r})}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{BaseBatchHttpLink:()=>g});var n=r(487),i=r(595),o=r(516),a=r(681),s=r(674),l=r(676),c=r(673),u=r(677),p=r(671),d=r(421),h=r(533),f=r(423);const m=(0,f.maybe)(()=>fetch);class g extends o.ApolloLink{batchDebounce;batchInterval;batchMax;batcher;constructor(e={}){super();let{uri:t="/graphql",fetch:r,print:o=l.defaultPrinter,includeExtensions:g,preserveHeaderCase:y,batchInterval:b,batchDebounce:v,batchMax:_,batchKey:S,includeUnusedVariables:E=!1,...T}=e;d.__DEV__&&(0,c.checkFetcher)(r||m);const w={http:(0,h.compact)({includeExtensions:g,preserveHeaderCase:y}),options:T.fetchOptions,credentials:T.credentials,headers:T.headers};this.batchDebounce=v,this.batchInterval=b||10,this.batchMax=_||10;S=S||(e=>{const r=e.getContext(),n={http:r.http,options:r.fetchOptions,credentials:r.credentials,headers:r.headers};return(0,u.selectURI)(e,t)+JSON.stringify(n)}),this.batcher=new a.BatchLink({batchDebounce:this.batchDebounce,batchInterval:this.batchInterval,batchMax:this.batchMax,batchKey:S,batchHandler:e=>{const a=(0,u.selectURI)(e[0],t),c=e[0].getContext(),d={http:c.http,options:c.fetchOptions,credentials:c.credentials,headers:c.headers},h=e.map(e=>{const t=(0,l.selectHttpOptionsAndBodyInternal)(e,o,l.fallbackHttpConfig,w,d);return t.body.variables&&!E&&(t.body.variables=(0,p.filterOperationVariables)(t.body.variables,e.query)),t}),g=h.map(({body:e})=>e),y=h[0].options;if("GET"===y.method)return(0,i.throwError)(()=>new Error("apollo-link-batch-http does not support GET requests"));try{y.body=JSON.stringify(g)}catch(e){return(0,i.throwError)(()=>e)}let b;return y.signal||"undefined"==typeof AbortController||(b=new AbortController,y.signal=b.signal),new n.Observable(t=>((r||(0,f.maybe)(()=>fetch)||m)(a,y).then(t=>(e.forEach(e=>e.setContext({response:t})),t)).then((0,s.parseAndCheckHttpResponse)(e)).then(e=>(b=void 0,t.next(e),t.complete(),e)).catch(e=>{b=void 0,t.error(e)}),()=>{b&&b.abort()}))}})}request(e,t){return this.batcher.request(e,t)}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{BatchLink:()=>a});var n=r(517),i=r(516),o=r(682);class a extends i.ApolloLink{batcher;constructor(e){super();const{batchDebounce:t,batchInterval:r=10,batchMax:i=0,batchHandler:a=()=>n.EMPTY,batchKey:s=()=>""}=e||{};this.batcher=new o.OperationBatcher({batchDebounce:t,batchInterval:r,batchMax:i,batchHandler:a,batchKey:s})}request(e,t){return this.batcher.enqueueRequest({operation:e,forward:t})}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{OperationBatcher:()=>i});var n=r(487);class i{batchesByKey=new Map;scheduledBatchTimerByKey=new Map;batchDebounce;batchInterval;batchMax;batchHandler;batchKey;constructor({batchDebounce:e,batchInterval:t,batchMax:r,batchHandler:n,batchKey:i}){this.batchDebounce=e,this.batchInterval=t,this.batchMax=r||0,this.batchHandler=n,this.batchKey=i||(()=>"")}enqueueRequest(e){const t={...e,next:[],error:[],complete:[],subscribers:new Set},r=this.batchKey(e.operation);return t.observable||(t.observable=new n.Observable(e=>{let n=this.batchesByKey.get(r);n||this.batchesByKey.set(r,n=new Set);const i=0===n.size,o=0===t.subscribers.size;return t.subscribers.add(e),o&&n.add(t),e.next&&t.next.push(e.next.bind(e)),e.error&&t.error.push(e.error.bind(e)),e.complete&&t.complete.push(e.complete.bind(e)),(i||this.batchDebounce)&&this.scheduleQueueConsumption(r),n.size===this.batchMax&&this.consumeQueue(r),()=>{t.subscribers.delete(e)&&t.subscribers.size<1&&n.delete(t)&&n.size<1&&(this.consumeQueue(r),n.subscription?.unsubscribe())}})),t.observable}consumeQueue(e=""){const t=this.batchesByKey.get(e);if(this.batchesByKey.delete(e),!t||!t.size)return;const r=[],n=[],i=[],o=[],a=[],s=[];
1t.forEach(e=>{r.push(e.operation),n.push(e.forward),i.push(e.observable),o.push(e.next),a.push(e.error),s.push(e.complete)});const l=this.batchHandler(r,n),c=e=>{a.forEach(t=>{t&&t.forEach(t=>t(e))})};return t.subscription=l.subscribe({next:e=>{if(Array.isArray(e)||(e=[e]),o.length!==e.length){const t=new Error(`server returned results with length ${e.length}, expected length of ${o.length}`);return t.result=e,c(t)}e.forEach((e,t)=>{o[t]&&o[t].forEach(t=>t(e))})},error:c,complete:()=>{s.forEach(e=>{e&&e.forEach(e=>e())})}}),i}scheduleQueueConsumption(e){clearTimeout(this.scheduledBatchTimerByKey.get(e)),this.scheduledBatchTimerByKey.set(e,setTimeout(()=>{this.consumeQueue(e),this.scheduledBatchTimerByKey.delete(e)},this.batchInterval))}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{ErrorLink:()=>l,onError:()=>s});var n=r(487),i=r(623),o=r(628),a=r(516);function s(e){return new l(e)}class l extends a.ApolloLink{constructor(e){super((t,r)=>new n.Observable(n=>{let a,s,l;try{a=r(t).subscribe({next:a=>{const c=t.client.queryManager.incrementalHandler,u=c.isIncrementalResult(a)?c.extractErrors(a):a.errors;u?l=e({error:new o.CombinedGraphQLErrors(a,u),result:a,operation:t,forward:r}):(0,i.graphQLResultHasProtocolErrors)(a)&&(l=e({error:a.extensions[i.PROTOCOL_ERRORS_SYMBOL],result:a,operation:t,forward:r})),s=l?.subscribe(n),s||n.next(a)},error:o=>{l=e({operation:t,error:(0,i.toErrorLike)(o),forward:r}),s=l?.subscribe(n),s||n.error(o)},complete:()=>{l||n.complete()}})}catch(o){e({error:(0,i.toErrorLike)(o),operation:t,forward:r}),n.error(o)}return()=>{a&&a.unsubscribe(),s&&s.unsubscribe()}}))}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>h});var n=r(516),i=r(674),o=r(676),a=r(677),s=r(675),l=r(671),c=r(685),u=r(487),p=r(687),d=r(688);class h extends n.ApolloLink{constructor({uri:e="/graphql",useGETForQueries:t,isExtractableFile:r=d.default,FormData:n,formDataAppendFile:h=p.default,print:f=o.defaultPrinter,fetch:m,fetchOptions:g,credentials:y,headers:b,includeExtensions:v,includeUnusedVariables:_=!1}={}){super(p=>new u.Observable(u=>{const d=p.getContext(),{options:S,body:E}=(0,o.selectHttpOptionsAndBodyInternal)(p,f,o.fallbackHttpConfig,{http:{includeExtensions:v},options:g,credentials:y,headers:b},{http:d.http,options:d.fetchOptions,credentials:d.credentials,headers:d.headers});E.variables&&!_&&(E.variables=(0,l.filterOperationVariables)(E.variables,p.query));const{clone:T,files:w}=(0,c.default)(E,r,"");let x,O=(0,a.selectURI)(p,e);if(w.size){S.headers&&delete S.headers["content-type"];const e=new(n||FormData);e.append("operations",JSON.stringify(T));const t={};let r=0;w.forEach(e=>{t[++r]=e}),e.append("map",JSON.stringify(t)),r=0,w.forEach((t,n)=>{h(e,String(++r),n)}),S.body=e}else if(t&&!p.query.definitions.some(e=>"OperationDefinition"===e.kind&&"mutation"===e.operation)&&(S.method="GET"),"GET"===S.method){const e=(0,s.rewriteURIForGET)(O,E);if("parseError"in e)throw e.parseError;O=e.newURI}else S.body=JSON.stringify(T);"undefined"!=typeof AbortController&&(x=new AbortController,S.signal&&(S.signal.aborted?x.abort():S.signal.addEventListener("abort",()=>{x.abort()},{once:!0})),S.signal=x.signal);let I;return(m||fetch)(O,S).then(e=>(p.setContext({response:e}),e)).then((0,i.parseAndCheckHttpResponse)(p)).then(e=>{u.next(e),u.complete()}).catch(e=>{I||u.error(e)}),()=>{I=!0,x&&x.abort()}}))}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>i});var n=r(686);function i(e,t,r=""){if(!arguments.length)throw new TypeError("Argument 1 `value` is required.");if("function"!=typeof t)throw new TypeError("Argument 2 `isExtractable` must be a function.");if("string"!=typeof r)throw new TypeError("Argument 3 `path` must be a string.");const i=new Map,o=new Map;return{clone:function e(r,a,s){if(t(r)){const e=o.get(r);return e?e.push(a):o.set(r,[a]),null}const l=Array.isArray(r)||"undefined"!=typeof FileList&&r instanceof FileList,c=(0,n.default)(r);if(l||c){let t=i.get(r);const n=!t;if(n&&(t=l?[]:r instanceof Object?{}:Object.create(null),i.set(r,t)),!s.has(r)){const i=a?`${a}.`:"",o=new Set(s).add(r);if(l){let a=0;for(const s of r){const r=e(s,i+a++,o);
1n&&t.push(r)}}else for(const a in r){const s=e(r[a],i+a,o);n&&(t[a]=s)}}return t}return r}(e,r,new Set),files:o}}},(e,t,r)=>{"use strict";function n(e){if("object"!=typeof e||null===e)return!1;const t=Object.getPrototypeOf(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)}r.r(t),r.d(t,{default:()=>n})},(e,t,r)=>{"use strict";function n(e,t,r){"name"in r?e.append(t,r,r.name):e.append(t,r)}r.r(t),r.d(t,{default:()=>n})},(e,t,r)=>{"use strict";function n(e){return"undefined"!=typeof File&&e instanceof File||"undefined"!=typeof Blob&&e instanceof Blob}r.r(t),r.d(t,{default:()=>n})},(e,t,r)=>{"use strict";r.r(t),r.d(t,{SentryLink:()=>u});var n=r(628),i=r(516),o=r(631),a=r(487),s=r(690),l=r(694),c=r(696);class u extends i.ApolloLink{options;constructor(e={}){super(),this.options=(0,l.withDefaults)(e)}request(e,t){const{options:r}=this;if(!(r.shouldHandleOperation?.(e)??!0))return t(e);r.setTransaction&&(0,c.setTransaction)(e),r.setFingerprint&&(0,c.setFingerprint)(e);const{attachBreadcrumbs:i}=r;if(!i)return t(e);const l=(0,s.makeBreadcrumb)(e,r);return new a.Observable(a=>{const s=t(e).subscribe({next:e=>{l.level=function(e){return e.errors&&e.errors.length>0?"error":"info"}(e),i.includeFetchResult&&(l.data.fetchResult=e),i.includeError&&e.errors&&e.errors.length>0&&(l.data.error=new n.CombinedGraphQLErrors(e)),a.next(e)},complete:()=>{(0,c.attachBreadcrumbToSentry)(e,l,r),a.complete()},error:t=>{if(l.level="error",o.ServerError.is(t)){const{bodyText:e}=t;i.includeFetchResult&&(l.data.fetchResult=e)}i.includeError&&(l.data.error=t),(0,c.attachBreadcrumbToSentry)(e,l,r),a.error(t)}});return()=>{s.unsubscribe()}})}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{makeBreadcrumb:()=>a});var n=r(691),i=r(638),o=r(693);function a(e,t){const r=t.attachBreadcrumbs,a=(0,o.extractDefinition)(e),s={},l=t.uri;l&&(s.url=l);const c=a.name?.value;c&&(s.operationName=c),r.includeQuery&&(s.query=a.loc?.source?.body??(0,i.print)(a)),r.includeVariables&&(s.variables=e.variables),r.includeCache&&(s.cache=e.getContext().cache?.data?.data??void 0);const u=r.includeContext;return u&&(s.context=function(e,t){const r={};return t.forEach(t=>{r[t]=n.get(e,t)}),r}(e.getContext(),u)),{type:"http",category:`graphql.${a.operation}`,data:s}}},(e,t,r)=>{"use strict";const n=r(692),i=new Set(["__proto__","prototype","constructor"]);function o(e){const t=e.split("."),r=[];for(let e=0;e<t.length;e++){let n=t[e];for(;"\\"===n[n.length-1]&&void 0!==t[e+1];)n=n.slice(0,-1)+".",n+=t[++e];r.push(n)}return r.some(e=>i.has(e))?[]:r}e.exports={get(e,t,r){if(!n(e)||"string"!=typeof t)return void 0===r?e:r;const i=o(t);if(0!==i.length){for(let t=0;t<i.length;t++)if(null==(e=e[i[t]])){if(t!==i.length-1)return r;break}return void 0===e?r:e}},set(e,t,r){if(!n(e)||"string"!=typeof t)return e;const i=e,a=o(t);for(let t=0;t<a.length;t++){const i=a[t];n(e[i])||(e[i]={}),t===a.length-1&&(e[i]=r),e=e[i]}return i},delete(e,t){if(!n(e)||"string"!=typeof t)return!1;const r=o(t);for(let t=0;t<r.length;t++){const i=r[t];if(t===r.length-1)return delete e[i],!0;if(e=e[i],!n(e))return!1}},has(e,t){if(!n(e)||"string"!=typeof t)return!1;const r=o(t);if(0===r.length)return!1;for(let t=0;t<r.length;t++){if(!n(e))return!1;if(!(r[t]in e))return!1;e=e[r[t]]}return!0}}},e=>{"use strict";e.exports=e=>{const t=typeof e;return null!==e&&("object"===t||"function"===t)}},(e,t,r)=>{"use strict";function n(e){return e.query.definitions.find(e=>"OperationDefinition"===e.kind)}r.r(t),r.d(t,{extractDefinition:()=>n})},(e,t,r)=>{"use strict";r.r(t),r.d(t,{defaultOptions:()=>o,withDefaults:()=>a});var n=r(695),i=r.n(n);const o={shouldHandleOperation:void 0,uri:void 0,setTransaction:!0,setFingerprint:!0,attachBreadcrumbs:{includeQuery:!1,includeVariables:!1,includeFetchResult:!1,includeError:!1,includeCache:!1,includeContext:!1,transform:void 0}};function a(e){return i()(o,e)}},e=>{"use strict";var t=function(e){return function(e){return!!e&&"object"==typeof e}(e)&&!function(e){var t=Object.prototype.toString.call(e);return"[object RegExp]"===t||"[object Date]"===t||function(e){return e.$$typeof===r}(e)}(e)};var r="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function n(e,t){return!1!==t.clone&&t.isMergeableObject(e)?l((r=e,Array.isArray(r)?[]:{}),e,t):e;var r}function i(e,t,r){return e.concat(t).map(function(e){return n(e,r)})}function o(e){return Object.keys(e).concat(function(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(t){return Object.propertyIsEnumerable.call(e,t)}):[]}(e))}function a(e,t){try{return t in e}catch(e){return!1}}function s(e,t,r){var i={};return r.isMergeableObject(e)&&o(e).forEach(function(t){i[t]=n(e[t],r)}),o(t).forEach(function(o){(function(e,t){return a(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))})(e,o)||(a(e,o)&&r.isMergeableObject(t[o])?i[o]=function(e,t){if(!t.customMerge)return l;var r=t.customMerge(e);return"function"==typeof r?r:l}(o,r)(e[o],t[o],r):i[o]=n(t[o],r))}),i}function l(e,r,o){(o=o||{}).arrayMerge=o.arrayMerge||i,o.isMergeableObject=o.isMergeableObject||t,o.cloneUnlessOtherwiseSpecified=n;var a=Array.isArray(r);return a===Array.isArray(e)?a?o.arrayMerge(e,r,o):s(e,r,o):n(r,o)}l.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce(function(e,r){return l(e,r,t)},{})};var c=l;e.exports=c},(e,t,r)=>{"use strict";r.r(t),r.d(t,{DEFAULT_FINGERPRINT:()=>
1l,attachBreadcrumbToSentry:()=>u,setFingerprint:()=>c,setTransaction:()=>s});var n=r(346),i=r(697),o=r(693),a=r(698);function s(e){const t=(0,o.extractDefinition)(e).name;t&&(0,n.getCurrentScope)().setTransactionName(t.value)}const l="{{ default }}";function c(e){const t=(0,o.extractDefinition)(e).name;t&&(0,n.getCurrentScope)().setFingerprint([l,t.value])}function u(e,t,r){const n=r.attachBreadcrumbs&&"function"==typeof r.attachBreadcrumbs.transform?r.attachBreadcrumbs.transform(t,e):t;n.data=(0,a.stringifyObjectKeys)(n.data),(0,i.addBreadcrumb)(n)}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{addBreadcrumb:()=>s});var n=r(346),i=r(358),o=r(365);const a=100;function s(e,t){const r=(0,n.getClient)(),s=(0,n.getIsolationScope)();if(!r)return;const{beforeBreadcrumb:l=null,maxBreadcrumbs:c=a}=r.getOptions();if(c<=0)return;const u={timestamp:(0,o.dateTimestampInSeconds)(),...e},p=l?(0,i.consoleSandbox)(()=>l(u,t)):u;null!==p&&(r.emit&&r.emit("beforeAddBreadcrumb",p,t),s.addBreadcrumb(p,c))}},(e,t,r)=>{"use strict";function n(e){const t={};for(const[r,n]of Object.entries(e))t[r]="object"==typeof n?i(n):n;return t}function i(e){return JSON.stringify(e,null,2)}r.r(t),r.d(t,{stringify:()=>i,stringifyObjectKeys:()=>n})},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,(e,t,r)=>{"use strict";r.r(t),r.d(t,{decode:()=>b,default:()=>E,encode:()=>v,toASCII:()=>S,toUnicode:()=>_,ucs2decode:()=>h,ucs2encode:()=>f});const n=2147483647,i=36,o=/^xn--/,a=/[^\0-\x7F]/,s=/[\x2E\u3002\uFF0E\uFF61]/g,l={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},c=Math.floor,u=String.fromCharCode;function p(e){throw new RangeError(l[e])}function d(e,t){const r=e.split("@");let n="";r.length>1&&(n=r[0]+"@",e=r[1]);const i=function(e,t){const r=[];let n=e.length;for(;n--;)r[n]=t(e[n]);return r}((e=e.replace(s,".")).split("."),t).join(".");return n+i}function h(e){const t=[];let r=0;const n=e.length;for(;r<n;){const i=e.charCodeAt(r++);if(i>=55296&&i<=56319&&r<n){const n=e.charCodeAt(r++);56320==(64512&n)?t.push(((1023&i)<<10)+(1023&n)+65536):(t.push(i),r--)}else t.push(i)}return t}const f=e=>String.fromCodePoint(...e),m=function(e){return e>=48&&e<58?e-48+26:e>=65&&e<91?e-65:e>=97&&e<123?e-97:i},g=function(e,t){return e+22+75*(e<26)-((0!=t)<<5)},y=function(e,t,r){let n=0;for(e=r?c(e/700):e>>1,e+=c(e/t);e>455;n+=i)e=c(e/35);return c(n+36*e/(e+38))},b=function(e){const t=[],r=e.length;let o=0,a=128,s=72,l=e.lastIndexOf("-");l<0&&(l=0);for(let r=0;r<l;++r)e.charCodeAt(r)>=128&&p("not-basic"),t.push(e.charCodeAt(r));for(let u=l>0?l+1:0;u<r;){const l=o;for(let t=1,a=i;;a+=i){u>=r&&p("invalid-input");const l=m(e.charCodeAt(u++));l>=i&&p("invalid-input"),l>c((n-o)/t)&&p("overflow"),o+=l*t;const d=a<=s?1:a>=s+26?26:a-s;if(l<d)break;const h=i-d;t>c(n/h)&&p("overflow"),t*=h}const d=t.length+1;s=y(o-l,d,0==l),c(o/d)>n-a&&p("overflow"),a+=c(o/d),o%=d,t.splice(o++,0,a)}return String.fromCodePoint(...t)},v=function(e){const t=[],r=(e=h(e)).length;let o=128,a=0,s=72;for(const r of e)r<128&&t.push(u(r));const l=t.length;let d=l;for(l&&t.push("-");d<r;){let r=n;for(const t of e)t>=o&&t<r&&(r=t);const h=d+1;r-o>c((n-a)/h)&&p("overflow"),a+=(r-o)*h,o=r;for(const r of e)if(r<o&&++a>n&&p("overflow"),r===o){let e=a;for(let r=i;;r+=i){const n=r<=s?1:r>=s+26?26:r-s;if(e<n)break;const o=e-n,a=i-n;t.push(u(g(n+o%a,0))),e=c(o/a)}t.push(u(g(e,0))),s=y(a,h,d===l),a=0,++d}++a,++o}return t.join("")},_=function(e){return d(e,function(e){return o.test(e)?b(e.slice(4).toLowerCase()):e})},S=function(e){return d(e,function(e){return a.test(e)?"xn--"+v(e):e})},E={version:"2.3.1",ucs2:{decode:h,encode:f},decode:b,encode:v,toASCII:S,toUnicode:_}},,(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>T,disableExperimentalFragmentVariables:()=>g,disableFragmentWarnings:()=>f,enableExperimentalFragmentVariables:()=>m,gql:()=>d,resetCaches:()=>h});var n=r(489),i=r(756),o=new Map,a=new Map,s=!0,l=!1;function c(e){return e.replace(/[\s,]+/g," ").trim()}function u(e){var t=new Set,r=[];return e.definitions.forEach(function(e){if("FragmentDefinition"===e.kind){var n=e.name.value,i=c((l=e.loc).source.body.substring(l.start,l.end)),o=a.get(n);o&&!o.has(i)?s&&console.warn("Warning: fragment with name "+n+" already exists.\ngraphql-tag enforces all fragment names across your application to be unique; read more about\nthis in the docs: http://dev.apollodata.com/core/fragments.html#unique-names"):o||a.set(n,o=new Set),o.add(i),t.has(i)||(t.add(i),r.push(e))}else r.push(e);var l}),(0,n.__assign)((0,n.__assign)({},e),{definitions:r})}function p(e){var t=c(e);if(!o.has(t)){var r=(0,i.parse)(e,{experimentalFragmentVariables:l,allowLegacyFragmentVariables:l,experimentalFragmentArguments:l});if(!r||"Document"!==r.kind)throw new Error("Not a valid GraphQL document.");o.set(t,function(e){var t=new Set(e.definitions);t.forEach(function(e){e.loc&&delete e.loc,Object.keys(e).forEach(function(r){var n=e[r];n&&"object"==typeof n&&t.add(n)})});var r=e.loc;return r&&(delete r.startToken,delete r.endToken),e}(u(r)))}return o.get(t)}function d(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];"string"==typeof e&&(e=[e]);var n=e[0];return t.forEach(function(t,r){t&&"Document"===t.kind?n+=t.loc.source.body:n+=t,n+=e[r+1]}),p(n)}function h(){o.clear(),a.clear()}function f(){s=!1}function m(){l=!0}function g(){l=!1}var y,b=d,v=h,_=f,S=m,E=g;(y=d||(d={})).gql=b,y.resetCaches=v,y.disableFragmentWarnings=_,y.enableExperimentalFragmentVariables=S,y.disableExperimentalFragmentVariables=E,d.default=d;const T=d},(e,t,r)=>{"use strict";r.r(t),r.d(t,{Parser:()=>b,parse:()=>d,parseConstValue:()=>m,parseSchemaCoordinate:()=>y,parseType:()=>g,parseValue:()=>f});var n=r(757),i=r(763),o=r(505),a=r(765),s=r(514),l=r(766),c=r(768),u=r(769),p=r(767);function d(e,t){return(0,i.shouldTrace)(i.parseChannel)?i.parseChannel.traceSync(()=>h(e,t),{source:e}):h(e,t)}function h(e,t){const r=new b(e,t),n=r.parseDocument();return Object.defineProperty(n,"tokenCount",{enumerable:!1,value:r.tokenCount}),n}function f(e,t){const r=new b(e,t);r.expectToken(p.TokenKind.SOF);const n=r.parseValueLiteral(!1);return r.expectToken(p.TokenKind.EOF),n}function m(e,t){const r=new b(e,t);r.expectToken(p.TokenKind.SOF);const n=r.parseConstValueLiteral();return r.expectToken(p.TokenKind.EOF),n}function g(e,t){const r=new b(e,t);r.expectToken(p.TokenKind.SOF);const n=r.parseTypeReference();return r.expectToken(p.TokenKind.EOF),n}function y(e){const t=(0,u.isSource)(e)?e:new u.Source(e),r=new c.SchemaCoordinateLexer(t),n=new b(e,{lexer:r});n.expectToken(p.TokenKind.SOF);const i=n.parseSchemaCoordinate();return n.expectToken(p.TokenKind.EOF),i}class b{constructor(e,t={}){const{lexer:r,...n}=t;if(r)this._lexer=r;else{const t=(0,u.isSource)(e)?e:new u.Source(e);this._lexer=new l.Lexer(t)}this._options=n,this._tokenCounter=0}get tokenCount(){return this._tokenCounter}parseName(){const e=this.expectToken(p.TokenKind.NAME);return this.node(e,{kind:s.NAME,value:e.value})}parseDocument(){return this.node(this._lexer.token,{kind:s.DOCUMENT,definitions:this.many(p.TokenKind.SOF,this.parseDefinition,p.TokenKind.EOF)})}parseDefinition(){if(this.peek(p.TokenKind.BRACE_L))return this.parseOperationDefinition();const e=this.peekDescription(),t=e?this._lexer.lookahead():this._lexer.token;if(e&&t.kind===p.TokenKind.BRACE_L)throw(0,n.syntaxError)(this._lexer.source,this._lexer.token.start,"Unexpected description, descriptions are not supported on shorthand queries.");if(t.kind===p.TokenKind.NAME){switch(t.value){case"schema":return this.parseSchemaDefinition();case"scalar":return this.parseScalarTypeDefinition();case"type":return this.parseObjectTypeDefinition();case"interface":return this.parseInterfaceTypeDefinition();case"union":return this.parseUnionTypeDefinition();case"enum":return this.parseEnumTypeDefinition();case"input":return this.parseInputObjectTypeDefinition();case"directive":return this.parseDirectiveDefinition()}switch(t.value){case"query":case"mutation":case"subscription":return this.parseOperationDefinition();case"fragment":return this.parseFragmentDefinition()}if(e)throw(0,n.syntaxError)(this._lexer.source,this._lexer.token.start,"Unexpected description, only GraphQL definitions supp
1ort descriptions.");if("extend"===t.value)return this.parseTypeSystemExtension()}throw this.unexpected(t)}parseOperationDefinition(){const e=this._lexer.token;if(this.peek(p.TokenKind.BRACE_L))return this.node(e,{kind:s.OPERATION_DEFINITION,operation:o.OperationTypeNode.QUERY,description:void 0,name:void 0,variableDefinitions:void 0,directives:void 0,selectionSet:this.parseSelectionSet()});const t=this.parseDescription(),r=this.parseOperationType();let n;return this.peek(p.TokenKind.NAME)&&(n=this.parseName()),this.node(e,{kind:s.OPERATION_DEFINITION,operation:r,description:t,name:n,variableDefinitions:this.parseVariableDefinitions(),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseOperationType(){const e=this.expectToken(p.TokenKind.NAME);switch(e.value){case"query":return o.OperationTypeNode.QUERY;case"mutation":return o.OperationTypeNode.MUTATION;case"subscription":return o.OperationTypeNode.SUBSCRIPTION}throw this.unexpected(e)}parseVariableDefinitions(){return this.optionalMany(p.TokenKind.PAREN_L,this.parseVariableDefinition,p.TokenKind.PAREN_R)}parseVariableDefinition(){return this.node(this._lexer.token,{kind:s.VARIABLE_DEFINITION,description:this.parseDescription(),variable:this.parseVariable(),type:(this.expectToken(p.TokenKind.COLON),this.parseTypeReference()),defaultValue:this.expectOptionalToken(p.TokenKind.EQUALS)?this.parseConstValueLiteral():void 0,directives:this.parseConstDirectives()})}parseVariable(){const e=this._lexer.token;return this.expectToken(p.TokenKind.DOLLAR),this.node(e,{kind:s.VARIABLE,name:this.parseName()})}parseSelectionSet(){return this.node(this._lexer.token,{kind:s.SELECTION_SET,selections:this.many(p.TokenKind.BRACE_L,this.parseSelection,p.TokenKind.BRACE_R)})}parseSelection(){return this.peek(p.TokenKind.SPREAD)?this.parseFragment():this.parseField()}parseField(){const e=this._lexer.token,t=this.parseName();let r,n;return this.expectOptionalToken(p.TokenKind.COLON)?(r=t,n=this.parseName()):n=t,this.node(e,{kind:s.FIELD,alias:r,name:n,arguments:this.parseArguments(!1),directives:this.parseDirectives(!1),selectionSet:this.peek(p.TokenKind.BRACE_L)?this.parseSelectionSet():void 0})}parseArguments(e){const t=e?this.parseConstArgument:this.parseArgument;return this.optionalMany(p.TokenKind.PAREN_L,t,p.TokenKind.PAREN_R)}parseFragmentArguments(){const e=this.parseFragmentArgument;return this.optionalMany(p.TokenKind.PAREN_L,e,p.TokenKind.PAREN_R)}parseArgument(e=!1){const t=this._lexer.token,r=this.parseName();return this.expectToken(p.TokenKind.COLON),this.node(t,{kind:s.ARGUMENT,name:r,value:this.parseValueLiteral(e)})}parseConstArgument(){return this.parseArgument(!0)}parseFragmentArgument(){const e=this._lexer.token,t=this.parseName();return this.expectToken(p.TokenKind.COLON),this.node(e,{kind:s.FRAGMENT_ARGUMENT,name:t,value:this.parseValueLiteral(!1)})}parseFragment(){const e=this._lexer.token;this.expectToken(p.TokenKind.SPREAD);const t=this.expectOptionalKeyword("on");if(!t&&this.peek(p.TokenKind.NAME)){const t=this.parseFragmentName();return this.peek(p.TokenKind.PAREN_L)&&this._options.experimentalFragmentArguments?this.node(e,{kind:s.FRAGMENT_SPREAD,name:t,arguments:this.parseFragmentArguments(),directives:this.parseDirectives(!1)}):this.node(e,{kind:s.FRAGMENT_SPREAD,name:t,directives:this.parseDirectives(!1)})}return this.node(e,{kind:s.INLINE_FRAGMENT,typeCondition:t?this.parseNamedType():void 0,directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentDefinition(){const e=this._lexer.token,t=this.parseDescription();return this.expectKeyword("fragment"),!0===this._options.experimentalFragmentArguments?this.node(e,{kind:s.FRAGMENT_DEFINITION,description:t,name:this.parseFragmentName(),variableDefinitions:this.parseVariableDefinitions(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()}):this.node(e,{kind:s.FRAGMENT_DEFINITION,description:t,name:this.parseFragmentName(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentName(){if("on"===this._lexer.token.value)throw this.unexpected();return this.parseName()}parseValueLiteral(e){const t=this._lexer.token;switch(t.kind){case p.TokenKind.BRACKET_L:return this.parseList(e);case p.TokenKind.BRACE_L:return this.parseObject(e);case p.TokenKind.INT:return this.advanceLexer(),this.node(t,{kind:s.INT,value:t.value});case p.TokenKind.FLOAT:return this.advanceLexer(),this.node(t,{kind:s.FLOAT,value:t.value});case p.TokenKind.STRING:case p.TokenKind.BLOCK_STRING:return this.parseStringLiteral();case p.TokenKind.NAME:switch(this.advanceLexer(),t.value){case"true":return this.node(t,{kind:s.BOOLEAN,value:!0});case"false":return this.node(t,{kind:s.BOOLEAN,value:!1});case"null":return this.node(t,{kind:s.NULL});default:return this.node(t,{kind:s.ENUM,value:t.value})}case p.TokenKind.DOLLAR:if(e){if(this.expectToken(p.TokenKind.DOLLAR),this._lexer.token.kind===p.TokenKind.NAME){const e=this._lexer.token.value;throw(0,n.syntaxError)(this._lexer.source,t.start,`Unexpected variable "$${e}" in constant value.`)}throw this.unexpected(t)}return this.parseVariable();default:throw this.unexpected()}}parseConstValueLiteral(){return this.parseValueLiteral(!0)}parseStringLiteral(){const e=this._lexer.token;return this.advanceLexer(),this.node(e,{kind:s.STRING,value:e.value,block:e.kind===p.TokenKind.BLOCK_STRING})}parseList(e){return this.node(this._lexer.token,{kind:s.LIST,values:this.any(p.TokenKind.BRACKET_L,()=>this.parseValueLiteral(e),p.TokenKind.BRACKET_R)})}parseObject(e){return this.node(this._lexer.token,{kind:s.OBJECT,fields:this.any(p.TokenKind.BRACE_L,()=>this.parseObjectField(e),p.TokenKind.BRACE_R)})}parseObjectField(e){const t=this._lexer.token,r=this.parseName();return this.expectToken(p.TokenKind.COLON),this.node(t,{kind:s.OBJECT_FIELD,name:r,value:this.parseValueLiteral(e)})}parseDirectives(e){const t=[];for(;this.peek(p.TokenKind.AT);)t.push(this.parseDirective(e));if(t.length)return t}parseConstDirectives(){return this.parseDirectives(!0)}parseDirective(e){const t=this._lexer.token;return this.expectToken(p.TokenKind.AT),this.node(t,{kind:s.DIRECTIVE,name:this.parseName(),arguments:this.parseArguments(e)})}parseTypeReference(){const e=this._lexer.token;let t;if(this.expectOptionalToken(p.TokenKind.BRACKET_L)){const r=this.parseTypeReference();this.expectToken(p.TokenKind.BRACKET_R),t=this.node(e,{kind:s.LIST_TYPE,type:r})}else t=this.parseNamedType();return this.expectOptionalToken(p.TokenKind.BANG)?this.node(e,{kind:s.NON_NULL_TYPE,type:t}):t}parseNamedType(){return this.node(this._lexer.token,{kind:s.NAMED_TYPE,name:this.parseName()})}peekDescription(){return this.peek(p.TokenKind.STRING)||this.peek(p.TokenKind.BLOCK_STRING)}parseDescription(){if(this.peekDescription())return this.parseStringLiteral()}parseSchemaDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("schema");const r=this.parseConstDirectives(),n=this.many(p.TokenKind.BRACE_L,this.parseOperationTypeDefinition,p.TokenKind.BRACE_R);return this.node(e,{kind:s.SCHEMA_DEFINITION,description:t,directives:r,operationTypes:n})}parseOperationTypeDefinition(){const e=this._lexer.token,t=this.parseOperationType();this.expectToken(p.TokenKind.COLON);const r=this.parseNamedType();return this.node(e,{kind:s.OPERATION_TYPE_DEFINITION,operation:t,type:r})}parseScalarTypeDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("scalar");const r=this.parseName(),n=this.parseConstDirectives();return this.node(e,{kind:s.SCALAR_TYPE_DEFINITION,description:t,name:r,directives:n})}parseObjectTypeDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("type");const r=this.parseName(),n=this.parseImplementsInterfaces(),i=this.parseConstDirectives(),o=this.parseFieldsDefinition();return this.node(e,{kind:s.OBJECT_TYPE_DEFINITION,description:t,name:r,interfaces:n,directives:i,fields:o})}parseImplementsInterfaces(){return this.expectOptionalKeyword("implements")?this.delimitedMany(p.TokenKind.AMP,this.parseNamedType):void 0}parseFieldsDefinition(){return this.optionalMany(p.TokenKind.BRACE_L,this.parseFieldDefinition,p.TokenKind.BRACE_R)}parseFieldDefinition(){const e=this._lexer.token,t=this.parseDescription(),r=this.parseName(),n=this.parseArgumentDefs();this.expectToken(p.TokenKind.COLON);const i=this.parseTypeReference(),o=this.parseConstDirectives();return this.node(e,{kind:s.FIELD_DEFINITION,description:t,name:r,arguments:n,type:i,directives:o})}parseArgumentDefs(){return this.optionalMany(p.TokenKind.PAREN_L,this.parseInputValueDef,p.TokenKind.PAREN_R)}parseInputValueDef(){const e=this._lexer.token,t=this.parseDescription(),r=this.parseName();this.expectToken(p.TokenKind.COLON);const n=this.parseTypeReference();let i;this.expectOptionalToken(p.TokenKind.EQUALS)&&(i=this.parseConstValueLiteral());const o=this.parseConstDirectives();return this.node(e,{kind:s.INPUT_VALUE_DEFINITION,description:t,name:r,type:n,defaultValue:i,directives:o})}parseInterfaceTypeDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("interface");const r=this.parseName(),n=this.parseImplementsInterfaces(),i=this.parseConstDirectives(),o=this.parseFieldsDefinition();return this.node(e,{kind:s.INTERFACE_TYPE_DEFINITION,description:t,name:r,interfaces:n,directives:i,fields:o})}parseUnionTypeDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("union");const r=this.parseName(),n=this.parseConstDirectives(),i=this.parseUnionMemberTypes();return this.node(e,{kind:s.UNION_TYPE_DEFINITION,description:t,name:r,directives:n,types:i})}parseUnionMemberTypes(){return this.expectOptionalToken(p.TokenKind.EQUALS)?this.delimitedMany(p.TokenKind.PIPE,this.parseNamedType):void 0}parseEnumTypeDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("enum");const r=this.parseName(),n=this.parseConstDirectives(),i=this.parseEnumValuesDefinition();return this.node(e,{kind:s.ENUM_TYPE_DEFINITION,description:t,name:r,directives:n,values:i})}parseEnumValuesDefinition(){return this.optionalMany(p.TokenKind.BRACE_L,this.parseEnumValueDefinition,p.TokenKind.BRACE_R)}parseEnumValueDefinition(){const e=this._lexer.token,t=this.parseDescription(),r=this.parseEnumValueName(),n=this.parseConstDirectives();return this.node(e,{kind:s.ENUM_VALUE_DEFINITION,description:t,name:r,directives:n})}parseEnumValueName(){if("true"===this._lexer.token.value||"false"===this._lexer.token.value||"null"===this._lexer.token.value)throw(0,n.syntaxError)(this._lexer.source,this._lexer.token.start,`${v(this._lexer.token)} is reserved and cannot be used for an enum value.`);return this.parseName()}parseInputObjectTypeDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("input");const r=this.parseName(),n=this.parseConstDirectives(),i=this.parseInputFieldsDefinition();return this.node(e,{kind:s.INPUT_OBJECT_TYPE_DEFINITION,description:t,name:r,directives:n,fields:i})}parseInputFieldsDefinition(){return this.optionalMany(p.TokenKind.BRACE_L,this.parseInputValueDef,p.TokenKind.BRACE_R)}parseTypeSystemExtension(){const e=this._lexer.lookahead();if(e.kind===p.TokenKind.NAME)switch(e.value){case"schema":return this.parseSchemaExtension();case"scalar":return this.parseScalarTypeExtension();case"type":return this.parseObjectTypeExtension();case"interface":return this.parseInterfaceTypeExtension();case"union":return this.parseUnionTypeExtension();case"enum":return this.parseEnumTypeExtension();case"input":return this.parseInputObjectTypeExtension();case"directive":return this.parseDirectiveExtension()}throw this.unexpected(e)}parseSchemaExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("schema");const t=this.parseConstDirectives(),r=this.optionalMany(p.TokenKind.BRACE_L,this.parseOperationTypeDefinition,p.TokenKind.BRACE_R);if(void 0===t&&void 0===r)throw this.unexpected();return this.node(e,{kind:s.SCHEMA_EXTENSION,directives:t,operationTypes:r})}parseScalarTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("scalar");const t=this.parseName(),r=this.parseConstDirectives();if(void 0===r)throw this.unexpected();return this.node(e,{kind:s.SCALAR_TYPE_EXTENSION,name:t,directives:r})}parseObjectTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("type");const t=this.parseName(),r=this.parseImplementsInterfaces(),n=this.parseConstDirectives(),i=this.parseFieldsDefinition();if(void 0===r&&void 0===n&&void 0===i)throw this.unexpected();return this.node(e,{kind:s.OBJECT_TYPE_EXTENSION,name:t,interfaces:r,directives:n,fields:i})}parseInterfaceTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("interface");const t=this.parseName(),r=this.parseImplementsInterfaces(),n=this.parseConstDirectives(),i=this.parseFieldsDefinition();if(void 0===r&&void 0===n&&void 0===i)throw this.unexpected();return this.node(e,{kind:s.INTERFACE_TYPE_EXTENSION,name:t,interfaces:r,directives:n,fields:i})}parseUnionTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("union");const t=this.parseName(),r=this.parseConstDirectives(),n=this.parseUnionMemberTypes();if(void 0===r&&void 0===n)throw this.unexpected();return this.node(e,{kind:s.UNION_TYPE_EXTENSION,name:t,directives:r,types:n})}parseEnumTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("enum");const t=this.parseName(),r=this.parseConstDirectives(),n=this.parseEnumValuesDefinition();if(void 0===r&&void 0===n)throw this.unexpected();return this.node(e,{kind:s.ENUM_TYPE_EXTENSION,name:t,directives:r,values:n})}parseInputObjectTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("input");const t=this.parseName(),r=this.parseConstDirectives(),n=this.parseInputFieldsDefinition();if(void 0===r&&void 0===n)throw this.unexpected();return this.node(e,{kind:s.INPUT_OBJECT_TYPE_EXTENSION,name:t,directives:r,fields:n})}parseDirectiveExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("directive"),this.expectToken(p.TokenKind.AT);const t=this.parseName(),r=this.parseConstDirectives();if(void 0===r)throw this.unexpected();return this.node(e,{kind:s.DIRECTIVE_EXTENSION,name:t,directives:r})}parseDirectiveDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("directive"),this.expectToken(p.TokenKind.AT);const r=this.parseName(),n=this.parseArgumentDefs(),i=this.parseConstDirectives(),o=this.expectOptionalKeyword("repeatable");this.expectKeyword("on");const a=this.parseDirectiveLocations();return this.node(e,{kind:s.DIRECTIVE_DEFINITION,description:t,name:r,arguments:n,directives:i,repeatable:o,locations:a})}parseDirectiveLocations(){return this.delimitedMany(p.TokenKind.PIPE,this.parseDirectiveLocation)}parseDirectiveLocation(){const e=this._lexer.token,t=this.parseName();if(Object.hasOwn(a.DirectiveLocation,t.value))return t;throw this.unexpected(e)}parseSchemaCoordinate(){const e=this._lexer.token,t=this.expectOptionalToken(p.TokenKind.AT),r=this.parseName();let n,i;return!t&&this.expectOptionalToken(p.TokenKind.DOT)&&(n=this.parseName()),(t||n)&&this.expectOptionalToken(p.TokenKind.PAREN_L)&&(i=this.parseName(),this.expectToken(p.TokenKind.COLON),this.expectToken(p.TokenKind.PAREN_R)),t?i?this.node(e,{kind:s.DIRECTIVE_ARGUMENT_COORDINATE,name:r,argumentName:i}):this.node(e,{kind:s.DIRECTIVE_COORDINATE,name:r}):n?i?this.node(e,{kind:s.ARGUMENT_COORDINATE,name:r,fieldName:n,argumentName:i}):this.node(e,{kind:s.MEMBER_COORDINATE,name:r,memberName:n}):this.node(e,{kind:s.TYPE_COORDINATE,name:r})}node(e,t){return!0!==this._options.noLocation&&(t.loc=new o.Location(e,this._lexer.lastToken,this._lexer.source)),t}peek(e){return this._lexer.token.kind===e}expectToken(e){const t=this._lexer.token;if(t.kind===e)return this.advanceLexer(),t;throw(0,n.syntaxError)(this._lexer.source,t.start,`Expected ${_(e)}, found ${v(t)}.`)}expectOptionalToken(e){return this._lexer.token.kind===e&&(this.advanceLexer(),!0)}expectKeyword(e){const t=this._lexer.token;if(t.k
1ind!==p.TokenKind.NAME||t.value!==e)throw(0,n.syntaxError)(this._lexer.source,t.start,`Expected "${e}", found ${v(t)}.`);this.advanceLexer()}expectOptionalKeyword(e){const t=this._lexer.token;return t.kind===p.TokenKind.NAME&&t.value===e&&(this.advanceLexer(),!0)}unexpected(e){const t=e??this._lexer.token;return(0,n.syntaxError)(this._lexer.source,t.start,`Unexpected ${v(t)}.`)}any(e,t,r){this.expectToken(e);const n=[];for(;!this.expectOptionalToken(r);)n.push(t.call(this));return n}optionalMany(e,t,r){if(this.expectOptionalToken(e)){const e=[];do{e.push(t.call(this))}while(!this.expectOptionalToken(r));return e}}many(e,t,r){this.expectToken(e);const n=[];do{n.push(t.call(this))}while(!this.expectOptionalToken(r));return n}delimitedMany(e,t){this.expectOptionalToken(e);const r=[];do{r.push(t.call(this))}while(this.expectOptionalToken(e));return r}advanceLexer(){const{maxTokens:e}=this._options,t=this._lexer.advance();if(t.kind!==p.TokenKind.EOF&&(++this._tokenCounter,void 0!==e&&this._tokenCounter>e))throw(0,n.syntaxError)(this._lexer.source,t.start,`Document contains more than ${e} tokens. Parsing aborted.`)}}function v(e){const t=e.value;return _(e.kind)+(null!=t?` "${t}"`:"")}function _(e){return(0,l.isPunctuatorTokenKind)(e)?`"${e}"`:e}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{syntaxError:()=>i});var n=r(758);function i(e,t,r){return new n.GraphQLError(`Syntax Error: ${r}`,{source:e,positions:[t]})}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{GraphQLError:()=>a});var n=r(759),i=r(760),o=r(762);class a extends Error{constructor(e,t={}){const{nodes:r,source:o,positions:l,path:c,originalError:u,cause:p,extensions:d}=t,h="cause"in t;super(e,h||null!=u?{cause:h?p:u}:void 0),this.name="GraphQLError",this.path=c??void 0;const f=u??(p instanceof Error?p:void 0);this.originalError=f,this.nodes=s(Array.isArray(r)?r:r?[r]:void 0);const m=s(this.nodes?.map(e=>e.loc).filter(e=>null!=e));this.source=o??m?.[0]?.source,this.positions=l??m?.map(e=>e.start),this.locations=l&&o?l.map(e=>(0,i.getLocation)(o,e)):m?.map(e=>(0,i.getLocation)(e.source,e.start));const g=(0,n.isObjectLike)(f?.extensions)?f.extensions:void 0;this.extensions=d??g??Object.create(null),Object.defineProperties(this,{message:{writable:!0,enumerable:!0},name:{enumerable:!1},nodes:{enumerable:!1},source:{enumerable:!1},positions:{enumerable:!1},originalError:{enumerable:!1}}),null!=u?.stack?Object.defineProperty(this,"stack",{value:u.stack,writable:!0,configurable:!0}):null!=Error.captureStackTrace?Error.captureStackTrace(this,a):Object.defineProperty(this,"stack",{value:Error().stack,writable:!0,configurable:!0})}get[Symbol.toStringTag](){return"GraphQLError"}toString(){let e=this.message;if(this.nodes)for(const t of this.nodes)t.loc&&(e+="\n\n"+(0,o.printLocation)(t.loc));else if(this.source&&this.locations)for(const t of this.locations)e+="\n\n"+(0,o.printSourceLocation)(this.source,t);return e}toJSON(){const e={message:this.message};return null!=this.locations&&(e.locations=this.locations),null!=this.path&&(e.path=this.path),null!=this.extensions&&Object.keys(this.extensions).length>0&&(e.extensions=this.extensions),e}}function s(e){return void 0===e||0===e.length?void 0:e}},(e,t,r)=>{"use strict";function n(e){return"object"==typeof e&&null!==e}r.r(t),r.d(t,{isObjectLike:()=>n})},(e,t,r)=>{"use strict";r.r(t),r.d(t,{getLocation:()=>o});var n=r(761);const i=/\r\n|[\n\r]/g;function o(e,t){let r=0,o=1;
1for(const a of e.body.matchAll(i)){if("number"!=typeof a.index&&(0,n.invariant)(!1),a.index>=t)break;r=a.index+a[0].length,o+=1}return{line:o,column:t+1-r}}},(e,t,r)=>{"use strict";function n(e,t){if(!e)throw new Error(t??"Unexpected invariant triggered.")}r.r(t),r.d(t,{invariant:()=>n})},(e,t,r)=>{"use strict";r.r(t),r.d(t,{printLocation:()=>i,printSourceLocation:()=>o});var n=r(760);function i(e){return o(e.source,(0,n.getLocation)(e.source,e.start))}function o(e,t){const r=e.locationOffset.column-1,n="".padStart(r)+e.body,i=t.line-1,o=e.locationOffset.line-1,s=t.line+o,l=1===t.line?r:0,c=t.column+l,u=`${e.name}:${s}:${c}\n`,p=n.split(/\r\n|[\n\r]/g),d=p[i];if(d.length>120){const e=Math.floor(c/80),t=c%80,r=[];for(let e=0;e<d.length;e+=80)r.push(d.slice(e,e+80));return u+a([[`${s} |`,r[0]],...r.slice(1,e+1).map(e=>["|",e]),["|","^".padStart(t)],["|",r[e+1]]])}return u+a([[s-1+" |",p[i-1]],[`${s} |`,d],["|","^".padStart(c)],[`${s+1} |`,p[i+1]]])}function a(e){const t=e.filter(([e,t])=>void 0!==t),r=Math.max(...t.map(([e])=>e.length));return t.map(([e,t])=>e.padStart(r)+(t?" "+t:"")).join("\n")}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{executeChannel:()=>s,executeRootSelectionSetChannel:()=>c,executeVariableCoercionChannel:()=>l,parseChannel:()=>o,resolveChannel:()=>p,shouldTrace:()=>h,subscribeChannel:()=>u,traceMixed:()=>f,validateChannel:()=>a});var n=r(764);const i=function(){let e;try{const t=globalThis.process;"function"==typeof t?.getBuiltinModule&&(e=t.getBuiltinModule("node:diagnostics_channel"))}catch{}return e}(),o=i?.tracingChannel("graphql:parse"),a=i?.tracingChannel("graphql:validate"),s=i?.tracingChannel("graphql:execute"),l=i?.tracingChannel("graphql:execute:variableCoercion"),c=i?.tracingChannel("graphql:execute:rootSelectionSet"),u=i?.tracingChannel("graphql:subscribe"),p=i?.tracingChannel("graphql:resolve"),d=["start","end","asyncStart","asyncEnd","error"];function h(e){if(null==e)return!1;const t=e.hasSubscribers;if(void 0!==t)return t;for(const t of d)if(e[t].hasSubscribers)return!0;return!1}function f(e,t,r){const i=t;return e.start.runStores(i,()=>{let t;try{t=r()}catch(t){throw i.error=t,e.error.publish(i),e.end.publish(i),t}return(0,n.isPromiseLike)(t)?(e.end.publish(i),t.then(t=>(i.result=t,e.asyncStart.publish(i),e.asyncEnd.publish(i),t),t=>{throw i.error=t,e.error.publish(i),e.asyncStart.publish(i),e.asyncEnd.publish(i),t})):(i.result=t,e.end.publish(i),t)})}},(e,t,r)=>{"use strict";function n(e){return e instanceof Promise}function i(e){return"function"==typeof e?.then}r.r(t),r.d(t,{isPromise:()=>n,isPromiseLike:()=>i})},(e,t,r)=>{"use strict";r.r(t),r.d(t,{DirectiveLocation:()=>n});const n={QUERY:"QUERY",MUTATION:"MUTATION",SUBSCRIPTION:"SUBSCRIPTION",FIELD:"FIELD",FRAGMENT_DEFINITION:"FRAGMENT_DEFINITION",FRAGMENT_SPREAD:"FRAGMENT_SPREAD",INLINE_FRAGMENT:"INLINE_FRAGMENT",VARIABLE_DEFINITION:"VARIABLE_DEFINITION",FRAGMENT_VARIABLE_DEFINITION:"FRAGMENT_VARIABLE_DEFINITION",SCHEMA:"SCHEMA",SCALAR:"SCALAR",OBJECT:"OBJECT",FIELD_DEFINITION:"FIELD_DEFINITION",ARGUMENT_DEFINITION:"ARGUMENT_DEFINITION",INTERFACE:"INTERFACE",UNION:"UNION",ENUM:"ENUM",ENUM_VALUE:"ENUM_VALUE",INPUT_OBJECT:"INPUT_OBJECT",INPUT_FIELD_DEFINITION:"INPUT_FIELD_DEFINITION",DIRECTIVE_DEFINITION:"DIRECTIVE_DEFINITION"}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{Lexer:()=>l,createToken:()=>m,isPunctuatorTokenKind:()=>c,printCodePointAt:()=>f,readName:()=>I});var n=r(757),i=r(505),o=r(639),a=r(640),s=r(767);class l{constructor(e){const t=new i.Token(s.TokenKind.SOF,0,0,0,0);this.source=e,this.lastToken=t,this.token=t,this.line=1,this.lineStart=0}get[Symbol.toStringTag](){return"Lexer"}advance(){this.lastToken=this.token;return this.token=this.lookahead()}lookahead(){let e=this.token;if(e.kind!==s.TokenKind.EOF)do{if(e.next)e=e.next;else{const t=g(this,e.end);e.next=t,t.prev=e,e=t}}while(e.kind===s.TokenKind.COMMENT);return e}}function c(e){return e===s.TokenKind.BANG||e===s.TokenKind.DOLLAR||e===s.TokenKind.AMP||e===s.TokenKind.PAREN_L||e===s.TokenKind.PAREN_R||e===s.TokenKind.DOT||e===s.TokenKind.SPREAD||e===s.TokenKind.COLON||e===s.TokenKind.EQUALS||e===s.TokenKind.AT||e===s.TokenKind.BRACKET_L||e===s.TokenKind.BRACKET_R||e===s.TokenKind.BRACE_L||e===s.TokenKind.PIPE||e===s.TokenKind.BRACE_R}function u(e){return e>=0&&e<=55295||e>=57344&&e<=1114111}function p(e,t){return d(e.charCodeAt(t))&&h(e.charCodeAt(t+1))}function d(e){return e>=55296&&e<=56319}function h(e){return e>=56320&&e<=57343}function f(e,t){const r=e.source.body.codePointAt(t);if(void 0===r)return s.TokenKind.EOF;
vendor: 5,787 bytes, line 1
1if(r>=32&&r<=126){const e=String.fromCodePoint(r);return'"'===e?"'\"'":`"${e}"`}return"U+"+r.toString(16).toUpperCase().padStart(4,"0")}function m(e,t,r,n,o){const a=e.line,s=1+r-e.lineStart;return new i.Token(t,r,n,a,s,o)}function g(e,t){const r=e.source.body,i=r.length;let o=t;for(;o<i;){const t=r.charCodeAt(o);switch(t){case 65279:case 9:case 32:case 44:++o;continue;case 10:++o,++e.line,e.lineStart=o;continue;case 13:10===r.charCodeAt(o+1)?o+=2:++o,++e.line,e.lineStart=o;continue;case 35:return y(e,o);case 33:return m(e,s.TokenKind.BANG,o,o+1);case 36:return m(e,s.TokenKind.DOLLAR,o,o+1);case 38:return m(e,s.TokenKind.AMP,o,o+1);case 40:return m(e,s.TokenKind.PAREN_L,o,o+1);case 41:return m(e,s.TokenKind.PAREN_R,o,o+1);case 46:{const t=r.charCodeAt(o+1);if(46===t&&46===r.charCodeAt(o+2))return m(e,s.TokenKind.SPREAD,o,o+3);if(46===t)throw(0,n.syntaxError)(e.source,o,'Unexpected "..", did you mean "..."?');if((0,a.isDigit)(t)){const r=e.source.body.slice(o+1,v(e,o+1,t));throw(0,n.syntaxError)(e.source,o,`Invalid number, expected digit before ".", did you mean "0.${r}"?`)}break}case 58:return m(e,s.TokenKind.COLON,o,o+1);case 61:return m(e,s.TokenKind.EQUALS,o,o+1);case 64:return m(e,s.TokenKind.AT,o,o+1);case 91:return m(e,s.TokenKind.BRACKET_L,o,o+1);case 93:return m(e,s.TokenKind.BRACKET_R,o,o+1);case 123:return m(e,s.TokenKind.BRACE_L,o,o+1);case 124:return m(e,s.TokenKind.PIPE,o,o+1);case 125:return m(e,s.TokenKind.BRACE_R,o,o+1);case 34:return 34===r.charCodeAt(o+1)&&34===r.charCodeAt(o+2)?O(e,o):_(e,o)}if((0,a.isDigit)(t)||45===t)return b(e,o,t);if((0,a.isNameStart)(t))return I(e,o);throw(0,n.syntaxError)(e.source,o,39===t?"Unexpected single quote character ('), did you mean to use a double quote (\")?":u(t)||p(r,o)?`Unexpected character: ${f(e,o)}.`:`Invalid character: ${f(e,o)}.`)}return m(e,s.TokenKind.EOF,i,i)}function y(e,t){const r=e.source.body,n=r.length;let i=t+1;for(;i<n;){const e=r.charCodeAt(i);if(10===e||13===e)break;if(u(e))++i;else{if(!p(r,i))break;i+=2}}return m(e,s.TokenKind.COMMENT,t,i,r.slice(t+1,i))}function b(e,t,r){const i=e.source.body;let o=t,l=r,c=!1;if(45===l&&(l=i.charCodeAt(++o)),48===l){if(l=i.charCodeAt(++o),(0,a.isDigit)(l))throw(0,n.syntaxError)(e.source,o,`Invalid number, unexpected digit after 0: ${f(e,o)}.`)}else o=v(e,o,l),l=i.charCodeAt(o);if(46===l&&(c=!0,l=i.charCodeAt(++o),o=v(e,o,l),l=i.charCodeAt(o)),69!==l&&101!==l||(c=!0,l=i.charCodeAt(++o),43!==l&&45!==l||(l=i.charCodeAt(++o)),o=v(e,o,l),l=i.charCodeAt(o)),46===l||(0,a.isNameStart)(l))throw(0,n.syntaxError)(e.source,o,`Invalid number, expected digit but got: ${f(e,o)}.`);return m(e,c?s.TokenKind.FLOAT:s.TokenKind.INT,t,o,i.slice(t,o))}function v(e,t,r){if(!(0,a.isDigit)(r))throw(0,n.syntaxError)(e.source,t,`Invalid number, expected digit but got: ${f(e,t)}.`);const i=e.source.body;let o=t+1;for(;(0,a.isDigit)(i.charCodeAt(o));)++o;return o}function _(e,t){const r=e.source.body,i=r.length;let o=t+1,a=o,l="";for(;o<i;){const i=r.charCodeAt(o);if(34===i)return l+=r.slice(a,o),m(e,s.TokenKind.STRING,t,o+1,l);if(92===i){l+=r.slice(a,o);const t=117===r.charCodeAt(o+1)?123===r.charCodeAt(o+2)?S(e,o):E(e,o):x(e,o);l+=t.value,o+=t.size,a=o;continue}if(10===i||13===i)break;if(u(i))++o;else{if(!p(r,o))throw(0,n.syntaxError)(e.source,o,`Invalid character within String: ${f(e,o)}.`);o+=2}}throw(0,n.syntaxError)(e.source,o,"Unterminated string.")}function S(e,t){const r=e.source.body;let i=0,o=3;for(;o<12;){const e=r.charCodeAt(t+o++);if(125===e){if(o<5||!u(i))break;return{value:String.fromCodePoint(i),size:o}}if(i=i<<4|w(e),i<0)break}throw(0,n.syntaxError)(e.source,t,`Invalid Unicode escape sequence: "${r.slice(t,t+o)}".`)}function E(e,t){const r=e.source.body,i=T(r,t+2);if(u(i))return{value:String.fromCodePoint(i),size:6};if(d(i)&&92===r.charCodeAt(t+6)&&117===r.charCodeAt(t+7)){const e=T(r,t+8);if(h(e))return{value:String.fromCodePoint(i,e),size:12}}throw(0,n.syntaxError)(e.source,t,`Invalid Unicode escape sequence: "${r.slice(t,t+6)}".`)}function T(e,t){return w(e.charCodeAt(t))<<12|w(e.charCodeAt(t+1))<<8|w(e.charCodeAt(t+2))<<4|w(e.charCodeAt(t+3))}function w(e){return e>=48&&e<=57?e-48:e>=65&&e<=70?e-55:e>=97&&e<=102?e-87:-1}function x(e,t){const r=e.source.body;switch(r.charCodeAt(t+1)){case 34:return{value:'"',size:2};case 92:return{value:"\\",size:2};case 47:return{value:"/",size:2};case 98:return{value:"\b",size:2};case 102:return{value:"\f",size:2};case 110:return{value:"\n",size:2};case 114:return{value:"\r",size:2};case 116:return{value:"\t",size:2}}throw(0,n.syntaxError)(e.source,t,`Invalid character escape sequence: "${r.slice(t,t+2)}".`)}function O(e,t){const r=e.source.body,i=r.length;let a=e.lineStart,l=t+3,c=l,d="";const h=[];for(;l<i;){const i=r.charCodeAt(l);if(34===i&&34===r.charCodeAt(l+1)&&34===r.charCodeAt(l+2)){d+=r.slice(c,l),h.push(d);const n=m(e,s.TokenKind.BLOCK_STRING,t,l+3,(0,o.dedentBlockStringLines)(h).join("\n"));return e.line+=h.length-1,e.lineStart=a,n}if(92!==i||34!==r.charCodeAt(l+1)||34!==r.charCodeAt(l+2)||34!==r.charCodeAt(l+3))if(10!==i&&13!==i)if(u(i))++l;else{if(!p(r,l))throw(0,n.syntaxError)(e.source,l,`Invalid character within String: ${f(e,l)}.`);l+=2}else d+=r.slice(c,l),h.push(d),13===i&&10===r.charCodeAt(l+1)?l+=2:++l,d="",c=l,a=l;else d+=r.slice(c,l),c=l+1,l+=4}throw(0,n.syntaxError)(e.source,l,"Unterminated string.")}function I(e,t){const r=e.source.body,n=r.length;let i=t+1;for(;i<n;){const e=r.charCodeAt(i);if(!(0,a.isNameContinue)(e))break;++i}return m(e,s.TokenKind.NAME,t,i,r.slice(t,i))}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{TokenKind:()=>n});const n={SOF:"<SOF>",EOF:"<EOF>",BANG:"!",DOLLAR:"$",AMP:"&",PAREN_L:"(",PAREN_R:")",DOT:".",SPREAD:"...",COLON:":",EQUALS:"=",AT:"@",BRACKET_L:"[",BRACKET_R:"]",BRACE_L:"{",PIPE:"|",BRACE_R:"}
1",NAME:"Name",INT:"Int",FLOAT:"Float",STRING:"String",BLOCK_STRING:"BlockString",COMMENT:"Comment"}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{SchemaCoordinateLexer:()=>l});var n=r(757),i=r(505),o=r(640),a=r(766),s=r(767);class l{constructor(e){this.line=1,this.lineStart=0;const t=new i.Token(s.TokenKind.SOF,0,0,0,0);this.source=e,this.lastToken=t,this.token=t}get[Symbol.toStringTag](){return"SchemaCoordinateLexer"}advance(){this.lastToken=this.token;return this.token=this.lookahead()}lookahead(){let e=this.token;if(e.kind!==s.TokenKind.EOF){const t=function(e,t){const r=e.source.body,i=r.length,l=t;if(l<i){const t=r.charCodeAt(l);switch(t){case 46:return(0,a.createToken)(e,s.TokenKind.DOT,l,l+1);case 40:return(0,a.createToken)(e,s.TokenKind.PAREN_L,l,l+1);case 41:return(0,a.createToken)(e,s.TokenKind.PAREN_R,l,l+1);case 58:return(0,a.createToken)(e,s.TokenKind.COLON,l,l+1);case 64:return(0,a.createToken)(e,s.TokenKind.AT,l,l+1)}if((0,o.isNameStart)(t))return(0,a.readName)(e,l);throw(0,n.syntaxError)(e.source,l,`Invalid character: ${(0,a.printCodePointAt)(e,l)}.`)}return(0,a.createToken)(e,s.TokenKind.EOF,i,i)}(this,e.end);e.next=t,t.prev=e,e=t}return e}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{Source:()=>a,isSource:()=>s});var n=r(512),i=r(770);const o=Symbol("Source");class a{constructor(e,t="GraphQL request",r={line:1,column:1}){this.__kind=o,this.body=e,this.name=t,this.locationOffset=r,this.locationOffset.line>0||(0,n.devAssert)(!1,"line in locationOffset is 1-indexed and must be positive."),this.locationOffset.column>0||(0,n.devAssert)(!1,"column in locationOffset is 1-indexed and must be positive.")}get[Symbol.toStringTag](){return"Source"}}function s(e){return(0,i.instanceOf)(e,o,a)}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{enableDevInstanceOf:()=>a,instanceOf:()=>o});var n=r(513);function i(e,t,r){if(e?.__kind===t)return!0;if("object"==typeof e&&null!==e){const t=r.prototype[Symbol.toStringTag];if(t===(Symbol.toStringTag in e?e[Symbol.toStringTag]:e.constructor?.name)){const r=(0,n.inspect)(e);throw new Error(`Cannot use ${t} "${r}" from another module or realm.\n\nEnsure that there is only one instance of "graphql" in the node_modules\ndirectory. If different versions of "graphql" are the dependencies of other\nrelied on modules, use "resolutions" to ensure only one version is installed.\n\nhttps://yarnpkg.com/en/docs/selective-version-resolutions\n\nDuplicate "graphql" modules cannot be used at the same time since different\nversions may have different capabilities and behavior. The data from one\nversion used in the function from another could produce confusing and\nspurious results.`)}}return!1}let o=function(e,t){return e?.__kind===t};function a(){o=i}},,(e,t,r)=>{"use strict";r.r(t),r.d(t,{Action:()=>h,Await:()=>jn,AwaitContextProvider:()=>Er,BrowserRouter:()=>ua,CRITICAL_CSS_DATA_ATTRIBUTE:()=>qo,DataRouterContext:()=>mr,DataRouterStateContext:()=>gr,ENABLE_DEV_WARNINGS:()=>Ir,ErrorResponseImpl:()=>_e,FetchersContext:()=>_r,Form:()=>ma,FrameworkContext:()=>Ho,HashRouter:()=>pa,HistoryRouter:()=>da,IDLE_BLOCKER:()=>Qe,IDLE_FETCHER:()=>Je,IDLE_NAVIGATION:()=>Ke,Link:()=>ha,Links:()=>$o,LocationContext:()=>wr,MemoryRouter:()=>Mn,Meta:()=>Qo,NO_BODY_STATUS_CODES:()=>Qi,NavLink:()=>fa,Navigate:()=>Nn,NavigationContext:()=>Tr,Outlet:()=>Ln,PROTOCOL_RELATIVE_URL_REGEX:()=>u,PrefetchPageLinks:()=>Wo,RSCRouterContext:()=>yr,RemixErrorBoundary:()=>ra,Route:()=>Fn,RouteContext:()=>xr,Router:()=>Bn,RouterContextProvider:()=>A,RouterProvider:()=>Rn,Routes:()=>Un,SINGLE_FETCH_REDIRECT_STATUS:()=>Ji,Scripts:()=>ea,ScrollRestoration:()=>ga,SingleFetchRedirectSymbol:()=>Yi,StaticRouter:()=>Na,StaticRouterProvider:()=>La,StreamTransfer:()=>Xi,URL_LIMIT:()=>Co,ViewTransitionContext:()=>vr,WithComponentProps:()=>Wn,WithErrorBoundaryProps:()=>Zn,WithHydrateFallbackProps:()=>Jn,convertRoutesToDataRoutes:()=>P,createBrowserHistory:()=>y,createBrowserRouter:()=>aa,createClientRoutes:()=>wo,createClientRoutesWithHMRRevalidationOptOut:()=>So,createContext:()=>I,createHashHistory:()=>b,createHashRouter:()=>sa,createMemoryHistory:()=>g,createMemoryRouter:()=>An,createPath:()=>T,createRequestInit:()=>Vi,createRouter:()=>rt,createRoutesFromChildren:()=>zn,createRoutesFromElements:()=>Gn,createSearchParams:()=>ii,createServerRoutes:()=>_o,createStaticHandler:()=>nt,createStaticHandler2:()=>Ua,createStaticRouter:()=>ja,data:()=>me,decodeRedirectErrorDigest:()=>Cr,decodeRouteErrorResponseDigest:()=>Pr,decodeViaTurboStream:()=>io,encode:()=>Hi,escapeHtml:()=>qi,generatePath:()=>K,getManifestPath:()=>Lo,getPatchRoutesOnNavigationFunction:()=>Mo,getPathsWithAncestors:()=>
1Po,getSingleFetchDataStrategyImpl:()=>eo,getStaticContextFromError:()=>it,getTurboStreamSingleFetchDataStrategy:()=>Zi,hasInvalidProtocol:()=>Mt,hydrationRouteProperties:()=>In,instrumentHandler:()=>Ie,invariant:()=>v,isDataWithResponseInit:()=>rr,isMutationMethod:()=>sr,isRedirectResponse:()=>or,isRedirectStatusCode:()=>ir,isResponse:()=>nr,isRouteErrorResponse:()=>Se,mapRouteProperties:()=>On,matchPath:()=>J,matchRoutes:()=>M,matchRoutesImpl:()=>N,noActionDefinedError:()=>To,parsePath:()=>w,redirect:()=>ge,redirectDocument:()=>ye,renderMatches:()=>qn,replace:()=>be,resolvePath:()=>re,setIsHydrated:()=>Zo,shouldHydrateRouteLoader:()=>Io,singleFetchUrl:()=>ro,stripBasename:()=>ee,stripIndexParam:()=>to,useActionData:()=>pn,useAsyncError:()=>fn,useAsyncValue:()=>hn,useBeforeUnload:()=>Pa,useBlocker:()=>gn,useFetcher:()=>Oa,useFetchers:()=>Ia,useFogOFWarDiscovery:()=>No,useFormAction:()=>xa,useHref:()=>Dr,useInRouterContext:()=>Mr,useLinkClickHandler:()=>_a,useLoaderData:()=>cn,useLocation:()=>Nr,useMatch:()=>Fr,useMatches:()=>ln,useNavigate:()=>jr,useNavigation:()=>an,useNavigationType:()=>Lr,useOutlet:()=>zr,useOutletContext:()=>Vr,useParams:()=>Gr,usePrompt:()=>Da,useResolvedPath:()=>qr,useRevalidator:()=>sn,useRoute:()=>vn,useRouteError:()=>dn,useRouteLoaderData:()=>un,useRouterState:()=>Sn,useRoutes:()=>$r,useScrollRestoration:()=>Ca,useSearchParams:()=>Sa,useSubmit:()=>wa,useViewTransitionState:()=>Ma,validateNavigationTarget:()=>Be,warnOnce:()=>Tn,withComponentProps:()=>Yn,withErrorBoundaryProps:()=>ei,withHydrateFallbackProps:()=>Qn});var n=r(341),i=e=>{throw TypeError(e)},o=(e,t,r)=>t.has(e)||i("Cannot "+r),a=(e,t,r)=>(o(e,t,"read from private field"),r?r.call(e):t.get(e)),s=(e,t,r)=>t.has(e)?i("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),l=(e,t,r,n)=>(o(e,t,"write to private field"),n?n.call(e,r):t.set(e,r),r),c=/^(?:[a-z][a-z0-9+.-]*:|[\\/]{2})/i,u=/^[\\/]{2}/;
2/**
3 * react-router v7.18.3
4 *
5 * Copyright (c) Remix Software Inc.
6 *
7 * This source code is licensed under the MIT license found in the
8 * LICENSE.md file in the root directory of this source tree.
9 *
10 * @license MIT
11 */function p(e,t){return t+e.replace(/\\/g,"/")}var d,h=(e=>(e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE",e))(h||{}),f="popstate";function m(e){return"object"==typeof e&&null!=e&&"pathname"in e&&"search"in e&&"hash"in e&&"state"in e&&"key"in e}function g(e={}){let t,{initialEntries:r=["/"],initialIndex:n,v5Compat:i=!1}=e;t=r.map((e,t)=>u(e,"string"==typeof e?null:e.state,0===t?"default":void 0,"string"==typeof e?void 0:e.mask));let o=l(n??t.length-1),a="POP",s=null;function l(e){return Math.min(Math.max(e,0),t.length-1)}function c(){return t[o]}function u(e,r=null,n,i){let o=E(t?c().pathname:"/",e,r,n,i);return _("/"===o.pathname.charAt(0),`relative pathnames are not supported in memory history: ${JSON.stringify(e)}`),o}function p(e){return"string"==typeof e?e:T(e)}return{get index(){return o},get action(){return a},get location(){return c()},createHref:p,createURL:e=>new URL(p(e),"http://localhost"),encodeLocation(e){let t="string"==typeof e?w(e):e;return{pathname:t.pathname||"",search:t.search||"",hash:t.hash||""}},push(e,r){a="PUSH";let n=m(e)?e:u(e,r);o+=1,t.splice(o,t.length,n),i&&s&&s({action:a,location:n,delta:1})},replace(e,r){a="REPLACE";let n=m(e)?e:u(e,r);t[o]=n,i&&s&&s({action:a,location:n,delta:0})},go(e){a="POP";let r=l(o+e),n=t[r];o=r,s&&s({action:a,location:n,delta:e})},listen:e=>(s=e,()=>{s=null})}}function y(e={}){return x(function(e,t){let r=t.state?.masked,{pathname:n,search:i,hash:o}=r||e.location;return E("",{pathname:n,search:i,hash:o},t.state&&t.state.usr||null,t.state&&t.state.key||"default",r?{pathname:e.location.pathname,search:e.location.search,hash:e.location.hash}:void 0)},function(e,t){return"string"==typeof t?t:T(t)},null,e)}function b(e={}){return x(function(e,t){let{pathname:r="/",search:n="",hash:i=""}=w(e.location.hash.substring(1));return r.startsWith("/")||r.startsWith(".")||(r="/"+r),E("",{pathname:r,search:n,hash:i},t.state&&t.state.usr||null,t.state&&t.state.key||"default")},function(e,t){let r=e.document.querySelector("base"),n="";if(r&&r.getAttribute("href")){let t=e.location.href,r=t.indexOf("#");n=-1===r?t:t.slice(0,r)}return n+"#"+("string"==typeof t?t:T(t))},function(e,t){_("/"===e.pathname.charAt(0),`relative pathnames are not supported in hash history.push(${JSON.stringify(t)})`)},e)}function v(e,t){if(!1===e||null==e)throw new Error(t)}function _(e,t){if(!e){"undefined"!=typeof console&&console.warn(t);try{throw new Error(t)}catch(e){}}}function S(e,t){return{usr:e.state,key:e.key,idx:t,masked:e.mask?{pathname:e.pathname,search:e.search,hash:e.hash}:void 0}}function E(e,t,r=null,n,i){return{pathname:"string"==typeof e?e:e.pathname,search:"",hash:"",..."string"==typeof t?w(t):t,state:r,key:t&&t.key||n||Math.random().toString(36).substring(2,10),mask:i}}function T({pathname:e="/",search:t="",hash:r=""}){return t&&"?"!==t&&(e+="?"===t.charAt(0)?t:"?"+t),r&&"#"!==r&&(e+="#"
11===r.charAt(0)?r:"#"+r),e}function w(e){let t={};if(e){let r=e.indexOf("#");r>=0&&(t.hash=e.substring(r),e=e.substring(0,r));let n=e.indexOf("?");n>=0&&(t.search=e.substring(n),e=e.substring(0,n)),e&&(t.pathname=e)}return t}function x(e,t,r,n={}){let{window:i=document.defaultView,v5Compat:o=!1}=n,a=i.history,s="POP",l=null,c=u();function u(){return(a.state||{idx:null}).idx}function p(){s="POP";let e=u(),t=null==e?null:e-c;c=e,l&&l({action:s,location:h.location,delta:t})}function d(e){return O(i,e)}null==c&&(c=0,a.replaceState({...a.state,idx:c},""));let h={get action(){return s},get location(){return e(i,a)},listen(e){if(l)throw new Error("A history only accepts one active listener");return i.addEventListener(f,p),l=e,()=>{i.removeEventListener(f,p),l=null}},createHref:e=>t(i,e),createURL:d,encodeLocation(e){let t=d(e);return{pathname:t.pathname,search:t.search,hash:t.hash}},push:function(e,t){s="PUSH";let n=m(e)?e:E(h.location,e,t);r&&r(n,e),c=u()+1;let p=S(n,c),d=h.createHref(n.mask||n);try{a.pushState(p,"",d)}catch(e){if(e instanceof DOMException&&"DataCloneError"===e.name)throw e;i.location.assign(d)}o&&l&&l({action:s,location:h.location,delta:1})},replace:function(e,t){s="REPLACE";let n=m(e)?e:E(h.location,e,t);r&&r(n,e),c=u();let i=S(n,c),p=h.createHref(n.mask||n);a.replaceState(i,"",p),o&&l&&l({action:s,location:h.location,delta:0})},go:e=>a.go(e)};return h}function O(e,t,r=!1){let n="http://localhost";e&&(n="null"!==e.location.origin?e.location.origin:e.location.href),v(n,"No window.location.(origin|href) available to create URL");let i="string"==typeof t?t:T(t);return i=i.replace(/ $/,"%20"),!r&&u.test(i)&&(i=n+i),new URL(i,n)}function I(e){return{defaultValue:e}}var A=class{constructor(e){if(s(this,d,new Map),e)for(let[t,r]of e)this.set(t,r)}get(e){if(a(this,d).has(e))return a(this,d).get(e);if(void 0!==e.defaultValue)return e.defaultValue;throw new Error("No value found for context")}set(e,t){a(this,d).set(e,t)}};d=new WeakMap;var k=new Set(["lazy","caseSensitive","path","id","index","children"]);var R=new Set(["lazy","caseSensitive","path","id","index","middleware","children"]);function C(e){return R.has(e)}function P(e,t,r=[],n={},i=!1){return e.map((e,o)=>{let a=[...r,String(o)],s="string"==typeof e.id?e.id:a.join("-");if(v(!0!==e.index||!e.children,"Cannot specify children on an index route"),v(i||!n[s],`Found a route id collision on i
11d "${s}".  Route id's must be globally unique within Data Router usages`),function(e){return!0===e.index}(e)){let r={...e,id:s};return n[s]=D(r,t(r)),r}{let r={...e,id:s,children:void 0};return n[s]=D(r,t(r)),e.children&&(r.children=P(e.children,t,a,n,i)),r}})}function D(e,t){return Object.assign(e,{...t,..."object"==typeof t.lazy&&null!=t.lazy?{lazy:{...e.lazy,...t.lazy}}:{}})}function M(e,t,r="/"){return N(e,t,r,!1)}function N(e,t,r,n,i){let o=ee(("string"==typeof t?w(t):t).pathname||"/",r);if(null==o)return null;let a=i??F(e),s=null,l=Z(o);for(let e=0;null==s&&e<a.length;++e)s=Y(a[e],l,n);return s}function L(e,t){let{route:r,pathname:n,params:i}=e;return{id:r.id,pathname:n,params:i,data:t[r.id],loaderData:t[r.id],handle:r.handle}}function F(e){let t=B(e);return function(e){e.sort((e,t)=>e.score!==t.score?t.score-e.score:function(e,t){let r=e.length===t.length&&e.slice(0,-1).every((e,r)=>e===t[r]);return r?e[e.length-1]-t[t.length-1]:0}(e.routesMeta.map(e=>e.childrenIndex),t.routesMeta.map(e=>e.childrenIndex)))}(t),t}function B(e,t=[],r=[],n="",i=!1){let o=(e,o,a=i,s)=>{let l={relativePath:void 0===s?e.path||"":s,caseSensitive:!0===e.caseSensitive,childrenIndex:o,route:e};if(l.relativePath.startsWith("/")){if(!l.relativePath.startsWith(n)&&a)return;v(l.relativePath.startsWith(n),`Absolute route path "${l.relativePath}" nested under path "${n}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),l.relativePath=l.relativePath.slice(n.length)}let c=ce([n,l.relativePath]),u=r.concat(l);e.children&&e.children.length>0&&(v(!0!==e.index,`Index routes must not have child routes. Please remove all child routes from route path "${c}".`),B(e.children,t,u,c,a)),(null!=e.path||e.index)&&t.push({path:c,score:W(c,e.index),routesMeta:u.map((e,t)=>{let[r,n]=X(e.relativePath,e.caseSensitive,t===u.length-1);return{...e,matcher:r,compiledParams:n}})})};return e.forEach((e,t)=>{if(""!==e.path&&e.path?.includes("?"))for(let r of U(e.path))o(e,t,!0,r);else o(e,t)}),t}function U(e){let t=e.split("/");if(0===t.length)return[];let[r,...n]=t,i=r.endsWith("?"),o=r.replace(/\?$/,"");if(0===n.length)return i?[o,""]:[o];let a=U(n.join("/")),s=[];return s.push(...a.map(e=>""===e?o:[o,e].join("/"))),i&&s.push(...a),s.map(t=>e.startsWith("/")&&""===t?"/":t)}var j=/^:[\w-]+$/,H=3,V=2,z=1,G=10,q=-2,$=e=>"*"===e;function W(e,t){let r=e.split("/"),n=r.length;return r.some($)&&(n+=q),t&&(n+=V),r.filter(e=>!$(e)).reduce((e,t)=>e+(j.test(t)?H:""===t?z:G),n)}function Y(e,t,r=!1){let{routesMeta:n}=e,i={},o="/",a=[];for(let e=0;e<n.length;++e){let s=n[e],l=e===n.length-1,c="/"===o?t:t.slice(o.length)||"/",u={path:s.relativePath,caseSensitive:s.caseSensitive,end:l},p=s.matcher&&s.compiledParams?Q(u,c,s.matcher,s.compiledParams):J(u,c),d=s.route;if(!p&&l&&r&&!n[n.length-1].route.index&&(p=J({path:s.relativePath,caseSensitive:s.caseSensitive,end:!1},c)),!p)return null;
11Object.assign(i,p.params),a.push({params:i,pathname:ce([o,p.pathname]),pathnameBase:pe(ce([o,p.pathnameBase])),route:d}),"/"!==p.pathnameBase&&(o=ce([o,p.pathnameBase]))}return a}function K(e,t={}){let r=e;r.endsWith("*")&&"*"!==r&&!r.endsWith("/*")&&(_(!1,`Route path "${r}" will be treated as if it were "${r.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${r.replace(/\*$/,"/*")}".`),r=r.replace(/\*$/,"/*"));const n=r.startsWith("/")?"/":"",i=e=>null==e?"":"string"==typeof e?e:String(e);return n+r.split(/\/+/).map((e,r,n)=>{if(r===n.length-1&&"*"===e)return i(t["*"]);const o=e.match(/^:([\w-]+)(\??)(.*)/);if(o){const[,e,r,n]=o;let a=t[e];return v("?"===r||null!=a,`Missing ":${e}" param`),encodeURIComponent(i(a))+n}return e.replace(/\?$/g,"")}).filter(e=>!!e).join("/")}function J(e,t){"string"==typeof e&&(e={path:e,caseSensitive:!1,end:!0});let[r,n]=X(e.path,e.caseSensitive,e.end);return Q(e,t,r,n)}function Q(e,t,r,n){let i=t.match(r);if(!i)return null;let o=i[0],a=ue(o,1),s=i.slice(1);return{params:n.reduce((e,{paramName:t,isOptional:r},n)=>{if("*"===t){let e=s[n]||"";a=ue(o.slice(0,o.length-e.length),1)}const i=s[n];return e[t]=r&&!i?void 0:(i||"").replace(/%2F/g,"/"),e},{}),pathname:o,pathnameBase:a,pattern:e}}function X(e,t=!1,r=!0){_("*"===e||!e.endsWith("*")||e.endsWith("/*"),`Route path "${e}" will be treated as if it were "${e.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/,"/*")}".`);let n=[],i="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(e,t,r,i,o)=>{if(n.push({paramName:t,isOptional:null!=r}),r){let t=o.charAt(i+e.length);return t&&"/"!==t?"/([^\\/]*)":"(?:/([^\\/]*))?"}return"/([^\\/]+)"}).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return e.endsWith("*")?(n.push({paramName:"*"}),i+="*"===e||"/*"===e?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?i+="\\/*$":""!==e&&"/"!==e&&(i+="(?:(?=\\/|$))"),[new RegExp(i,t?void 0:"i"),n]}function Z(e){try{return e.split("/").map(e=>decodeURIComponent(e).replace(/\//g,"%2F")).join("/")}catch(t){return _(!1,`The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${t}).`),e}}function ee(e,t){if("/"===t)return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let r=t.endsWith("/")?t.length-1:t.length,n=e.charAt(r);return n&&"/"!==n?null:e.slice(r)||"/"}var te=e=>c.test(e);function re(e,t="/"){let r,{pathname:n,search:i="",hash:o=""}="string"==typeof e?w(e):e;return n?(n=le(n),r=n.startsWith("/")||n.startsWith("\\")?ne(n.substring(1),"/"):ne(n,t)):r=t,{pathname:r,search:de(i),hash:he(o)}}function ne(e,t){let r=ue(t).split("/");return e.split("/").forEach(e=>{".."===e?r.length>1&&r.pop():"."!==e&&r.push(e)}),r.length>1?r.join("/"):"/"}function ie(e,t,r,n){return`Cannot include a '${e}' character in a manually specified \`to.${t}\` field [${JSON.stringify(n)}].  Please separate it out to the \`to.${r}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function oe(e){return e.filter((e,t)=>0===t||e.route.path&&e.route.path.length>0)}function ae(e){let t=oe(e);return t.map((e,r)=>r===t.length-1?e.pathname:e.pathnameBase)}function se(e,t,r,n=!1){let i;"string"==typeof e?i=w(e):(i={...e},v(!i.pathname||!i.pathname.includes("?"),ie("?","pathname","search",i)),v(!i.pathname||!i.pathname.includes("#"),ie("#","pathname","hash",i)),v(!i.search||!i.search.includes("#"),ie("#","search","hash",i)));let o,a=""===e||""===i.pathname,s=a?"/":i.pathname;if(null==s)o=r;else{let e=t.length-1;if(!n&&s.startsWith("..")){let t=s.split("/");for(;".."===t[0];)t.shift(),e-=1;i.pathname=t.join("/")}o=e>=0?t[e]:"/"}let l=re(i,o),c=s&&"/"!==s&&s.endsWith("/"),u=(a||"."===s)&&r.endsWith("/");return l.pathname.endsWith("/")||!c&&!u||(l.pathname+="/"),l}var le=e=>e.replace(/[\\/]{2,}/g,"/"),ce=e=>le(e.join("/"));function ue(e,t=0){let r=e.length;for(;r>t&&47===e.charCodeAt(r-1);)r--;return r===e.length?e:e.slice(0,r)}var pe=e=>ue(e).replace(/^\/*/,"/"),de=e=>e&&"?"!==e?e.startsWith("?")?e:"?"+e:"",he=e=>e&&"#"!==e?e.startsWith("#")?e:"#"+e:"",fe=class{constructor(e,t){this.type="DataWithResponseInit",this.data=e,this.init=t||null}};function me(e,t){return new fe(e,"number"==typeof t?{status:t}:t)}var ge=(e,t=302)=>{let r=t;"number"==typeof r?r={status:r}:void 0===r.status&&(r.status=302);let n=new Headers(r.headers);return n.set("Location",e),new Response(null,{...r,headers:n})},ye=(e,t)=>{let r=ge(e,t);return r.headers.set("X-Remix-Reload-Document","true"),r},be=(e,t)=>
11{let r=ge(e,t);return r.headers.set("X-Remix-Replace","true"),r},ve=["EvalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],_e=class{constructor(e,t,r,n=!1){this.status=e,this.statusText=t||"",this.internal=n,r instanceof Error?(this.data=r.toString(),this.error=r):this.data=r}};function Se(e){return null!=e&&"number"==typeof e.status&&"string"==typeof e.statusText&&"boolean"==typeof e.internal&&"data"in e}function Ee(e){let t=e.map(e=>e.route.path).filter(Boolean);return ce(t)||"/"}var Te="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement;function we(e,t){let r=e;if("string"!=typeof r||!c.test(r))return{absoluteURL:void 0,isExternal:!1,to:r};let n=r,i=!1;if(Te)try{let e=new URL(window.location.href),n=u.test(r)?new URL(p(r,e.protocol)):new URL(r),o=ee(n.pathname,t);n.origin===e.origin&&null!=o?r=o+n.search+n.hash:i=!0}catch(e){_(!1,`<Link to="${r}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:n,isExternal:i,to:r}}var xe=Symbol("Uninstrumented");function Oe(e,t){let r={lazy:[],"lazy.loader":[],"lazy.action":[],"lazy.middleware":[],middleware:[],loader:[],action:[]};e.forEach(e=>e({id:t.id,index:t.index,path:t.path,instrument(e){let t=Object.keys(r);for(let n of t)e[n]&&r[n].push(e[n])}}));let n={};if("function"==typeof t.lazy&&r.lazy.length>0){let e=Ae(r.lazy,t.lazy,()=>{});e&&(n.lazy=e)}if("object"==typeof t.lazy){let e=t.lazy;["middleware","loader","action"].forEach(t=>{let i=e[t],o=r[`lazy.${t}`];if("function"==typeof i&&o.length>0){let e=Ae(o,i,()=>{});e&&(n.lazy=Object.assign(n.lazy||{},{[t]:e}))}})}return["loader","action"].forEach(e=>{let i=t[e];if("function"==typeof i&&r[e].length>0){let t=i[xe]??i,o=Ae(r[e],t,(...e)=>Re(e[0]));o&&("loader"===e&&!0===t.hydrate&&(o.hydrate=!0),o[xe]=t,n[e]=o)}}),t.middleware&&t.middleware.length>0&&r.middleware.length>0&&(n.middleware=t.middleware.map(e=>{let t=e[xe]??e,n=Ae(r.middleware,t,(...e)=>Re(e[0]));return n?(n[xe]=t,n):e})),n}function Ie(e,t){let r={request:[]};t.forEach(e=>e({instrument(e){let t=Object.keys(e);for(let n of t)e[n]&&r[n].push(e[n])}}));let n=e;return r.request.length>0&&(n=Ae(r.request,e,(...e)=>{let[t,r]=e;return{request:Pe(t),context:null!=r?De(r):r}})),n}function Ae(e,t,r){return 0===e.length?null:async(...n)=>{let i=await ke(e,r(...n),()=>t(...n),e.length-1);if("error"===i.type)throw i.value;return i.value}}async function ke(e,t,r,n){let i,o=e[n];if(o){let a,s=async()=>(a?console.error("You cannot call instrumented handlers more than once"):a=ke(e,t,r,n-1),i=await a,v(i,"Expected a result"),"error"===i.type&&i.value instanceof Error?{status:"error",error:i.value}:{status:"success",error:void 0});try{await o(s,t)}catch(e){console.error("An instrumentation function threw an error:",e)}a||await s(),await a}else try{let e=await r();i={type:"success",value:e}}catch(e){i={type:"error",value:e}}return i||{type:"error",value:new Error("No result assigned in instrumentation chain.")}}function Re(e){let{request:t,context:r,params:n,pattern:i}=e;return{request:Pe(t),params:{...n},pattern:i,context:De(r)}}function Ce(e,t){return{currentUrl:T(e.state.location),..."formMethod"in t?{formMethod:t.formMethod}:{},..."formEncType"in t?{formEncType:t.formEncType}:{},..."formData"in t?{formData:t.formData}:{},..."body"in t?{body:t.body}:{}}}function Pe(e){return{method:e.method,url:e.url,headers:{get:(...t)=>e.headers.get(...t)}}}function De(e){if(function(e){if(null===e||"object"!=typeof e)return!1;const t=Object.getPrototypeOf(e);return t===Object.prototype||null===t||Object.getOwnPropertyNames(t).sort().join("\0")===Me}(e)){let t={...e};return Object.freeze(t),t}return{get:t=>e.get(t)}}var Me=Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var Ne=new URL("http://localhost");function Le(e){if(e.createURL)return e.createURL("/");try{return new URL(e.createHref("/"),Ne)}catch{return Ne}}function Fe(e,t){return e.origin===t.origin&&("null"!==e.origin||e.protocol===t.protocol&&e.host===t.host)}function Be(e,t,r,n){let i=null;try{i=null==e?null:new URL(e,r)}catch{}let o=new URL(t,r),a=null!=i&&!Fe(i,r),s=!Fe(o,r);if("reject"===n){if(a||s)throw new Error("External navigation is not allowed")}else if(s&&(null==i||!function(e,t){if(e.startsWith("//"))return!0;let r=t.protocol.toLowerCase();return!!e.toLowerCase().startsWith(r)&&(""===t.host||e.slice(r.length).startsWith("//"))}(e,i)||!Fe(i,o)))throw new Error("External navigation is not allowed")}var Ue,je,He,Ve,ze=["POST","PUT","PATCH","DELETE"],Ge=new Set(ze),qe=["GET",...ze],$e=new Set(qe),We=new Set([301,302,303,307,308]),Ye=new Set([307,308]),Ke={state:"idle",location:void 0,matches:void 0,historyAction:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},Je={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},Qe={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},Xe=e=>({hasErrorBoundary:Boolean(e.hasErrorBoundary)}),Ze="remix-router-transitions",et=Symbol("ResetLoaderData"),tt=class{constructor(e){s(this,Ue),s(this,je),s(this,He),s(this,Ve),l(this,Ue,e),l(this,je,F(e))}get stableRoutes(){return a(this,Ue)}get activeRoutes(){return a(this,He)??a(this,Ue)}get branches(){return a(this,Ve)??a(this,je)}get hasHMRRoutes(){return null!=a(this,He)}setRoutes(e){l(this,Ue,e),l(this,je,F(e))}setHmrRoutes(e){l(this,He,e),l(this,Ve,F(e))}commitHmrRoutes(){a(this,He)&&(l(this,Ue,a(this,He)),l(this,je,a(this,Ve)),l(this,He,void 0),l(this,Ve,void 0))}};function rt(e){const t=e.window?e.window:"undefined"!=typeof window?window:void 0,r=void 0!==t&&void 0!==t.document&&void 0!==t.document.createElement;v(e.routes.length>0,"You must provide a non-empty routes array to createRouter");let n=e.hydrationRouteProperties||[],i=e.mapRouteProperties||Xe,o=i;if(e.instrumentations){let t=e.instrumentations;o=e=>({...i(e),...Oe(t.map(e=>
11e.route).filter(Boolean),e)})}let a={},s=new tt(P(e.routes,o,void 0,a)),l=e.basename||"/";l.startsWith("/")||(l=`/${l}`);let c,p,d,h=e.dataStrategy||St,f={...e.future},m=null,g=new Set,y=null,b=null,S=null,x=null,I=null!=e.hydrationData,k=N(s.activeRoutes,e.history.location,l,!1,s.branches),R=!1,C=null;if(null!=k||e.patchRoutesOnNavigation){if(k&&!e.hydrationData){Re(k,s.activeRoutes,e.history.location.pathname).active&&(k=null)}if(k)if(k.some(e=>e.route.lazy))c=!1,p=!c;else if(k.some(e=>ut(e.route))){let t=e.hydrationData?e.hydrationData.loaderData:null,r=e.hydrationData?e.hydrationData.errors:null,n=k;if(r){let e=k.findIndex(e=>void 0!==r[e.route.id]);n=n.slice(0,e+1)}p=!1,c=!0,n.forEach(e=>{let n=pt(e.route,t,r);p=p||n.renderFallback,c=c&&!n.shouldLoad})}else c=!0,p=!c;else{c=!1,p=!c,k=[];let t=Re(null,s.activeRoutes,e.history.location.pathname);t.active&&t.matches&&(R=!0,k=t.matches)}}else{let t=$t(404,{pathname:e.history.location.pathname}),{matches:r,route:n}=qt(s.activeRoutes);c=!0,p=!c,k=r,C={[n.id]:t}}let D,M,F={historyAction:e.history.action,location:e.history.location,matches:k,initialized:c,renderFallback:p,navigation:Ke,restoreScrollPosition:null==e.hydrationData&&null,preventScrollReset:!1,revalidation:"idle",loaderData:e.hydrationData&&e.hydrationData.loaderData||{},actionData:e.hydrationData&&e.hydrationData.actionData||null,errors:e.hydrationData&&e.hydrationData.errors||C,fetchers:new Map,blockers:new Map},B="POP",U=null,j=!1,H=!1,V=new Map,z=null,G=!1,q=!1,$=new Set,W=new Map,Y=0,K=-1,J=new Map,Q=new Set,X=new Map,Z=new Map,re=new Set,ne=new Map,ie=null;function oe(e,t={}){e.matches&&(e.matches=e.matches.map(e=>{let t=a[e.route.id],r=e.route;return r.element!==t.element||r.errorElement!==t.errorElement||r.hydrateFallbackElement!==t.hydrateFallbackElement?{...e,route:t}:e})),F={...F,...e};let r=[],n=[];F.fetchers.forEach((e,t)=>{"idle"===e.state&&(re.has(t)?r.push(t):n.push(t))}),re.forEach(e=>{F.fetchers.has(e)||W.has(e)||r.push(e)}),0===g.size&&(y={newErrors:e.errors??null}),[...g].forEach(n=>n(F,{deletedFetchers:r,newErrors:e.errors??null,viewTransitionOpts:t.viewTransitionOpts,flushSync:!0===t.flushSync})),r.forEach(e=>me(F.fetchers,e)),n.forEach(e=>F.fetchers.delete(e))}function ae(t,r,{flushSync:n}={}){let i,o=null!=F.actionData&&null!=F.navigation.formMethod&&sr(F.navigation.formMethod)&&"loading"===F.navigation.state&&!0!==t.state?._isRedirect;i=r.actionData?Object.keys(r.actionData).length>0?r.actionData:null:o?F.actionData:null;let a=r.loaderData?Vt(F.loaderData,r.loaderData,r.matches||[],r.errors):F.loaderData,l=F.blockers;l.size>0&&(l=new Map(l),l.forEach((e,t)=>l.set(t,Qe)));let c,u=!G&&ke(t,r.matches||F.matches),p=!0===j||null!=F.navigation.formMethod&&sr(F.navigation.formMethod)&&!0!==t.state?._isRedirect;if(s.commitHmrRoutes(),G||"POP"===B||("PUSH"===B?e.history.push(t,t.state):"REPLACE"===B&&e.history.replace(t,t.state)),"POP"===B){let e=V.get(F.location.pathname);e&&e.has(t.pathname)?c={currentLocation:F.location,nextLocation:t}:V.has(t.pathname)&&(c={currentLocation:t,nextLocation:F.location})}else if(H){let e=V.get(F.location.pathname);e?e.add(t.pathname):(e=new Set([t.pathname]),V.set(F.location.pathname,e)),c={currentLocation:F.location,nextLocation:t}}oe({...r,actionData:i,loaderData:a,historyAction:B,location:t,initialized:!0,renderFallback:!1,navigation:Ke,revalidation:"idle",restoreScrollPosition:u,preventScrollReset:p,blockers:l},{viewTransitionOpts:c,flushSync:!0===n}),B="POP",j=!1,H=!1,G=!1,q=!1,U?.resolve(),U=null,ie?.resolve(),ie=null}async function se(t,r,i){D&&D.abort(),D=null,B=t,G=!0===(i&&i.startUninterruptedRevalidation),function(e,t){if(b&&x){let r=Ie(e,t);b[r]=x()}}(F.location,F.matches),j=!0===(i&&i.preventScrollReset),H=!0===(i&&i.enableViewTransition);let c=s.activeRoutes,u=i?.initialHydration&&F.matches&&F.matches.length>0&&!R?F.matches:N(c,r,l,!1,s.branches),p=!0===(i&&i.flushSync);if(u&&F.initialized&&!q&&function(e,t){if(e.pathname!==t.pathname||e.search!==t.search)return!1;if(""===e.hash)return""!==t.hash;if(e.hash===t.hash)return!0;if(""!==t.hash)return!0;return!1}(F.location,r)&&!(i&&i.submission&&sr(i.submission.formMethod)))return void ae(r,{matches:u},{flushSync:p});let d=Re(u,c,r.pathname);if(d.active&&d.matches&&(u=d.matches),!u){let{error:e,notFoundMatches:t,route:n}=we(r.pathname);return void ae(r,{matches:t,loaderData:{},errors:{[n.id]:e}},{flushSync:p})}let h=i&&i.overrideNavigation?{...i.overrideNavigation,matches:u,historyAction:t}:void 0;D=new AbortController;let f,m=Lt(e.history,r,D.signal,i&&i.submission),g=e.getContext?await e.getContext():new A;if(i&&i.pendingError)f=[Gt(u).route.id,{type:"error",error:i.pendingError}];else if(i&&i.submission&&sr(i.submission.formMethod)){let c=await async function(t,r,i,c,u,p,d,h,f={}){de();let m,g=function(e,t,r,n){let i={state:"submitting",location:e,matches:t,historyAction:r,formMethod:n.formMethod,formAction:n.formAction,formEncType:n.formEncType,formData:n.formData,json:n.json,text:n.text};return i}(r,c,u,i);if(oe({navigation:g},{flushSync:!0===f.flushSync}),d){let e=await Pe(c,r.pathname,t.signal);if("aborted"===e.type)return{shortCircuited:!0};if("error"===e.type){if(0===e.partialMatches.length){let{matches:t,route:r}=qt(s.activeRoutes);
11return{matches:t,pendingActionResult:[r.id,{type:"error",error:e.error}]}}let t=Gt(e.partialMatches).route.id;return{matches:e.partialMatches,pendingActionResult:[t,{type:"error",error:e.error}]}}if(!e.matches){let{notFoundMatches:e,error:t,route:n}=we(r.pathname);return{matches:e,pendingActionResult:[n.id,{type:"error",error:t}]}}c=e.matches}let y=cr(c,r);if(y.route.action||y.route.lazy){let e=At(o,a,t,r,c,y,h?[]:n,p),i=await ue(t,r,e,p,null);if(m=i[y.route.id],!m)for(let e of c)if(i[e.route.id]){m=i[e.route.id];break}if(t.signal.aborted)return{shortCircuited:!0}}else m={type:"error",error:$t(405,{method:t.method,pathname:r.pathname,routeId:y.route.id})};if(tr(m)){let r;if(f&&null!=f.replace)r=f.replace;else{r=Nt(m.response.headers.get("Location"),new URL(t.url),l,e.history)===F.location.pathname+F.location.search}return await ce(t,m,!0,{submission:i,replace:r}),{shortCircuited:!0}}if(er(m)){let e=Gt(c,y.route.id);return!0!==(f&&f.replace)&&(B="PUSH"),{matches:c,pendingActionResult:[e.route.id,m,y.route.id]}}return{matches:c,pendingActionResult:[y.route.id,m]}}(m,r,i.submission,u,t,g,d.active,i&&!0===i.initialHydration,{replace:i.replace,flushSync:p});if(c.shortCircuited)return;if(c.pendingActionResult){let[e,t]=c.pendingActionResult;if(er(t)&&Se(t.error)&&404===t.error.status)return D=null,void ae(r,{matches:c.matches,loaderData:{},errors:{[e]:t.error}})}u=c.matches||u,f=c.pendingActionResult,h=pr(r,u,t,i.submission),p=!1,d.active=!1,m=Lt(e.history,m.url,m.signal)}let{shortCircuited:y,matches:v,loaderData:_,errors:S,workingFetchers:E}=await async function(t,r,i,c,u,p,d,h,f,m,g,y,b,v){let _=d||pr(r,i,c,h),S=h||f||ur(_),E=!G&&!g;if(p){if(E){let e=le(b);oe({navigation:_,...void 0!==e?{actionData:e}:{}},{flushSync:y})}let e=await Pe(i,r.pathname,t.signal);if("aborted"===e.type)return{shortCircuited:!0};if("error"===e.type){if(0===e.partialMatches.length){let{matches:t,route:r}=qt(s.activeRoutes);return{matches:t,loaderData:{},errors:{[r.id]:e.error}}}let t=Gt(e.partialMatches).route.id;return{matches:e.partialMatches,loaderData:{},errors:{[t]:e.error}}}if(!e.matches){let{error:e,notFoundMatches:t,route:n}=we(r.pathname);return{matches:t,loaderData:{},errors:{[n.id]:e}}}i=e.matches}let T=s.activeRoutes,{dsMatches:w,revalidatingFetchers:x}
11=ct(t,u,o,a,e.history,F,i,S,r,g?[]:n,!0===g,q,$,re,X,Q,T,l,null!=e.patchRoutesOnNavigation,s.branches,b,v);if(K=++Y,!e.dataStrategy&&!w.some(e=>e.shouldLoad)&&!w.some(e=>e.route.middleware&&e.route.middleware.length>0)&&0===x.length){let e=new Map(F.fetchers),t=be(e);return ae(r,{matches:i,loaderData:{},errors:b&&er(b[1])?{[b[0]]:b[1].error}:null,...zt(b),...t?{fetchers:e}:{}},{flushSync:y}),{shortCircuited:!0}}if(E){let e={};if(!p){e.navigation=_;let t=le(b);void 0!==t&&(e.actionData=t)}x.length>0&&(e.fetchers=function(e){let t=new Map(F.fetchers);return e.forEach(e=>{let r=t.get(e.key),n=dr(void 0,r?r.data:void 0);t.set(e.key,n)}),t}(x)),oe(e,{flushSync:y})}x.forEach(e=>{ge(e.key),e.controller&&W.set(e.key,e.controller)});let O=()=>x.forEach(e=>ge(e.key));D&&D.signal.addEventListener("abort",O);let{loaderResults:I,fetcherResults:A}=await pe(w,x,t,r,u);if(t.signal.aborted)return{shortCircuited:!0};D&&D.signal.removeEventListener("abort",O);x.forEach(e=>W.delete(e.key));let k=Wt(I);if(k)return await ce(t,k.result,!0,{replace:m}),{shortCircuited:!0};if(k=Wt(A),k)return Q.add(k.key),await ce(t,k.result,!0,{replace:m}),{shortCircuited:!0};let R=new Map(F.fetchers),{loaderData:C,errors:P}=Ht(F,i,I,b,x,A,R);g&&F.errors&&(P={...F.errors,...P});let M=be(R),N=ve(K,R),L=M||N||x.length>0;return{matches:i,loaderData:C,errors:P,...L?{workingFetchers:R}:{}}}(m,r,u,t,g,d.active,h,i&&i.submission,i&&i.fetcherSubmission,i&&i.replace,i&&!0===i.initialHydration,p,f,i&&i.callSiteDefaultShouldRevalidate);y||(D=null,ae(r,{matches:v||u,...zt(f),loaderData:_,errors:S,...E?{fetchers:E}:{}}))}function le(e){return e&&!er(e[1])?{[e[0]]:e[1].data}:F.actionData?0===Object.keys(F.actionData).length?null:F.actionData:void 0}async function ce(n,i,o,{submission:a,fetcherSubmission:s,preventScrollReset:c,replace:u}={}){o||(U?.resolve(),U=null),i.response.headers.has("X-Remix-Revalidate")&&(q=!0);let p=i.response.headers.get("Location");v(p,"Expected a Location header on the redirect Response");let d=p,h=new URL(n.url);p=Nt(p,h,l,e.history),Be(d,p,h,"allow-explicit");let f=E(F.location,p,{_isRedirect:!0});if(r){let e=!1;if(i.response.headers.has("X-Remix-Reload-Document"))e=!0;else if(te(p)){const r=O(t,p,!0);e=r.origin!==t.location.origin||null==ee(r.pathname,l)}if(e)return void(u?t.location.replace(p):t.location.assign(p))}D=null;let m=!0===u||i.response.headers.has("X-Remix-Replace")?"REPLACE":"PUSH",{formMethod:g,formAction:y,formEncType:b}=F.navigation;!a&&!s&&g&&y&&b&&(a=ur(F.navigation));let _=a||s;if(Ye.has(i.response.status)&&_&&sr(_.formMethod))await se(m,f,{submission:{..._,formAction:p},preventScrollReset:c||j,enableViewTransition:o?H:void 0});else{let e=pr(f,[],m,a);await se(m,f,{overrideNavigation:e,fetcherSubmission:s,preventScrollReset:c||j,enableViewTransition:o?H:void 0})}}async function ue(e,t,r,n,i){let o,a={};try{o=await kt(h,e,t,r,i,n,!1)}catch(e){return r.filter(e=>e.shouldLoad).forEach(t=>{a[t.route.id]={type:"error",error:e}}),a}if(e.signal.aborted)return a;if(!sr(e.method))for(let e of r){if("error"===o[e.route.id]?.type)break;o.hasOwnProperty(e.route.id)||F.loaderData.hasOwnProperty(e.route.id)||F.errors&&F.errors.hasOwnProperty(e.route.id)||!e.shouldCallHandler()||(o[e.route.id]={type:"error",result:new Error(`No result returned from dataStrategy for route ${e.route.id}`)})}for(let[t,n]of Object.entries(o))if(Zt(n)){let i=n.result;a[t]={type:"redirect",response:Pt(i,e,t,r,l)}}else a[t]=await Ct(n);return a}async function pe(e,t,r,n,i){let o=ue(r,n,e,i,null),a=Promise.all(t.map(async e=>{if(e.matches&&e.match&&e.request&&e.controller){let t=(await ue(e.request,e.path,e.matches,i,e.key))[e.match.route.id];return{[e.key]:t}}return Promise.resolve({[e.key]:{type:"error",error:$t(404,{pathname:e.path})}})}));return{loaderResults:await o,fetcherResults:(await a).reduce((e,t)=>Object.assign(e,t),{})}}function de(){q=!0,X.forEach((e,t)=>{W.has(t)&&$.add(t),ge(t)})}function he(e,t,r={}){let n=new Map(F.fetchers);n.set(e,t),oe({fetchers:n},{flushSync:!0===(r&&r.flushSync)})}function fe(e,t,r,n={}){let i=Gt(F.matches,t),o=new Map(F.fetchers);me(o,e),oe({errors:{[i.route.id]:r},fetchers:o},{flushSync:!0===(n&&n.flushSync)})}function me(e,t){let r=F.fetchers.get(t);!W.has(t)||r&&"loading"===r.state&&J.has(t)||ge(t),X.delete(t),J.delete(t),Q.delete(t),re.delete(t),$.delete(t),e.delete(t)}function ge(e,t){let r=W.get(e);r&&(r.abort(t),W.delete(e))}function ye(e,t){for(let r of e){let e=t.get(r);v(e,`Expected fetcher: ${r}`);let n=hr(e.data);t.set(r,n)}}function be(e){let t=[],r=!1;for(let n of Q){let i=e.get(n);v(i,`Expected fetcher: ${n}`),"loading"===i.state&&(Q.delete(n),t.push(n),r=!0)}return ye(t,e),r}function ve(e,t){let r=[];for(let[n,i]of J)if(i<e){let e=t.get(n);v(e,`Expected fetcher: ${n}`),"loading"===e.state&&(ge(n),J.delete(n),r.push(n))}return ye(r,t),r.length>0}function _e(e){F.blockers.delete(e),ne.delete(e)}function Ee(e,t){let r=F.blockers.get(e)||Qe;v("unblocked"===r.state&&"blocked"===t.state||"blocked"===r.state&&"blocked"===t.state||"blocked"===r.state&&"proceeding"===t.state||"blocked"===r.state&&"unblocked"===t.state||"proceeding"===r.state&&"unblocked"===t.state,`Invalid blocker state transition: ${r.state} -> ${t.state}`);let n=new Map(F.blockers);n.set(e,t),oe({blockers:n})}function Te({currentLocation:e,nextLocation:t,historyAction:r}){if(0===ne.size)return;ne.size>1&&_(!1,"A router only supports one blocker at a time");let n=Array.from(ne.entries()),[i,o]=n[n.length-1],a=F.blockers.get(i);return a&&"proceeding"===a.state?void 0:o({currentLocation:e,nextLocation:t,historyAction:r})?i:void 0}function we(e){let t=$t(404,{pathname:e}),r=s.activeRoutes,{matches:n,route:i}=qt(r);return{notFoundMatches:n,route:i,error:t}}function Ie(e,t){if(S){return S(e,t.map(e=>L(e,F.loaderData)))||e.key}return e.key}function ke(e,t){if(b){let r=Ie(e,t),n=b[r];if("number"==typeof n)return n}return null}function Re(t,r,n){if(e.patchRoutesOnNavigation){let e=s.branches;if(!t){return{active:!0,matches:N(r,n,l,!0,e)||[]}}if(Object.keys(t[0].params).length>0){return{active:!0,matches:N(r,n,l,!0,e)}}}return{active:!1,matches:null}}async function Pe(t,r,n,i){if(!e.patchRoutesOnNavigation)return{type:"success",matches:t};let c=t;
11for(;;){let t=a;try{await e.patchRoutesOnNavigation({signal:n,path:r,matches:c,fetcherKey:i,patch:(e,r)=>{n.aborted||ht(e,r,s,t,o,!1)}})}catch(e){return{type:"error",error:e,partialMatches:c}}if(n.aborted)return{type:"aborted"};let u=s.branches,p=N(s.activeRoutes,r,l,!1,u),d=null;if(p){if(0===Object.keys(p[0].params).length)return{type:"success",matches:p};if(d=N(s.activeRoutes,r,l,!0,u),!(d&&c.length<d.length&&De(c,d.slice(0,c.length))))return{type:"success",matches:p}}if(d||(d=N(s.activeRoutes,r,l,!0,u)),!d||De(c,d))return{type:"success",matches:null};c=d}}function De(e,t){return e.length===t.length&&e.every((e,r)=>e.route.id===t[r].route.id)}return d={get basename(){return l},get future(){return f},get state(){return F},get routes(){return s.stableRoutes},get branches(){return s.branches},get manifest(){return a},get window(){return t},initialize:function(){if(m=e.history.listen(({action:t,location:r,delta:n})=>{if(M)return M(),void(M=void 0);_(0===ne.size||null!=n,"You are trying to use a blocker on a POP navigation to a location that was not created by @remix-run/router. This will fail silently in production. This can happen if you are navigating outside the router via `window.history.pushState`/`window.location.hash` instead of using router navigation APIs.  This can also happen if you are using createHashRouter and the user manually changes the URL.");let i=Te({currentLocation:F.location,nextLocation:r,historyAction:t});if(i&&null!=n){let t=new Promise(e=>{M=e});return e.history.go(-1*n),Ee(i,{state:"blocked",location:r,proceed(){Ee(i,{state:"proceeding",proceed:void 0,reset:void 0,location:r}),t.then(()=>e.history.go(n))},reset(){let e=new Map(F.blockers);e.set(i,Qe),oe({blockers:e})}}),U?.resolve(),void(U=null)}return se(t,r)}),r){!function(e,t){try{let r=e.sessionStorage.getItem(Ze);if(r){let e=JSON.parse(r);for(let[r,n]of Object.entries(e||{}))n&&Array.isArray(n)&&t.set(r,new Set(n||[]))}}catch(e){}}(t,V);let e=()=>function(e,t){if(t.size>0){let r={};for(let[e,n]of t)r[e]=[...n];try{e.sessionStorage.setItem(Ze,JSON.stringify(r))}catch(e){_(!1,`Failed to save applied view transitions in sessionStorage (${e}).`)}}}(t,V);t.addEventListener("pagehide",e),z=()=>t.removeEventListener("pagehide",e)}return F.initialized||se("POP",F.location,{initialHydration:!0}),d},subscribe:function(e){if(g.add(e),y){let{newErrors:t}=y;y=null,e(F,{deletedFetchers:[],newErrors:t,viewTransitionOpts:void 0,flushSync:!1})}return()=>g.delete(e)},enableScrollRestoration:function(e,t,r){if(b=e,x=t,S=r||null,!I&&F.navigation===Ke){I=!0;let e=ke(F.location,F.matches);null!=e&&oe({restoreScrollPosition:e})}return()=>{b=null,x=null,S=null}},navigate:async function t(r,n){if(U?.resolve(),U=null,"number"==typeof r){U||(U=fr());let t=U.promise;return e.history.go(r),t}let i,o=st(F.location,F.matches,l,r,n?.fromRouteId,n?.relative),{path:a,submission:s,error:c}=lt(!1,o,n);if(n?.mask){let t="string"==typeof n.mask?w(n.mask):{...F.location.mask,...n.mask};if(i={pathname:t.pathname??"",search:t.search??"",hash:t.hash??""},u.test(i.pathname))throw new Error("External navigation is not allowed");i.pathname.startsWith("\\")&&(i.pathname=i.pathname.replace(/^\\+/,"/")),Be("string"==typeof n.mask?n.mask:T(n.mask),T(i),e.history.createURL("/"),"reject")}let p=F.location,d=E(p,a,n&&n.state,void 0,i);d={...d,...e.history.encodeLocation(d)},Be(null==r?e.history.createHref(F.location):"string"==typeof r?r:T(r),e.history.createHref(d.mask||d),e.history.createURL("/"),"reject");let h=n&&null!=n.replace?n.replace:void 0,f="PUSH";!0===h?f="REPLACE":!1===h||null!=s&&sr(s.formMethod)&&s.formAction===F.location.pathname+F.location.search&&(f="REPLACE");let m=n&&"preventScrollReset"in n?!0===n.preventScrollReset:void 0,g=!0===(n&&n.flushSync),y=Te({currentLocation:p,nextLocation:d,historyAction:f});y?Ee(y,{state:"blocked",location:d,proceed(){Ee(y,{state:"proceeding",proceed:void 0,reset:void 0,location:d}),t(r,n)},reset(){let e=new Map(F.blockers);e.set(y,Qe),oe({blockers:e})}}):await se(f,d,{submission:s,pendingError:c,preventScrollReset:m,replace:n&&n.replace,enableViewTransition:n&&n.viewTransition,flushSync:g,callSiteDefaultShouldRevalidate:n&&n.defaultShouldRevalidate})},fetch:async function(t,r,i,c){ge(t);let u=!0===(c&&c.flushSync),p=s.activeRoutes,d=st(F.location,F.matches,l,i,r,c?.relative),h=N(p,d,l,!1,s.branches),f=Re(h,p,d);if(f.active&&f.matches&&(h=f.matches),!h)return void fe(t,r,$t(404,{pathname:d}),{flushSync:u});let{path:m,submission:g,error:y}=lt(!0,d,c);if(y)return void fe(t,r,y,{flushSync:u});let b=e.getContext?await e.getContext():new A,_=!0===(c&&c.preventScrollReset);g&&sr(g.formMethod)?await async function(t,r,i,c,u,p,d,h,f,m){de(),X.delete(t);let g=F.fetchers.get(t);he(t,function(e,t){let r={state:"submitting",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t?t.data:void 0};return r}(f,g),{flushSync:d});let y=new AbortController,b=Lt(e.history,i,y.signal,f);if(p){let e=await Pe(c,new URL(b.url).pathname,b.signal,t);if("aborted"===e.type)return;if("error"===e.type)return void fe(t,r,e.error,{flushSync:d});if(!e.matches)return void fe(t,r,$t(404,{pathname:i}),{flushSync:d});c=e.matches}let _=cr(c,i);if(!_.route.action&&!_.route.lazy){let e=$t(405,{method:f.formMethod,pathname:i,routeId:r});return void fe(t,r,e,{flushSync:d})}W.set(t,y);let S=Y,E=At(o,a,b,i,c,_,n,u),T=await ue(b,i,E,u,t),w=T[_.route.id];if(!w)for(let e of E)if(T[e.route.id]){w=T[e.route.id];break}if(b.signal.aborted)return void(W.get(t)===y&&W.delete(t));if(re.has(t)){if(tr(w)||er(w))return void he(t,hr(void 0))}else{if(tr(w))return W.delete(t),K>S?void he(t,hr(void 0)):(Q.add(t),he(t,dr(f)),ce(b,w,!1,{fetcherSubmission:f,preventScrollReset:h}));if(er(w))return void fe(t,r,w.error)}let x=F.navigation.location||F.location,O=Lt(e.history,x,y.signal),I=s.activeRoutes,A="idle"!==F.navigation.state?N(I,F.navigation.location,l,!1,s.branches):F.matches;v(A,"Didn't find any matches after fetcher action");let k=++Y;J.set(t,k);let{dsMatches:R,revalidatingFetchers:C}
11=ct(O,u,o,a,e.history,F,A,f,x,n,!1,q,$,re,X,Q,I,l,null!=e.patchRoutesOnNavigation,s.branches,[_.route.id,w],m),P=dr(f,w.data),M=new Map(F.fetchers);M.set(t,P),C.filter(e=>e.key!==t).forEach(e=>{let t=e.key,r=M.get(t),n=dr(void 0,r?r.data:void 0);M.set(t,n),ge(t),e.controller&&W.set(t,e.controller)}),oe({fetchers:M});let L=()=>C.forEach(e=>ge(e.key));y.signal.addEventListener("abort",L);let{loaderResults:U,fetcherResults:j}=await pe(R,C,O,x,u);if(y.signal.aborted)return;y.signal.removeEventListener("abort",L),J.delete(t),W.delete(t),C.forEach(e=>W.delete(e.key));let H=F.fetchers.has(t),V=e=>{if(!H)return e;let r=new Map(e.fetchers);return r.set(t,hr(w.data)),{...e,fetchers:r}},z=Wt(U);if(z)return F=V(F),ce(O,z.result,!1,{preventScrollReset:h});if(z=Wt(j),z)return Q.add(z.key),F=V(F),ce(O,z.result,!1,{preventScrollReset:h});let G=new Map(F.fetchers);H&&G.set(t,hr(w.data));let{loaderData:Z,errors:ee}=Ht(F,A,U,void 0,C,j,G);ve(k,G),"loading"===F.navigation.state&&k>K?(v(B,"Expected pending action"),D&&D.abort(),ae(F.navigation.location,{matches:A,loaderData:Z,errors:ee,fetchers:G})):(oe({errors:ee,loaderData:Vt(F.loaderData,Z,A,ee),fetchers:G}),q=!1)}(t,r,m,h,b,f.active,u,_,g,c&&c.defaultShouldRevalidate):(X.set(t,{routeId:r,path:m}),await async function(t,r,i,s,l,c,u,p,d){let h=F.fetchers.get(t);he(t,dr(d,h?h.data:void 0),{flushSync:u});let f=new AbortController,m=Lt(e.history,i,f.signal);if(c){let e=await Pe(s,new URL(m.url).pathname,m.signal,t);if("aborted"===e.type)return;if("error"===e.type)return void fe(t,r,e.error,{flushSync:u});if(!e.matches)return void fe(t,r,$t(404,{pathname:i}),{flushSync:u});s=e.matches}let g=cr(s,i);W.set(t,f);let y=Y,b=At(o,a,m,i,s,g,n,l),v=await ue(m,i,b,l,t),_=v[g.route.id];if(!_)for(let e of s)if(v[e.route.id]){_=v[e.route.id];break}W.get(t)===f&&W.delete(t);if(m.signal.aborted)return;if(re.has(t))return void he(t,hr(void 0));if(tr(_))return K>y?void he(t,hr(void 0)):(Q.add(t),void await ce(m,_,!1,{preventScrollReset:p}));if(er(_))return void fe(t,r,_.error);he(t,hr(_.data))}(t,r,m,h,b,f.active,u,_,g))},revalidate:function(){ie||(ie=fr()),de(),oe({revalidation:"loading"});let e=ie.promise;return"submitting"===F.navigation.state?e:"idle"===F.navigation.state?(se(F.historyAction,F.location,{startUninterruptedRevalidation:!0}),e):(se(B||F.historyAction,F.navigation.location,{overrideNavigation:F.navigation,enableViewTransition:!0===H}),e)},createHref:t=>e.history.createHref(t),createURL:t=>e.history.createURL(t),encodeLocation:t=>e.history.encodeLocation(t),getFetcher:function(e){return Z.set(e,(Z.get(e)||0)+1),re.has(e)&&re.delete(e),F.fetchers.get(e)||Je},resetFetcher:function(e,t){ge(e,t?.reason),he(e,hr(null))},deleteFetcher:function(e){let t=(Z.get(e)||0)-1;t<=0?(Z.delete(e),re.add(e)):Z.set(e,t),oe({fetchers:new Map(F.fetchers)})},dispose:function(){m&&m(),z&&z(),g.clear(),D&&D.abort(),F.fetchers.forEach((e,t)=>me(F.fetchers,t)),F.blockers.forEach((e,t)=>_e(t))},getBlocker:function(e,t){let r=F.blockers.get(e)||Qe;return ne.get(e)!==t&&ne.set(e,t),r},deleteBlocker:_e,patchRoutes:function(e,t,r=!1){ht(e,t,s,a,o,r),s.hasHMRRoutes||oe({})},_internalFetchControllers:W,_internalSetRoutes:function(e){a={},s.setHmrRoutes(P(e,o,void 0,a))},_internalSetStateDoNotUseOrYouWillBreakYourApp(e){oe(e)}},e.instrumentations&&(d=function(e,t){let r={navigate:[],fetch:[]};if(t.forEach(e=>e({instrument(e){let t=Object.keys(e);for(let n of t)e[n]&&r[n].push(e[n])}})),r.navigate.length>0){let t=e.navigate[xe]??e.navigate,n=Ae(r.navigate,t,(...t)=>{let[r,n]=t;return{to:"number"==typeof r||"string"==typeof r?r:r?T(r):".",...Ce(e,n??{})}});n&&(n[xe]=t,e.navigate=n)}if(r.fetch.length>0){let t=e.fetch[xe]??e.fetch,n=Ae(r.fetch,t,(...t)=>{let[r,,n,i]=t;return{href:n??".",fetcherKey:r,...Ce(e,i??{})}});n&&(n[xe]=t,e.fetch=n)}return e}(d,e.instrumentations.map(e=>e.router).filter(Boolean))),d}function nt(e,t){v(e.length>0,"You must provide a non-empty routes array to createStaticHandler");let r={},n=(t?t.basename:null)||"/",i=t?.mapRouteProperties||Xe,o=i;if(t?.instrumentations){let e=t.instrumentations;o=t=>({...i(t),...Oe(e.map(e=>
11e.route).filter(Boolean),t)})}let a=P(e,o,void 0,r),s=F(a);async function l(e,t,n,i,a,s,l,p,d){v(e.signal,"query()/queryRoute() requests must contain an AbortController signal");try{if(sr(e.method)){let h=await async function(e,t,n,i,a,s,l,p,d,h){let f;if(i.route.action||i.route.lazy){let l=At(o,r,e,t,n,i,[],a);f=(await u(e,t,l,p,a,s))[i.route.id],e.signal.aborted&&ot(e,p)}else{let t=$t(405,{method:e.method,pathname:new URL(e.url).pathname,routeId:i.route.id});if(p)throw t;f={type:"error",error:t}}if(tr(f))throw new Response(null,{status:f.response.status,headers:{Location:f.response.headers.get("Location")}});if(p){if(er(f))throw f.error;return{matches:[i],loaderData:{},actionData:{[i.route.id]:f.data},errors:null,statusCode:200,loaderHeaders:{},actionHeaders:{}}}if(h){if(er(f)){let e=l?i:Gt(n,i.route.id);return{statusCode:Se(f.error)?f.error.status:null!=f.statusCode?f.statusCode:500,actionData:null,actionHeaders:{...f.headers?{[i.route.id]:f.headers}:{}},matches:n,loaderData:{},errors:{[e.route.id]:f.error},loaderHeaders:{}}}return{actionData:{[i.route.id]:f.data},actionHeaders:f.headers?{[i.route.id]:f.headers}:{},matches:n,loaderData:{},errors:null,statusCode:f.statusCode||200,loaderHeaders:{}}}let m=new Request(e.url,{headers:e.headers,redirect:e.redirect,signal:e.signal});if(er(f)){let e=l?i:Gt(n,i.route.id);return{...await c(m,t,n,a,s,l,null,d,[e.route.id,f]),statusCode:Se(f.error)?f.error.status:null!=f.statusCode?f.statusCode:500,actionData:null,actionHeaders:{...f.headers?{[i.route.id]:f.headers}:{}}}}let g=await c(m,t,n,a,s,l,null,d);return{...g,actionData:{[i.route.id]:f.data},...f.statusCode?{statusCode:f.statusCode}:{},actionHeaders:f.headers?{[i.route.id]:f.headers}:{}}}(e,t,n,l||cr(n,t),i,a,s,null!=l,p,d);return h}let h=await c(e,t,n,i,a,s,l,p);return nr(h)?h:{...h,actionData:null,actionHeaders:{}}}catch(e){if(Xt(e)&&nr(e.result)){if("error"===e.type)throw e.result;return e.result}if(or(e))return e;throw e}}async function c(e,t,n,i,a,s,l,c,p){let d,h=null!=l;if(h&&!l?.route.loader&&!l?.route.lazy)throw $t(400,{method:e.method,pathname:new URL(e.url).pathname,routeId:l?.route.id});if(l)d=At(o,r,e,t,n,l,[],i);else{let a=p&&er(p[1])?n.findIndex(e=>e.route.id===p[0])-1:void 0,s=Ee(n);d=n.map((n,l)=>It(o,r,e,t,s,n,[],i,!(null!=a&&l>a)&&(null!=(n.route.loader||n.route.lazy)&&(!c||c(n)))))}if(!a&&!d.some(e=>e.shouldLoad))return{matches:n,loaderData:{},errors:p&&er(p[1])?{[p[0]]:p[1].error}:null,statusCode:200,loaderHeaders:{}};let f=await u(e,t,d,h,i,a);return e.signal.aborted&&ot(e,h),{...jt(n,f,p,!0,s),matches:n}}async function u(e,t,r,i,o,a){let s=await kt(a||_t,e,t,r,null,o,!0),l={};return await Promise.all(r.map(async t=>{if(!(t.route.id in s))return;let o=s[t.route.id];if(Zt(o)){throw Pt(o.result,e,t.route.id,r,n)}if(i){if(nr(o.result))throw o;if(rr(o.result))throw Kt(o.result)}l[t.route.id]=await Ct(o)})),l}return{dataRoutes:a,_internalRouteBranches:s,query:async function(e,{requestContext:t,filterMatchesToLoad:i,skipLoaderErrorBubbling:c,skipRevalidation:u,dataStrategy:p,generateMiddlewareResponse:d,normalizePath:h}={}){let f=h||at,m=e.method,g=E("",f(e),null,"default"),y=N(a,g,n,!1,s);if(t=null!=t?t:new A,!ar(m)&&"HEAD"!==m){let e=$t(405,{method:m}),{matches:t,route:r}=qt(a),i={basename:n,location:g,matches:t,loaderData:{},actionData:null,errors:{[r.id]:e},statusCode:e.status,loaderHeaders:{},actionHeaders:{}};return d?d(()=>Promise.resolve(i)):i}if(!y){let e=$t(404,{pathname:g.pathname}),{matches:t,route:r}=qt(a),i={basename:n,location:g,matches:t,loaderData:{},actionData:null,errors:{[r.id]:e},statusCode:e.status,loaderHeaders:{},actionHeaders:{}};return d?d(()=>Promise.resolve(i)):i}if(d){v(t instanceof A,"When using middleware in `staticHandler.query()`, any provided `requestContext` must be an instance of `RouterContextProvider`");try{let s;await vt(y,r,o);let h=await Et({request:e,url:Ft(e,g),pattern:Ee(y),matches:y,params:y[0].params,context:t},async()=>await d(async(e,r={})=>{let o=await l(e,g,y,t,p||null,!0===c,null,"filterMatchesToLoad"in r?r.filterMatchesToLoad??null:i??null,!0===u);return nr(o)?o:(s={location:g,basename:n,...o},s)}),async(e,t)=>{if(or(e))return e;if(nr(e))try{e=new _e(e.status,e.statusText,await Rt(e))}catch(t){e=t}if(rr(e)&&(e=Jt(e)),s){t in s.loaderData&&(s.loaderData[t]=void 0);let r=it(a,s,e,c?t:Gt(y,t).route.id);return d(()=>Promise.resolve(r))}{let r=c?t:Gt(y,y.find(e=>e.route.id===t||e.route.loader)?.route.id||t).route.id,i={matches:y,location:g,basename:n,loaderData:{},actionData:null,errors:{[r]:e},statusCode:Se(e)?e.status:500,actionHeaders:{},loaderHeaders:{}};return d(()=>Promise.resolve(i))}});return v(nr(h),"Expected a response in query()"),h}catch(e){if(nr(e))return e;throw e}}let b=await l(e,g,y,t,p||null,!0===c,null,i||null,!0===u);return nr(b)?b:{location:g,basename:n,...b}},queryRoute:async function(e,{routeId:t,requestContext:i,dataStrategy:c,generateMiddlewareResponse:u,normalizePath:p}={}){let d=p||at,h=e.method,f=E("",d(e),null,"default"),m=N(a,f,n,!1,s);if(i=null!=i?i:new A,!ar(h)&&"HEAD"!==h&&"OPTIONS"!==h)throw $t(405,{method:h});if(!m)throw $t(404,{pathname:f.pathname});let g=t?m.find(e=>e.route.id===t):cr(m,f);if(t&&!g)throw $t(403,{pathname:f.pathname,routeId:t});if(!g)throw $t(404,{pathname:f.pathname});if(u){return v(i instanceof A,"When using middleware in `staticHandler.queryRoute()`, any provided `requestContext` must be an instance of `RouterContextProvider`"),await vt(m,r,o),await Et({request:e,url:Ft(e,f),pattern:Ee(m),matches:m,params:m[0].params,context:i},async()=>await u(async e=>{let t=y(await l(e,f,m,i,c||null,!1,g,null,!1));return nr(t)?t:"string"==typeof t?new Response(t):Response.json(t)}),e=>{if(rr(e))return Promise.resolve(Kt(e));if(nr(e))return Promise.resolve(e);throw e})}return y(await l(e,f,m,i,c||null,!1,g,null,!1));function y(e){if(nr(e))return e;let t=e.errors?Object.values(e.errors)[0]:void 0;if(void 0!==t)throw t;return e.actionData?Object.values(e.actionData)[0]:e.loaderData?Object.values(e.loaderData)[0]:void 0}}}}function it(e,t,r,n){let i=n||t._deepestRenderedBoundaryId||e[0].id;return{...t,statusCode:Se(r)?r.status:500,errors:{[i]:r}}}function ot(e,t){if(void 0!==e.signal.reason)throw e.signal.reason;throw new Error(`${t?"queryRoute":"query"}() call aborted without an \`AbortSignal.reason\`: ${e.method} ${e.url}`)}function at(e){let t=new URL(e.url);return{pathname:t.pathname,search:t.search,hash:t.hash}}function st(e,t,r,n,i,o){let a,s;if(i){a=[];for(let e of t)if(a.push(e),e.route.id===i){s=e;break}}else a=t,s=t[t.length-1];let l=se(n||".",ae(a),ee(e.pathname,r)||e.pathname,"path"===o);if(null==n&&(l.search=e.search,l.hash=e.hash),(null==n||""===n||"."===n)&&s){let e=lr(l.search);if(s.route.index&&!e)l.search=l.search?l.search.replace(/^\?/,"?index&"):"?index";else if(!s.route.index&&e){let e=new URLSearchParams(l.search),t=e.getAll("index");e.delete("index"),t.filter(e=>e).forEach(t=>e.append("index",t));let r=e.toString();l.search=r?`?${r}`:""}}return"/"!==r&&(l.pathname=function({basename:e,pathname:t}){return"/"===t?e:ce([e,t])}({basename:r,pathname:l.pathname})),T(l)}function lt(e,t,r){if(!r||!function(e){return null!=e&&("formData"in e&&null!=e.formData||"body"in e&&void 0!==e.body)}(r))return{path:t};if(r.formMethod&&!ar(r.formMethod))return{path:t,error:$t(405,{method:r.formMethod})};let n,i,o=()=>({path:t,error:$t(400,{type:"invalid-body"})}),a=(r.formMethod||"get").toUpperCase(),s=Yt(t);if(void 0!==r.body){if("text/plain"===r.formEncType){if(!sr(a))return o();let e="string"==typeof r.body?r.body:r.body instanceof FormData||r.body instanceof URLSearchParams?Array.from(r.body.entries()).reduce((e,[t,r])=>`${e}${t}=${r}\n`,""):String(r.body);return{path:t,submission:{formMethod:a,formAction:s,formEncType:r.formEncType,formData:void 0,json:void 0,text:e}}}if("application/json"===r.formEncType){if(!sr(a))return o();try{let e="string"==typeof r.body?JSON.parse(r.body):r.body;return{path:t,submission:{formMethod:a,formAction:s,formEncType:r.formEncType,formData:void 0,json:e,text:void 0}}}catch(e){return o()}}}if(v("function"==typeof FormData,"FormData is not available in this environment"),r.formData)n=Bt(r.formData),i=r.formData;else if(r.body instanceof FormData)n=Bt(r.body),i=r.body;else if(r.body instanceof URLSearchParams)n=r.body,i=Ut(n);else if(null==r.body)n=new URLSearchParams,i=new FormData;else try{n=new URLSearchParams(r.body),i=Ut(n)}catch(e){return o()}let l={formMethod:a,formAction:s,formEncType:r&&r.formEncType||"application/x-www-form-urlencoded",formData:i,json:void 0,text:void 0};if(sr(l.formMethod))return{path:t,submission:l};let c=w(t);return e&&c.search&&lr(c.search)&&n.append("index",""),c.search=`?${n}`,{path:T(c),submission:l}}function ct(e,t,r,n,i,o,a,s,l,c,u,p,d,h,f,m,g,y,b,v,_,S){let E,T=_?er(_[1])?_[1].error:_[1].data:void 0,w=i.createURL(o.location),x=i.createURL(l);if(u&&o.errors){let e=Object.keys(o.errors)[0];E=a.findIndex(t=>t.route.id===e)}else if(_&&er(_[1])){let e=_[0];E=a.findIndex(t=>t.route.id===e)-1}let O=_?_[1].statusCode:void 0,I=O&&O>
11=400,A={currentUrl:w,currentParams:o.matches[0]?.params||{},nextUrl:x,nextParams:a[0].params,...s,actionResult:T,actionStatus:O},k=Ee(a),R=a.map((i,a)=>{let{route:s}=i,d=null;if(null!=E&&a>E)d=!1;else if(s.lazy)d=!0;else if(ut(s))if(u){let{shouldLoad:e}=pt(s,o.loaderData,o.errors);d=e}else(function(e,t,r){let n=!t||r.route.id!==t.route.id,i=!e.hasOwnProperty(r.route.id);return n||i})(o.loaderData,o.matches[a],i)&&(d=!0);else d=!1;if(null!==d)return It(r,n,e,l,k,i,c,t,d);let h=!1;"boolean"==typeof S?h=S:I?h=!1:(p||w.pathname+w.search===x.pathname+x.search||w.search!==x.search||function(e,t){let r=e.route.path;return e.pathname!==t.pathname||null!=r&&r.endsWith("*")&&e.params["*"]!==t.params["*"]}(o.matches[a],i))&&(h=!0);let f={...A,defaultShouldRevalidate:h},m=dt(i,f);return It(r,n,e,l,k,i,c,t,m,f,S)}),C=[];return f.forEach((e,s)=>{if(u||!a.some(t=>t.route.id===e.routeId)||h.has(s))return;let l=o.fetchers.get(s),f=l&&"idle"!==l.state&&void 0===l.data,_=N(g,e.path,y??"/",!1,v);if(!_){if(b&&f)return;return void C.push({key:s,routeId:e.routeId,path:e.path,matches:null,match:null,request:null,controller:null})}if(m.has(s))return;let E=cr(_,e.path),T=new AbortController,w=Lt(i,e.path,T.signal),x=null;if(d.has(s))d.delete(s),x=At(r,n,w,e.path,_,E,c,t);else if(f)p&&(x=At(r,n,w,e.path,_,E,c,t));else{let i;i="boolean"==typeof S?S:!I&&p;let o={...A,defaultShouldRevalidate:i};dt(E,o)&&(x=At(r,n,w,e.path,_,E,c,t,o))}x&&C.push({key:s,routeId:e.routeId,path:e.path,matches:x,match:E,request:w,controller:T})}),{dsMatches:R,revalidatingFetchers:C}}function ut(e){return null!=e.loader||null!=e.middleware&&e.middleware.length>0}function pt(e,t,r){if(e.lazy)return{shouldLoad:!0,renderFallback:!0};if(!ut(e))return{shouldLoad:!1,renderFallback:!1};let n=null!=t&&e.id in t,i=null!=r&&void 0!==r[e.id];if(!n&&i)return{shouldLoad:!1,renderFallback:!1};if("function"==typeof e.loader&&!0===e.loader.hydrate)return{shouldLoad:!0,renderFallback:!n};let o=!n&&!i;return{shouldLoad:o,renderFallback:o}}function dt(e,t){if(e.route.shouldRevalidate){let r=e.route.shouldRevalidate(t);if("boolean"==typeof r)return r}return t.defaultShouldRevalidate}function ht(e,t,r,n,i,o){let a;if(e){let t=n[e];v(t,`No route found to patch children into: routeId = ${e}`),t.children||(t.children=[]),a=t.children}else a=r.activeRoutes;let s=[],l=[];if(t.forEach(e=>{let t=a.find(t=>ft(e,t));t?l.push({existingRoute:t,newRoute:e}):s.push(e)}),s.length>0){let t=P(s,i,[e||"_","patch",String(a?.length||"0")],n);a.push(...t)}if(o&&l.length>0)for(let e=0;e<l.length;e++){let{existingRoute:t,newRoute:r}=l[e],n=t,[o]=P([r],i,[],{},!0);Object.assign(n,{element:o.element?o.element:n.element,errorElement:o.errorElement?o.errorElement:n.errorElement,hydrateFallbackElement:o.hydrateFallbackElement?o.hydrateFallbackElement:n.hydrateFallbackElement})}r.hasHMRRoutes||r.setRoutes([...r.activeRoutes])}function ft(e,t){return"id"in e&&"id"in t&&e.id===t.id||e.index===t.index&&e.path===t.path&&e.caseSensitive===t.caseSensitive&&(!(e.children&&0!==e.children.length||t.children&&0!==t.children.length)||(e.children?.every((e,r)=>t.children?.some(t=>ft(e,t)))??!1))}Ue=new WeakMap,je=new WeakMap,He=new WeakMap,Ve=new WeakMap;var mt=new WeakMap,gt=({key:e,route:t,manifest:r,mapRouteProperties:n})=>{let i=r[t.id];if(v(i,"No route found in manifest"),!i.lazy||"object"!=typeof i.lazy)return;let o=i.lazy[e];if(!o)return;let a=mt.get(i);a||(a={},mt.set(i,a));let s=a[e];if(s)return s;let l=(async()=>{let t=function(e){return k.has(e)}(e),r=void 0!==i[e]&&"hasErrorBoundary"!==e;if(t)_(!t,"Route property "+e+" is not a supported lazy route property. This property will be ignored."),a[e]=Promise.resolve();else if(r)_(!1,`Route "${i.id}" has a static property "${e}" defined. The lazy property will be ignored.`);else{let t=await o();null!=t&&(Object.assign(i,{[e]:t}),Object.assign(i,n(i)))}"object"==typeof i.lazy&&(i.lazy[e]=void 0,Object.values(i.lazy).every(e=>void 0===e)&&(i.lazy=void 0))})();return a[e]=l,l},yt=new WeakMap;function bt(e){return void 0!==e}function vt(e,t,r){let n=e.map(({route:e})=>{if("object"==typeof e.lazy&&e.lazy.middleware)return gt({key:"middleware",route:e,manifest:t,mapRouteProperties:r})}).filter(bt);return n.length>0?Promise.all(n):void 0}async function _t(e){let t=e.matches.filter(e=>e.shouldLoad),r={};return(await Promise.all(t.map(e=>
11e.resolve()))).forEach((e,n)=>{r[t[n].route.id]=e}),r}async function St(e){return e.matches.some(e=>e.route.middleware)?Tt(e,()=>_t(e)):_t(e)}function Et(e,t,r){return wt(e,t,function(e){return rr(e)?Kt(e):e},nr,r)}function Tt(e,t){return wt(e,t,e=>{if(or(e))throw e;return e},Qt,function(t,r,n){if(n)return Promise.resolve(Object.assign(n.value,{[r]:{type:"error",result:t}}));{let{matches:n}=e,i=Math.min(Math.max(n.findIndex(e=>e.route.id===r),0),Math.max(n.findIndex(e=>e.shouldCallHandler()),0)),o=Gt(n,n[i].route.id).route.id;return Promise.resolve({[o]:{type:"error",result:t}})}})}async function wt(e,t,r,n,i){let{matches:o,...a}=e,s=o.flatMap(e=>e.route.middleware?e.route.middleware.map(t=>[e.route.id,t]):[]);return await xt(a,s,t,r,n,i)}async function xt(e,t,r,n,i,o,a=0){let{request:s}=e;if(s.signal.aborted)throw s.signal.reason??new Error(`Request aborted: ${s.method} ${s.url}`);let l=t[a];if(!l){return await r()}let c,[u,p]=l,d=async()=>{if(c)throw new Error("You may only call `next()` once per middleware");try{let s=await xt(e,t,r,n,i,o,a+1);return c={value:s},c.value}catch(e){return c={value:await o(e,u,c)},c.value}};try{let t=await p(e,d),r=null!=t?n(t):void 0;return i(r)?r:c?r??c.value:(c={value:await d()},c.value)}catch(e){return await o(e,u,c)}}function Ot(e,t,r,n,i){let o=gt({key:"middleware",route:n.route,manifest:t,mapRouteProperties:e}),a=function(e,t,r,n,i){let o=r[e.id];if(v(o,"No route found in manifest"),!e.lazy)return{lazyRoutePromise:void 0,lazyHandlerPromise:void 0};if("function"==typeof e.lazy){let t=yt.get(o);if(t)return{lazyRoutePromise:t,lazyHandlerPromise:t};let r=(async()=>{v("function"==typeof e.lazy,"No lazy route function found");let t=await e.lazy(),r={};for(let e in t){let n=t[e];if(void 0===n)continue;let i=C(e),a=void 0!==o[e]&&"hasErrorBoundary"!==e;i?_(!i,"Route property "+e+" is not a supported property to be returned from a lazy route function. This property will be ignored."):a?_(!a,`Route "${o.id}" has a static property "${e}" defined but its lazy function is also returning a value for this property. The lazy route property "${e}" will be ignored.`):r[e]=n}Object.assign(o,r),Object.assign(o,{...n(o),lazy:void 0})})();return yt.set(o,r),r.catch(()=>{}),{lazyRoutePromise:r,lazyHandlerPromise:r}}let a,s=Object.keys(e.lazy),l=[];for(let o of s){if(i&&i.includes(o))continue;let s=gt({key:o,route:e,manifest:r,mapRouteProperties:n});s&&(l.push(s),o===t&&(a=s))}let c=l.length>0?Promise.all(l).then(()=>{}):void 0;return c?.catch(()=>{}),a?.catch(()=>{}),{lazyRoutePromise:c,lazyHandlerPromise:a}}(n.route,sr(r.method)?"action":"loader",t,e,i);return{middleware:o,route:a.lazyRoutePromise,handler:a.lazyHandlerPromise}}function It(e,t,r,n,i,o,a,s,l,c=null,u){let p=!1,d=Ot(e,t,r,o,a);return{...o,_lazyPromises:d,shouldLoad:l,shouldRevalidateArgs:c,shouldCallHandler:e=>(p=!0,c?dt(o,"boolean"==typeof u?{...c,defaultShouldRevalidate:u}:"boolean"==typeof e?{...c,defaultShouldRevalidate:e}:c):l),resolve(e){let{lazy:t,loader:a,middleware:c}=o.route,u=p||l||e&&!sr(r.method)&&(t||a),h=c&&c.length>0&&!a&&!t;return!u||!sr(r.method)&&h?Promise.resolve({type:"data",result:void 0}):async function({request:e,path:t,pattern:r,match:n,lazyHandlerPromise:i,lazyRoutePromise:o,handlerOverride:a,scopedContext:s}){let l,c,u=sr(e.method),p=u?"action":"loader",d=i=>{let o,l=new Promise((e,t)=>o=t);c=()=>o(),e.signal.addEventListener("abort",c);let u=o=>"function"!=typeof i?Promise.reject(new Error(`You cannot call the handler for a route which defines a boolean "${p}" [routeId: ${n.route.id}]`)):i({request:e,url:Ft(e,t),pattern:r,params:n.params,context:s},...void 0!==o?[o]:[]),d=(async()=>{try{return{type:"data",result:await(a?a(e=>u(e)):u())}}catch(e){return{type:"error",result:e}}})();return Promise.race([d,l])};try{let t=u?n.route.action:n.route.loader;if(i||o)if(t){let e,[r]=await Promise.all([d(t).catch(t=>{e=t}),i,o]);if(void 0!==e)throw e;l=r}else{await i;let t=u?n.route.action:n.route.loader;if(!t){if("action"===p){let t=new URL(e.url),r=t.pathname+t.search;throw $t(405,{method:e.method,pathname:r,routeId:n.route.id})}return{type:"data",result:void 0}}[l]=await Promise.all([d(t),o])}else{if(!t){let t=new URL(e.url);throw $t(404,{pathname:t.pathname+t.search})}l=await d(t)}}catch(e){return{type:"error",result:e}}finally{c&&e.signal.removeEventListener("abort",c)}return l}({request:r,path:n,pattern:i,match:o,lazyHandlerPromise:d?.handler,lazyRoutePromise:d?.route,handlerOverride:e,scopedContext:s})}}}function At(e,t,r,n,i,o,a,s,l=null){return i.map(c=>c.route.id!==o.route.id?{...c,shouldLoad:!1,shouldRevalidateArgs:l,shouldCallHandler:()=>!1,_lazyPromises:Ot(e,t,r,c,a),resolve:()=>Promise.resolve({type:"data",result:void 0})}:It(e,t,r,n,Ee(i),c,a,s,!0,l))}async function kt(e,t,r,n,i,o,a){n.some(e=>e._lazyPromises?.middleware)&&await Promise.all(n.map(e=>e._lazyPromises?.middleware));let s={request:t,url:Ft(t,r),pattern:Ee(n),params:n[0].params,context:o,matches:n},l=a?()=>{throw new Error("You cannot call `runClientMiddleware()` from a static handler `dataStrategy`. Middleware is run outside of `dataStrategy` during SSR in order to bubble up the Response.  You can enable middleware via the `respond` API in `query`/`queryRoute`")}:e=>{let t=s;return Tt(t,()=>e({...t,fetcherKey:i,runClientMiddleware:()=>{throw new Error("Cannot call `runClientMiddleware()` from within an `runClientMiddleware` handler")}}))},c=await e({...s,fetcherKey:i,runClientMiddleware:l});try{await Promise.all(n.flatMap(e=>[e._lazyPromises?.handler,e._lazyPromises?.route]))}catch(e){}return c}async function Rt(e){let t=e.headers.get("Content-Type");return t&&/\bapplication\/json\b/.test(t)?null==e.body?null:e.json():e.text()}async function Ct(e){let{result:t,type:r}=e;if(nr(t)){let e;try{e=await Rt(t)}catch(e){return{type:"error",error:e}}return"error"===r?{type:"error",error:new _e(t.status,t.statusText,e),statusCode:t.status,headers:t.headers}:{type:"data",data:e,statusCode:t.status,headers:t.headers}}return"error"===r?rr(t)?t.data instanceof Error?{type:"error",error:t.data,statusCode:t.init?.status,headers:t.init?.headers?new Headers(t.init.headers):void 0}:{type:"error",error:Jt(t),statusCode:Se(t)?t.status:void 0,headers:t.init?.headers?new Headers(t.init.headers):void 0}:{type:"error",error:t,statusCode:Se(t)?t.status:void 0}:rr(t)?{type:"data",data:t.data,statusCode:t.init?.status,headers:t.init?.headers?new Headers(t.init.headers):void 0}:{type:"data",data:t}}function Pt(e,t,r,n,i){let o=e.headers.get("Location");if(v(o,"Redirects returned/thrown from loaders/actions must have a Location header"),!te(o)){let a=n.slice(0,n.findIndex(e=>e.route.id===r)+1);o=st(new URL(t.url),a,i,o),e.headers.set("Location",o)}return e}var Dt=["about:","blob:","chrome:","chrome-untrusted:","content:","data:","devtools:","file:","filesystem:","javascript:"];function Mt(e){try{return Dt.includes(new URL(e).protocol)}catch{return!1}}function Nt(e,t,r,n){if(te(e)){let n=e,i=u.test(n)?new URL(p(n,t.protocol)):new URL(n);if(Mt(i.toString()))throw new Error("Invalid redirect location");let o=null!=ee(i.pathname,r);
11if(i.origin===t.origin&&o)return le(i.pathname)+i.search+i.hash}try{if(Mt(n.createURL(e).toString()))throw new Error("Invalid redirect location")}catch(e){}return e}function Lt(e,t,r,n){let i=e.createURL(Yt(t)).toString(),o={signal:r};if(n&&sr(n.formMethod)){let{formMethod:e,formEncType:t}=n;o.method=e.toUpperCase(),"application/json"===t?(o.headers=new Headers({"Content-Type":t}),o.body=JSON.stringify(n.json)):"text/plain"===t?o.body=n.text:"application/x-www-form-urlencoded"===t&&n.formData?o.body=Bt(n.formData):o.body=n.formData}return new Request(i,o)}function Ft(e,t){let r=new URL(e.url),n="string"==typeof t?w(t):t;if(r.pathname=n.pathname||"/",n.search){let e=new URLSearchParams(n.search),t=e.getAll("index");e.delete("index");for(let r of t.filter(Boolean))e.append("index",r);r.search=e.size?`?${e.toString()}`:""}else r.search="";return r.hash=n.hash||"",r}function Bt(e){let t=new URLSearchParams;for(let[r,n]of e.entries())t.append(r,"string"==typeof n?n:n.name);return t}function Ut(e){let t=new FormData;for(let[r,n]of e.entries())t.append(r,n);return t}function jt(e,t,r,n=!1,i=!1){let o,a={},s=null,l=!1,c={},u=r&&er(r[1])?r[1].error:void 0;return e.forEach(r=>{if(!(r.route.id in t))return;let p=r.route.id,d=t[p];if(v(!tr(d),"Cannot handle redirect results in processLoaderData"),er(d)){let t=d.error;if(void 0!==u&&(t=u,u=void 0),s=s||{},i)s[p]=t;else{let r=Gt(e,p);null==s[r.route.id]&&(s[r.route.id]=t)}n||(a[p]=et),l||(l=!0,o=Se(d.error)?d.error.status:500),d.headers&&(c[p]=d.headers)}else a[p]=d.data,d.statusCode&&200!==d.statusCode&&!l&&(o=d.statusCode),d.headers&&(c[p]=d.headers)}),void 0!==u&&r&&(s={[r[0]]:u},r[2]&&(a[r[2]]=void 0)),{loaderData:a,errors:s,statusCode:o||200,loaderHeaders:c}}function Ht(e,t,r,n,i,o,a){let{loaderData:s,errors:l}=jt(t,r,n);return i.filter(e=>!e.matches||e.matches.some(e=>e.shouldLoad)).forEach(t=>{let{key:r,match:n,controller:i}=t;if(i&&i.signal.aborted)return;let s=o[r];if(v(s,"Did not find corresponding fetcher result"),er(s)){let t=Gt(e.matches,n?.route.id);l&&l[t.route.id]||(l={...l,[t.route.id]:s.error}),a.delete(r)}else if(tr(s))v(!1,"Unhandled fetcher revalidation redirect");else{let e=hr(s.data);a.set(r,e)}}),{loaderData:s,errors:l}}function Vt(e,t,r,n){let i=Object.entries(t).filter(([,e])=>e!==et).reduce((e,[t,r])=>(e[t]=r,e),{});for(let o of r){let r=o.route.id;if(!t.hasOwnProperty(r)&&e.hasOwnProperty(r)&&o.route.loader&&(i[r]=e[r]),n&&n.hasOwnProperty(r))break}return i}function zt(e){return e?er(e[1])?{actionData:{}}:{actionData:{[e[0]]:e[1].data}}:{}}function Gt(e,t){return(t?e.slice(0,e.findIndex(e=>e.route.id===t)+1):[...e]).reverse().find(e=>!0===e.route.hasErrorBoundary)||e[0]}function qt(e){let t=1===e.length?e[0]:e.find(e=>e.index||!e.path||"/"===e.path)||{id:"__shim-error-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:t}],route:t}}function $t(e,{pathname:t,routeId:r,method:n,type:i,message:o}={}){let a="Unknown Server Error",s="Unknown @remix-run/router error";return 400===e?(a="Bad Request",n&&t&&r?s=`You made a ${n} request to "${t}" but did not provide a \`loader\` for route "${r}", so there is no way to handle the request.`:"invalid-body"===i&&(s="Unable to encode submission body")):403===e?(a="Forbidden",s=`Route "${r}" does not match URL "${t}"`):404===e?(a="Not Found",s=`No route matches URL "${t}"`):405===e&&(a="Method Not Allowed",n&&t&&r?s=`You made a ${n.toUpperCase()} request to "${t}" but did not provide an \`action\` for route "${r}", so there is no way to handle the request.`:n&&(s=`Invalid request method "${n.toUpperCase()}"`)),new _e(e||500,a,new Error(s),!0)}function Wt(e){let t=Object.entries(e);for(let e=t.length-1;e>=0;e--){let[r,n]=t[e];if(tr(n))return{key:r,result:n}}}function Yt(e){return T({..."string"==typeof e?w(e):e,hash:""})}function Kt(e){return Response.json(e.data,e.init??void 0)}function Jt(e){return new _e(e.init?.status??500,e.init?.statusText??"Internal Server Error",e.data)}function Qt(e){return null!=e&&"object"==typeof e&&Object.entries(e).every(([e,t])=>"string"==typeof e&&Xt(t))}function Xt(e){return null!=e&&"object"==typeof e&&"type"in e&&"result"in e&&("data"===e.type||"error"===e.type)}function Zt(e){return nr(e.result)&&We.has(e.result.status)}function er(e){return"error"===e.type}function tr(e){return"redirect"===(e&&e.type)}function rr(e){return"object"==typeof e&&null!=e&&"type"in e&&"data"in e&&"init"in e&&"DataWithResponseInit"===e.type}function nr(e){return null!=e&&"number"==typeof e.status&&"string"==typeof e.statusText&&"object"==typeof e.headers&&void 0!==e.body}function ir(e){return We.has(e)}function or(e){return nr(e)&&ir(e.status)&&e.headers.has("Location")}function ar(e){return $e.has(e.toUpperCase())}function sr(e){return Ge.has(e.toUpperCase())}function lr(e){return new URLSearchParams(e).getAll("index").some(e=>""===e)}function cr(e,t){let r="string"==typeof t?w(t).search:t.search;if(e[e.length-1].route.index&&lr(r||""))return e[e.length-1];let n=oe(e);return n[n.length-1]}function ur(e){let{formMethod:t,formAction:r,formEncType:n,text:i,formData:o,json:a}=e;if(t&&r&&n)return null!=i?{formMethod:t,formAction:r,formEncType:n,formData:void 0,json:void 0,text:i}:null!=o?{formMethod:t,formAction:r,formEncType:n,formData:o,json:void 0,text:void 0}:void 0!==a?{formMethod:t,formAction:r,formEncType:n,formData:void 0,json:a,text:void 0}:void 0}function pr(e,t,r,n){if(n){return{state:"loading",location:e,matches:t,historyAction:r,formMethod:n.formMethod,formAction:n.formAction,formEncType:n.formEncType,formData:n.formData,json:n.json,text:n.text}}return{state:"loading",location:e,matches:t,historyAction:r,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0}}function dr(e,t){if(e){return{state:"loading",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t}}return{state:"loading",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:t}}function hr(e){return{state:"idle",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:e}}function fr(){let e,t,r=new Promise((n,i)=>{e=async e=>{n(e);try{await r}catch(e){}},t=async e=>{i(e);try{await r}catch(e){}}});return{promise:r,resolve:e,reject:t}}var mr=n.createContext(null);mr.displayName="DataRouter";var gr=n.createContext(null);
11gr.displayName="DataRouterState";var yr=n.createContext(!1);function br(){return n.useContext(yr)}var vr=n.createContext({isTransitioning:!1});vr.displayName="ViewTransition";var _r=n.createContext(new Map);_r.displayName="Fetchers";var Sr=n.createContext(null);Sr.displayName="Await";var Er=e=>n.createElement(Sr.Provider,e),Tr=n.createContext(null);Tr.displayName="Navigation";var wr=n.createContext(null);wr.displayName="Location";var xr=n.createContext({outlet:null,matches:[],isDataRoute:!1});xr.displayName="Route";var Or=n.createContext(null);Or.displayName="RouteError";var Ir=!0,Ar="REACT_ROUTER_ERROR",kr="REDIRECT",Rr="ROUTE_ERROR_RESPONSE";function Cr(e){if(e.startsWith(`${Ar}:${kr}:{`))try{let t=JSON.parse(e.slice(28));if("object"==typeof t&&t&&"number"==typeof t.status&&"string"==typeof t.statusText&&"string"==typeof t.location&&"boolean"==typeof t.reloadDocument&&"boolean"==typeof t.replace)return t}catch{}}function Pr(e){if(e.startsWith(`${Ar}:${Rr}:{`))try{let t=JSON.parse(e.slice(40));if("object"==typeof t&&t&&"number"==typeof t.status&&"string"==typeof t.statusText)return new _e(t.status,t.statusText,t.data)}catch{}}function Dr(e,{relative:t}={}){v(Mr(),"useHref() may be used only in the context of a <Router> component.");let{basename:r,navigator:i}=n.useContext(Tr),{hash:o,pathname:a,search:s}=qr(e,{relative:t}),l=a;return"/"!==r&&(l="/"===a?r:ce([r,a])),i.createHref({pathname:l,search:s,hash:o})}function Mr(){return null!=n.useContext(wr)}function Nr(){return v(Mr(),"useLocation() may be used only in the context of a <Router> component."),n.useContext(wr).location}function Lr(){return n.useContext(wr).navigationType}function Fr(e){v(Mr(),"useMatch() may be used only in the context of a <Router> component.");let{pathname:t}=Nr();return n.useMemo(()=>J(e,Z(t)),[t,e])}var Br="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function Ur(e){n.useContext(Tr).static||n.useLayoutEffect(e)}function jr(){let{isDataRoute:e}=n.useContext(xr);return e?function(){let{router:e}=rn("useNavigate"),t=on("useNavigate"),r=n.useRef(!1);return Ur(()=>{r.current=!0}),n.useCallback(async(n,i={})=>{_(r.current,Br),r.current&&("number"==typeof n?await e.navigate(n):await e.navigate(n,{fromRouteId:t,...i}))},[e,t])}():function(){v(Mr(),"useNavigate() may be used only in the context of a <Router> component.");let e=n.useContext(mr),{basename:t,navigator:r}=n.useContext(Tr),{matches:i}=n.useContext(xr),{pathname:o}=Nr(),a=JSON.stringify(ae(i)),s=n.useRef(!1);return Ur(()=>{s.current=!0}),n.useCallback((n,i={})=>{if(_(s.current,Br),!s.current)return;if("number"==typeof n)return void r.go(n);let l=se(n,JSON.parse(a),o,"path"===i.relative);null==e&&"/"!==t&&(l.pathname="/"===l.pathname?t:ce([t,l.pathname])),Be("string"==typeof n?n:T(n),r.createHref(l),Le(r),"reject"),(i.replace?r.replace:r.push)(l,i.state,i)},[t,r,a,o,e])}()}var Hr=n.createContext(null);function Vr(){return n.useContext(Hr)}function zr(e){let t=n.useContext(xr).outlet;return n.useMemo(()=>t&&n.createElement(Hr.Provider,{value:e},t),[t,e])}function Gr(){let{matches:e}=n.useContext(xr),t=e[e.length-1];return t?.params??{}}function qr(e,{relative:t}={}){let{matches:r}=n.useContext(xr),{pathname:i}=Nr(),o=JSON.stringify(ae(r));return n.useMemo(()=>se(e,JSON.parse(o),i,"path"===t),[e,o,i,t])}function $r(e,t){return Wr(e,t)}function Wr(e,t,r){v(Mr(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:i}=n.useContext(Tr),{matches:o}=n.useContext(xr),a=o[o.length-1],s=a?a.params:{},l=a?a.pathname:"/",c=a?a.pathnameBase:"/",u=a&&a.route;if(Ir){let e=u&&u.path||"";bn(l,!u||e.endsWith("*")||e.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${l}" (under <Route path="${e}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.\n\nPlease change the parent <Route path="${e}"> to <Route path="${"/"===e?"*":`${e}/*`}">.`)}let p,d=Nr();if(t){let e="string"==typeof t?w(t):t;v("/"===c||e.pathname?.startsWith(c),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${c}" but pathname "${e.pathname}" was given in the \`location\` prop.`),p=e}else p=d;let h=p.pathname||"/",f=h;if("/"!==c){let e=c.replace(/^\//,"").split("/");f="/"+h.replace(/^\//,"").split("/").slice(e.length).join("/")}let m=r&&r.state.matches.length?r.state.matches.map(e=>Object.assign(e,{route:r.manifest[e.route.id]||e.route})):M(e,{pathname:f});Ir&&(_(u||null!=m,`No routes matched location "${p.pathname}${p.search}${p.hash}" `),_(null==m||void 0!==m[m.length-1].route.element||void 0!==m[m.length-1].route.Component||void 0!==m[m.length-1].route.lazy,`Matched leaf route at location "${p.pathname}${p.search}${p.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`));let g=en(m&&m.map(e=>Object.assign({},e,{params:Object.assign({},s,e.params),pathname:ce([c,i.encodeLocation?i.encodeLocation(e.pathname.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:e.pathname]),pathnameBase:"/"===e.pathnameBase?c:ce([c,i.encodeLocation?i.encodeLocation(e.pathnameBase.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:e.pathnameBase])})),o,r);return t&&g?n.createElement(wr.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",mask:void 0,...p},navigationType:"POP"}},g):g}function Yr(){let e=dn(),t=Se(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),r=e instanceof Error?e.stack:null,i="rgba(200,200,200, 0.5)",o={padding:"0.5rem",backgroundColor:i},a={padding:"2px 4px",backgroundColor:i},s=null;return Ir&&(console.error("Error handled by React Router default ErrorBoundary:",e),s=n.createElement(n.Fragment,null,n.createElement("p",null,"💿 Hey developer 👋"),n.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",n.createElement("code",{style:a},"ErrorBoundary")," or"," ",n.createElement("code",{style:a},"errorElement")," prop on your route."))),n.createElement(n.Fragment,null,n.createElement("h2",null,"Unexpected Application 
11Error!"),n.createElement("h3",{style:{fontStyle:"italic"}},t),r?n.createElement("pre",{style:o},r):null,s)}var Kr=n.createElement(Yr,null),Jr=class extends n.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||"idle"!==t.revalidation&&"idle"===e.revalidation?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:void 0!==e.error?e.error:t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){this.props.onError?this.props.onError(e,t):console.error("React Router caught the following error during render",e)}render(){let e=this.state.error;if(this.context&&"object"==typeof e&&e&&"digest"in e&&"string"==typeof e.digest){const t=Pr(e.digest);t&&(e=t)}let t=void 0!==e?n.createElement(xr.Provider,{value:this.props.routeContext},n.createElement(Or.Provider,{value:e,children:this.props.component})):this.props.children;return this.context?n.createElement(Xr,{error:e},t):t}};Jr.contextType=yr;var Qr=new WeakMap;function Xr({children:e,error:t}){let{basename:r,navigator:i}=n.useContext(Tr);if("object"==typeof t&&t&&"digest"in t&&"string"==typeof t.digest){let e=Cr(t.digest);if(e){let o=Qr.get(t);if(o)throw o;let a=we(e.location,r),s=a.absoluteURL||a.to;if(Be(e.location,s,Le(i),"allow-explicit"),Mt(s))throw new Error("Invalid redirect location");if(Te&&!Qr.get(t)){if(!a.isExternal&&!e.reloadDocument){const r=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(a.to,{replace:e.replace}));throw Qr.set(t,r),r}window.location.href=s}return n.createElement("meta",{httpEquiv:"refresh",content:`0;url=${s}`})}}return e}function Zr({routeContext:e,match:t,children:r}){let i=n.useContext(mr);return i&&i.static&&i.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=t.route.id),n.createElement(xr.Provider,{value:e},r)}function en(e,t=[],r){let i=r?.state;if(null==e){if(!i)return null;if(i.errors)e=i.matches;else{if(0!==t.length||i.initialized||!(i.matches.length>0))return null;e=i.matches}}let o=e,a=i?.errors;if(null!=a){let e=o.findIndex(e=>e.route.id&&void 0!==a?.[e.route.id]);v(e>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(a).join(",")}`),o=o.slice(0,Math.min(o.length,e+1))}let s=!1,l=-1;if(r&&i){s=i.renderFallback;for(let e=0;e<o.length;e++){let t=o[e];if((t.route.HydrateFallback||t.route.hydrateFallbackElement)&&(l=e),t.route.id){let{loaderData:e,errors:n}=i,a=t.route.loader&&!e.hasOwnProperty(t.route.id)&&(!n||void 0===n[t.route.id]);if(t.route.lazy||a){r.isStatic&&(s=!0),o=l>=0?o.slice(0,l+1):[o[0]];break}}}}let c=r?.onError,u=i&&c?(e,t)=>{c(e,{location:i.location,params:i.matches?.[0]?.params??{},pattern:Ee(i.matches),errorInfo:t})}:void 0;return o.reduceRight((e,r,c)=>{let p,d=!1,h=null,f=null;i&&(p=a&&r.route.id?a[r.route.id]:void 0,h=r.route.errorElement||Kr,s&&(l<0&&0===c?(bn("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),d=!0,f=null):l===c&&(d=!0,f=r.route.hydrateFallbackElement||null)));let m=t.concat(o.slice(0,c+1)),g=()=>{let t;return t=p?h:d?f:r.route.Component?n.createElement(r.route.Component,null):r.route.element?r.route.element:e,n.createElement(Zr,{match:r,routeContext:{outlet:e,matches:m,isDataRoute:null!=i},children:t})};return i&&(r.route.ErrorBoundary||r.route.errorElement||0===c)?n.createElement(Jr,{location:i.location,revalidation:i.revalidation,component:h,error:p,children:g(),routeContext:{outlet:null,matches:m,isDataRoute:!0},onError:u}):g()},null)}function tn(e){return`${e} must be used within a data router.  See https://reactrouter.com/en/main/routers/picking-a-router.`}function rn(e){let t=n.useContext(mr);return v(t,tn(e)),t}function nn(e){let t=n.useContext(gr);return v(t,tn(e)),t}function on(e){let t=function(e){let t=n.useContext(xr);return v(t,tn(e)),t}(e),r=t.matches[t.matches.length-1];return v(r.route.id,`${e} can only be used on routes that contain a unique "id"`),r.route.id}function an(){let e=nn("useNavigation");return n.useMemo(()=>{let{matches:t,historyAction:r,...n}=e.navigation;return n},[e.navigation])}function sn(){let e=rn("useRevalidator"),t=nn("useRevalidator"),r=n.useCallback(async()=>{await e.router.revalidate()},[e.router]);return n.useMemo(()=>({revalidate:r,state:t.revalidation}),[r,t.revalidation])}function ln(){let{matches:e,loaderData:t}=nn("useMatches");return n.useMemo(()=>e.map(e=>L(e,t)),[e,t])}function cn(){let e=nn("useLoaderData"),t=on("useLoaderData");return e.loaderData[t]}function un(e){return nn("useRouteLoaderData").loaderData[e]}function pn(){let e=nn("useActionData"),t=on("useLoaderData");return e.actionData?e.actionData[t]:void 0}function dn(){let e=n.useContext(Or),t=nn("useRouteError"),r=on("useRouteError");return void 0!==e?e:t.errors?.[r]}function hn(){let e=n.useContext(Sr);return e?._data}function fn(){let e=n.useContext(Sr);return e?._error}var mn=0;function gn(e){let{router:t,basename:r}=rn("useBlocker"),i=nn("useBlocker"),[o,a]=n.useState(""),s=n.useCallback(t=>{if("function"!=typeof e)return!!e;if("/"===r)return e(t);let{currentLocation:n,nextLocation:i,historyAction:o}=t;return e({currentLocation:{...n,pathname:ee(n.pathname,r)||n.pathname},nextLocation:{...i,pathname:ee(i.pathname,r)||i.pathname},historyAction:o})},[r,e]);return n.useEffect(()=>{let e=String(++mn);return a(e),()=>t.deleteBlocker(e)},[t]),n.useEffect(()=>{""!==o&&t.getBlocker(o,s)},[t,o,s]),o&&i.blockers.has(o)?i.blockers.get(o):Qe}var yn={};function bn(e,t,r){t||yn[e]||(yn[e]=!0,_(!1,r))}function vn(...e){const t=on("useRoute"),r=e[0]??t,n=nn("useRoute"),i=n.matches.find(({route:e})=>e.id===r);if(void 0!==i)return{handle:i.route.handle,loaderData:n.loaderData[r],actionData:n.actionData?.[r]}}function _n(e){return{id:e.route.id,pathname:e.pathname,params:e.params,handle:e.route.handle}}function Sn(){let{location:e,historyAction:t,matches:r,navigation:i}=nn("unstable_useRouterState"),o=n.useMemo(()=>({type:t,location:e,searchParams:new URLSearchParams(e.search),params:r[r.length-1]?.params??{},matches:r.map(e=>_n(e))}),[e,r,t]),a=n.useMemo(()=>
11{if("idle"===i.state)return null;let e={type:i.historyAction,location:i.location,searchParams:new URLSearchParams(i.location.search),params:i.matches[i.matches.length-1]?.params??{},matches:i.matches.map(e=>_n(e))};return"loading"===i.state?{...e,state:"loading",formMethod:i.formMethod,formAction:i.formAction,formEncType:i.formEncType,formData:i.formData,json:i.json,text:i.text}:{...e,state:"submitting",formMethod:i.formMethod,formAction:i.formAction,formEncType:i.formEncType,formData:i.formData,json:i.json,text:i.text}},[i]);return n.useMemo(()=>({active:o,pending:a}),[o,a])}var En={};function Tn(e,t){e||En[t]||(En[t]=!0,console.warn(t))}var wn=n.useOptimistic,xn=()=>{};function On(e){let t={hasErrorBoundary:e.hasErrorBoundary||null!=e.ErrorBoundary||null!=e.errorElement};return e.Component&&(Ir&&e.element&&_(!1,"You should not include both `Component` and `element` on your route - `Component` will be used."),Object.assign(t,{element:n.createElement(e.Component),Component:void 0})),e.HydrateFallback&&(Ir&&e.hydrateFallbackElement&&_(!1,"You should not include both `HydrateFallback` and `hydrateFallbackElement` on your route - `HydrateFallback` will be used."),Object.assign(t,{hydrateFallbackElement:n.createElement(e.HydrateFallback),HydrateFallback:void 0})),e.ErrorBoundary&&(Ir&&e.errorElement&&_(!1,"You should not include both `ErrorBoundary` and `errorElement` on your route - `ErrorBoundary` will be used."),Object.assign(t,{errorElement:n.createElement(e.ErrorBoundary),ErrorBoundary:void 0})),t}var In=["HydrateFallback","hydrateFallbackElement"];function An(e,t){return rt({basename:t?.basename,getContext:t?.getContext,future:t?.future,history:g({initialEntries:t?.initialEntries,initialIndex:t?.initialIndex}),hydrationData:t?.hydrationData,routes:e,hydrationRouteProperties:In,mapRouteProperties:On,dataStrategy:t?.dataStrategy,patchRoutesOnNavigation:t?.patchRoutesOnNavigation,instrumentations:t?.instrumentations}).initialize()}var kn=class{constructor(){this.status="pending",this.promise=new Promise((e,t)=>{this.resolve=t=>{"pending"===this.status&&(this.status="resolved",e(t))},this.reject=e=>{"pending"===this.status&&(this.status="rejected",t(e))}})}};function Rn({router:e,flushSync:t,onError:r,useTransitions:i}){let o=br();i=o||i;let[a,s]=n.useState(e.state),[l,c]=(u=a,wn?wn(u):[u,xn]);var u;let[p,d]=n.useState(),[h,f]=n.useState({isTransitioning:!1}),[m,g]=n.useState(),[y,b]=n.useState(),[v,_]=n.useState(),S=n.useRef(new Map),E=n.useCallback((o,{deletedFetchers:a,newErrors:l,flushSync:u,viewTransitionOpts:p})=>{l&&r&&Object.values(l).forEach(e=>r(e,{location:o.location,params:o.matches[0]?.params??{},pattern:Ee(o.matches)})),o.fetchers.forEach((e,t)=>{void 0!==e.data&&S.current.set(t,e.data)}),a.forEach(e=>S.current.delete(e)),Tn(!1===u||null!=t,'You provided the `flushSync` option to a router update, but you are not using the `<RouterProvider>` from `react-router/dom` so `ReactDOM.flushSync()` is unavailable.  Please update your app to `import { RouterProvider } from "react-router/dom"` and ensure you have `react-dom` installed as a dependency to use the `flushSync` option.');let h=null!=e.window&&null!=e.window.document&&"function"==typeof e.window.document.startViewTransition;if(Tn(null==p||h,"You provided the `viewTransition` option to a router update, but you do not appear to be running in a DOM environment as `window.startViewTransition` is not available."),p&&h){if(t&&u){t(()=>{y&&(m?.resolve(),y.skipTransition()),f({isTransitioning:!0,flushSync:!0,currentLocation:p.currentLocation,nextLocation:p.nextLocation})});let r=e.window.document.startViewTransition(()=>{t(()=>s(o))});return r.finished.finally(()=>{t(()=>{g(void 0),b(void 0),d(void 0),f({isTransitioning:!1})})}),void t(()=>b(r))}y?(m?.resolve(),y.skipTransition(),_({state:o,currentLocation:p.currentLocation,nextLocation:p.nextLocation})):(d(o),f({isTransitioning:!0,flushSync:!1,currentLocation:p.currentLocation,nextLocation:p.nextLocation}))}else t&&u?t(()=>s(o)):!1===i?s(o):n.startTransition(()=>{!0===i&&c(e=>Cn(e,o)),s(o)})},[e.window,t,y,m,i,c,r]);n.useLayoutEffect(()=>e.subscribe(E),[e,E]),n.useEffect(()=>{h.isTransitioning&&!h.flushSync&&g(new kn)}
11,[h]),n.useEffect(()=>{if(m&&p&&e.window){let t=p,r=m.promise,o=e.window.document.startViewTransition(async()=>{!1===i?s(t):n.startTransition(()=>{!0===i&&c(e=>Cn(e,t)),s(t)}),await r});o.finished.finally(()=>{g(void 0),b(void 0),d(void 0),f({isTransitioning:!1})}),b(o)}},[p,m,e.window,i,c]),n.useEffect(()=>{m&&p&&l.location.key===p.location.key&&m.resolve()},[m,y,l.location,p]),n.useEffect(()=>{!h.isTransitioning&&v&&(d(v.state),f({isTransitioning:!0,flushSync:!1,currentLocation:v.currentLocation,nextLocation:v.nextLocation}),_(void 0))},[h.isTransitioning,v]);let T=n.useMemo(()=>({createHref:e.createHref,createURL:e.createURL,encodeLocation:e.encodeLocation,go:t=>e.navigate(t),push:(t,r,n)=>e.navigate(t,{state:r,preventScrollReset:n?.preventScrollReset}),replace:(t,r,n)=>e.navigate(t,{replace:!0,state:r,preventScrollReset:n?.preventScrollReset})}),[e]),w=e.basename||"/",x=n.useMemo(()=>({router:e,navigator:T,static:!1,basename:w,onError:r}),[e,T,w,r]);return n.createElement(n.Fragment,null,n.createElement(mr.Provider,{value:x},n.createElement(gr.Provider,{value:l},n.createElement(_r.Provider,{value:S.current},n.createElement(vr.Provider,{value:h},n.createElement(Bn,{basename:w,location:l.location,navigationType:l.historyAction,navigator:T,useTransitions:i},n.createElement(Pn,{routes:e.routes,manifest:e.manifest,future:e.future,state:l,isStatic:!1,onError:r})))))),null)}function Cn(e,t){return{...e,navigation:"idle"!==t.navigation.state?t.navigation:e.navigation,revalidation:"idle"!==t.revalidation?t.revalidation:e.revalidation,actionData:"submitting"!==t.navigation.state?t.actionData:e.actionData,fetchers:t.fetchers}}var Pn=n.memo(Dn);function Dn({routes:e,manifest:t,future:r,state:n,isStatic:i,onError:o}){return Wr(e,void 0,{manifest:t,state:n,isStatic:i,onError:o,future:r})}function Mn({basename:e,children:t,initialEntries:r,initialIndex:i,useTransitions:o}){let a=n.useRef();null==a.current&&(a.current=g({initialEntries:r,initialIndex:i,v5Compat:!0}));let s=a.current,[l,c]=n.useState({action:s.action,location:s.location}),u=n.useCallback(e=>{!1===o?c(e):n.startTransition(()=>c(e))},[o]);return n.useLayoutEffect(()=>s.listen(u),[s,u]),n.createElement(Bn,{basename:e,children:t,location:l.location,navigationType:l.action,navigator:s,useTransitions:o})}function Nn({to:e,replace:t,state:r,relative:i}){v(Mr(),"<Navigate> may be used only in the context of a <Router> component.");let{static:o,navigator:a}=n.useContext(Tr);_(!o,"<Navigate> must not be used on the initial render in a <StaticRouter>. This is a no-op, but you should modify your code so the <Navigate> is only ever rendered in response to some user interaction or state change.");let{matches:s}=n.useContext(xr),{pathname:l}=Nr(),c=jr(),u=se(e,ae(s),l,"path"===i);Be("string"==typeof e?e:T(e),a.createHref(u),Le(a),"reject");let p=JSON.stringify(u);return n.useEffect(()=>{c(JSON.parse(p),{replace:t,state:r,relative:i})},[c,p,i,t,r]),null}function Ln(e){return zr(e.context)}function Fn(e){v(!1,"A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.")}function Bn({basename:e="/",children:t=null,location:r,navigationType:i="POP",navigator:o,static:a=!1,useTransitions:s}){v(!Mr(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let l=e.replace(/^\/*/,"/"),c=n.useMemo(()=>({basename:l,navigator:o,static:a,useTransitions:s,future:{}}),[l,o,a,s]);"string"==typeof r&&(r=w(r));let{pathname:u="/",search:p="",hash:d="",state:h=null,key:f="default",mask:m}=r,g=n.useMemo(()=>{let e=ee(u,l);return null==e?null:{location:{pathname:e,search:p,hash:d,state:h,key:f,mask:m},navigationType:i}},[l,u,p,d,h,f,i,m]);return _(null!=g,`<Router basename="${l}"> is not able to match the URL "${u}${p}${d}" because it does not start with the basename, so the <Router> won't render anything.`),null==g?null:n.createElement(Tr.Provider,{value:c},n.createElement(wr.Provider,{children:t,value:g}))}function Un({children:e,location:t}){return $r(zn(e),t)}function jn({children:e,errorElement:t,resolve:r}){let i=n.useContext(mr),o=n.useContext(gr),a=n.useCallback((e,t)=>{i&&i.onError&&o&&i.onError(e,{location:o.location,params:o.matches[0]?.params||{},pattern:Ee(o.matches),errorInfo:t})},[i,o]);return n.createElement(Hn,{resolve:r,errorElement:t,onError:a},n.createElement(Vn,null,e))}var Hn=class extends n.Component{constructor(e){super(e),this.state={error:null}}static getDerivedStateFromError(e){return{error:e}}componentDidCatch(e,t){this.props.onError?this.props.onError(e,t):console.error("<Await> caught the following error during render",e,t)}render(){let{children:e,errorElement:t,resolve:r}=this.props,i=null,o=0;if(r instanceof Promise)if(this.state.error){o=2;let e=this.state.error;i=Promise.reject().catch(()=>{}),Object.defineProperty(i,"_tracked",{get:()=>!0}),Object.defineProperty(i,"_error",{get:()=>e})}else r._tracked?(i=r,o="_error"in i?2:"_data"in i?1:0):(o=0,Object.defineProperty(r,"_tracked",{get:()=>!0}),i=r.then(e=>Object.defineProperty(r,"_data",{get:()=>e}),e=>{this.props.onError?.(e),Object.defineProperty(r,"_error",{get:()=>e})}));else o=1,i=Promise.resolve(),Object.defineProperty(i,"_tracked",{get:()=>!0}),Object.defineProperty(i,"_data",{get:()=>r});if(2===o&&!t)throw i._error;if(2===o)return n.createElement(Sr.Provider,{value:i,children:t});if(1===o)return n.createElement(Sr.Provider,{value:i,children:e});throw i}};function Vn({children:e}){let t=hn(),r="function"==typeof e?e(t):e;return n.createElement(n.Fragment,null,r)}function zn(e,t=[]){let r=[];
11return n.Children.forEach(e,(e,i)=>{if(!n.isValidElement(e))return;let o=[...t,i];if(e.type===n.Fragment)return void r.push.apply(r,zn(e.props.children,o));v(e.type===Fn,`[${"string"==typeof e.type?e.type:e.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),v(!e.props.index||!e.props.children,"An index route cannot have child routes.");let a={id:e.props.id||o.join("-"),caseSensitive:e.props.caseSensitive,element:e.props.element,Component:e.props.Component,index:e.props.index,path:e.props.path,middleware:e.props.middleware,loader:e.props.loader,action:e.props.action,hydrateFallbackElement:e.props.hydrateFallbackElement,HydrateFallback:e.props.HydrateFallback,errorElement:e.props.errorElement,ErrorBoundary:e.props.ErrorBoundary,hasErrorBoundary:!0===e.props.hasErrorBoundary||null!=e.props.ErrorBoundary||null!=e.props.errorElement,shouldRevalidate:e.props.shouldRevalidate,handle:e.props.handle,lazy:e.props.lazy};e.props.children&&(a.children=zn(e.props.children,o)),r.push(a)}),r}var Gn=zn;function qn(e){return en(e)}function $n(){return{params:Gr(),loaderData:cn(),actionData:pn(),matches:ln()}}function Wn({children:e}){const t=$n();return n.cloneElement(e,t)}function Yn(e){return function(){const t=$n();return n.createElement(e,t)}}function Kn(){return{params:Gr(),loaderData:cn(),actionData:pn()}}function Jn({children:e}){const t=Kn();return n.cloneElement(e,t)}function Qn(e){return function(){const t=Kn();return n.createElement(e,t)}}function Xn(){return{params:Gr(),loaderData:cn(),actionData:pn(),error:dn()}}function Zn({children:e}){const t=Xn();return n.cloneElement(e,t)}function ei(e){return function(){const t=Xn();return n.createElement(e,t)}}var ti="get",ri="application/x-www-form-urlencoded";function ni(e){return"undefined"!=typeof HTMLElement&&e instanceof HTMLElement}function ii(e=""){return new URLSearchParams("string"==typeof e||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce((t,r)=>{let n=e[r];return t.concat(Array.isArray(n)?n.map(e=>[r,e]):[[r,n]])},[]))}var oi=null;var ai=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function si(e){return null==e||ai.has(e)?e:(_(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${ri}"`),null)}function li(e,t){let r,n,i,o,a;if(ni(s=e)&&"form"===s.tagName.toLowerCase()){let a=e.getAttribute("action");n=a?ee(a,t):null,r=e.getAttribute("method")||ti,i=si(e.getAttribute("enctype"))||ri,o=new FormData(e)}else if(function(e){return ni(e)&&"button"===e.tagName.toLowerCase()}(e)||function(e){return ni(e)&&"input"===e.tagName.toLowerCase()}(e)&&("submit"===e.type||"image"===e.type)){let a=e.form;if(null==a)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let s=e.getAttribute("formaction")||a.getAttribute("action");if(n=s?ee(s,t):null,r=e.getAttribute("formmethod")||a.getAttribute("method")||ti,i=si(e.getAttribute("formenctype"))||si(a.getAttribute("enctype"))||ri,o=new FormData(a,e),!function(){if(null===oi)try{new FormData(document.createElement("form"),0),oi=!1}catch(e){oi=!0}return oi}()){let{name:t,type:r,value:n}=e;if("image"===r){let e=t?`${t}.`:"";o.append(`${e}x`,"0"),o.append(`${e}y`,"0")}else t&&o.append(t,n)}}else{if(ni(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');r=ti,n=null,i=ri,a=e}var s;return o&&"text/plain"===i&&(a=o,o=void 0),{action:n,method:r.toLowerCase(),encType:i,formData:o,body:a}}var ci=-1,ui=-2,pi=-3,di=-4,hi=-5,fi=-6,mi=-7,gi="B",yi="D",bi="E",vi="M",_i="N",Si="P",Ei="R",Ti="S",wi="Y",xi="U",Oi="Z",Ii=class{constructor(){this.promise=new Promise((e,t)=>{this.resolve=e,this.reject=t})}};var Ai=1,ki=()=>Date.now(),Ri=()=>new Promise(e=>setTimeout(e,0));async function Ci(e){const{indices:t}=this,r=t.get(e);if(r)return[r];if(void 0===e)return mi;if(null===e)return hi;if(Number.isNaN(e))return ui;if(e===Number.POSITIVE_INFINITY)return fi;if(e===Number.NEGATIVE_INFINITY)return pi;if(0===e&&1/e<0)return di;const n=this.index++;t.set(e,n);const i=[[e,n]];return await Pi.call(this,i),n}async function Pi(e){const{deferred:t,indices:r,plugins:n,postPlugins:i}=this,o=this.stringified;let a=ki();const s=t=>{const n=r.get(t);if(n)return[n];if(void 0===t)return mi;if(null===t)return hi;if(Number.isNaN(t))return ui;if(t===Number.POSITIVE_INFINITY)return fi;if(t===Number.NEGATIVE_INFINITY)return pi;if(0===t&&1/t<0)return di;const i=this.index++;return r.set(t,i),e.push([t,i]),i};let l=0;for(;e.length>0;){const r=ki();++l%6e3==0&&r-a>=Ai&&(await Ri(),a=ki());const[c,u]=e.pop(),p=e=>Object.keys(e).map(t=>`"_${s(t)}":${s(e[t])}`).join(",");let d=null;switch(typeof c){case"boolean":case"number":case"string":o[u]=JSON.stringify(c);break;case"bigint":o[u]=`["${gi}","${c}"]`;break;
11case"symbol":{const e=Symbol.keyFor(c);e?o[u]=`["${wi}",${JSON.stringify(e)}]`:d=new Error("Cannot encode symbol unless created with Symbol.for()");break}case"object":{if(!c){o[u]=`${hi}`;break}const e=Array.isArray(c);let r=!1;if(!e&&n)for(const e of n){const t=e(c);if(Array.isArray(t)){r=!0;const[e,...n]=t;o[u]=`[${JSON.stringify(e)}`,n.length>0&&(o[u]+=`,${n.map(e=>s(e)).join(",")}`),o[u]+="]";break}}if(!r){let r=e?"[":"{";if(e){for(let e=0;e<c.length;e++)r+=(e?",":"")+(e in c?s(c[e]):ci);o[u]=`${r}]`}else if(c instanceof Date){const e=c.getTime();o[u]=`["${yi}",${Number.isNaN(e)?JSON.stringify("invalid"):e}]`}else c instanceof URL?o[u]=`["${xi}",${JSON.stringify(c.href)}]`:c instanceof RegExp?o[u]=`["${Ei}",${JSON.stringify(c.source)},${JSON.stringify(c.flags)}]`:c instanceof Set?c.size>0?o[u]=`["${Ti}",${[...c].map(e=>s(e)).join(",")}]`:o[u]=`["${Ti}"]`:c instanceof Map?c.size>0?o[u]=`["${vi}",${[...c].flatMap(([e,t])=>[s(e),s(t)]).join(",")}]`:o[u]=`["${vi}"]`:c instanceof Promise?(o[u]=`["${Si}",${u}]`,t[u]=c):c instanceof Error?(o[u]=`["${bi}",${JSON.stringify(c.message)}`,"Error"!==c.name&&(o[u]+=`,${JSON.stringify(c.name)}`),o[u]+="]"):null===Object.getPrototypeOf(c)?o[u]=`["${_i}",{${p(c)}}]`:Mi(c)?o[u]=`{${p(c)}}`:d=new Error("Cannot encode object with prototype")}break}default:{let e=!1;if(!Array.isArray(c)&&n)for(const t of n){const r=t(c);if(Array.isArray(r)){e=!0;const[t,...n]=r;o[u]=`[${JSON.stringify(t)}`,n.length>0&&(o[u]+=`,${n.map(e=>s(e)).join(",")}`),o[u]+="]";break}}e||(d=new Error("Cannot encode function or unexpected type"))}}if(d){let e=!1;if(i)for(const t of i){const r=t(c);if(Array.isArray(r)){e=!0;const[t,...n]=r;o[u]=`[${JSON.stringify(t)}`,n.length>0&&(o[u]+=`,${n.map(e=>s(e)).join(",")}`),o[u]+="]";break}}if(!e)throw d}}}var Di=Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function Mi(e){const t=Object.getPrototypeOf(e);return t===Object.prototype||null===t||Object.getOwnPropertyNames(t).sort().join("\0")===Di}var Ni="undefined"!=typeof window?window:"undefined"!=typeof globalThis?globalThis:void 0;function Li(e){const{hydrated:t,values:r}=this;if("number"==typeof e)return Fi.call(this,e);if(!Array.isArray(e)||!e.length)throw new SyntaxError;const n=r.length;for(const t of e)r.push(t);return t.length=r.length,Fi.call(this,n)}function Fi(e){const{hydrated:t,values:r,deferred:n,plugins:i}=this;let o;const a=[[e,e=>{o=e}]];let s=[];for(;a.length>0;){const[e,o]=a.pop();switch(e){case mi:o(void 0);continue;case hi:o(null);continue;case ui:o(NaN);continue;case fi:o(1/0);continue;case pi:o(-1/0);continue;case di:o(-0);continue}if(t[e]){o(t[e]);continue}const l=r[e];if(l&&"object"==typeof l){if(!Array.isArray(l)){const r={};t[e]=r;for(const e of Object.keys(l).reverse()){const t=[];a.push([l[e],e=>{t[1]=e}]),a.push([Number(e.slice(1)),e=>{t[0]=e}]),s.push(()=>{r[t[0]]=t[1]})}o(r);continue}if("string"!=typeof l[0]){const r=[];t[e]=r;for(let e=0;e<l.length;e++){const t=l[e];t!==ci&&a.push([t,t=>{r[e]=t}])}o(r);continue}{const[r,c,u]=l;switch(r){case yi:o(t[e]=new Date(c));continue;case xi:o(t[e]=new URL(c));continue;case gi:o(t[e]=BigInt(c));continue;case Ei:o(t[e]=new RegExp(c,u));continue;case wi:o(t[e]=Symbol.for(c));continue;case Ti:const r=new Set;t[e]=r;for(let e=l.length-1;e>0;e--)a.push([l[e],e=>{r.add(e)}]);o(r);continue;case vi:const p=new Map;t[e]=p;for(let e=l.length-2;e>0;e-=2){const t=[];a.push([l[e+1],e=>{t[1]=e}]),a.push([l[e],e=>{t[0]=e}]),s.push(()=>{p.set(t[0],t[1])})}o(p);continue;case _i:const d=Object.create(null);t[e]=d;for(const e of Object.keys(c).reverse()){const t=[];a.push([c[e],e=>{t[1]=e}]),a.push([Number(e.slice(1)),e=>{t[0]=e}]),s.push(()=>{d[t[0]]=t[1]})}o(d);continue;case Si:if(t[c])o(t[e]=t[c]);else{const r=new Ii;n[c]=r,o(t[e]=r.promise)}continue;case bi:const[,h,f]=l;let m=f&&Ni&&ve.includes(f)&&f in Ni&&"function"==typeof Ni[f]?new Ni[f](h):new Error(h);t[e]=m,o(m);continue;case Oi:o(t[e]=t[c]);continue;default:if(Array.isArray(i)){const r=[],n=l.slice(1);for(let e=0;e<n.length;e++){const t=n[e];a.push([t,t=>{r[e]=t}])}s.push(()=>{for(const n of i){const i=n(l[0],...r);if(i)return void o(t[e]=i.value)}throw new SyntaxError});continue}throw new SyntaxError}}}else t[e]=l,o(l)}for(;s.length>0;)s.pop()();return o}async function Bi(e,t){const{plugins:r}=t??{},n=new Ii,i=e.pipeThrough(function(){const e=new TextDecoder;let t="";return new TransformStream({transform(r,n){const i=e.decode(r,{stream:!0}),o=(t+i).split("\n");t=o.pop()||"";for(const e of o)n.enqueue(e)},flush(e){t&&e.enqueue(t)}})}()).getReader(),o={values:[],hydrated:[],deferred:{},plugins:r},a=await Ui.call(o,i);let s=n.promise;
11return a.done?n.resolve():s=ji.call(o,i).then(n.resolve).catch(e=>{for(const t of Object.values(o.deferred))t.reject(e);n.reject(e)}),{done:s.then(()=>i.closed),value:a.value}}async function Ui(e){const t=await e.read();if(!t.value)throw new SyntaxError;let r;try{r=JSON.parse(t.value)}catch(e){throw new SyntaxError}return{done:t.done,value:Li.call(this,r)}}async function ji(e){let t=await e.read();for(;!t.done;){if(!t.value)continue;const r=t.value;switch(r[0]){case Si:{const e=r.indexOf(":"),t=Number(r.slice(1,e)),n=this.deferred[t];if(!n)throw new Error(`Deferred ID ${t} not found in stream`);const i=r.slice(e+1);let o;try{o=JSON.parse(i)}catch(e){throw new SyntaxError}const a=Li.call(this,o);n.resolve(a);break}case bi:{const e=r.indexOf(":"),t=Number(r.slice(1,e)),n=this.deferred[t];if(!n)throw new Error(`Deferred ID ${t} not found in stream`);const i=r.slice(e+1);let o;try{o=JSON.parse(i)}catch(e){throw new SyntaxError}const a=Li.call(this,o);n.reject(a);break}default:throw new SyntaxError}t=await e.read()}}function Hi(e,t){const{onComplete:r,plugins:n,postPlugins:i,signal:o}=t??{},a={deferred:{},index:0,indices:new Map,stringified:[],plugins:n,postPlugins:i,signal:o},s=new TextEncoder;let l=0;return new ReadableStream({async start(t){const n=await Ci.call(a,e);if(Array.isArray(n))throw new Error("This should never happen");n<0?t.enqueue(s.encode(`${n}\n`)):(t.enqueue(s.encode(`[${a.stringified.join(",")}]\n`)),l=a.stringified.length-1);const i=new WeakSet;let c=Promise.resolve();if(Object.keys(a.deferred).length){let e;const r=new Promise((t,r)=>{if(e=t,o){const e=()=>r(o.reason||new Error("Signal was aborted."));o.aborted?e():o.addEventListener("abort",t=>{e()})}});for(;Object.keys(a.deferred).length>0;){for(const[e,n]of Object.entries(a.deferred))i.has(n)||i.add(a.deferred[Number(e)]=Promise.race([r,n]).then(r=>(c=c.then(async()=>{const n=await Ci.call(a,r);if(Array.isArray(n))t.enqueue(s.encode(`${Si}${e}:[["${Oi}",${n[0]}]]\n`)),a.index++,l++;else if(n<0)t.enqueue(s.encode(`${Si}${e}:${n}\n`));else{const r=a.stringified.slice(l+1).join(",");t.enqueue(s.encode(`${Si}${e}:[${r}]\n`)),l=a.stringified.length-1}}),c),r=>(c=c.then(async()=>{r&&"object"==typeof r&&r instanceof Error||(r=new Error("An unknown error occurred"));const n=await Ci.call(a,r);if(Array.isArray(n))t.enqueue(s.encode(`${bi}${e}:[["${Oi}",${n[0]}]]\n`)),a.index++,l++;else if(n<0)t.enqueue(s.encode(`${bi}${e}:${n}\n`));else{const r=a.stringified.slice(l+1).join(",");t.enqueue(s.encode(`${bi}${e}:[${r}]\n`)),l=a.stringified.length-1}}),c)).finally(()=>{delete a.deferred[Number(e)]}));await Promise.race(Object.values(a.deferred))}e()}await Promise.all(Object.values(a.deferred)),await c,t.close(),r?.()}})}async function Vi(e){let t={signal:e.signal};if("GET"!==e.method){t.method=e.method;let r=e.headers.get("Content-Type");r&&/\bapplication\/json\b/.test(r)?(t.headers={"Content-Type":r},t.body=JSON.stringify(await e.json())):r&&/\btext\/plain\b/.test(r)?(t.headers={"Content-Type":r},t.body=await e.text()):r&&/\bapplication\/x-www-form-urlencoded\b/.test(r)?t.body=new URLSearchParams(await e.text()):t.body=await e.formData()}return t}var zi={"&":"\\u0026",">":"\\u003e","<":"\\u003c","\u2028":"\\u2028","\u2029":"\\u2029"},Gi=/[&><\u2028\u2029]/g;function qi(e){return e.replace(Gi,e=>zi[e])}function $i(e,t){if(!1===e||null==e)throw new Error(t)}var Wi,Yi=Symbol("SingleFetchRedirect"),Ki=class extends Error{},Ji=202,Qi=new Set([100,101,204,205]);function Xi({context:e,identifier:t,reader:r,textDecoder:i,nonce:o}){if(!e.renderMeta||!e.renderMeta.didRenderScripts)return null;e.renderMeta.streamCache||(e.renderMeta.streamCache={});let{streamCache:a}=e.renderMeta,s=a[t];if(s||(s=a[t]=r.read().then(e=>{a[t].result={done:e.done,value:i.decode(e.value,{stream:!0})}}).catch(e=>{a[t].error=e})),s.error)throw s.error;if(void 0===s.result)throw s;let{done:l,value:c}=s.result,u=c?n.createElement("script",{nonce:o,dangerouslySetInnerHTML:{__html:`window.__reactRouterContext.streamController.enqueue(${qi(JSON.stringify(c))});`}}):null;return l?n.createElement(n.Fragment,null,u,n.createElement("script",{nonce:o,dangerouslySetInnerHTML:{__html:"window.__reactRouterContext.streamController.close();"}})):n.createElement(n.Fragment,null,u,n.createElement(n.Suspense,null,n.createElement(Xi,{context:e,identifier:t+1,reader:r,textDecoder:i,nonce:o})))}function Zi(e,t,r,n,i,o){let a=eo(e,e=>{let r=t.routes[e.route.id];return $i(r,"Route not found in manifest"),{hasLoader:r.hasLoader,hasClientLoader:r.hasClientLoader}},no,n,i,o);return async e=>e.runClientMiddleware(a)}function eo(e,t,r,n,i,o,a=()=>!0){return async s=>{let{request:l,matches:c,fetcherKey:u}=s,p=e();if("GET"!==l.method)return async function(e,t,r,n){let i=e.matches.find(e=>e.shouldCallHandler());$i(i,"No action match found");let o,a=await i.resolve(async a=>await a(async()=>{let{data:a,status:s}=await t(e,r,n,[i.route.id]);return o=s,oo(a,i.route.id)}));if(nr(a.result)||Se(a.result)||rr(a.result))return{[i.route.id]:a};return{[i.route.id]:{type:a.type,result:me(a.result,o)}}}(s,r,i,o);let d=c.some(e=>{let{hasLoader:r,hasClientLoader:n}=t(e);return e.shouldCallHandler()&&r&&!n});return n||d?u?async function(e,t,r,n){let i=e.matches.find(e=>e.shouldCallHandler());$i(i,"No fetcher match found");let o=i.route.id,a=await i.resolve(async i=>i(async()=>{let{data:i}=await t(e,r,n,[o]);return oo(i,o)}));return{[i.route.id]:a}}(s,r,i,o):async function(e,t,r,n,i,o,a,s=()=>!0){let l=new Set,c=!1,u=e.matches.map(()=>ao()),p=ao(),d={},h=Promise.all(e.matches.map(async(t,i)=>t.resolve(async h=>{u[i].resolve();let f=t.route.id,{hasLoader:m,hasClientLoader:g}=r(t),y=!t.shouldRevalidateArgs||null==t.shouldRevalidateArgs.actionStatus||t.shouldRevalidateArgs.actionStatus<400;if(t.shouldCallHandler(y))if(s(t)&&g){m&&(c=!0);try{let t=await h(async()=>{let{data:t}=await n(e,o,a,[f]);return oo(t,f)});d[f]={type:"data",result:t}}catch(e){d[f]={type:"error",result:e}}}else{m&&l.add(f);try{let e=await h(async()=>oo(await p.promise,f));d[f]={type:"data",result:e}}catch(e){d[f]={type:"error",result:e}}}else c||(c=null!=t.shouldRevalidateArgs&&m)})));await Promise.all(u.map(e=>e.promise));let f=!t.state.initialized&&"idle"===t.state.navigation.state;if(!f&&0!==l.size||window.__reactRouterHdrActive){let t=i&&c&&l.size>0?[...l.keys()]:void 0;try{let r=await n(e,o,a,t);p.resolve(r.data)}catch(e){p.reject(e)}}else p.resolve({routes:{}}
11);return await h,await async function(e,t,r,n){try{let i,o=await e;if("routes"in o)for(let e of t)if(e.route.id in o.routes){let t=o.routes[e.route.id];if("error"in t){i=t.error,null==n[e.route.id]?.result&&(n[e.route.id]={type:"error",result:i});break}}void 0!==i&&Array.from(r.values()).forEach(e=>{n[e].result instanceof Ki&&(n[e].result=i)})}catch(e){}}(p.promise,e.matches,l,d),d}(s,p,t,r,n,i,o,a):async function(e,t,r,n,i){let o=e.matches.filter(e=>e.shouldCallHandler()),a={};return await Promise.all(o.map(o=>o.resolve(async s=>{try{let{hasClientLoader:l}=t(o),c=o.route.id,u=l?await s(async()=>{let{data:t}=await r(e,n,i,[c]);return oo(t,c)}):await s();a[o.route.id]={type:"data",result:u}}catch(e){a[o.route.id]={type:"error",result:e}}}))),a}(s,t,r,i,o)}}function to(e){let t=e.searchParams.getAll("index");e.searchParams.delete("index");let r=[];for(let e of t)e&&r.push(e);for(let t of r)e.searchParams.append("index",t);return e}function ro(e,t,r,n){let i="string"==typeof e?new URL(e,"undefined"==typeof window?"server://singlefetch/":window.location.origin):e;return r?i.pathname.endsWith("/")?i.pathname=`${i.pathname}_.${n}`:i.pathname=`${i.pathname}.${n}`:"/"===i.pathname?i.pathname=`_root.${n}`:t&&"/"===ee(i.pathname,t)?i.pathname=`${ue(t)}/_root.${n}`:i.pathname=`${ue(i.pathname)}.${n}`,i}async function no(e,t,r,n){let{request:i}=e,o=ro(i.url,t,r,"data");"GET"===i.method&&(o=to(o),n&&o.searchParams.set("_routes",n.join(",")));let a=await fetch(o,await Vi(i));if(a.status>=400&&!a.headers.has("X-Remix-Response"))throw new _e(a.status,a.statusText,await a.text());if(204===a.status&&a.headers.has("X-Remix-Redirect"))return{status:Ji,data:{redirect:{redirect:a.headers.get("X-Remix-Redirect"),status:Number(a.headers.get("X-Remix-Status")||"302"),revalidate:"true"===a.headers.get("X-Remix-Revalidate"),reload:"true"===a.headers.get("X-Remix-Reload-Document"),replace:"true"===a.headers.get("X-Remix-Replace")}}};if(Qi.has(a.status)){let e={};return n&&"GET"!==i.method&&(e[n[0]]={data:void 0}),{status:a.status,data:{routes:e}}}$i(a.body,"No response body to decode");try{let e,t=await io(a.body,window);if("GET"===i.method){let r=t.value;e=Yi in r?{redirect:r[Yi]}:{routes:r}}else{let r=t.value,i=n?.[0];$i(i,"No routeId found for single fetch call decoding"),e="redirect"in r?{redirect:r}:{routes:{[i]:r}}}return{status:a.status,data:e}}catch(e){throw new Error("Unable to decode turbo-stream response")}}function io(e,t){return Bi(e,{plugins:[(e,...r)=>{if("SanitizedError"===e){let[e,n,i]=r,o=Error;e&&ve.includes(e)&&e in t&&"function"==typeof t[e]&&(o=t[e]);let a=new o(n);return a.stack=i,{value:a}}if("ErrorResponse"===e){let[e,t,n]=r;return{value:new _e(t,n,e)}}return"SingleFetchRedirect"===e?{value:{[Yi]:r[0]}}:"SingleFetchClassInstance"===e?{value:r[0]}:"SingleFetchFallback"===e?{value:void 0}:void 0}]})}function oo(e,t){if("redirect"in e){let{redirect:t,revalidate:r,reload:n,replace:i,status:o}=e.redirect;throw ge(t,{status:o,headers:{...r?{"X-Remix-Revalidate":"yes"}:null,...n?{"X-Remix-Reload-Document":"yes"}:null,...i?{"X-Remix-Replace":"yes"}:null}})}let r=e.routes[t];if(null==r)throw new Ki(`No result found for routeId "${t}"`);if("error"in r)throw r.error;if("data"in r)return r.data;throw new Error(`Invalid response found for routeId "${t}"`)}function ao(){let e,t,r=new Promise((n,i)=>{e=async e=>{n(e);try{await r}catch(e){}},t=async e=>{i(e);try{await r}catch(e){}}});return{promise:r,resolve:e,reject:t}}async function so(e,t){if(e.id in t)return t[e.id];try{let r=await(import(e.module));return t[e.id]=r,r}catch(t){return console.error(`Error loading route module \`${e.module}\`, reloading page...`),console.error(t),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function lo(e){return e.css?e.css.map(e=>({rel:"stylesheet",href:e})):[]}async function co(e,t){if(!e.css&&!t.links||!function(){if(void 0!==Wi)return Wi;let e=document.createElement("link");return Wi=e.relList.supports("preload"),e=null,Wi}())return;let r=[];if(e.css&&r.push(...lo(e)),t.links&&r.push(...t.links()),0===r.length)return;let n=[];for(let e of r)po(e)||"stylesheet"!==e.rel||n.push({...e,rel:"preload",as:"style"});await Promise.all(n.map(uo))}async function uo(e){return new Promise(t=>{if(e.media&&!window.matchMedia(e.media).matches||document.querySelector(`link[rel="stylesheet"][href="${e.href}"]`))return t();let r=document.createElement("link");function n(){document.head.contains(r)&&document.head.removeChild(r)}Object.assign(r,e),r.onload=()=>{n(),t()},r.onerror=()=>{n(),t()},document.head.appendChild(r)})}function po(e){return null!=e&&"string"==typeof e.page}function ho(e){return null!=e&&(null==e.href?"preload"===e.rel&&"string"==typeof e.imageSrcSet&&"string"==typeof e.imageSizes:"string"==typeof e.rel&&"string"==typeof e.href)}function fo(e,t,r,n,i,o){let a=(e,t)=>!r[t]||e.route.id!==r[t].route.id,s=(e,t)=>r[t].pathname!==e.pathname||r[t].route.path?.endsWith("*")&&r[t].params["*"]!==e.params["*"];return"assets"===o?t.filter((e,t)=>
11a(e,t)||s(e,t)):"data"===o?t.filter((t,o)=>{let l=n.routes[t.route.id];if(!l||!l.hasLoader)return!1;if(a(t,o)||s(t,o))return!0;if(t.route.shouldRevalidate){let n=t.route.shouldRevalidate({currentUrl:new URL(i.pathname+i.search+i.hash,window.origin),currentParams:r[0]?.params||{},nextUrl:new URL(e,window.origin),nextParams:t.params,defaultShouldRevalidate:!0});if("boolean"==typeof n)return n}return!0}):[]}function mo(e,t,{includeHydrateFallback:r}={}){return n=e.map(e=>{let n=t.routes[e.route.id];if(!n)return[];let i=[n.module];return n.clientActionModule&&(i=i.concat(n.clientActionModule)),n.clientLoaderModule&&(i=i.concat(n.clientLoaderModule)),r&&n.hydrateFallbackModule&&(i=i.concat(n.hydrateFallbackModule)),n.imports&&(i=i.concat(n.imports)),i}).flat(1),[...new Set(n)];var n}function go(e,t){let r=new Set,n=new Set(t);return e.reduce((e,i)=>{if(t&&!po(i)&&"script"===i.as&&i.href&&n.has(i.href))return e;let o=JSON.stringify(function(e){let t={},r=Object.keys(e).sort();for(let n of r)t[n]=e[n];return t}(i));return r.has(o)||(r.add(o),e.push({key:o,link:i})),e},[])}function yo(){let{nonce:e}=Vo();return n.createElement(ia,{title:"Loading...",renderScripts:!0},Ir?n.createElement("script",{nonce:e,dangerouslySetInnerHTML:{__html:'\n              console.log(\n                "💿 Hey developer 👋. You can provide a way better UX than this " +\n                "when your app is loading JS modules and/or running `clientLoader` " +\n                "functions. Check out https://reactrouter.com/start/framework/route-module#hydratefallback " +\n                "for more information."\n              );\n            '}}):null)}function bo(e){let t={};return Object.values(e).forEach(e=>{if(e){let r=e.parentId||"";t[r]||(t[r]=[]),t[r].push(e)}}),t}function vo(e,t,r){let i=Oo(t),o=!t.HydrateFallback||r&&"root"!==e.id?"root"===e.id?yo:void 0:t.HydrateFallback,a=t.ErrorBoundary?t.ErrorBoundary:"root"===e.id?()=>n.createElement(na,{error:dn()}):void 0;return"root"===e.id&&t.Layout?{...i?{element:n.createElement(t.Layout,null,n.createElement(i,null))}:{Component:i},...a?{errorElement:n.createElement(t.Layout,null,n.createElement(a,null))}:{ErrorBoundary:a},...o?{hydrateFallbackElement:n.createElement(t.Layout,null,n.createElement(o,null))}:{HydrateFallback:o}}:{Component:i,ErrorBoundary:a,HydrateFallback:o}}function _o(e,t,r,n,i="",o=bo(e),a=Promise.resolve({Component:()=>null})){return(o[i]||[]).map(i=>{let s=t[i.id];$i(s,"No `routeModule` available to create server routes");let l={...vo(i,s,n),caseSensitive:i.caseSensitive,id:i.id,index:i.index,path:i.path,handle:s.handle,lazy:n?()=>a:void 0,loader:i.hasLoader||i.hasClientLoader?()=>null:void 0},c=_o(e,t,r,n,i.id,o,a);return c.length>0&&(l.children=c),l})}function So(e,t,r,n,i,o){return wo(t,r,n,i,o,"",bo(t),e)}function Eo(e,t){if("loader"===e&&!t.hasLoader||"action"===e&&!t.hasAction){let r=`You are trying to call ${"action"===e?"serverAction()":"serverLoader()"} on a route that does not have a server ${e} (routeId: "${t.id}")`;throw console.error(r),new _e(400,"Bad Request",new Error(r),!0)}}function To(e,t){let r="clientAction"===e?"a":"an",n=`Route "${t}" does not have ${r} ${e}, but you are trying to submit to it. To fix this, please add ${r} \`${e}\` function to the route`;throw console.error(n),new _e(405,"Method Not Allowed",new Error(n),!0)}function wo(e,t,r,n,i,o="",a=bo(e),s){return(a[o]||[]).map(o=>{let l=t[o.id];function c(e){return $i("function"==typeof e,"No single fetch function available for route handler"),e()}function u(e){return o.hasLoader?c(e):Promise.resolve(null)}function p(e){if(!o.hasAction)throw To("action",o.id);return c(e)}function d(e){import(e)}function h(e){e.clientActionModule&&d(e.clientActionModule),e.clientLoaderModule&&d(e.clientLoaderModule)}async function f(e){let r=t[o.id],n=r?co(o,r):Promise.resolve();try{return e()}finally{await n}}let m={id:o.id,index:o.index,path:o.path};if(l){Object.assign(m,{...m,...vo(o,l,i),middleware:l.clientMiddleware,handle:l.handle,shouldRevalidate:xo(m.path,l,o,n,s)});let y=r&&r.loaderData&&o.id in r.loaderData,b=y?r?.loaderData?.[o.id]:void 0,v=r&&r.errors&&o.id in r.errors,_=v?r?.errors?.[o.id]:void 0,S=null==s&&(!0===l.clientLoader?.hydrate||!o.hasLoader);m.loader=async({request:e,params:t,context:r,pattern:n,url:i},a)=>{let s=S;return S=!1,await f(async()=>($i(l,"No `routeModule` available for critical-route loader"),l.clientLoader?l.clientLoader({request:e,params:t,context:r,pattern:n,url:i,async serverLoader(){if
11(Eo("loader",o),s){if(y)return b;if(v)throw _}return u(a)}}):u(a)))},m.loader.hydrate=Io(o.id,l.clientLoader,o.hasLoader,i),m.action=({request:e,params:t,context:r,pattern:n,url:a},s)=>f(async()=>{if($i(l,"No `routeModule` available for critical-route action"),!l.clientAction){if(i)throw To("clientAction",o.id);return p(s)}return l.clientAction({request:e,params:t,context:r,pattern:n,url:a,serverAction:async()=>(Eo("action",o),p(s))})})}else{let E;async function T(){return E||(E=(async()=>{(o.clientLoaderModule||o.clientActionModule)&&await new Promise(e=>setTimeout(e,0));let e=async function(e,t){let r=so(e,t),n=async function(e){if(!e.css)return;let t=lo(e);await Promise.all(t.map(uo))}(e),i=await r;return await Promise.all([n,co(e,i)]),{Component:Oo(i),ErrorBoundary:i.ErrorBoundary,clientMiddleware:i.clientMiddleware,clientAction:i.clientAction,clientLoader:i.clientLoader,handle:i.handle,links:i.links,meta:i.meta,shouldRevalidate:i.shouldRevalidate}}(o,t);return h(o),await e})()),await E}o.hasClientLoader||(m.loader=(e,t)=>f(()=>u(t))),o.hasClientAction||(m.action=(e,t)=>f(()=>{if(i)throw To("clientAction",o.id);return p(t)})),m.lazy={loader:o.hasClientLoader?async()=>{let{clientLoader:e}=o.clientLoaderModule?await(import(o.clientLoaderModule)):await T();return $i(e,"No `clientLoader` export found"),(t,r)=>e({...t,serverLoader:async()=>(Eo("loader",o),u(r))})}:void 0,action:o.hasClientAction?async()=>{let e=o.clientActionModule?import(o.clientActionModule):T();h(o);let{clientAction:t}=await e;return $i(t,"No `clientAction` export found"),(e,r)=>t({...e,serverAction:async()=>(Eo("action",o),p(r))})}:void 0,middleware:o.hasClientMiddleware?async()=>{let{clientMiddleware:e}=o.clientMiddlewareModule?await(import(o.clientMiddlewareModule)):await T();return $i(e,"No `clientMiddleware` export found"),e}:void 0,shouldRevalidate:async()=>{let e=await T();return xo(m.path,e,o,n,s)},handle:async()=>(await T()).handle,Component:async()=>(await T()).Component,ErrorBoundary:o.hasErrorBoundary?async()=>(await T()).ErrorBoundary:void 0}}let g=wo(e,t,r,n,i,o.id,a,s);return g.length>0&&(m.children=g),m})}function xo(e,t,r,n,i){if(i)return function(e,t,r){let n=!1;return i=>n?t?t(i):i.defaultShouldRevalidate:(n=!0,r.has(e))}(r.id,t.shouldRevalidate,i);if(!n&&r.hasLoader&&!r.hasClientLoader){let r=e?X(e)[1].map(e=>e.paramName):[];const n=e=>r.some(t=>e.currentParams[t]!==e.nextParams[t]);if(t.shouldRevalidate){let e=t.shouldRevalidate;return t=>e({...t,defaultShouldRevalidate:n(t)})}return e=>n(e)}return t.shouldRevalidate}function Oo(e){if(null==e.default)return;return"object"==typeof e.default&&0===Object.keys(e.default).length?void 0:e.default}function Io(e,t,r,n){return n&&"root"!==e||null!=t&&(!0===t.hydrate||!0!==r)}var Ao=new Set,ko=1e3,Ro=new Set,Co=7680;function Po(e){let t=new Set;return e.forEach(e=>{e.startsWith("/")||(e=`/${e}`);for(let r=1;r<e.length;r++)"/"===e[r]&&t.add(e.slice(0,r));t.add(e)}),Array.from(t)}function Do(e,t){return"lazy"===e.mode&&!0===t}function Mo(e,t,r,n,i,o,a){if(Do(i,n))return async({path:s,patch:l,signal:c,fetcherKey:u})=>{if(Ro.has(s))return;let{state:p}=e();await Bo([s],u?window.location.href:T(p.navigation.location||p.location),t,r,n,o,a,i.manifestPath,l,c)}}function No(e,t,r,i,o,a){n.useEffect(()=>{if(!Do(o,i)||!0===window.navigator?.connection?.saveData)return;function n(e){let t="FORM"===e.tagName?e.getAttribute("action"):e.getAttribute("href");if(!t)return;let r="A"===e.tagName?e.pathname:new URL(t,window.location.origin).pathname;Ro.has(r)||Ao.add(r)}async function s(){document.querySelectorAll("a[data-discover], form[data-discover]").forEach(n);let s=Array.from(Ao.keys()).filter(e=>!Ro.has(e)||(Ao.delete(e),!1));if(0!==s.length)try{await Bo(s,null,t,r,i,a,e.basename,o.manifestPath,e.patchRoutes)}catch(e){console.error("Failed to fetch manifest patches",e)}}let l=function(e,t){let r;return(...n)=>{window.clearTimeout(r),r=window.setTimeout(()=>e(...n),t)}}(s,100);s();let c=new MutationObserver(()=>l());return c.observe(document.documentElement,{subtree:!0,childList:!0,attributes:!0,attributeFilter:["data-discover","href","action"]}),()=>c.disconnect()},[i,a,t,r,e,o])}function Lo(e,t){let r=e||"/__manifest";return null==t?r:ce([t,r])}var Fo="react-router-manifest-version";async function Bo(e,t,r,n,i,o,a,s,l,c){e=Po(e);const u=new URLSearchParams;u.set("paths",e.sort().join(",")),u.set("version",r.version);let p,d=new URL(Lo(s,a),window.location.origin);if(d.search=u.toString(),d.toString().length>Co)return void Ao.clear();try{let e=await fetch(d,{signal:c});if(!e.ok)throw new Error(`${e.status} ${e.statusText}`);if(204===e.status&&e.headers.has("X-Remix-Reload-Document")){if(!t)return void console.warn("Detected a manifest version mismatch during eager route discovery. The next navigation/fetch to an undiscovered route will result in a 
11new document navigation to sync up with the latest manifest.");try{if(sessionStorage.getItem(Fo)===r.version)return void console.error("Unable to discover routes due to manifest version mismatch.");sessionStorage.setItem(Fo,r.version)}catch{}window.location.href=t,console.warn("Detected manifest version mismatch, reloading..."),await new Promise(()=>{})}else if(e.status>=400)throw new Error(await e.text());try{sessionStorage.removeItem(Fo)}catch{}p=await e.json()}catch(e){if(c?.aborted)return;throw e}let h=new Set(Object.keys(r.routes)),f=Object.values(p).reduce((e,t)=>(t&&!h.has(t.id)&&(e[t.id]=t),e),{});Object.assign(r.routes,f),e.forEach(e=>function(e,t){if(t.size>=ko){let e=t.values().next().value;t.delete(e)}t.add(e)}(e,Ro));let m=new Set;Object.values(f).forEach(e=>{!e||e.parentId&&f[e.parentId]||m.add(e.parentId)}),m.forEach(e=>l(e||null,wo(f,n,null,i,o,e)))}function Uo(){let e=n.useContext(mr);return $i(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}function jo(){let e=n.useContext(gr);return $i(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}var Ho=n.createContext(void 0);function Vo(){let e=n.useContext(Ho);return $i(e,"You must render this element inside a <HydratedRouter> element"),e}function zo(e,t){return r=>{e&&e(r),r.defaultPrevented||t(r)}}function Go(e,t,r){if(r&&!Xo)return[e[0]];if(t){let r=e.findIndex(e=>void 0!==t[e.route.id]);return e.slice(0,r+1)}return e}Ho.displayName="FrameworkContext";var qo="data-react-router-critical-css";function $o({nonce:e,crossOrigin:t}){let{isSpaMode:r,manifest:i,routeModules:o,criticalCss:a,nonce:s}=Vo(),{errors:l,matches:c}=jo(),u=Go(c,l,r),p=n.useMemo(()=>function(e,t,r){return go(e.map(e=>{let n=t[e.route.id],i=r.routes[e.route.id];return[i&&i.css?i.css.map(e=>({rel:"stylesheet",href:e})):[],n?.links?.()||[]]}).flat(2),mo(e,r))}(u,o,i),[u,o,i]);return null==e&&s&&(e=s),n.createElement(n.Fragment,null,"string"==typeof a?n.createElement("style",{[qo]:"",nonce:e,dangerouslySetInnerHTML:{__html:a}}):null,"object"==typeof a?n.createElement("link",{[qo]:"",rel:"stylesheet",href:a.href,nonce:e,crossOrigin:t}):null,p.map(({key:r,link:i})=>po(i)?n.createElement(Wo,{key:r,nonce:e,...i,crossOrigin:i.crossOrigin??t}):n.createElement("link",{key:r,nonce:e,...i,crossOrigin:i.crossOrigin??t})))}function Wo({page:e,...t}){let r=br(),{nonce:i}=Vo(),{router:o}=Uo(),a=n.useMemo(()=>M(o.routes,e,o.basename),[o.routes,e,o.basename]);return a?(null==t.nonce&&i&&(t={...t,nonce:i}),r?n.createElement(Ko,{page:e,matches:a,...t}):n.createElement(Jo,{page:e,matches:a,...t})):null}function Yo(e){let{manifest:t,routeModules:r}=Vo(),[i,o]=n.useState([]);return n.useEffect(()=>{let n=!1;return async function(e,t,r){return go((await Promise.all(e.map(async e=>{let n=t.routes[e.route.id];if(n){let e=await so(n,r);return e.links?e.links():[]}return[]}))).flat(1).filter(ho).filter(e=>"stylesheet"===e.rel||"preload"===e.rel).map(e=>"stylesheet"===e.rel?{...e,rel:"prefetch",as:"style"}:{...e,rel:"prefetch"}))}(e,t,r).then(e=>{n||o(e)}),()=>{n=!0}},[e,t,r]),i}function Ko({page:e,matches:t,...r}){let i=Nr(),{future:o}=Vo(),{basename:a}=Uo(),s=n.useMemo(()=>{if(e===i.pathname+i.search+i.hash)return[];let r=ro(e,a,o.v8_trailingSlashAwareDataRequests,"rsc"),n=!1,s=[];for(let e of t)"function"==typeof e.route.shouldRevalidate?n=!0:s.push(e.route.id);return n&&s.length>0&&r.searchParams.set("_routes",s.join(",")),[r.pathname+r.search]},[a,o.v8_trailingSlashAwareDataRequests,e,i,t]);return n.createElement(n.Fragment,null,s.map(e=>n.createElement("link",{key:e,rel:"prefetch",as:"fetch",href:e,...r})))}function Jo({page:e,matches:t,...r}){let i=Nr(),{future:o,manifest:a,routeModules:s}=Vo(),{basename:l}=Uo(),{loaderData:c,matches:u}=jo(),p=n.useMemo(()=>fo(e,t,u,a,i,"data"),[e,t,u,a,i]),d=n.useMemo(()=>fo(e,t,u,a,i,"assets"),[e,t,u,a,i]),h=n.useMemo(()=>{if(e===i.pathname+i.search+i.hash)return[];let r=new Set,n=!1;if(t.forEach(e=>{let t=a.routes[e.route.id];t&&t.hasLoader&&(!p.some(t=>t.route.id===e.route.id)&&e.route.id in c&&s[e.route.id]?.shouldRevalidate||t.hasClientLoader?n=!0:r.add(e.route.id))}),0===r.size)return[];let u=ro(e,l,o.v8_trailingSlashAwareDataRequests,"data");return n&&r.size>0&&u.searchParams.set("_routes",t.filter(e=>r.has(e.route.id)).map(e=>e.route.id).join(",")),[u.pathname+u.search]},[l,o.v8_trailingSlashAwareDataRequests,c,i,a,p,t,e,s]),f=n.useMemo(()=>mo(d,a),[d,a]),m=Yo(d);return n.createElement(n.Fragment,null,h.map(e=>n.createElement("link",{key:e,rel:"prefetch",as:"fetch",href:e,...r})),f.map(e=>n.createElement("link",{key:e,rel:"modulepreload",href:e,...r})),m.map(({key:e,link:t})=>n.createElement("link",{key:e,nonce:r.nonce,...t,crossOrigin:t.crossOrigin??r.crossOrigin})))}
11function Qo(){let{isSpaMode:e,routeModules:t}=Vo(),{errors:r,matches:i,loaderData:o}=jo(),a=Nr(),s=Go(i,r,e),l=null;r&&(l=r[s[s.length-1].route.id]);let c=[],u=null,p=[];for(let e=0;e<s.length;e++){let r=s[e],n=r.route.id,i=o[n],d=r.params,h=t[n],f=[],m={id:n,data:i,loaderData:i,meta:[],params:r.params,pathname:r.pathname,handle:r.route.handle,error:l};if(p[e]=m,h?.meta?f="function"==typeof h.meta?h.meta({data:i,loaderData:i,params:d,location:a,matches:p,error:l}):Array.isArray(h.meta)?[...h.meta]:h.meta:u&&(f=[...u]),f=f||[],!Array.isArray(f))throw new Error("The route at "+r.route.path+" returns an invalid value. All route meta functions must return an array of meta objects.\n\nTo reference the meta function API, see https://reactrouter.com/start/framework/route-module#meta");m.meta=f,p[e]=m,c=[...f],u=c}return n.createElement(n.Fragment,null,c.flat().map(e=>{if(!e)return null;if("tagName"in e){let{tagName:t,...r}=e;if(!function(e){return"string"==typeof e&&/^(meta|link)$/.test(e)}(t))return console.warn(`A meta object uses an invalid tagName: ${t}. Expected either 'link' or 'meta'`),null;let i=t;return n.createElement(i,{key:JSON.stringify(r),...r})}if("title"in e)return n.createElement("title",{key:"title"},String(e.title));if("charset"in e&&(e.charSet??(e.charSet=e.charset),delete e.charset),"charSet"in e&&null!=e.charSet)return"string"==typeof e.charSet?n.createElement("meta",{key:"charSet",charSet:e.charSet}):null;if("script:ld+json"in e)try{let t=JSON.stringify(e["script:ld+json"]);return n.createElement("script",{key:`script:ld+json:${t}`,type:"application/ld+json",dangerouslySetInnerHTML:{__html:qi(t)}})}catch(e){return null}return n.createElement("meta",{key:JSON.stringify(e),...e})}))}var Xo=!1;function Zo(){Xo=!0}function ea(e){let{manifest:t,serverHandoffString:r,isSpaMode:i,renderMeta:o,routeDiscovery:a,ssr:s,nonce:l}=Vo(),{router:c,static:u,staticContext:p}=Uo(),{matches:d}=jo(),h=br(),f=Do(a,s);null==e.nonce&&l&&(e={...e,nonce:l}),o&&(o.didRenderScripts=!0);let m=Go(d,null,i);n.useEffect(()=>{Zo()},[]);let g=n.useMemo(()=>{if(h)return null;let i=p?`window.__reactRouterContext = ${r};window.__reactRouterContext.stream = new ReadableStream({start(controller){window.__reactRouterContext.streamController = controller;}}).pipeThrough(new TextEncoderStream());`:" ",o=u?`${t.hmr?.runtime?`import ${JSON.stringify(t.hmr.runtime)};`:""}${f?"":`import ${JSON.stringify(t.url)}`};\n${m.map((e,r)=>{let n=`route${r}`,i=t.routes[e.route.id];$i(i,`Route ${e.route.id} not found in manifest`);let{clientActionModule:o,clientLoaderModule:a,clientMiddlewareModule:s,hydrateFallbackModule:l,module:c}=i,u=[...o?[{module:o,varName:`${n}_clientAction`}]:[],...a?[{module:a,varName:`${n}_clientLoader`}]:[],...s?[{module:s,varName:`${n}_clientMiddleware`}]:[],...l?[{module:l,varName:`${n}_HydrateFallback`}]:[],{module:c,varName:`${n}_main`}];return 1===u.length?`import * as ${n} from ${JSON.stringify(c)};`:[u.map(e=>`import * as ${e.varName} from "${e.module}";`).join("\n"),`const ${n} = {${u.map(e=>`...${e.varName}`).join(",")}};`].join("\n")}).join("\n")}\n  ${f?`window.__reactRouterManifest = ${JSON.stringify(function({sri:e,...t},r){let n=new Set(r.state.matches.map(e=>e.route.id)),i=r.state.location.pathname.split("/").filter(Boolean),o=["/"];for(i.pop();i.length>0;)o.push(`/${i.join("/")}`),i.pop();o.forEach(e=>{let t=N(r.routes,e,r.basename||"/",!1,r.branches);t&&t.forEach(e=>n.add(e.route.id))});let a=[...n].reduce((e,r)=>Object.assign(e,{[r]:t.routes[r]}),{});return{...t,routes:a,sri:!!e||void 0}}(t,c),null,2)};`:""}\n  window.__reactRouterRouteModules = {${m.map((e,t)=>`${JSON.stringify(e.route.id)}:route${t}`).join(",")}};\n\nimport(${JSON.stringify(t.entry.module)});`:" ";return n.createElement(n.Fragment,null,n.createElement("script",{...e,suppressHydrationWarning:!0,dangerouslySetInnerHTML:{__html:i},type:void 0}),n.createElement("script",{...e,suppressHydrationWarning:!0,dangerouslySetInnerHTML:{__html:o},type:"module",async:!0}))},[]),y=Xo||h?[]:[...new Set(t.entry.imports.concat(mo(m,t,{includeHydrateFallback:!0})))],b="object"==typeof t.sri?t.sri:{};return Tn(!h,"The <Scripts /> element is a no-op when using RSC and can be safely removed."),Xo||h?null:n.createElement(n.Fragment,null,"object"==typeof t.sri?n.createElement("script",{...e,"rr-importmap":"",type:"importmap",suppressHydrationWarning:!0,dangerouslySetInnerHTML:{__html:JSON.stringify({integrity:b})}}):null,f?null:n.createElement("link",{rel:"modulepreload",href:t.url,crossOrigin:e.crossOrigin,integrity:b[t.url],nonce:e.nonce,suppressHydrationWarning:!0}),n.createElement("link",{rel:"modulepreload",href:t.entry.module,crossOrigin:e.crossOrigin,integrity:b[t.entry.module],nonce:e.nonce,suppressHydrationWarning:!0}),y.map(t=>n.createElement("link",{key:t,rel:"modulepreload",href:t,crossOrigin:e.crossOrigin,integrity:b[t],nonce:e.nonce,suppressHydrationWarning:!0})),g)}function ta(...e){return t=>
11{e.forEach(e=>{"function"==typeof e?e(t):null!=e&&(e.current=t)})}}var ra=class extends n.Component{constructor(e){super(e),this.state={error:e.error||null,location:e.location}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location?{error:e.error||null,location:e.location}:{error:e.error||t.error,location:t.location}}render(){return this.state.error?n.createElement(na,{error:this.state.error,isOutsideRemixApp:!0}):this.props.children}};function na({error:e,isOutsideRemixApp:t}){let{nonce:r}=Vo();console.error(e);let i,o=n.createElement("script",{nonce:r,dangerouslySetInnerHTML:{__html:'\n        console.log(\n          "💿 Hey developer 👋. You can provide a way better UX than this when your app throws errors. Check out https://reactrouter.com/how-to/error-boundary for more information."\n        );\n      '}});if(Se(e))return n.createElement(ia,{title:"Unhandled Thrown Response!"},n.createElement("h1",{style:{fontSize:"24px"}},e.status," ",e.statusText),Ir?o:null);if(e instanceof Error)i=e;else{let t=null==e?"Unknown Error":"object"==typeof e&&"toString"in e?e.toString():JSON.stringify(e);i=new Error(t)}return n.createElement(ia,{title:"Application Error!",isOutsideRemixApp:t},n.createElement("h1",{style:{fontSize:"24px"}},"Application Error"),n.createElement("pre",{style:{padding:"2rem",background:"hsla(10, 50%, 50%, 0.1)",color:"red",overflow:"auto"}},i.stack),o)}function ia({title:e,renderScripts:t,isOutsideRemixApp:r,children:i}){let{routeModules:o}=Vo();return o.root?.Layout&&!r?i:n.createElement("html",{lang:"en"},n.createElement("head",null,n.createElement("meta",{charSet:"utf-8"}),n.createElement("meta",{name:"viewport",content:"width=device-width,initial-scale=1,viewport-fit=cover"}),n.createElement("title",null,e)),n.createElement("body",null,n.createElement("main",{style:{fontFamily:"system-ui, sans-serif",padding:"2rem"}},i,t?n.createElement(ea,null):null)))}var oa="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement;try{oa&&(window.__reactRouterVersion="7.18.3")}catch(e){}function aa(e,t){return rt({basename:t?.basename,getContext:t?.getContext,future:t?.future,history:y({window:t?.window}),hydrationData:t?.hydrationData||la(),routes:e,mapRouteProperties:On,hydrationRouteProperties:In,dataStrategy:t?.dataStrategy,patchRoutesOnNavigation:t?.patchRoutesOnNavigation,window:t?.window,instrumentations:t?.instrumentations}).initialize()}function sa(e,t){return rt({basename:t?.basename,getContext:t?.getContext,future:t?.future,history:b({window:t?.window}),hydrationData:t?.hydrationData||la(),routes:e,mapRouteProperties:On,hydrationRouteProperties:In,dataStrategy:t?.dataStrategy,patchRoutesOnNavigation:t?.patchRoutesOnNavigation,window:t?.window,instrumentations:t?.instrumentations}).initialize()}function la(){let e=window?.__staticRouterHydrationData;return e&&e.errors&&(e={...e,errors:ca(e.errors)}),e}function ca(e){if(!e)return null;let t=Object.entries(e),r={};for(let[e,n]of t)if(n&&"RouteErrorResponse"===n.__type)r[e]=new _e(n.status,n.statusText,n.data,!0===n.internal);else if(n&&"Error"===n.__type){if("string"==typeof n.__subType&&ve.includes(n.__subType)){let t=window[n.__subType];if("function"==typeof t)try{let i=new t(n.message);i.stack="",r[e]=i}catch(e){}}if(null==r[e]){let t=new Error(n.message);t.stack="",r[e]=t}}else r[e]=n;return r}function ua({basename:e,children:t,useTransitions:r,window:i}){let o=n.useRef();null==o.current&&(o.current=y({window:i,v5Compat:!0}));let a=o.current,[s,l]=n.useState({action:a.action,location:a.location}),c=n.useCallback(e=>{!1===r?l(e):n.startTransition(()=>l(e))},[r]);return n.useLayoutEffect(()=>a.listen(c),[a,c]),n.createElement(Bn,{basename:e,children:t,location:s.location,navigationType:s.action,navigator:a,useTransitions:r})}function pa({basename:e,children:t,useTransitions:r,window:i}){let o=n.useRef();null==o.current&&(o.current=b({window:i,v5Compat:!0}));let a=o.current,[s,l]=n.useState({action:a.action,location:a.location}),c=n.useCallback(e=>{!1===r?l(e):n.startTransition(()=>l(e))},[r]);return n.useLayoutEffect(()=>
11a.listen(c),[a,c]),n.createElement(Bn,{basename:e,children:t,location:s.location,navigationType:s.action,navigator:a,useTransitions:r})}function da({basename:e,children:t,history:r,useTransitions:i}){let[o,a]=n.useState({action:r.action,location:r.location}),s=n.useCallback(e=>{!1===i?a(e):n.startTransition(()=>a(e))},[i]);return n.useLayoutEffect(()=>r.listen(s),[r,s]),n.createElement(Bn,{basename:e,children:t,location:o.location,navigationType:o.action,navigator:r,useTransitions:i})}da.displayName="unstable_HistoryRouter";var ha=n.forwardRef(function({onClick:e,discover:t="render",prefetch:r="none",relative:i,reloadDocument:o,replace:a,mask:s,state:l,target:u,to:p,preventScrollReset:d,viewTransition:h,defaultShouldRevalidate:f,...m},g){let{basename:y,navigator:b,useTransitions:v}=n.useContext(Tr),_="string"==typeof p&&c.test(p),S=we(p,y),E=Dr(p=S.to,{relative:i}),T=Nr(),w=null;if(s){let e=se(s,[],T.mask?T.mask.pathname:"/",!0);"/"!==y&&(e.pathname="/"===e.pathname?y:ce([y,e.pathname])),w=b.createHref(e)}let[x,O,I]=function(e,t){let r=n.useContext(Ho),[i,o]=n.useState(!1),[a,s]=n.useState(!1),{onFocus:l,onBlur:c,onMouseEnter:u,onMouseLeave:p,onTouchStart:d}=t,h=n.useRef(null);n.useEffect(()=>{if("render"===e&&s(!0),"viewport"===e){let e=new IntersectionObserver(e=>{e.forEach(e=>{s(e.isIntersecting)})},{threshold:.5});return h.current&&e.observe(h.current),()=>{e.disconnect()}}},[e]),n.useEffect(()=>{if(i){let e=setTimeout(()=>{s(!0)},100);return()=>{clearTimeout(e)}}},[i]);let f=()=>{o(!0)},m=()=>{o(!1),s(!1)};return r?"intent"!==e?[a,h,{}]:[a,h,{onFocus:zo(l,f),onBlur:zo(c,m),onMouseEnter:zo(u,f),onMouseLeave:zo(p,m),onTouchStart:zo(d,f)}]:[!1,h,{}]}(r,m),A=_a(p,{replace:a,mask:s,state:l,target:u,preventScrollReset:d,relative:i,viewTransition:h,defaultShouldRevalidate:f,useTransitions:v});let k=!(S.isExternal||o),R=n.createElement("a",{...m,...I,href:(k?w:void 0)||S.absoluteURL||E,onClick:k?function(t){e&&e(t),t.defaultPrevented||A(t)}:e,ref:ta(g,O),target:u,"data-discover":_||"render"!==t?void 0:"true"});return x&&!_?n.createElement(n.Fragment,null,R,n.createElement(Wo,{page:E})):R});ha.displayName="Link";var fa=n.forwardRef(function({"aria-current":e="page",caseSensitive:t=!1,className:r="",end:i=!1,style:o,to:a,viewTransition:s,children:l,...c},u){let p=qr(a,{relative:c.relative}),d=Nr(),h=n.useContext(gr),{navigator:f,basename:m}=n.useContext(Tr),g=null!=h&&Ma(p)&&!0===s,y=f.encodeLocation?f.encodeLocation(p).pathname:p.pathname,b=d.pathname,v=h&&h.navigation&&h.navigation.location?h.navigation.location.pathname:null;t||(b=b.toLowerCase(),v=v?v.toLowerCase():null,y=y.toLowerCase()),v&&m&&(v=ee(v,m)||v);const _="/"!==y&&y.endsWith("/")?y.length-1:y.length;let S,E=b===y||!i&&b.startsWith(y)&&"/"===b.charAt(_),T=null!=v&&(v===y||!i&&v.startsWith(y)&&"/"===v.charAt(y.length)),w={isActive:E,isPending:T,isTransitioning:g},x=E?e:void 0;S="function"==typeof r?r(w):[r,E?"active":null,T?"pending":null,g?"transitioning":null].filter(Boolean).join(" ");let O="function"==typeof o?o(w):o;return n.createElement(ha,{...c,"aria-current":x,className:S,ref:u,style:O,to:a,viewTransition:s},"function"==typeof l?l(w):l)});fa.displayName="NavLink";var ma=n.forwardRef(({discover:e="render",fetcherKey:t,navigate:r,reloadDocument:i,replace:o,state:a,method:s=ti,action:l,onSubmit:u,relative:p,preventScrollReset:d,viewTransition:h,defaultShouldRevalidate:f,...m},g)=>{let{useTransitions:y}=n.useContext(Tr),b=wa(),v=xa(l,{relative:p}),_="get"===s.toLowerCase()?"get":"post",S="string"==typeof l&&c.test(l);return n.createElement("form",{ref:g,method:_,action:v,onSubmit:i?u:e=>{if(u&&u(e),e.defaultPrevented)return;e.preventDefault();let i=e.nativeEvent.submitter,l=i?.getAttribute("formmethod")||s,c=()=>b(i||e.currentTarget,{fetcherKey:t,method:l,navigate:r,replace:o,state:a,relative:p,preventScrollReset:d,viewTransition:h,defaultShouldRevalidate:f});y&&!1!==r?n.startTransition(()=>c()):c()},...m,"data-discover":S||"render"!==e?void 0:"true"})});function ga({getKey:e,storageKey:t,...r}){let i=n.useContext(Ho),{basename:o}=n.useContext(Tr),a=Nr(),s=ln();Ca({getKey:e,storageKey:t});let l=n.useMemo(()=>
11{if(!i||!e)return null;let t=Ra(a,s,o,e);return t!==a.key?t:null},[]);if(!i||i.isSpaMode)return null;let c=((e,t)=>{if(!window.history.state||!window.history.state.key){let e=Math.random().toString(32).slice(2);window.history.replaceState({key:e},"")}try{let r=JSON.parse(sessionStorage.getItem(e)||"{}")[t||window.history.state.key];"number"==typeof r&&window.scrollTo(0,r)}catch(t){console.error(t),sessionStorage.removeItem(e)}}).toString();return null==r.nonce&&i?.nonce&&(r.nonce=i.nonce),n.createElement("script",{...r,suppressHydrationWarning:!0,dangerouslySetInnerHTML:{__html:`(${c})(${qi(JSON.stringify(t||Aa))}, ${qi(JSON.stringify(l))})`}})}function ya(e){return`${e} must be used within a data router.  See https://reactrouter.com/en/main/routers/picking-a-router.`}function ba(e){let t=n.useContext(mr);return v(t,ya(e)),t}function va(e){let t=n.useContext(gr);return v(t,ya(e)),t}function _a(e,{target:t,replace:r,mask:i,state:o,preventScrollReset:a,relative:s,viewTransition:l,defaultShouldRevalidate:c,useTransitions:u}={}){let p=jr(),d=Nr(),h=qr(e,{relative:s});return n.useCallback(f=>{if(function(e,t){return!(0!==e.button||t&&"_self"!==t||function(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}(e))}(f,t)){f.preventDefault();let t=void 0!==r?r:T(d)===T(h),m=()=>p(e,{replace:t,mask:i,state:o,preventScrollReset:a,relative:s,viewTransition:l,defaultShouldRevalidate:c});u?n.startTransition(()=>m()):m()}},[d,p,h,r,i,o,t,e,a,s,l,c,u])}function Sa(e){_("undefined"!=typeof URLSearchParams,"You cannot use the `useSearchParams` hook in a browser that does not support the URLSearchParams API. If you need to support Internet Explorer 11, we recommend you load a polyfill such as https://github.com/ungap/url-search-params.");let t=n.useRef(ii(e)),r=n.useRef(!1),i=Nr(),o=n.useMemo(()=>function(e,t){let r=ii(e);return t&&t.forEach((e,n)=>{r.has(n)||t.getAll(n).forEach(e=>{r.append(n,e)})}),r}(i.search,r.current?null:t.current),[i.search]),a=jr(),s=n.useCallback((e,t)=>{const n=ii("function"==typeof e?e(new URLSearchParams(o)):e);r.current=!0,a("?"+n,t)},[a,o]);return[o,s]}ma.displayName="Form",ga.displayName="ScrollRestoration";var Ea=0,Ta=()=>`__${String(++Ea)}__`;function wa(){let{router:e}=ba("useSubmit"),{basename:t}=n.useContext(Tr),r=on("useRouteId"),i=e.fetch,o=e.navigate;return n.useCallback(async(e,n={})=>{let{action:a,method:s,encType:l,formData:c,body:u}=li(e,t);if(!1===n.navigate){let e=n.fetcherKey||Ta();await i(e,r,n.action||a,{defaultShouldRevalidate:n.defaultShouldRevalidate,preventScrollReset:n.preventScrollReset,formData:c,body:u,formMethod:n.method||s,formEncType:n.encType||l,flushSync:n.flushSync})}else await o(n.action||a,{defaultShouldRevalidate:n.defaultShouldRevalidate,preventScrollReset:n.preventScrollReset,formData:c,body:u,formMethod:n.method||s,formEncType:n.encType||l,replace:n.replace,state:n.state,fromRouteId:r,flushSync:n.flushSync,viewTransition:n.viewTransition})},[i,o,t,r])}function xa(e,{relative:t}={}){let{basename:r}=n.useContext(Tr),i=n.useContext(xr);v(i,"useFormAction must be used inside a RouteContext");let[o]=i.matches.slice(-1),a={...qr(e||".",{relative:t})},s=Nr();if(null==e){a.search=s.search;let e=new URLSearchParams(a.search),t=e.getAll("index");if(t.some(e=>""===e)){e.delete("index"),t.filter(e=>e).forEach(t=>e.append("index",t));let r=e.toString();a.search=r?`?${r}`:""}}return e&&"."!==e||!o.route.index||(a.search=a.search?a.search.replace(/^\?/,"?index&"):"?index"),"/"!==r&&(a.pathname="/"===a.pathname?r:ce([r,a.pathname])),T(a)}function Oa({key:e}={}){let{router:t}=ba("useFetcher"),r=va("useFetcher"),i=n.useContext(_r),o=n.useContext(xr),a=o.matches[o.matches.length-1]?.route.id;v(i,"useFetcher must be used inside a FetchersContext"),v(o,"useFetcher must be used inside a RouteContext"),v(null!=a,'useFetcher can only be used on routes that contain a unique "id"');let s=n.useId(),[l,c]=n.useState(e||s);e&&e!==l&&c(e);let{deleteFetcher:u,getFetcher:p,resetFetcher:d,fetch:h}=t;n.useEffect(()=>(p(l),()=>u(l)),[u,p,l]);let f=n.useCallback(async(e,t)=>{v(a,"No routeId available for fetcher.load()"),await h(l,a,e,t)},[l,a,h]),m=wa(),g=n.useCallback(async(e,t)=>{await m(e,{...t,navigate:!1,fetcherKey:l})},[l,m]),y=n.useCallback(e=>d(l,e),[d,l]),b=n.useMemo(()=>{let e=n.forwardRef((e,t)=>
11n.createElement(ma,{...e,navigate:!1,fetcherKey:l,ref:t}));return e.displayName="fetcher.Form",e},[l]),_=r.fetchers.get(l)||Je,S=i.get(l);return n.useMemo(()=>({Form:b,submit:g,load:f,reset:y,..._,data:S}),[b,g,f,y,_,S])}function Ia(){let e=va("useFetchers");return n.useMemo(()=>Array.from(e.fetchers.entries()).map(([e,t])=>({...t,key:e})),[e.fetchers])}var Aa="react-router-scroll-positions",ka={};function Ra(e,t,r,n){let i=null;return n&&(i=n("/"!==r?{...e,pathname:ee(e.pathname,r)||e.pathname}:e,t)),null==i&&(i=e.key),i}function Ca({getKey:e,storageKey:t}={}){let{router:r}=ba("useScrollRestoration"),{restoreScrollPosition:i,preventScrollReset:o}=va("useScrollRestoration"),{basename:a}=n.useContext(Tr),s=Nr(),l=ln(),c=an();n.useEffect(()=>(window.history.scrollRestoration="manual",()=>{window.history.scrollRestoration="auto"}),[]),function(e,t){let{capture:r}=t||{};n.useEffect(()=>{let t=null!=r?{capture:r}:void 0;return window.addEventListener("pagehide",e,t),()=>{window.removeEventListener("pagehide",e,t)}},[e,r])}(n.useCallback(()=>{if("idle"===c.state){let t=Ra(s,l,a,e);ka[t]=window.scrollY}try{sessionStorage.setItem(t||Aa,JSON.stringify(ka))}catch(e){_(!1,`Failed to save scroll positions in sessionStorage, <ScrollRestoration /> will not work properly (${e}).`)}window.history.scrollRestoration="auto"},[c.state,e,a,s,l,t])),"undefined"!=typeof document&&(n.useLayoutEffect(()=>{try{let e=sessionStorage.getItem(t||Aa);e&&(ka=JSON.parse(e))}catch(e){}},[t]),n.useLayoutEffect(()=>{let t=r?.enableScrollRestoration(ka,()=>window.scrollY,e?(t,r)=>Ra(t,r,a,e):void 0);return()=>t&&t()},[r,a,e]),n.useLayoutEffect(()=>{if(!1!==i)if("number"!=typeof i){try{if(s.hash){let e=document.getElementById(decodeURIComponent(s.hash.slice(1)));if(e)return void e.scrollIntoView()}}catch{_(!1,`"${s.hash.slice(1)}" is not a decodable element ID. The view will not scroll to it.`)}!0!==o&&window.scrollTo(0,0)}else window.scrollTo(0,i)},[s,i,o]))}function Pa(e,t){let{capture:r}=t||{};n.useEffect(()=>{let t=null!=r?{capture:r}:void 0;return window.addEventListener("beforeunload",e,t),()=>{window.removeEventListener("beforeunload",e,t)}},[e,r])}function Da({when:e,message:t}){let r=gn(e);n.useEffect(()=>{if("blocked"===r.state){window.confirm(t)?setTimeout(r.proceed,0):r.reset()}},[r,t]),n.useEffect(()=>{"blocked"!==r.state||e||r.reset()},[r,e])}function Ma(e,{relative:t}={}){let r=n.useContext(vr);v(null!=r,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`.  Did you accidentally import `RouterProvider` from `react-router`?");let{basename:i}=ba("useViewTransitionState"),o=qr(e,{relative:t});if(!r.isTransitioning)return!1;let a=ee(r.currentLocation.pathname,i)||r.currentLocation.pathname,s=ee(r.nextLocation.pathname,i)||r.nextLocation.pathname;return null!=J(o.pathname,s)||null!=J(o.pathname,a)}function Na({basename:e,children:t,location:r="/"}){"string"==typeof r&&(r=w(r));let i={pathname:r.pathname||"/",search:r.search||"",hash:r.hash||"",state:null!=r.state?r.state:null,key:r.key||"default",mask:void 0},o=Ba();return n.createElement(Bn,{basename:e,children:t,location:i,navigationType:"POP",navigator:o,static:!0,useTransitions:!1})}function La({context:e,router:t,hydrate:r=!0,nonce:i}){v(t&&e,"You must provide `router` and `context` to <StaticRouterProvider>");let o={router:t,navigator:Ba(),static:!0,staticContext:e,basename:e.basename||"/"},a=new Map,s="";if(!1!==r){let t={loaderData:e.loaderData,actionData:e.actionData,errors:Fa(e.errors)};s=`window.__staticRouterHydrationData = JSON.parse(${qi(JSON.stringify(JSON.stringify(t)))});`}let{state:l}=o.router;return n.createElement(n.Fragment,null,n.createElement(mr.Provider,{value:o},n.createElement(gr.Provider,{value:l},n.createElement(_r.Provider,{value:a},n.createElement(vr.Provider,{value:{isTransitioning:!1}},n.createElement(Bn,{basename:o.basename,location:l.location,navigationType:l.historyAction,navigator:o.navigator,static:o.static,useTransitions:!1},n.createElement(Dn,{manifest:t.manifest,routes:t.routes,future:t.future,state:l,isStatic:!0})))))),s?n.createElement("script",{suppressHydrationWarning:!0,nonce:i,dangerouslySetInnerHTML:{__html:s}}):null)}function Fa(e){if(!e)return null;let t=Object.entries(e),r={};for(let[e,n]of t)Se(n)?r[e]={...n,__type:"RouteErrorResponse"}:n instanceof Error?r[e]={message:n.message,__type:"Error",..."Error"!==n.name?{__subType:n.name}:{}}:r[e]=n;return r}function Ba(){return{createHref:Ha,encodeLocation:Va,push(e){throw new Error(`You cannot use navigator.push() on the server because it is a stateless environment. This error was probably triggered when you did a \`navigate(${JSON.stringify(e)})\` somewhere in your app.`)},replace(e){throw new Error(`You cannot use navigator.replace() on the server because it is a stateless environment. This error was probably triggered when you did a \`navigate(${JSON.stringify(e)}, { replace: true })\` somewhere in your app.`)},go(e){throw new Error(`You cannot use navigator.go() on the server because it is a stateless environment. This error was probably triggered when you did a \`navigate(${e})\` somewhere in your app.`)},back(){throw new Error("You cannot use navigator.back() on the server because it is a stateless environment.")},forward(){throw new Error("You cannot use navigator.forward() on the server because it is a stateless environment.")}}}function Ua(e,t){return nt(e,{...t,mapRouteProperties:On})}function ja(e,t,r={}){let n={},i=P(e,On,void 0,n),o=t.matches.map(e=>{let t=n[e.route.id]||e.route;return{...e,route:t}}),a=e=>`You cannot use router.${e}() on the server because it is a stateless environment`;return{get basename(){return t.basename},get future(){return{v8_middleware:!1,v8_passThroughRequests:!1,v8_trailingSlashAwareDataRequests:!1,...r?.future}},get state(){return{historyAction:"POP",location:t.location,matches:o,loaderData:t.loaderData,actionData:t.actionData,errors:t.errors,initialized:!0,renderFallback:!1,navigation:Ke,restoreScrollPosition:null,preventScrollReset:!1,revalidation:"idle",fetchers:new Map,blockers:new Map}},get routes(){return i},get branches(){return r.branches},get manifest(){return n},get window(){},initialize(){throw a("initialize")},subscribe(){throw a("subscribe")},enableScrollRestoration(){throw a("enableScrollRestoration")},navigate(){throw a("navigate")},fetch(){throw a("fetch")},revalidate(){throw a("revalidate")},createHref:Ha,encodeLocation:Va,getFetcher:()=>Je,deleteFetcher(){throw a("deleteFetcher")},resetFetcher(){throw a("resetFetcher")},dispose(){throw a("dispose")},getBlocker:()=>Qe,deleteBlocker(){throw a("deleteBlocker")},patchRoutes(){throw a("patchRoutes")},_internalFetchControllers:new Map,_internalSetRoutes(){throw a("_internalSetRoutes")},_internalSetStateDoNotUseOrYouWillBreakYourApp(){throw a("_internalSetStateDoNotUseOrYouWillBreakYourApp")}}}function Ha(e){return"string"==typeof e?e:T(e)}function Va(e){let t="string"==typeof e?e:T(e);t=t.replace(/ $/,"%20");let r=c.test(t)?new URL(t):new URL(t,"http://localhost");return{pathname:r.pathname,search:r.search,hash:r.hash}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{HydratedRouter:()=>u,RouterProvider:()=>a,unstable_RSCHydratedRouter:()=>m,unstable_createCallServer:()=>d,unstable_getRSCStream:()=>I});var n=r(774),i=r(772),o=r(341);function a(e){return o.createElement(i.RouterProvider,{flushSync:o.flushSync,...e})}var s=null,l=null;function c({getContext:e,instrumentations:t}){if(function(){if(!s&&window.__reactRouterContext&&window.__reactRouterManifest&&window.__reactRouterRouteModules){if(!0===window.__reactRouterManifest.sri){const e=document.querySelector("script[rr-importmap]");if(e?.textContent)try{window.__reactRouterManifest.sri=JSON.parse(e.textContent).integrity}catch(e){console.error("Failed to parse import map",e)}}s={context:window.__reactRouterContext,manifest:window.__reactRouterManifest,routeModules:window.__reactRouterRouteModules,stateDecodingPromise:void 0,router:void 0,routerInitialized:!1}}}(),!s)throw new Error("You must be using the SSR features of React Router in order to skip passing a `router` prop to `<
11RouterProvider>`");let r=s;if(!s.stateDecodingPromise){let e=s.context.stream;(0,i.invariant)(e,"No stream found for single fetch decoding"),s.context.stream=void 0,s.stateDecodingPromise=(0,i.decodeViaTurboStream)(e,window).then(e=>{s.context.state=e.value,r.stateDecodingPromise.value=!0}).catch(e=>{r.stateDecodingPromise.error=e})}if(s.stateDecodingPromise.error)throw s.stateDecodingPromise.error;if(!s.stateDecodingPromise.value)throw s.stateDecodingPromise;let o,a=(0,i.createClientRoutes)(s.manifest.routes,s.routeModules,s.context.state,s.context.ssr,s.context.isSpaMode);if(s.context.isSpaMode){let{loaderData:e}=s.context.state;s.manifest.routes.root?.hasLoader&&e&&"root"in e&&(o={loaderData:{root:e.root}})}else o=(0,n.getHydrationData)({state:s.context.state,routes:a,getRouteInfo:e=>({clientLoader:s.routeModules[e]?.clientLoader,hasLoader:!0===s.manifest.routes[e]?.hasLoader,hasHydrateFallback:null!=s.routeModules[e]?.HydrateFallback}),location:window.location,basename:window.__reactRouterContext?.basename,isSpaMode:s.context.isSpaMode});window.history.state&&window.history.state.masked&&window.history.replaceState({...window.history.state,masked:void 0},"");let l=(0,i.createRouter)({routes:a,history:(0,i.createBrowserHistory)(),basename:s.context.basename,getContext:e,hydrationData:o,hydrationRouteProperties:i.hydrationRouteProperties,instrumentations:t,mapRouteProperties:i.mapRouteProperties,future:{v8_passThroughRequests:s.context.future.v8_passThroughRequests},dataStrategy:(0,i.getTurboStreamSingleFetchDataStrategy)(()=>l,s.manifest,s.routeModules,s.context.ssr,s.context.basename,s.context.future.v8_trailingSlashAwareDataRequests),patchRoutesOnNavigation:(0,i.getPatchRoutesOnNavigationFunction)(()=>l,s.manifest,s.routeModules,s.context.ssr,s.context.routeDiscovery,s.context.isSpaMode,s.context.basename)});return s.router=l,l.state.initialized&&(s.routerInitialized=!0,l.initialize()),l.createRoutesForHMR=i.createClientRoutesWithHMRRevalidationOptOut,window.__reactRouterDataRouter=l,l}function u(e){l||(l=c({getContext:e.getContext,instrumentations:e.instrumentations}));let[t,r]=o.useState(void 0);o.useEffect(()=>{0},[]),o.useEffect(()=>{0},[t]);let[n,u]=o.useState(l.state.location);return o.useLayoutEffect(()=>{s&&s.router&&!s.routerInitialized&&(s.routerInitialized=!0,s.router.initialize())},[]),o.useLayoutEffect(()=>{if(s&&s.router)return s.router.subscribe(e=>{e.location!==n&&u(e.location)})},[n]),(0,i.invariant)(s,"ssrInfo unavailable for HydratedRouter"),(0,i.useFogOFWarDiscovery)(l,s.manifest,s.routeModules,s.context.ssr,s.context.routeDiscovery,s.context.isSpaMode),o.createElement(o.Fragment,null,o.createElement(i.FrameworkContext.Provider,{value:{manifest:s.manifest,routeModules:s.routeModules,future:s.context.future,criticalCss:t,ssr:s.context.ssr,isSpaMode:s.context.isSpaMode,routeDiscovery:s.context.routeDiscovery}},o.createElement(i.RemixErrorBoundary,{location:n},o.createElement(a,{router:l,useTransitions:e.useTransitions,onError:e.onError}))),o.createElement(o.Fragment,null))}var p="/__manifest";function d({createFromReadableStream:e,createTemporaryReferenceSet:t,encodeReply:r,fetch:n=fetch}){const a=window;return async(s,l)=>{let c=a.__routerActionID=(a.__routerActionID??(a.__routerActionID=0))+1;const u=t(),p=n(new Request(location.href,{body:await r(l,{temporaryReferences:u}),method:"POST",headers:{Accept:"text/x-component","rsc-action-id":s}})).then(t=>{if(!t.body)throw new Error("No response body");return e(t.body,{temporaryReferences:u})});return o.startTransition(()=>Promise.resolve(p).then(async e=>{if("redirect"===e.type){let t=w(e.location);if((0,i.validateNavigationTarget)(e.location,t,new URL(window.location.href),"allow-explicit"),e.reload||T(t)){if((0,i.hasInvalidProtocol)(t))throw new Error("Invalid redirect location");return void(window.location.href=t)}return void o.startTransition(()=>{a.__reactRouterDataRouter.navigate(t,{replace:e.replace})})}if("action"!==e.type)throw new Error("Unexpected payload type");const t=await e.rerender;if(t&&0<c&&a.__routerActionID<=c){if("redirect"===t.type){let e=w(t.location);
11if((0,i.validateNavigationTarget)(t.location,e,new URL(window.location.href),"allow-explicit"),t.reload||T(e)){if((0,i.hasInvalidProtocol)(e))throw new Error("Invalid redirect location");return void(window.location.href=e)}return void o.startTransition(()=>{a.__reactRouterDataRouter.navigate(e,{replace:t.replace})})}o.startTransition(()=>{let e;for(const r of t.matches)a.__reactRouterDataRouter.patchRoutes(e?.id??null,[g(r)],!0),e=r;window.__reactRouterDataRouter._internalSetStateDoNotUseOrYouWillBreakYourApp({loaderData:Object.assign({},a.__reactRouterDataRouter.state.loaderData,t.loaderData),errors:t.errors?Object.assign({},a.__reactRouterDataRouter.state.errors,t.errors):null})})}}).catch(()=>{})),p.then(e=>{if("action"!==e.type&&"redirect"!==e.type)throw new Error("Unexpected payload type");return e.actionResult})}}var h=(0,i.createContext)();function f(e,t,r,n,a){let s=(0,i.getSingleFetchDataStrategyImpl)(e,e=>{let t=e;return{hasLoader:t.route.hasLoader,hasClientLoader:t.route.hasClientLoader,hasComponent:t.route.hasComponent,hasAction:t.route.hasAction,hasClientAction:t.route.hasClientAction}},function(e,t){return async(r,n,o,a)=>{let{request:s,context:l}=r,c=(0,i.singleFetchUrl)(s.url,n,o,"rsc");"GET"===s.method&&(c=(0,i.stripIndexParam)(c),a&&c.searchParams.set("_routes",a.join(",")));let u=await t(new Request(c,await(0,i.createRequestInit)(s)));if(u.status>=400&&!u.headers.has("X-Remix-Response"))throw new i.ErrorResponseImpl(u.status,u.statusText,await u.text());(0,i.invariant)(u.body,"No response body to decode");try{const t=await e(u.body,{temporaryReferences:void 0});if("redirect"===t.type)return{status:u.status,data:{redirect:{redirect:t.location,reload:t.reload,replace:t.replace,revalidate:!1,status:t.status}}};if("render"!==t.type)throw new Error("Unexpected payload type");l.get(h).push(...t.matches);let r={routes:{}};const n=(0,i.isMutationMethod)(s.method)?"actionData":"loaderData";for(let[e,i]of Object.entries(t[n]||{}))r.routes[e]={data:i};if(t.errors)for(let[e,n]of Object.entries(t.errors))r.routes[e]={error:n};return{status:u.status,data:r}}catch(e){throw new Error("Unable to decode RSC response",{cause:e})}}}(n,a),t,r,!0,e=>{let t=e;return t.route.hasComponent&&!t.route.element});return async e=>e.runClientMiddleware(async()=>{let t=e.context;t.set(h,[]);let r=await s(e);const n=new Map;for(const e of t.get(h))n.has(e.id)||n.set(e.id,[]),n.get(e.id).push(e);return o.startTransition(()=>{for(const t of e.matches){const e=n.get(t.route.id);if(e)for(const t of e)window.__reactRouterDataRouter.patchRoutes(t.parentId??null,[g(t)],!0)}}),r})}function m({createFromReadableStream:e,fetch:t=fetch,payload:r,getContext:a}){if("render"!==r.type)throw new Error("Invalid payload type");let{routeDiscovery:s}=r,{router:l,routeModules:c}=o.useMemo(()=>function({fetchImplementation:e,createFromReadableStream:t,getContext:r,payload:a}){const s=window;if(s.__reactRouterDataRouter&&s.__reactRouterRouteModules)return{router:s.__reactRouterDataRouter,routeModules:s.__reactRouterRouteModules};if("render"!==a.type)throw new Error("Invalid payload type");s.__reactRouterRouteModules=s.__reactRouterRouteModules??{},(0,n.populateRSCRouteModules)(s.__reactRouterRouteModules,a.matches);let l,c,u=a.matches.reduceRight((e,t)=>{const r=g(t,a);return e.length>0?r.children=e:r.index||(r.children=[]),[r]},[]);return s.__reactRouterDataRouter=(0,i.createRouter)({routes:u,getContext:r,basename:a.basename,history:(0,i.createBrowserHistory)(),hydrationData:(0,n.getHydrationData)({state:{loaderData:a.loaderData,actionData:a.actionData,errors:a.errors},routes:u,getRouteInfo:e=>{let t=a.matches.find(t=>t.id===e);return(0,i.invariant)(t,"Route not found in payload"),{clientLoader:t.clientLoader,hasLoader:t.hasLoader,hasHydrateFallback:null!=t.hydrateFallbackElement}},location:a.location,basename:a.basename,isSpaMode:!1}),async patchRoutesOnNavigation({path:r,signal:n}){if("initial"===a.routeDiscovery.mode)return l||(l=(async()=>{if(!a.patches)return;let e=await a.patches;o.startTransition(()=>{e.forEach(e=>{window.__reactRouterDataRouter.patchRoutes(e.parentId??null,[g(e)])})})})()),void await l;S.has(r)||await E([r],t,e,n)},dataStrategy:f(()=>s.__reactRouterDataRouter,!0,a.basename,t,e)}),s.__reactRouterDataRouter.state.initialized?(s.__routerInitialized=!0,s.__reactRouterDataRouter.initialize()):s.__routerInitialized=!1,s.__reactRouterDataRouter.subscribe(({loaderData:e,actionData:t})=>{c!==e&&(s.__routerActionID=(s.__routerActionID??(s.__routerActionID=0))+1)}),s.__reactRouterDataRouter._updateRoutesForHMR=e=>{const t=window.__reactRouterDataRouter.routes,r=[];r.push(...function t(r,n){return r.map(r=>{const i=e.get(r.id);if(i){const{routeModule:e,hasAction:o,hasComponent:a,hasErrorBoundary:s,hasLoader:l}=i,c=g({clientAction:e.clientAction,clientLoader:e.clientLoader,element:r.element,errorElement:r.errorElement,handle:r.handle,hasAction:o,hasComponent:a,hasErrorBoundary:s,hasLoader:l,hydrateFallbackElement:r.hydrateFallbackElement,id:r.id,index:r.index,links:e.links,meta:e.meta,parentId:n,path:r.path,shouldRevalidate:e.shouldRevalidate});return r.children&&(c.children=t(r.children,r.id)),c}const o={...r};return r.children&&(o.children=t(r.children,r.id)),o})}(t,void 0)),window.__reactRouterDataRouter._internalSetRoutes(r)},{router:s.__reactRouterDataRouter,routeModules:s.__reactRouterRouteModules}}({payload:r,fetchImplementation:t,getContext:a,createFromReadableStream:e}),[e,r,t,a]);o.useEffect(()=>{(0,i.setIsHydrated)()},[]),o.useLayoutEffect(()=>{const e=window;e.__routerInitialized||(e.__routerInitialized=!0,e.__reactRouterDataRouter.initialize())},[]);let[{routes:u,state:d}
11,h]=o.useState(()=>({routes:x(l.routes),state:l.state}));o.useLayoutEffect(()=>l.subscribe(e=>{O(l.routes,u)&&o.startTransition(()=>{h({routes:x(l.routes),state:e})})}),[l.subscribe,u,l]);const m=o.useMemo(()=>({...l,state:d,routes:u}),[l,u,d]);o.useEffect(()=>{if("initial"===s.mode||!0===window.navigator?.connection?.saveData)return;function r(e){let t="FORM"===e.tagName?e.getAttribute("action"):e.getAttribute("href");if(!t)return;let r="A"===e.tagName?e.pathname:new URL(t,window.location.origin).pathname;S.has(r)||v.add(r)}async function n(){document.querySelectorAll("a[data-discover], form[data-discover]").forEach(r);let n=Array.from(v.keys()).filter(e=>!S.has(e)||(v.delete(e),!1));if(0!==n.length)try{await E(n,e,t)}catch(e){console.error("Failed to fetch manifest patches",e)}}let i=function(e,t){let r;return(...n)=>{window.clearTimeout(r),r=window.setTimeout(()=>e(...n),t)}}(n,100);n(),new MutationObserver(()=>i()).observe(document.documentElement,{subtree:!0,childList:!0,attributes:!0,attributeFilter:["data-discover","href","action"]})},[s,e,t]);const y={future:{v8_middleware:!1,v8_trailingSlashAwareDataRequests:!0,v8_passThroughRequests:!0},isSpaMode:!1,ssr:!0,criticalCss:"",manifest:{routes:{},version:"1",url:"",entry:{module:"",imports:[]}},routeDiscovery:"initial"===r.routeDiscovery.mode?{mode:"initial",manifestPath:p}:{mode:"lazy",manifestPath:r.routeDiscovery.manifestPath||p},routeModules:c};return o.createElement(i.RSCRouterContext.Provider,{value:!0},o.createElement(n.RSCRouterGlobalErrorBoundary,{location:d.location},o.createElement(i.FrameworkContext.Provider,{value:y},o.createElement(i.RouterProvider,{router:m,flushSync:o.flushSync}))))}function g(e,t){let r=t&&e.id in t.loaderData,o=t?.loaderData[e.id],a=t?.errors&&e.id in t.errors,s=t?.errors?.[e.id],l=!0===e.clientLoader?.hydrate||!e.hasLoader||e.hasComponent&&!e.element;(0,i.invariant)(window.__reactRouterRouteModules),(0,n.populateRSCRouteModules)(window.__reactRouterRouteModules,e);let c={id:e.id,element:e.element,errorElement:e.errorElement,handle:e.handle,hasErrorBoundary:e.hasErrorBoundary,hydrateFallbackElement:e.hydrateFallbackElement,index:e.index,loader:e.clientLoader?async(t,n)=>{let i=l;return l=!1,await e.clientLoader({...t,serverLoader:()=>{if(b("loader",e.id,e.hasLoader),i){if(r)return o;if(a)throw s}return y(n)}})}:(e,t)=>y(t),action:e.clientAction?(t,r)=>e.clientAction({...t,serverAction:async()=>(b("action",e.id,e.hasLoader),await y(r))}):e.hasAction?(e,t)=>y(t):()=>{throw(0,i.noActionDefinedError)("action",e.id)},path:e.path,shouldRevalidate:e.shouldRevalidate,hasLoader:!0,hasClientLoader:null!=e.clientLoader,hasAction:e.hasAction,hasClientAction:null!=e.clientAction};return"function"==typeof c.loader&&(c.loader.hydrate=(0,i.shouldHydrateRouteLoader)(e.id,e.clientLoader,e.hasLoader,!1)),c}function y(e){return(0,i.invariant)("function"==typeof e,"Invalid singleFetch parameter"),e()}function b(e,t,r){if(!r){let r=`You are trying to call ${"action"===e?"serverAction()":"serverLoader()"} on a route that does not have a server ${e} (routeId: "${t}")`;throw console.error(r),new i.ErrorResponseImpl(400,"Bad Request",new Error(r),!0)}}var v=new Set,_=1e3,S=new Set;async function E(e,t,r,n){let a=function(e){if(0===e.length)return null;if(1===e.length)return new URL(`${e[0]}.manifest`,window.location.origin);let t=(window.__reactRouterDataRouter.basename??"").replace(/^\/|\/$/g,""),r=new URL(`${t}/.manifest`,window.location.origin);return r.searchParams.set("paths",e.sort().join(",")),r}(e=(0,i.getPathsWithAncestors)(e));if(null==a)return;if(a.toString().length>i.URL_LIMIT)return void v.clear();let s=await r(new Request(a,{signal:n}));if(!s.body||s.status<200||s.status>=300)throw new Error("Unable to fetch new route matches from the server");let l=await t(s.body,{temporaryReferences:void 0});if("manifest"!==l.type)throw new Error("Failed to patch routes");e.forEach(e=>function(e,t){if(t.size>=_){let e=t.values().next().value;"string"==typeof e&&t.delete(e)}t.add(e)}(e,S));let c=await l.patches;o.startTransition(()=>{c.forEach(e=>{window.__reactRouterDataRouter.patchRoutes(e.parentId??null,[g(e)])})})}function T(e){return new URL(e,window.location.href).origin!==window.location.origin}function w(e){if(i.PROTOCOL_RELATIVE_URL_REGEX.test(e)){let t=(0,i.resolvePath)(e);return t.pathname+t.search+t.hash}return e}function x(e){if(e)return e.map(e=>({...e,children:x(e.children)}))}function O(e,t){return e.length!==t.length||e.some((e,r)=>e.element!==t[r].element||(e.errorElement!==t[r].errorElement||(e.hydrateFallbackElement!==t[r].hydrateFallbackElement||(e.hasErrorBoundary!==t[r].hasErrorBoundary||(e.hasLoader!==t[r].hasLoader||(e.hasClientLoader!==t[r].hasCl
11ientLoader||(e.hasAction!==t[r].hasAction||(e.hasClientAction!==t[r].hasClientAction||O(e.children||[],t[r].children||[])))))))))}function I(){let e=new TextEncoder,t=null,r=new ReadableStream({start(r){if("undefined"==typeof window)return;let n=t=>{"string"==typeof t?r.enqueue(e.encode(t)):r.enqueue(t)};window.__FLIGHT_DATA||(window.__FLIGHT_DATA=[]),window.__FLIGHT_DATA.forEach(n),window.__FLIGHT_DATA.push=e=>(n(e),0),t=r}});return"undefined"!=typeof document&&"loading"===document.readyState?document.addEventListener("DOMContentLoaded",()=>{t?.close()}):t?.close(),r}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{RSCDefaultRootErrorBoundary:()=>se,RSCRouterGlobalErrorBoundary:()=>ie,RSCStaticRouter:()=>fe,ServerMode:()=>b,ServerRouter:()=>s,createCookie:()=>h,createCookieSessionStorage:()=>Q,createMemorySessionStorage:()=>X,createRequestHandler:()=>G,createRoutesStub:()=>l,createSession:()=>W,createSessionStorage:()=>K,getHydrationData:()=>me,href:()=>Z,isCookie:()=>f,isSession:()=>Y,populateRSCRouteModules:()=>ce,routeRSCServerRequest:()=>he,setDevServerHooks:()=>A});var n=r(772),i=r(341),o=r(775),a=r(776);
12/**
13 * react-router v7.18.3
14 *
15 * Copyright (c) Remix Software Inc.
16 *
17 * This source code is licensed under the MIT license found in the
18 * LICENSE.md file in the root directory of this source tree.
19 *
20 * @license MIT
21 */
22function s({context:e,url:t,nonce:r}){"string"==typeof t&&(t=new URL(t));let{manifest:o,routeModules:a,criticalCss:s,serverHandoffString:l}=e,c=(0,n.createServerRoutes)(o.routes,a,e.future,e.isSpaMode);e.staticHandlerContext.loaderData={...e.staticHandlerContext.loaderData};for(let t of e.staticHandlerContext.matches){let r=t.route.id,i=a[r],o=e.manifest.routes[r];i&&o&&(0,n.shouldHydrateRouteLoader)(r,i.clientLoader,o.hasLoader,e.isSpaMode)&&(i.HydrateFallback||!o.hasLoader)&&delete e.staticHandlerContext.loaderData[r]}let u=(0,n.createStaticRouter)(c,e.staticHandlerContext,{branches:e.branches});return i.createElement(i.Fragment,null,i.createElement(n.FrameworkContext.Provider,{value:{manifest:o,routeModules:a,criticalCss:s,serverHandoffString:l,future:e.future,ssr:e.ssr,isSpaMode:e.isSpaMode,routeDiscovery:e.routeDiscovery,nonce:r,serializeError:e.serializeError,renderMeta:e.renderMeta}},i.createElement(n.RemixErrorBoundary,{location:u.state.location},i.createElement(n.StaticRouterProvider,{router:u,context:e.staticHandlerContext,hydrate:!1}))),e.serverHandoffStream?i.createElement(i.Suspense,null,i.createElement(n.StreamTransfer,{context:e,identifier:0,reader:e.serverHandoffStream.getReader(),textDecoder:new TextDecoder,nonce:r})):null)}function l(e,t){return function({initialEntries:r,initialIndex:o,hydrationData:a,future:s}){let l=i.useRef(),u=i.useRef();if(null==l.current){u.current={future:{v8_passThroughRequests:!0===s?.v8_passThroughRequests,v8_middleware:!0===s?.v8_middleware,v8_trailingSlashAwareDataRequests:!0===s?.v8_trailingSlashAwareDataRequests},manifest:{routes:{},entry:{imports:[],module:""},url:"",version:""},routeModules:{},ssr:!1,isSpaMode:!1,routeDiscovery:{mode:"lazy",manifestPath:"/__manifest"}};let i=c((0,n.convertRoutesToDataRoutes)(e,e=>e),void 0!==t?t:s?.v8_middleware?new n.RouterContextProvider:{},u.current.manifest,u.current.routeModules);l.current=(0,n.createMemoryRouter)(i,{initialEntries:r,initialIndex:o,hydrationData:a})}return i.createElement(n.FrameworkContext.Provider,{value:u.current},i.createElement(n.RouterProvider,{router:l.current}))}}function c(e,t,r,i,o){return e.map(e=>{if(!e.id)throw new Error("Expected a route.id in react-router processRoutes() function");let a={id:e.id,path:e.path,index:e.index,Component:e.Component?(0,n.withComponentProps)(e.Component):void 0,HydrateFallback:e.HydrateFallback?(0,n.withHydrateFallbackProps)(e.HydrateFallback):void 0,ErrorBoundary:e.ErrorBoundary?(0,n.withErrorBoundaryProps)(e.ErrorBoundary):void 0,action:e.action?r=>e.action({...r,context:t}):void 0,loader:e.loader?r=>e.loader({...r,context:t}):void 0,middleware:e.middleware?e.middleware.map(e=>(...r)=>e({...r[0],context:t},r[1])):void 0,handle:e.handle,shouldRevalidate:e.shouldRevalidate},s={id:e.id,path:e.path,index:e.index,parentId:o,hasAction:null!=e.action,hasLoader:null!=e.loader,hasClientAction:!1,hasClientLoader:!1,hasClientMiddleware:!1,hasErrorBoundary:null!=e.ErrorBoundary,module:"build/stub-path-to-module.js",clientActionModule:void 0,clientLoaderModule:void 0,clientMiddlewareModule:void 0,hydrateFallbackModule:void 0};return r.routes[a.id]=s,i[e.id]={default:a.Component||n.Outlet,ErrorBoundary:a.ErrorBoundary||void 0,handle:e.handle,links:e.links,meta:e.meta,shouldRevalidate:e.shouldRevalidate},e.children&&(a.children=c(e.children,t,r,i,a.id)),a})}var u=new TextEncoder,p=async(e,t)=>{let r=e.lastIndexOf("."),n=e.slice(0,r),i=e.slice(r+1),o=u.encode(n),a=await d(t,["verify"]);try{let e=function(e){let t=new Uint8Array(e.length);for(let r=0;r<e.length;r++)t[r]=e.charCodeAt(r);return t}(atob(i));return!!await crypto.subtle.verify("HMAC",a,e,o)&&n}catch(e){return!1}},d=async(e,t)=>crypto.subtle.importKey("raw",u.encode(e),{name:"HMAC",hash:"SHA-256"},!1,t);var h=(e,t={})=>{let{secrets:r=[],...i}={path:"/",sameSite:"lax",...t};return function(e,t){(0,n.warnOnce)(!t,`The "${e}" cookie has an "expires" property set. This will cause the expires value to not be updated when the session is committed. Instead, you should set the expires value when serializing the cookie. You can use \`commitSession(session, { expires })\` if using a session storage object, or \`cookie.serialize("value", { expires })\` if you're using the cookie directly.`)}(e,i.expires),{get name(){return e},get isSigned(){return r.length>0},get expires(){return void 0!==i.maxAge?new Date(Date.now()+1e3*i.maxAge):i.expires},async parse(t,n){if(!t)return null;let a=(0,o.parse)(t,{...i,...n});if(e in a){let t=a[e];if("string"==typeof t&&""!==t){let e=await async function(e,t){if(t.length>0){for(let r of t){let t=await p(e,r);if(!1!==t)return m(t)}return null}return m(e)}(t,r);return e}return""}return null}
22,serialize:async(t,n)=>(0,o.serialize)(e,""===t?"":await async function(e,t){let r=function(e){return btoa(function(e){let t,r,n=e.toString(),i="",o=0;for(;o<n.length;){if(t=n.charAt(o++),"%"===t)if("u"===n.charAt(o)){if(r=n.slice(o+1,o+5),/^[\da-f]{4}$/i.exec(r)){i+=String.fromCharCode(parseInt(r,16)),o+=5;continue}}else if(r=n.slice(o,o+2),/^[\da-f]{2}$/i.exec(r)){i+=String.fromCharCode(parseInt(r,16)),o+=2;continue}i+=t}return i}(encodeURIComponent(JSON.stringify(e))))}(e);t.length>0&&(r=await(async(e,t)=>{let r=u.encode(e),n=await d(t,["sign"]),i=await crypto.subtle.sign("HMAC",n,r);return e+"."+btoa(String.fromCharCode(...new Uint8Array(i))).replace(/=+$/,"")})(r,t[0]));return r}(t,r),{...i,...n})}},f=e=>null!=e&&"string"==typeof e.name&&"boolean"==typeof e.isSigned&&"function"==typeof e.parse&&"function"==typeof e.serialize;function m(e){try{return JSON.parse(decodeURIComponent(function(e){let t,r,n=e.toString(),i="",o=0;for(;o<n.length;)t=n.charAt(o++),/[\w*+\-./@]/.exec(t)?i+=t:(r=t.charCodeAt(0),i+=r<256?"%"+g(r,2):"%u"+g(r,4).toUpperCase());return i}(atob(e))))}catch(e){return{}}}function g(e,t){let r=e.toString(16);for(;r.length<t;)r="0"+r;return r}function y(e){return Object.keys(e).reduce((t,r)=>{let n=e[r];return n&&(t[r]=n.module),t},{})}var b=(e=>(e.Development="development",e.Production="production",e.Test="test",e))(b||{});function v(e,t){if(e instanceof Error&&"development"!==t){let e=new Error("Unexpected Server Error");return e.stack=void 0,e}return e}function _(e,t){return Object.entries(e).reduce((e,[r,n])=>Object.assign(e,{[r]:v(n,t)}),{})}function S(e,t){let r=v(e,t);return{message:r.message,stack:r.stack}}function E(e,t){if(!1===e||null==e)throw console.error("The following error is a bug in React Router; please open an issue! https://github.com/remix-run/react-router/issues/new/choose"),new Error(t)}function T(e,t,r,i,o){let a=(0,n.matchRoutesImpl)(t,i,o??"/",!1,r);return a?a.map(t=>{let r=e[t.route.id];return E(r,`Route with id "${t.route.id}" not found in manifest.`),{params:t.params,pathname:t.pathname,route:r}}):null}async function w(e,t,r){let i=await e({request:r.v8_passThroughRequests?t.request:O(x(t.request)),url:t.url,params:t.params,context:t.context,pattern:t.pattern});if((0,n.isDataWithResponseInit)(i)&&i.init&&i.init.status&&(0,n.isRedirectStatusCode)(i.init.status))throw new Response(null,i.init);return i}function x(e){let t=new URL(e.url),r=t.searchParams.getAll("index");t.searchParams.delete("index");let n=[];for(let e of r)e&&n.push(e);for(let e of n)t.searchParams.append("index",e);let i={method:e.method,body:e.body,headers:e.headers,signal:e.signal};return i.body&&(i.duplex="half"),new Request(t.href,i)}function O(e){let t=new URL(e.url);t.searchParams.delete("_routes");let r={method:e.method,body:e.body,headers:e.headers,signal:e.signal};return r.body&&(r.duplex="half"),new Request(t.href,r)}var I="__reactRouterDevServerHooks";function A(e){globalThis[I]=e}function k(){return globalThis[I]}function R(e,t){if("undefined"!=typeof process)try{if(process.env.hasOwnProperty("IS_RR_BUILD_REQUEST")&&"yes"===process.env.IS_RR_BUILD_REQUEST)return e.headers.get(t)}catch(e){}return null}function C(e,t,r="",i=function(e){let t={};return Object.values(e).forEach(e=>{if(e){let r=e.parentId||"";t[r]||(t[r]=[]),t[r].push(e)}}),t}(e)){return(i[r]||[]).map(r=>{let o={hasErrorBoundary:"root"===r.id||null!=r.module.ErrorBoundary,id:r.id,path:r.path,middleware:r.module.middleware,loader:r.module.loader?async e=>{let i=R(e.request,"X-React-Router-Prerender-Data");if(null!=i){let e=i?decodeURI(i):i;E(e,"Missing prerendered data for route");let t=(new TextEncoder).encode(e),o=new ReadableStream({start(e){e.enqueue(t),e.close()}}),a=(await(0,n.decodeViaTurboStream)(o,globalThis)).value;if(a&&n.SingleFetchRedirectSymbol in a){let e=a[n.SingleFetchRedirectSymbol],t={status:e.status};throw e.reload?(0,n.redirectDocument)(e.redirect,t):e.replace?(0,n.replace)(e.redirect,t):(0,n.redirect)(e.redirect,t)}{E(a&&r.id in a,"Unable to decode prerendered data");let e=a[r.id];return E("data"in e,"Unable to process prerendered data"),e.data}}return await w(r.module.loader,e,t)}:void 0,action:r.module.action?e=>w(r.module.action,e,t):void 0,handle:r.module.handle};return r.index?{index:!0,...o}:{caseSensitive:r.caseSensitive,children:C(e,t,r.id,i),...o}})}function P(e){return(0,n.escapeHtml)(JSON.stringify(e))}function D(e,t){return function(e,t,r){let n,i=e.errors?e.matches.findIndex(t=>e.errors[t.route.id]):-1,o=i>
22=0?e.matches.slice(0,i+1):e.matches;if(i>=0){let{actionHeaders:t,actionData:r,loaderHeaders:o,loaderData:a}=e;e.matches.slice(i).some(e=>{let i=e.route.id;return!t[i]||r&&r.hasOwnProperty(i)?o[i]&&!a.hasOwnProperty(i)&&(n=o[i]):n=t[i],null!=n})}const a=new Headers(r);return o.reduce((r,i,a)=>{let{id:s}=i.route,l=e.loaderHeaders[s]||new Headers,c=e.actionHeaders[s]||new Headers,u=null!=n&&a===o.length-1,p=u&&n!==l&&n!==c,d=t(i);if(null==d){let e=new Headers(r);return p&&M(n,e),M(c,e),M(l,e),e}let h=new Headers("function"==typeof d?d({loaderHeaders:l,parentHeaders:r,actionHeaders:c,errorHeaders:u?n:void 0}):d);return p&&M(n,h),M(c,h),M(l,h),M(r,h),h},new Headers(a))}(e,e=>{let r=t.routes[e.route.id];return E(r,`Route with id "${e.route.id}" not found in build`),r.module.headers})}function M(e,t){let r=e.get("Set-Cookie");if(r){let e=(0,a.splitCookiesString)(r),n=new Set(t.getSetCookie());e.forEach(e=>{n.has(e)||t.append("Set-Cookie",e)})}}function N(e,t){let r=e.headers.get("origin"),n=null,i=null;try{"string"==typeof r&&"null"!==r?(i=new URL(r),n=i.host):n=r}catch{throw new Error("`origin` header is not a valid URL. Aborting the action.")}let o=new URL(e.url),a=i?i.origin===o.origin:n===o.host;if(n&&!a&&!function(e,t=[]){return t.some(t=>t&&(t===e||function(e,t){const r=e.split("."),n=t.split(".");if(n.length<1)return!1;if(r.length<n.length)return!1;for(;n.length;){const e=n.pop(),t=r.pop();switch(e){case"":return!1;case"*":if(t)continue;return!1;case"**":return!(n.length>0)&&void 0!==t;default:if(t!==e)return!1}}return 0===r.length}(e,t)))}(n,t))throw new Error("The `request.url` origin does not match `origin` header from a forwarded action request. Aborting the action.")}function L(e,t,r){t=t||"/";let i=new URL(e.url),o=i.pathname;r?.v8_trailingSlashAwareDataRequests?o=o.endsWith("/_.data")?o.replace(/_\.data$/,""):o.replace(/\.data$/,""):("/_root.data"===(0,n.stripBasename)(o,t)?o=t:o.endsWith(".data")&&(o=o.replace(/\.data$/,"")),"/"!==(0,n.stripBasename)(o,t)&&o.endsWith("/")&&(o=o.slice(0,-1)));let a=new URLSearchParams(i.search);a.delete("_routes");let s=a.toString();return s&&(s=`?${s}`),{pathname:o,search:s,hash:""}}var F=new Set([...n.NO_BODY_STATUS_CODES,304]);async function B(e,t,r,i,o,a,s){try{try{N(i,Array.isArray(e.allowedActionOrigins)?e.allowedActionOrigins:[])}catch(e){return c(new Error("Bad Request"),400)}let t=e.future.v8_passThroughRequests?i:new Request(o,{method:i.method,body:i.body,headers:i.headers,signal:i.signal,...i.body?{duplex:"half"}:void 0}),n=await r.query(t,{requestContext:a,skipLoaderErrorBubbling:!0,skipRevalidation:!0,generateMiddlewareResponse:e.future.v8_middleware?async e=>{try{return l(await e(t))}catch(e){return c(e)}}:void 0,normalizePath:t=>L(t,e.basename,e.future)});return l(n)}catch(e){return c(e)}function l(r){return(0,n.isResponse)(r)?r:function(r){let o,a=D(r,e);if((0,n.isRedirectStatusCode)(r.statusCode)&&a.has("Location"))return new Response(null,{status:r.statusCode,headers:a});r.errors&&(Object.values(r.errors).forEach(e=>{(0,n.isRouteErrorResponse)(e)&&!e.error||s(e)}),r.errors=_(r.errors,t));o=r.errors?{error:Object.values(r.errors)[0]}:{data:Object.values(r.actionData||{})[0]};return j(i,e,t,{result:o,headers:a,status:r.statusCode})}(r)}function c(r,n=500){return s(r),j(i,e,t,{result:{error:r},headers:new Headers,status:n})}}async function U(e,t,r,i,o,a,s){let l=new URL(i.url).searchParams.get("_routes"),c=l?new Set(l.split(",")):null;try{let t=e.future.v8_passThroughRequests?i:new Request(o,{headers:i.headers,signal:i.signal}),n=await r.query(t,{requestContext:a,filterMatchesToLoad:e=>!c||c.has(e.route.id),skipLoaderErrorBubbling:!0,generateMiddlewareResponse:e.future.v8_middleware?async e=>{try{return u(await e(t))}catch(e){return p(e)}}:void 0,normalizePath:t=>L(t,e.basename,e.future)});return u(n)}catch(e){return p(e)}function u(r){return(0,n.isResponse)(r)?r:function(r){let o=D(r,e);if((0,n.isRedirectStatusCode)(r.statusCode)&&o.has("Location"))return new Response(null,{status:r.statusCode,headers:o});r.errors&&(Object.values(r.errors).forEach(e=>{(0,n.isRouteErrorResponse)(e)&&!e.error||s(e)}),r.errors=_(r.errors,t));let a={},l=new Set(r.matches.filter(e=>c?c.has(e.route.id):null!=e.route.loader).map(e=>e.route.id));if(r.errors)for(let[e,t]of Object.entries(r.errors))a[e]={error:t};for(let[e,t]of Object.entries(r.loaderData))!(e in a)&&l.has(e)&&(a[e]={data:t});return j(i,e,t,{result:a,headers:o,status:r.statusCode})}(r)}function p(r){return s(r),j(i,e,t,{result:{error:r},headers:new Headers,status:500})}}function j(e,t,r,{result:n,headers:i,status:o}){let a=new Headers(i);return a.set("X-Remix-Response","yes"),F.has(o)?new Response(null,{status:o,headers:a}):(a.set("Content-Type","text/x-script"),a.delete("Content-Length"),new Response(V(n,e.signal,t.entry.module.streamTimeout,r),{status:o||200,headers:a}))}function H(e,t,r,i){let o=function(e,t,r){let i=t.get("Location");r&&(i=(0,n.stripBasename)(i,r)||i);return{redirect:i,status:e,revalidate:t.has("X-Remix-Revalidate")||t.has("Set-Cookie"),reload:t.has("X-Remix-Reload-Document"),replace:t.has("X-Remix-Replace")}}(e.status,e.headers,r.basename),a=new Headers(e.headers);return a.delete("Location"),a.set("Content-Type","text/x-script"),j(t,r,i,{result:"GET"===t.method?{[n.SingleFetchRedirectSymbol]:o}:o,headers:a,status:n.SINGLE_FETCH_REDIRECT_STATUS})}function V(e,t,r,i){let o=new AbortController,a=setTimeout(()=>{o.abort(new Error("Server Timeout")),l()},"number"==typeof r?r:4950),s=()=>{o.abort(t.reason),l()};t.addEventListener("abort",s);let l=()=>{clearTimeout(a),t.removeEventListener("abort",s)};return(0,n.encode)(e,{signal:o.signal,onComplete:l,plugins:[e=>{if(e instanceof Error){let{name:t,message:r,stack:n}="production"===i?v(e,i):e;return["SanitizedError",t,r,n]}if(e instanceof n.ErrorResponseImpl){let{data:t,status:r,statusText:n}=e;return["ErrorResponse",t,r,n]}if(e&&"object"==typeof e&&n.SingleFetchRedirectSymbol in e)return["SingleFetchRedirect",e[n.SingleFetchRedirectSymbol]]}],postPlugins:[e=>{if(e&&"object"==typeof e)return["SingleFetchClassInstance",Object.fromEntries(Object.entries(e))]},()=>["SingleFetchFallback"]]})}function z(e,t){let r=C(e.routes,e.future),i="development"===(o=t)||"production"===o||"test"===o?t:"production";var o;let a=(0,n.createStaticHandler)(r,{basename:e.basename,instrumentations:e.entry.module.instrumentations,future:e.future}),s=e.entry.module.handleError||((e,{request:t})=>{"test"===i||t.signal.aborted||console.error((0,n.isRouteErrorResponse)(e)&&e.error?e.error:e)}),l=async(r,o)=>{let l,c={},u=e=>{"development"===t&&k()?.processRequestError?.(e),s(e,{context:l,params:c,request:r})};if(e.future.v8_middleware){if(o&&!(o instanceof n.RouterContextProvider)){let e=new Error("Invalid `context` value provided to `handleRequest`. When middleware is enabled you must return an instance of `RouterContextProvider` from your `getLoadContext` function.");return u(e),q(e,i)}
22l=o||new n.RouterContextProvider}else l=o||{};let p=new URL(r.url),d=L(r,e.basename,e.future).pathname,h="yes"===R(r,"X-React-Router-SPA-Mode");if(!e.ssr){let t=decodeURI(d);if(e.basename&&"/"!==e.basename){let i=(0,n.stripBasename)(t,e.basename);if(null==i)return s(new n.ErrorResponseImpl(404,"Not Found",`Refusing to prerender the \`${t}\` path because it does not start with the basename \`${e.basename}\``),{context:l,params:c,request:r}),new Response("Not Found",{status:404,statusText:"Not Found"});t=i}if(0===e.prerender.length)h=!0;else if(!e.prerender.includes(t.replace(/\/$/,""))&&!e.prerender.includes(t.replace(/[^/]$/,"/"))){if(p.pathname.endsWith(".data"))return s(new n.ErrorResponseImpl(404,"Not Found",`Refusing to SSR the path \`${t}\` because \`ssr:false\` is set and the path is not included in the \`prerender\` config, so in production the path will be a 404.`),{context:l,params:c,request:r}),new Response("Not Found",{status:404,statusText:"Not Found"});h=!0}}let f=(0,n.getManifestPath)(e.routeDiscovery.manifestPath,e.basename);if("lazy"===e.routeDiscovery.mode&&p.pathname===f)try{let t=await async function(e,t,r,i){if(i.toString().length>n.URL_LIMIT)return new Response(null,{statusText:"Bad Request",status:400});if(e.assets.version!==i.searchParams.get("version"))return new Response(null,{status:204,headers:{"X-Remix-Reload-Document":"true"}});let o={};if(i.searchParams.has("paths")){let n=i.searchParams.get("paths")||"",a=new Set(n.split(",").filter(Boolean));for(let n of a){n.startsWith("/")||(n=`/${n}`);let i=T(e.routes,t,r,n,e.basename);if(i)for(let t of i){let r=t.route.id,n=e.assets.routes[r];n&&(o[r]=n)}}return Response.json(o,{headers:{"Cache-Control":"public, max-age=31536000, immutable"}})}return new Response("Invalid Request",{status:400})}(e,a.dataRoutes,a._internalRouteBranches,p);return t}catch(e){return u(e),new Response("Unknown Server Error",{status:500})}let m,g=T(e.routes,a.dataRoutes,a._internalRouteBranches,d,e.basename);if(g&&g.length>0&&Object.assign(c,g[0].params),p.pathname.endsWith(".data"))m=await async function(e,t,r,i,o,a,s){let l=new URL(i.url);l.pathname=o;let c=(0,n.isMutationMethod)(i.method)?await B(t,e,r,i,l,a,s):await U(t,e,r,i,l,a,s);return c}(i,e,a,r,d,l,u),(0,n.isRedirectResponse)(m)&&(m=H(m,r,e,i)),e.entry.module.handleDataRequest&&(m=await e.entry.module.handleDataRequest(m,{context:l,params:g?g[0].params:{},request:r}),(0,n.isRedirectResponse)(m)&&(m=H(m,r,e,i)));else if(!h&&g&&null==g[g.length-1].route.module.default&&null==g[g.length-1].route.module.ErrorBoundary)m=await async function(e,t,r,i,o,a,s){try{let e=await r.queryRoute(o,{routeId:i,requestContext:a,generateMiddlewareResponse:t.future.v8_middleware?async e=>{try{return l(await e(o))}catch(e){return c(e)}}:void 0,normalizePath:e=>L(e,t.basename,t.future)});return l(e)}catch(e){return c(e)}function l(e){return(0,n.isResponse)(e)?e:"string"==typeof e?new Response(e):Response.json(e)}function c(t){if((0,n.isResponse)(t))return t;if((0,n.isRouteErrorResponse)(t))return s(t),function(e,t){return Response.json(S(e.error||new Error("Unexpected Server Error"),t),{status:e.status,statusText:e.statusText})}(t,e);if(t instanceof Error&&"Expected a response from queryRoute"===t.message){let t=new Error("Expected a Response to be returned from resource route handler");return s(t),q(t,e)}return s(t),q(t,e)}}(i,e,a,g.slice(-1)[0].route.id,r,l,u);else{let o,{pathname:s}=p;e.unstable_getCriticalCss?o=await e.unstable_getCriticalCss({pathname:s}):"development"===t&&k()?.getCriticalCss&&(o=await(k()?.getCriticalCss?.(s))),m=await async function(e,t,r,i,o,a,s,l){try{if((0,n.isMutationMethod)(i.method))try{N(i,Array.isArray(t.allowedActionOrigins)?t.allowedActionOrigins:[])}catch(e){return a(e),new Response("Bad Request",{status:400})}let e=await r.query(i,{requestContext:o,generateMiddlewareResponse:t.future.v8_middleware?async e=>{try{let t=await e(i);return(0,n.isResponse)(t)||(t=await c(t,s)),t}catch(e){return a(e),new Response(null,{status:500})}}:void 0,normalizePath:e=>L(e,t.basename,t.future)});return(0,n.isResponse)(e)||(e=await c(e,s)),e}catch(e){return a(e),new Response(null,{status:500})}async function c(s,c){let u=D(s,t);if(F.has(s.statusCode))return new Response(null,{status:s.statusCode,headers:u});
22s.errors&&(Object.values(s.errors).forEach(e=>{(0,n.isRouteErrorResponse)(e)&&!e.error||a(e)}),s.errors=_(s.errors,e));let p={loaderData:s.loaderData,actionData:s.actionData,errors:s.errors},d={basename:t.basename,future:t.future,routeDiscovery:t.routeDiscovery,ssr:t.ssr,isSpaMode:c},h={manifest:t.assets,branches:r._internalRouteBranches,routeModules:y(t.routes),staticHandlerContext:s,criticalCss:l,serverHandoffString:P({...d,criticalCss:l}),serverHandoffStream:V(p,i.signal,t.entry.module.streamTimeout,e),renderMeta:{},future:t.future,ssr:t.ssr,routeDiscovery:t.routeDiscovery,isSpaMode:c,serializeError:t=>S(t,e)},f=t.entry.module.default;try{return await f(i,s.statusCode,u,h,o)}catch(l){a(l);let c=l;if((0,n.isResponse)(l))try{let e=await function(e){let t=e.headers.get("Content-Type");return t&&/\bapplication\/json\b/.test(t)?null==e.body?null:e.json():e.text()}(l);c=new n.ErrorResponseImpl(l.status,l.statusText,e)}catch(e){}(s=(0,n.getStaticContextFromError)(r.dataRoutes,s,c)).errors&&(s.errors=_(s.errors,e));let p={loaderData:s.loaderData,actionData:s.actionData,errors:s.errors};h={...h,staticHandlerContext:s,serverHandoffString:P(d),serverHandoffStream:V(p,i.signal,t.entry.module.streamTimeout,e),renderMeta:{}};try{return await f(i,s.statusCode,u,h,o)}catch(t){return a(t),q(t,e)}}}}(i,e,a,r,l,u,h,o)}return"HEAD"===r.method?new Response(null,{headers:m.headers,status:m.status,statusText:m.statusText}):m};return e.entry.module.instrumentations&&(l=(0,n.instrumentHandler)(l,e.entry.module.instrumentations.map(e=>e.handler).filter(Boolean))),{serverMode:i,staticHandler:a,errorHandler:s,requestHandler:l}}var G=(e,t)=>{let r,n,i,o,a;return async function(s,l){if(r="function"==typeof e?await e():e,"function"==typeof e){let e=z(r,t);n=e.serverMode,i=e.staticHandler,o=e.errorHandler,a=e.requestHandler}else if(!(n&&i&&o&&a)){let e=z(r,t);n=e.serverMode,i=e.staticHandler,o=e.errorHandler,a=e.requestHandler}return a(s,l)}};function q(e,t){let r="Unexpected Server Error";return"production"!==t&&(r+=`\n\n${String(e)}`),new Response(r,{status:500,headers:{"Content-Type":"text/plain"}})}function $(e){return`__flash_${e}__`}var W=(e={},t="")=>{let r=new Map(Object.entries(e));return{get id(){return t},get data(){return Object.fromEntries(r)},has:e=>r.has(e)||r.has($(e)),get(e){if(r.has(e))return r.get(e);let t=$(e);if(r.has(t)){let e=r.get(t);return r.delete(t),e}},set(e,t){r.set(e,t)},flash(e,t){r.set($(e),t)},unset(e){r.delete(e)}}},Y=e=>null!=e&&"string"==typeof e.id&&void 0!==e.data&&"function"==typeof e.has&&"function"==typeof e.get&&"function"==typeof e.set&&"function"==typeof e.flash&&"function"==typeof e.unset;function K({cookie:e,createData:t,readData:r,updateData:n,deleteData:i}){let o=f(e)?e:h(e?.name||"__session",e);return J(o),{async getSession(e,t){let n=e&&await o.parse(e,t),i=n&&await r(n);return W(i||{},n||"")},async commitSession(e,r){let{id:i,data:a}=e,s=null!=r?.maxAge?new Date(Date.now()+1e3*r.maxAge):null!=r?.expires?r.expires:o.expires;return i?await n(i,a,s):i=await t(a,s),o.serialize(i,r)},destroySession:async(e,t)=>(await i(e.id),o.serialize("",{...t,maxAge:void 0,expires:new Date(0)}))}}function J(e){(0,n.warnOnce)(e.isSigned,`The "${e.name}" cookie is not signed, but session cookies should be signed to prevent tampering on the client before they are sent back to the server. See https://reactrouter.com/explanation/sessions-and-cookies#signing-cookies for more information.`)}function Q({cookie:e}={}){let t=f(e)?e:h(e?.name||"__session",e);return J(t),{getSession:async(e,r)=>W(e&&await t.parse(e,r)||{}),async commitSession(e,r){let n=await t.serialize(e.data,r);if(n.length>4096)throw new Error("Cookie length will exceed browser maximum. Length: "+n.length);return n},destroySession:async(e,r)=>t.serialize("",{...r,maxAge:void 0,expires:new Date(0)})}}function X({cookie:e}={}){let t=new Map;return K({cookie:e,async createData(e,r){let n=Math.random().toString(36).substring(2,10);return t.set(n,{data:e,expires:r}),n},async readData(e){if(t.has(e)){let{data:r,expires:n}=t.get(e);if(!n||n>new Date)return r;n&&t.delete(e)}return null},async updateData(e,r,n){t.set(e,{data:r,expires:n})},async deleteData(e){t.delete(e)}})}function Z(e,...t){let r=t[0],n=function(e){let t=e.length-1,r=e[t];if("*"!==r&&"/"!==r)return e;for(t--;t>=0&&"/"===e[t];t--);return e.slice(0,t+1)}(e).replace(/\/:([\w-]+)(\?)?/g,(t,n,i)=>{const o=void 0===i,a=r?.[n];if(o&&void 0===a)throw new Error(`Path '${e}' requires param '${n}' but it was not provided`);return void 0===a?"":"/"+a});if(e.endsWith("*")){const e=r?.["*"];void 0!==e&&(n+="/"+e)}return n||"/"}var ee=new TextEncoder,te="</body></html>";function re(e){let t,r=new TextDecoder,n=new Promise(e=>t=e),i=!1,o=[],a=null;function s(e){for(let t of o){let n=r.decode(t,{stream:!0});n.endsWith(te)&&(n=n.slice(0,-te.length)),e.enqueue(ee.encode(n))}o.length=0,a=null}return new TransformStream({transform(r,n){o.push(r),a||(a=setTimeout(async()=>{s(n),i||(i=!0,async function(e,t){let r=new TextDecoder("utf-8",{fatal:!0});const n=e.getReader();try{let e;for(;(e=await n.read())&&!e.done;){const n=e.value;try{ne(JSON.stringify(r.decode(n,{stream:!0})),t)}catch(e){ne(`Uint8Array.from(atob(${JSON.stringify(btoa(String.fromCodePoint(...n)))}), m => m.codePointAt(0))`,t)}}}finally{n.releaseLock()}let i=r.decode();i.length&&ne(JSON.stringify(i),t)}(e,n).catch(e=>n.error(e)).then(t))},0))},async flush(e){await n,a&&(clearTimeout(a),s(e)),e.enqueue(ee.encode("<
22/body></html>"))}})}function ne(e,t){var r;t.enqueue(ee.encode(`<script>${r=`(self.__FLIGHT_DATA||=[]).push(${e})`,r.replace(/<!--/g,"<\\!--").replace(/<\/(script)/gi,"</\\$1")}<\/script>`))}var ie=class extends i.default.Component{constructor(e){super(e),this.state={error:null,location:e.location}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location?{error:null,location:e.location}:{error:t.error,location:t.location}}render(){return this.state.error?i.default.createElement(ae,{error:this.state.error,renderAppShell:!0}):this.props.children}};function oe({renderAppShell:e,title:t,children:r}){return e?i.default.createElement("html",{lang:"en"},i.default.createElement("head",null,i.default.createElement("meta",{charSet:"utf-8"}),i.default.createElement("meta",{name:"viewport",content:"width=device-width,initial-scale=1,viewport-fit=cover"}),i.default.createElement("title",null,t)),i.default.createElement("body",null,i.default.createElement("main",{style:{fontFamily:"system-ui, sans-serif",padding:"2rem"}},r))):r}function ae({error:e,renderAppShell:t}){console.error(e);let r,o=i.default.createElement("script",{dangerouslySetInnerHTML:{__html:'\n        console.log(\n          "💿 Hey developer 👋. You can provide a way better UX than this when your app throws errors. Check out https://reactrouter.com/how-to/error-boundary for more information."\n        );\n      '}});if((0,n.isRouteErrorResponse)(e))return i.default.createElement(oe,{renderAppShell:t,title:"Unhandled Thrown Response!"},i.default.createElement("h1",{style:{fontSize:"24px"}},e.status," ",e.statusText),n.ENABLE_DEV_WARNINGS?o:null);if(e instanceof Error)r=e;else{let t=null==e?"Unknown Error":"object"==typeof e&&"toString"in e?e.toString():JSON.stringify(e);r=new Error(t)}return i.default.createElement(oe,{renderAppShell:t,title:"Application Error!"},i.default.createElement("h1",{style:{fontSize:"24px"}},"Application Error"),i.default.createElement("pre",{style:{padding:"2rem",background:"hsla(10, 50%, 50%, 0.1)",color:"red",overflow:"auto"}},r.stack),o)}function se({hasRootLayout:e}){let t=(0,n.useRouteError)();if(void 0===e)throw new Error("Missing 'hasRootLayout' prop");return i.default.createElement(ae,{renderAppShell:!e,error:t})}function le(e){const t={};for(const r of e.matches)ce(t,r);return t}function ce(e,t){t=Array.isArray(t)?t:[t];for(const r of t)e[r.id]={links:r.links,meta:r.meta,default:ue}}var ue=()=>null,pe="/__manifest",de=i.use;async function he({request:e,serverResponse:t,createFromReadableStream:r,renderHTML:i,hydrate:o=!0}){const a=new URL(e.url),s=function(e){return e.pathname.endsWith(".rsc")}(a),l=s||function(e){return e.pathname.endsWith(".manifest")}(a)||e.headers.has("rsc-action-id");if(l||"true"===t.headers.get("React-Router-Resource"))return t;if(!t.body)throw new Error("Missing body in server response");const c=t.clone();let u=null;o&&(u=t.clone());const p=t.body;let d,h=[];const f=()=>d?new ReadableStream({start(e){d.forEach(t=>e.enqueue(t)),h.push(e)}}):(d=[],p.pipeThrough(new TransformStream({transform(e,t){d.push(e),t.enqueue(e),h.forEach(t=>t.enqueue(e))},flush(){h.forEach(e=>e.close()),h=[]}})));let m=null;const g=()=>{const e=Promise.resolve(r(f()));return Object.defineProperties(e,{_deepestRenderedBoundaryId:{get:()=>m,set(e){m=e}},formState:{get:()=>e.then(e=>"render"===e.type?e.formState:void 0)}})};let y,b;try{if(!c.body)throw new Error("Failed to clone server response");const e=await r(c.body);if(t.status===n.SINGLE_FETCH_REDIRECT_STATUS&&"redirect"===e.type){if((0,n.hasInvalidProtocol)(e.location))throw new Error("Invalid redirect location");const r=new Headers(t.headers);return r.delete("Content-Encoding"),r.delete("Content-Length"),r.delete("Content-Type"),r.delete("X-Remix-Response"),r.set("Location",e.location),new Response(u?.body||"",{headers:r,status:e.status,statusText:t.statusText})}let a=new Headers,s=t.status,l=t.statusText,p=await i(g,{onError(e){if("object"==typeof e&&e&&"digest"in e&&"string"==typeof e.digest){if(y=(0,n.decodeRedirectErrorDigest)(e.digest),y)return e.digest;let t=(0,n.decodeRouteErrorResponseDigest)(e.digest);if(t)return b=t,s=t.status,l=t.statusText,e.digest}},onHeaders(e){for(const[t,r]of e)a.append(t,r)}});const d=new Headers(a);for(const[e,r]of t.headers)d.append(e,r);if(d.set("Content-Type","text/html; charset=utf-8"),y){if((0,n.hasInvalidProtocol)(y.location))throw new Error("Invalid redirect location");return d.set("Location",y.location),new Response(p,{status:y.status,headers:d})}const h=new TransformStream({flush(e){if(y){if((0,n.hasInvalidProtocol)(y.location))return;e.enqueue((new TextEncoder).encode(`<meta http-equiv="refresh" content="0;url=${(0,n.escapeHtml)(y.location)}"/>`))}}});if(!o)return new Response(p.pipeThrough(h),{status:s,statusText:l,headers:d});if(!u?.body)throw new Error("Failed to clone server response");const f=p.pipeThrough(re(u.body)).pipeThrough(h);return new Response(f,{status:s,statusText:l,headers:d})}catch(e){if(e instanceof Response)return e;if(y){if((0,n.hasInvalidProtocol)(y.location))throw new Error("Invalid redirect location");return new Response(`Redirect: ${y.location}`,{status:y.status,headers:{Location:y.location}})}try{let a,s=b??e,[l,c]=(0,n.isRouteErrorResponse)(s)?[s.status,s.statusText]:[500,""],p=new Headers;const d=await i(()=>{const e=Promise.resolve(r(f())).then(e=>Object.assign(e,{status:l,errors:m?{[m]:s}:{}}));return Object.defineProperties(e,{_deepestRenderedBoundaryId:{get:()=>m,set(e){m=e}},formState:{get:()=>e.then(e=>"render"===e.type?e.formState:void 0)}})},{onError(e){if("object"==typeof e&&e&&"digest"in e&&"string"==typeof e.digest){if(a=(0,n.decodeRedirectErrorDigest)(e.digest),a)return e.digest;let t=(0,n.decodeRouteErrorResponseDigest)(e.digest);
22if(t)return l=t.status,c=t.statusText,e.digest}},onHeaders(e){for(const[t,r]of e)p.append(t,r)}}),h=new Headers(p);for(const[e,r]of t.headers)h.append(e,r);if(h.set("Content-Type","text/html; charset=utf-8"),a){if((0,n.hasInvalidProtocol)(a.location))throw new Error("Invalid redirect location");return h.set("Location",a.location),new Response(d,{status:a.status,headers:h})}const g=new TransformStream({flush(e){if(a){if((0,n.hasInvalidProtocol)(a.location))return;e.enqueue((new TextEncoder).encode(`<meta http-equiv="refresh" content="0;url=${(0,n.escapeHtml)(a.location)}"/>`))}}});if(!o)return new Response(d.pipeThrough(g),{status:l,statusText:c,headers:h});if(!u?.body)throw new Error("Failed to clone server response");const y=d.pipeThrough(re(u.body)).pipeThrough(g);return new Response(y,{status:l,statusText:c,headers:h})}catch(e){}throw e}}function fe({getPayload:e}){const t=e(),r=function(e){if(de)return de(e);throw new Error("React Router v7 requires React 19+ for RSC features.")}(t);if("redirect"===r.type){if((0,n.hasInvalidProtocol)(r.location))throw new Error("Invalid redirect location");throw new Response(null,{status:r.status,headers:{Location:r.location}})}if("render"!==r.type)return null;let o={...r.loaderData};for(const e of r.matches)!(0,n.shouldHydrateRouteLoader)(e.id,e.clientLoader,e.hasLoader,!1)||!e.hydrateFallbackElement&&e.hasLoader||delete o[e.id];const a={get _deepestRenderedBoundaryId(){return t._deepestRenderedBoundaryId??null},set _deepestRenderedBoundaryId(e){t._deepestRenderedBoundaryId=e},actionData:r.actionData,actionHeaders:{},basename:r.basename,errors:r.errors,loaderData:o,loaderHeaders:{},location:r.location,statusCode:200,matches:r.matches.map(e=>({params:e.params,pathname:e.pathname,pathnameBase:e.pathnameBase,route:{id:e.id,action:e.hasAction||!!e.clientAction,handle:e.handle,hasErrorBoundary:e.hasErrorBoundary,loader:e.hasLoader||!!e.clientLoader,index:e.index,path:e.path,shouldRevalidate:e.shouldRevalidate}}))},s=(0,n.createStaticRouter)(r.matches.reduceRight((e,t)=>{const r={id:t.id,action:t.hasAction||!!t.clientAction,element:t.element,errorElement:t.errorElement,handle:t.handle,hasErrorBoundary:!!t.errorElement,hydrateFallbackElement:t.hydrateFallbackElement,index:t.index,loader:t.hasLoader||!!t.clientLoader,path:t.path,shouldRevalidate:t.shouldRevalidate};return e.length>0&&(r.children=e),[r]},[]),a),l={future:{v8_middleware:!1,v8_trailingSlashAwareDataRequests:!0,v8_passThroughRequests:!0},isSpaMode:!1,ssr:!0,criticalCss:"",manifest:{routes:{},version:"1",url:"",entry:{module:"",imports:[]}},routeDiscovery:"initial"===r.routeDiscovery.mode?{mode:"initial",manifestPath:pe}:{mode:"lazy",manifestPath:r.routeDiscovery.manifestPath||pe},routeModules:le(r)};return i.createElement(n.RSCRouterContext.Provider,{value:!0},i.createElement(ie,{location:r.location},i.createElement(n.FrameworkContext.Provider,{value:l},i.createElement(n.StaticRouterProvider,{context:a,router:s,hydrate:!1,nonce:r.nonce}))))}function me({state:e,routes:t,getRouteInfo:r,location:i,basename:o,isSpaMode:a}){let s={...e,loaderData:{...e.loaderData}},l=(0,n.matchRoutes)(t,i,o);if(l)for(let e of l){let t=e.route.id,i=r(t);!(0,n.shouldHydrateRouteLoader)(t,i.clientLoader,i.hasLoader,a)||!i.hasHydrateFallback&&i.hasLoader?i.hasLoader||(s.loaderData[t]=null):delete s.loaderData[t]}return s}},(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.parseCookie=c,t.parse=c,t.stringifyCookie=function(e,t){const i=t?.encode||encodeURIComponent,o=[];for(const t of Object.keys(e)){const a=e[t];if(void 0===a)continue;if(!r.test(t))throw new TypeError(`cookie name is invalid: ${t}`);const s=i(a);if(!n.test(s))throw new TypeError(`cookie val is invalid: ${a}`);o.push(`${t}=${s}`)}return o.join("; ")},t.stringifySetCookie=u,t.serialize=u,t.parseSetCookie=function(e,t){const r=t?.decode||f,n=e.length,i=p(e,0,n),o=d(e,0,i),s=-1===o?{name:"",value:r(h(e,0,i))}:{name:h(e,0,o),value:r(h(e,o+1,i))};let l=i+1;for(;l<n;){const t=p(e,l,n),r=d(e,l,t),i=h(e,l,-1===r?t:r),o=-1===r?void 0:h(e,r+1,t);switch(i.toLowerCase()){case"httponly":s.httpOnly=!0;break;case"secure":s.secure=!0;break;case"partitioned":s.partitioned=!0;break;case"domain":s.domain=o;break;case"path":s.path=o;break;case"max-age":o&&a.test(o)&&(s.maxAge=Number(o));break;case"expires":if(!o)break;const e=new Date(o);Number.isFinite(e.valueOf())&&(s.expires=e);break;case"priority":if(!o)break;const t=o.toLowerCase();"low"!==t&&"medium"!==t&&"high"!==t||(s.priority=t);break;case"samesite":if(!o)break;const r=o.toLowerCase();"lax"!==r&&"strict"!==r&&"none"!==r||(s.sameSite=r)}l=t+1}return s},t.stringifySetCookie=u,t.serialize=u;const r=/^[\u0021-\u003A\u003C\u003E-\u007E]+$/,n=/^[\u0021-\u003A\u003C-\u007E]*$/,i=/^([.]?[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)([.][a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)*$/i,o=/^[\u0020-\u003A\u003D-\u007E]*$/,a=/^-?\d+$/,s=Object.prototype.toString,l=(()=>{const e=function(){};return e.prototype=Object.create(null),e})();function c(e,t){const r=new l,n=e.length;if(n<2)return r;const i=t?.decode||f;let o=0;do{const t=d(e,o,n);if(-1===t)break;const a=p(e,o,n);if(t>a){o=e.lastIndexOf(";",t-1)+1;continue}const s=h(e,o,t);void 0===r[s]&&(r[s]=i(h(e,t+1,a))),o=a+1}while(o<n);return r}function u(e,t,a){const l="object"==typeof e?e:{...a,name:e,value:String(t)},c="object"==typeof t?t:a,u=c?.encode||encodeURIComponent;
vendor: 1,061 bytes, line 22
22if(!r.test(l.name))throw new TypeError(`argument name is invalid: ${l.name}`);const p=l.value?u(l.value):"";if(!n.test(p))throw new TypeError(`argument val is invalid: ${l.value}`);let d=l.name+"="+p;if(void 0!==l.maxAge){if(!Number.isInteger(l.maxAge))throw new TypeError(`option maxAge is invalid: ${l.maxAge}`);d+="; Max-Age="+l.maxAge}if(l.domain){if(!i.test(l.domain))throw new TypeError(`option domain is invalid: ${l.domain}`);d+="; Domain="+l.domain}if(l.path){if(!o.test(l.path))throw new TypeError(`option path is invalid: ${l.path}`);d+="; Path="+l.path}if(l.expires){if(h=l.expires,"[object Date]"!==s.call(h)||!Number.isFinite(l.expires.valueOf()))throw new TypeError(`option expires is invalid: ${l.expires}`);d+="; Expires="+l.expires.toUTCString()}var h;if(l.httpOnly&&(d+="; HttpOnly"),l.secure&&(d+="; Secure"),l.partitioned&&(d+="; Partitioned"),l.priority){switch("string"==typeof l.priority?l.priority.toLowerCase():void 0){case"low":d+="; Priority=Low";break;case"medium":d+="; Priority=Medium";break;case"high":d+="; Priority=High";break;
22default:throw new TypeError(`option priority is invalid: ${l.priority}`)}}if(l.sameSite){switch("string"==typeof l.sameSite?l.sameSite.toLowerCase():l.sameSite){case!0:case"strict":d+="; SameSite=Strict";break;case"lax":d+="; SameSite=Lax";break;case"none":d+="; SameSite=None";break;default:throw new TypeError(`option sameSite is invalid: ${l.sameSite}`)}}return d}function p(e,t,r){const n=e.indexOf(";",t);return-1===n?r:n}function d(e,t,r){const n=e.indexOf("=",t);return n<r?n:-1}function h(e,t,r){let n=t,i=r;do{const t=e.charCodeAt(n);if(32!==t&&9!==t)break}while(++n<i);for(;i>n;){const t=e.charCodeAt(i-1);if(32!==t&&9!==t)break;i--}return e.slice(n,i)}function f(e){if(-1===e.indexOf("%"))return e;try{return decodeURIComponent(e)}catch(t){return e}}},e=>{"use strict";var t={decodeValues:!0,map:!1,silent:!1};function r(e){return"string"!=typeof e||e in{}}function n(){return Object.create(null)}function i(e){return"string"==typeof e&&!!e.trim()}function o(e,o){var a=e.split(";").filter(i),s=function(e){var t="",r="",n=e.split("=");n.length>1?(t=n.shift(),r=n.join("=")):r=e;return{name:t,value:r}}(a.shift()),l=s.name,c=s.value;if(o=o?Object.assign({},t,o):t,r(l))return null;try{c=o.decodeValues?decodeURIComponent(c):c}catch(e){console.error("set-cookie-parser: failed to decode cookie value. Set options.decodeValues=false to disable decoding.",e)}var u=n();return u.name=l,u.value=c,a.forEach(function(e){var t=e.split("="),n=t.shift().trimLeft().toLowerCase();if(!r(n)){var i=t.join("=");if("expires"===n)u.expires=new Date(i);else if("max-age"===n){var o=parseInt(i,10);Number.isNaN(o)||(u.maxAge=o)}else"secure"===n?u.secure=!0:"httponly"===n?u.httpOnly=!0:"samesite"===n?u.sameSite=i:"partitioned"===n?u.partitioned=!0:n&&(u[n]=i)}}),u}function a(e,a){if(a=a?Object.assign({},t,a):t,!e)return a.map?n():[];if(e.headers)if("function"==typeof e.headers.getSetCookie)e=e.headers.getSetCookie();else if(e.headers["set-cookie"])e=e.headers["set-cookie"];else{var s=e.headers[Object.keys(e.headers).find(function(e){return"set-cookie"===e.toLowerCase()})];s||!e.headers.cookie||a.silent||console.warn("Warning: set-cookie-parser appears to have been called on a request object. It is designed to parse Set-Cookie headers from responses, not Cookie headers from requests. Set the option {silent: true} to suppress this warning."),e=s}if(Array.isArray(e)||(e=[e]),a.map){var l=n();return e.filter(i).reduce(function(e,t){var n=o(t,a);return n&&!r(n.name)&&(e[n.name]=n),e},l)}return e.filter(i).map(function(e){return o(e,a)}).filter(Boolean)}e.exports=a,e.exports.parse=a,e.exports.parseString=o,e.exports.splitCookiesString=function(e){if(Array.isArray(e))return e;if("string"!=typeof e)return[];var t,r,n,i,o,a=[],s=0;function l(){for(;s<e.length&&/\s/.test(e.charAt(s));)s+=1;return s<e.length}function c(){return"="!==(r=e.charAt(s))&&";"!==r&&","!==r}for(;s<e.length;){for(t=s,o=!1;l();)if(","===(r=e.charAt(s))){for(n=s,s+=1,l(),i=s;s<e.length&&c();)s+=1;s<e.length&&"="===e.charAt(s)?(o=!0,s=i,a.push(e.substring(t,n)),t=s):s=n+1}else s+=1;(!o||s>=e.length)&&a.push(e.substring(t,e.length))}return a}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{ApolloProvider:()=>a});var n=r(341),i=r(424),o=r(778);const a=({client:e,children:t})=>{const r=(0,o.getApolloContext)(),a=n.useContext(r),s=n.useMemo(()=>({...a,client:e||a.client}),[a,e]);return(0,i.invariant)(s.client,38),n.createElement(r.Provider,{value:s},t)}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{getApolloContext:()=>a});var n=r(341),i=r(424);const o=Symbol.for("__APOLLO_CONTEXT__");function a(){(0,i.invariant)("createContext"in n,37);let e=n.createContext[o];return e||(Object.defineProperty(n.createContext,o,{value:e=n.createContext({}),enumerable:!1,writable:!1,configurable:!0}),e.displayName="ApolloContext"),e}},,,,(e,t,r)=>{e.exports=r(783)()},(e,t,r)=>{"use strict";var n=r(784);function i(){}function o(){}o.resetWarningCache=i,e.exports=function(){function e(e,t,r,i,o,a){if(a!==n){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function t(){return e}e.isRequired=e;var r={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol
22:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:o,resetWarningCache:i};return r.PropTypes=r,r}},e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},(e,t,r)=>{"use strict";r.r(t),r.d(t,{useQuery:()=>y});var n=r(575),i=r(341),o=r(786),a=r(609),s=r(644),l=r(560),c=r(564),u=r(592),p=r(791),d=r(792),h=r(793),f=r(795),m=r(420);const g=Symbol(),y=function(e,...[t]){return(0,h.wrapHook)("useQuery",b,(0,f.useApolloClient)("object"==typeof t?t.client:void 0))(e,t)};function b(e,t={}){const r=(0,f.useApolloClient)("object"==typeof t?t.client:void 0),{ssr:s}="object"==typeof t?t:{},l=function(e,t,r){return(0,d.useDeepMemo)(()=>{if(t===p.skipToken){const t={...(0,c.mergeOptions)(r,{query:e,fetchPolicy:"standby"}),[u.variablesUnknownSymbol]:!0};return t[v]=!0,t}const n=(0,c.mergeOptions)(r,{...t,query:e});return t.skip&&(n.initialFetchPolicy=t.initialFetchPolicy||t.fetchPolicy,n.fetchPolicy="standby"),n},[e,t,r])}(e,t,r.defaultOptions.watchQuery);function h(t){const n=r.watchQuery(l);return{client:r,query:e,observable:n,resultData:{current:n.getCurrentResult(),previousData:t?.resultData.current.data,variables:n.variables}}}let[b,_]=i.useState(h);r===b.client&&e===b.query||_(b=h(b));const{observable:S,resultData:E}=b;!function(e,t){e.fetchPolicy||(e.fetchPolicy=t.options.initialFetchPolicy)}(l,S),function(e,t,r){if(t[g]&&!(0,n.equal)(t[g],r)){t[g][v]&&!r.initialFetchPolicy&&(r.initialFetchPolicy=r.fetchPolicy),!function(e,t){return e.query!==t.query||!(0,n.equal)(e.variables,t.variables)||e.fetchPolicy!==t.fetchPolicy&&("standby"===t.fetchPolicy||"standby"===e.fetchPolicy)}(t[g],r)?t.applyOptions(r):t.reobserve(r);const i=t.getCurrentResult();(0,n.equal)(i.data,e.current.data)||(e.previousData=e.current.data||e.previousData),e.current=i,e.variables=t.variables}t[g]=r}(E,S,l);const T=function(e,t,r){const s=e.options.fetchPolicy;return(0,m.useSyncExternalStore)(i.useCallback(r=>{const i=e.pipe((0,a.observeOn)(o.asapScheduler)).subscribe(i=>{const o=t.current;(0,n.equal)(o,i)&&(0,n.equal)(t.variables,e.variables)||(t.variables=e.variables,o.data&&!(0,n.equal)(o.data,i.data)&&(t.previousData=o.data),t.current=i,r())});return()=>{setTimeout(()=>i.unsubscribe())}},[e,t]),()=>t.current,()=>"standby"!==s&&!1===r||"no-cache"===s?y.ssrDisabledResult:t.current)}(S,E,s),w=i.useMemo(()=>({refetch:S.refetch.bind(S),fetchMore:S.fetchMore.bind(S),updateQuery:S.updateQuery.bind(S),startPolling:S.startPolling.bind(S),stopPolling:S.stopPolling.bind(S),subscribeToMore:S.subscribeToMore.bind(S)}),[S]),x=E.previousData;return i.useMemo(()=>{const{partial:e,...t}=T;return{...t,client:r,observable:S,variables:S.variables,previousData:x,...w}},[T,r,S,x,w])}const v=Symbol();y.ssrDisabledResult=(0,l.maybeDeepFreeze)({loading:!0,data:void 0,dataState:"empty",error:void 0,networkStatus:s.NetworkStatus.loading,partial:!0})},(e,t,r)=>{"use strict";r.r(t),r.d(t,{asap:()=>o,asapScheduler:()=>i});var n=r(787),i=new(r(790).AsapScheduler)(n.AsapAction),o=i},(e,t,r)=>{"use strict";r.r(t),r.d(t,{AsapAction:()=>a});var n=r(489),i=r(655),o=r(788),a=function(e){function t(t,r){var n=e.call(this,t,r)||this;
22return n.scheduler=t,n.work=r,n}return(0,n.__extends)(t,e),t.prototype.requestAsyncId=function(t,r,n){return void 0===n&&(n=0),null!==n&&n>0?e.prototype.requestAsyncId.call(this,t,r,n):(t.actions.push(this),t._scheduled||(t._scheduled=o.immediateProvider.setImmediate(t.flush.bind(t,void 0))))},t.prototype.recycleAsyncId=function(t,r,n){var i;if(void 0===n&&(n=0),null!=n?n>0:this.delay>0)return e.prototype.recycleAsyncId.call(this,t,r,n);var a=t.actions;null!=r&&(null===(i=a[a.length-1])||void 0===i?void 0:i.id)!==r&&(o.immediateProvider.clearImmediate(r),t._scheduled===r&&(t._scheduled=void 0))},t}(i.AsyncAction)},(e,t,r)=>{"use strict";r.r(t),r.d(t,{immediateProvider:()=>s});var n=r(489),i=r(789),o=i.Immediate.setImmediate,a=i.Immediate.clearImmediate,s={setImmediate:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=s.delegate;return((null==r?void 0:r.setImmediate)||o).apply(void 0,(0,n.__spreadArray)([],(0,n.__read)(e)))},clearImmediate:function(e){var t=s.delegate;return((null==t?void 0:t.clearImmediate)||a)(e)},delegate:void 0}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{Immediate:()=>s,TestTools:()=>l});var n,i=1,o={};function a(e){return e in o&&(delete o[e],!0)}var s={setImmediate:function(e){var t=i++;return o[t]=!0,n||(n=Promise.resolve()),n.then(function(){return a(t)&&e()}),t},clearImmediate:function(e){a(e)}},l={pending:function(){return Object.keys(o).length}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{AsapScheduler:()=>i});var n=r(489),i=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,n.__extends)(t,e),t.prototype.flush=function(e){this._active=!0;var t=this._scheduled;this._scheduled=void 0;var r,n=this.actions;e=e||n.shift();do{if(r=e.execute(e.state,e.delay))break}while((e=n[0])&&e.id===t&&n.shift());if(this._active=!1,r){for(;(e=n[0])&&e.id===t&&n.shift();)e.unsubscribe();throw r}},t}(r(658).AsyncScheduler)},(e,t,r)=>{"use strict";r.r(t),r.d(t,{skipToken:()=>n});const n=Symbol.for("apollo.skipToken")},(e,t,r)=>{"use strict";r.r(t),r.d(t,{useDeepMemo:()=>o});var n=r(575),i=r(341);function o(e,t){const r=i.useRef(void 0);return r.current&&(0,n.equal)(r.current.deps,t)||(r.current={value:e(),deps:t}),r.current.value}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{wrapHook:()=>a});var n=r(341),i=r(794),o=r(778);function a(e,t,r){const a=[r.queryManager,e.startsWith("use")?n.useContext((0,o.getApolloContext)()):void 0];let s=t;for(const t of a){const r=t?.[i.wrapperSymbol]?.[e];r&&(s=r(s))}return s}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{wrapperSymbol:()=>n});const n=Symbol.for("apollo.hook.wrappers")},(e,t,r)=>{"use strict";r.r(t),r.d(t,{useApolloClient:()=>a});var n=r(341),i=r(424),o=r(778);function a(e){const t=n.useContext((0,o.getApolloContext)()),r=e||t.client;return(0,i.invariant)(!!r,28),r}},,,,,,,,(e,t)=>{var r;
23/*!
24	Copyright (c) 2018 Jed Watson.
25	Licensed under the MIT License (MIT), see
26	http://jedwatson.github.io/classnames
27*/!function(){"use strict";var n={}.hasOwnProperty;function i(){for(var e="",t=0;t<arguments.length;t++){var r=arguments[t];r&&(e=a(e,o(r)))}return e}function o(e){if("string"==typeof e||"number"==typeof e)return e;if("object"!=typeof e)return"";if(Array.isArray(e))return i.apply(null,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var t="";for(var r in e)n.call(e,r)&&e[r]&&(t=a(t,r));return t}function a(e,t){return t?e?e+" "+t:e+t:e}e.exports?(i.default=i,e.exports=i):void 0===(r=function(){return i}.apply(t,[]))||(e.exports=r)}()},,,,,,,,(e,t,r)=>{"use strict";r.r(t),r.d(t,{useMutation:()=>c});
27var n=r(575),i=r(341),o=r(564),a=r(566),s=r(812),l=r(795);const c=function(e,t){const r=(0,l.useApolloClient)(t?.client),[c,p]=i.useState(()=>u(r)),d=i.useRef({result:c,mutationId:0,isMounted:!0,client:r,mutation:e,options:t});(0,s.useIsomorphicLayoutEffect)(()=>{Object.assign(d.current,{client:r,options:t,mutation:e})});const h=i.useCallback((e={})=>{const{options:t,mutation:r}=d.current,i={...t,mutation:r},s=e.client||d.current.client,l="function"==typeof e.context?e.context(t?.context):e.context;!d.current.result.loading&&d.current.isMounted&&p(d.current.result={loading:!0,error:void 0,data:void 0,called:!0,client:s});const c=++d.current.mutationId,u=(0,o.mergeOptions)(i,{...e,context:l});return(0,a.preventUnhandledRejection)(s.mutate(u).then(t=>{const{data:r,error:i}=t,o=e.onError||d.current.options?.onError;if(i&&o&&o(i,u),c===d.current.mutationId){const e={called:!0,loading:!1,data:r,error:i,client:s};d.current.isMounted&&!(0,n.equal)(d.current.result,e)&&p(d.current.result=e)}const a=e.onCompleted||d.current.options?.onCompleted;return i||a?.(t.data,u),t},t=>{if(c===d.current.mutationId&&d.current.isMounted){const e={loading:!1,error:t,data:void 0,called:!0,client:s};(0,n.equal)(d.current.result,e)||p(d.current.result=e)}const r=e.onError||d.current.options?.onError;throw r&&r(t,u),t}))},[]),f=i.useCallback(()=>{if(d.current.isMounted){const e=u(d.current.client);Object.assign(d.current,{mutationId:0,result:e}),p(e)}},[]);return i.useEffect(()=>{const e=d.current;return e.isMounted=!0,()=>{e.isMounted=!1}},[]),[h,{reset:f,...c}]};function u(e){return{data:void 0,error:void 0,called:!1,loading:!1,client:e}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{useIsomorphicLayoutEffect:()=>i});var n=r(341);const i=r(422).canUseDOM?n.useLayoutEffect:n.useEffect},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,(e,t,r)=>{var n=r(341),i="undefined"==typeof window?{show:function(){},hide:function(){},config:function(){}}:r(896),o=0,a=function(e){return e.topbar||i};function s(e){return n.useEffect(function(){return 0===o&&a(e).show(),o++,function(){0===--o&&a(e).hide()}},[]),null}s.config=i.config,e.exports=s},function(e,t,r){var n;
28/*! topbar 0.1.4, 2020-04-27
29 *  http://buunguyen.github.io/topbar
30 *  Copyright (c) 2019 Buu Nguyen
31 *  Licensed under the MIT License */(function(i,o){"use strict";!function(){for(var e=0,t=["ms","moz","webkit","o"],r=0;r<t.length&&!i.requestAnimationFrame;++r)i.requestAnimationFrame=i[t[r]+"RequestAnimationFrame"],i.cancelAnimationFrame=i[t[r]+"CancelAnimationFrame"]||i[t[r]+"CancelRequestAnimationFrame"];i.requestAnimationFrame||(i.requestAnimationFrame=function(t,r){var n=(new Date).getTime(),o=Math.max(0,16-(n-e)),a=i.setTimeout(function(){t(n+o)},o);return e=n+o,a}),i.cancelAnimationFrame||(i.cancelAnimationFrame=function(e){clearTimeout(e)})}();var a,s,l,c,u,p={autoRun:!0,barThickness:3,barColors:{0:"rgba(26,  188, 156, .9)",".25":"rgba(52,  152, 219, .9)",".50":"rgba(241, 196, 15,  .9)",".75":"rgba(230, 126, 34,  .9)","1.0":"rgba(211, 84,  0,   .9)"},shadowBlur:10,shadowColor:"rgba(0,   0,   0,   .6)",className:null},d=function(){a.width=i.innerWidth,a.height=5*p.barThickness;var e=a.getContext("2d");e.shadowBlur=p.shadowBlur,e.shadowColor=p.shadowColor;var t=e.createLinearGradient(0,0,a.width,0);for(var r in p.barColors)t.addColorStop(r,p.barColors[r]);e.lineWidth=p.barThickness,e.beginPath(),e.moveTo(0,p.barThickness/2),e.lineTo(Math.ceil(c*a.width),p.barThickness/2),e.strokeStyle=t,e.
31stroke()},h={config:function(e){for(var t in e)p.hasOwnProperty(t)&&(p[t]=e[t])},show:function(){var e,t,r,n;u||(u=!0,null!==l&&i.cancelAnimationFrame(l),a||((n=(a=o.createElement("canvas")).style).position="fixed",n.top=n.left=n.right=n.margin=n.padding=0,n.zIndex=100001,n.display="none",p.className&&a.classList.add(p.className),o.body.appendChild(a),t="resize",r=d,(e=i).addEventListener?e.addEventListener(t,r,!1):e.attachEvent?e.attachEvent("on"+t,r):e["on"+t]=r),a.style.opacity=1,a.style.display="block",h.progress(0),p.autoRun&&function e(){s=i.requestAnimationFrame(e),h.progress("+"+.05*Math.pow(1-Math.sqrt(c),2))}())},progress:function(e){return void 0===e||("string"==typeof e&&(e=(e.indexOf("+")>=0||e.indexOf("-")>=0?c:0)+parseFloat(e)),c=e>1?1:e,d()),c},hide:function(){u&&(u=!1,null!=s&&(i.cancelAnimationFrame(s),s=null),function e(){if(h.progress("+.1")>=1&&(a.style.opacity-=.05,a.style.opacity<=.05))return a.style.display="none",void(l=null);l=i.requestAnimationFrame(e)}())}};"object"==typeof e.exports?e.exports=h:void 0===(n=function(){return h}.call(t,r,t,e))||(e.exports=n)}).call(this,window,document)},,,,,,,,,,,,,,,,,,,,,(e,t,r)=>{"use strict";r.r(t),r.d(t,{Comment:()=>n.Comment,Element:()=>n.Element,ProcessingInstruction:()=>n.ProcessingInstruction,Text:()=>n.Text,attributesToProps:()=>n.attributesToProps,default:()=>i,domToReact:()=>n.domToReact,htmlToDOM:()=>n.htmlToDOM});var n=r(918);const i=n.default||n},function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.htmlToDOM=t.domToReact=t.attributesToProps=t.Text=t.ProcessingInstruction=t.Element=t.Comment=void 0,t.default=function(e,t){var r;if("string"!=typeof e)throw new TypeError("First argument must be a string");if(!e)return[];const n=Object.assign(Object.assign({},null!==(r=null==t?void 0:t.htmlparser2)&&void 0!==r?r:l),{trustedTypePolicy:null==t?void 0:t.trustedTypePolicy});return(0,a.default)((0,i.default)(e,n),t)};const i=n(r(919));t.htmlToDOM=i.default;const o=n(r(925));t.attributesToProps=o.default;const a=n(r(932));t.domToReact=a.default;var s=r(933);Object.defineProperty(t,"Comment",{enumerable:!0,get:function(){return s.Comment}}),Object.defineProperty(t,"Element",{enumerable:!0,get:function(){return s.Element}}),Object.defineProperty(t,"ProcessingInstruction",{enumerable:!0,get:function(){return s.ProcessingInstruction}}),Object.defineProperty(t,"Text",{enumerable:!0,get:function(){return s.Text}});const l={lowerCaseAttributeNames:!1}},(e,t,r)=>{Object.defineProperties(t,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const n=r(920),i=r(924),o=/<(![a-zA-Z\s]+)>/;t.default=function(e,t){if("string"!=typeof e)throw new TypeError("First argument must be a string");if(!e)return[];const r=o.exec(e),a=r?r[1]:void 0;return n.formatDOM(i.default(e,t?.trustedTypePolicy),null,a)}},(e,t,r)=>{const n=r(921),i=r(923),o=new RegExp("\r","g"),a=`__HTML_DOM_PARSER_CARRIAGE_RETURN_PLACEHOLDER_${Date.now().toString()}__`,s=new RegExp(a,"g");function l(e){const t={};let r=0;const n=e.length;for(;r<n;r++){const n=e[r];t[n.name]=n.value}return t}function c(e){const t=function(e){return i.CASE_SENSITIVE_TAG_NAMES_MAP[e]}(e=e.toLowerCase());return t||e}function u(e){return e.replace(s,"\r")}t.escapeSpecialCharacters=function(e){return e.replace(o,a)},t.formatDOM=function e(t,r=null,i){const o=[];let a,s=0;const p=t.length;for(;s<p;s++){const i=t[s];switch(i.nodeType){case 1:{const t=c(i.nodeName);a=new n.Element(t,l(i.attributes)),a.children=e("template"===t?i.content.childNodes:i.childNodes,a);break}case 3:a=new n.Text(u(i.nodeValue??""));break;case 8:a=new n.Comment(i.nodeValue??"");break;default:continue}const p=o[s-1]??null;p&&(p.next=a),a.parent=r,a.prev=p,a.next=null,o.push(a)}return i&&(a=new n.ProcessingInstruction(i.substring(0,i.indexOf(" ")).toLowerCase(),i),a.next=o[0]??null,a.parent=r,o.unshift(a),o[1]&&(o[1].prev=o[0])),o},t.hasOpenTag=function(e,t){const r="<"+t,n=e.toLowerCase().indexOf(r);if(-1===n)return!1;const i=e[n+r.length];return">"===i||" "===i||"\t"===i||"\n"===i||"\r"===i||"/"===i},t.revertEscapedCharacters=u},(e,t,r)=>{const n=r(922);var i=class{parent=null;prev=null;next=null;startIndex=null;endIndex=null;get parentNode(){return this.parent}set parentNode(e){this.parent=e}get previousSibling(){return this.prev}set previousSibling(e){this.prev=e}get nextSibling(){return this.next}set nextSibling(e){this.next=e}cloneNode(e=!1){return v(this,e)}},o=class extends i{data;constructor(e){super(),this.data=e}get nodeValue(){return this.data}set nodeValue(e){this.data=e}},a=class extends o{type=n.ElementType.Text;get nodeType(){return 3}},s=class extends o{type=n.ElementType.Comment;get nodeType(){return 8}},l=class extends o{type=n.ElementType.Directive;name;constructor(e,t){super(t),this.name=e}get nodeType(){return 1}"x-name";"x-publicId";"x-systemId"},c=class extends i{children;constructor(e){super(),this.children=e}get firstChild(){return this.children[0]??null}get lastChild(){return this.children.length>0?this.children[this.children.length-1]:null}get childNodes(){return this.children}set childNodes(e){this.children=e}},u=class extends c{type=n.ElementType.CDATA;get nodeType(){return 4}},p=class extends c{type=n.ElementType.Root;get nodeType(){return 9}},d=class extends c{name;attribs;type;constructor(e,t,r=[],i=("script"===e?n.ElementType.Script:"style"===e?n.ElementType.Style:n.ElementType.Tag)){super(r),this.name=e,this.attribs=t,this.type=i}get nodeType(){return 1}get tagName(){return this.name}set tagName(e){this.name=e}get attributes(){return Object.keys(this.attribs).map(e=>({name:e,value:this.attribs[e],namespace:this["x-attribsNamespace"]?.[e],prefix:this["x-attribsPrefix"]?.[e]}))}namespace;"x-attribsNamespace";"x-attribsPrefix"};function h(e){return n.isTag(e)}function f(e){return e.type===n.ElementType.CDATA}function m(e){return e.type===n.ElementType.Text}function g(e){return e.type===n.ElementType.Comment}function y(e){return e.type===n.ElementType.Directive}function b(e){return e.type===n.ElementType.Root}function v(e,t=!1){let r;if(m(e))r=new a(e.data);else if(g(e))r=new s(e.data);else if(h(e)){const n=t?_(e.children):[],i=new d(e.name,{...e.attribs},n);for(const e of n)e.parent=i;null!=e.namespace&&(i.namespace=e.namespace),e["x-attribsNamespace"]&&(i["x-attribsNamespace"]={...e["x-attribsNamespace"]}),e["x-attribsPrefix"]&&(i["x-attribsPrefix"]={...e["x-attribsPrefix"]}),r=i}else if(f(e)){const n=t?_(e.children):[],i=new u(n);for(const e of n)e.parent=i;r=i}else if(b(e)){const n=t?_(e.children):[],i=new p(n);for(const e of n)e.parent=i;e["x-mode"]&&(i["x-mode"]=e["x-mode"]),r=i}else{if(!y(e))throw new Error(`Not implemented yet: ${e.type}`);{const t=new l(e.name,e.data);null!=e["x-name"]&&(t["x-name"]=e["x-name"],t["x-publicId"]=e["x-publicId"],t["x-systemId"]=e["x-systemId"]),r=t}}return r.startIndex=e.startIndex,r.endIndex=e.endIndex,null!=e.sourceCodeLocation&&(r.sourceCodeLocation=e.sourceCodeLocation),r}function _(e){const t=e.map(e=>v(e,!0));for(let e=1;e<t.length;e++)t[e].prev=t[e-1],t[e-1].next=t[e];return t}t.CDATA=u,t.Comment=s,t.DataNode=o,t.Document=p,t.Element=d,t.Node=i,t.NodeWithChildren=c,t.ProcessingInstruction=l,t.Text=a,t.cloneNode=v,t.isCDATA=f,t.isComment=g,t.isDirective=y,t.isDocument=b,t.isTag=h,t.isText=m},(e,t)=>{var r;!function(e){e.Root="root",e.Text="text",e.Directive="directive",e.Comment="comment",e.Script="script",e.Style="style",e.Tag="tag",e.CDATA="cdata",e.Doctype="doctype"}(r||(r={})),r.Root,r.Text,r.Directive,r.Comment,r.Script,r.Style,r.Tag,r.CDATA,r.Doctype,Object.defineProperty(t,"ElementType",{enumerable:!0,get:function(){return r}}),t.isTag=function(e){return e.type===r.Tag||e.type===r.Script||e.type===r.Style}},(e,t)=>{const r=["animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","linearGradient","radialGradient","textPath"],n=r.reduce((e,t)=>
31(e[t.toLowerCase()]=t,e),{});t.CASE_SENSITIVE_TAG_NAMES=r,t.CASE_SENSITIVE_TAG_NAMES_MAP=n},(e,t,r)=>{const n=r(920),i="html",o="head",a="body",s=/<([a-zA-Z]+[0-9]?)/;function l(e,t){return t?t.createHTML(e):e}let c=(e,t,r)=>{throw new Error("This browser does not support `document.implementation.createHTMLDocument`")},u=(e,t,r)=>{throw new Error("This browser does not support `DOMParser.prototype.parseFromString`")};const p="object"==typeof window&&window.DOMParser;if("function"==typeof p){const e=new p,t="text/html";u=(r,n,i)=>(n&&(r=`<${n}>${r}</${n}>`),e.parseFromString(r,t)),c=u}if("object"==typeof document&&document.implementation){const e=document.implementation.createHTMLDocument();c=function(t,r,n){if(r){const i=e.documentElement.querySelector(r);return i&&(i.innerHTML=l(t,n)),e}return e.documentElement.innerHTML=l(t,n),e}}const d="object"==typeof document&&document.createElement("template");let h;d&&d.content&&(h=(e,t)=>(d.innerHTML=l(e,t),d.content.childNodes));const f=()=>document.createDocumentFragment().childNodes;t.default=function(e,t){e=n.escapeSpecialCharacters(e);const r=s.exec(e)?.[1]?.toLowerCase();switch(r){case i:{const t=u(e);if(!n.hasOpenTag(e,o)){const e=t.querySelector(o);e?.parentNode?.removeChild(e)}if(!n.hasOpenTag(e,a)){const e=t.querySelector(a);e?.parentNode?.removeChild(e)}return t.querySelectorAll(i)}case o:case a:{const i=c(e,void 0,t).querySelectorAll(r);return n.hasOpenTag(e,a)&&n.hasOpenTag(e,o)?i[0].parentNode?.childNodes??f():i}default:return h?h(e,t):c(e,a,t).querySelector(a)?.childNodes??f()}},t.getHTMLForInnerHTML=l},(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e={},t){const r={},c=Boolean(e.type&&s[e.type]);for(const s in e){const u=e[s];if((0,n.isCustomAttribute)(s)){r[s]=u;continue}const p=s.toLowerCase();let d=l(p);if(d){const e=(0,n.getPropertyInfo)(d);switch(o.includes(d)&&a.includes(t)&&!c&&(d=l("default"+p)),r[d]=u,null==e?void 0:e.type){case n.BOOLEAN:r[d]=!0;break;case n.OVERLOADED_BOOLEAN:""===u&&(r[d]=!0)}continue}i.PRESERVE_CUSTOM_ATTRIBUTES&&(r[s]=u)}return(0,i.setStyleProp)(e.style,r),r};const n=r(926),i=r(928),o=["checked","value"],a=["input","select","textarea"],s={reset:!0,submit:!0};function l(e){return n.possibleStandardNames[e]}},(e,t,r)=>{"use strict";function n(e,t,r,n,i,o,a){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=n,this.attributeNamespace=i,this.mustUseProperty=r,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=a}const i={};["children","dangerouslySetInnerHTML","defaultValue","defaultChecked","innerHTML","suppressContentEditableWarning","suppressHydrationWarning","style"].forEach(e=>{i[e]=new n(e,0,!1,e,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(([e,t])=>{i[e]=new n(e,1,!1,t,null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(e=>{i[e]=new n(e,2,!1,e.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(e=>{i[e]=new n(e,2,!1,e,null,!1,!1)}),["allowFullScreen","async","autoFocus","autoPlay","controls","default","defer","disabled","disablePictureInPicture","disableRemotePlayback","formNoValidate","hidden","loop","noModule","noValidate","open","playsInline","readOnly","required","reversed","scoped","seamless","itemScope"].forEach(e=>{i[e]=new n(e,3,!1,e.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(e=>{i[e]=new n(e,3,!0,e,null,!1,!1)}),["capture","download"].forEach(e=>{i[e]=new n(e,4,!1,e,null,!1,!1)}),["cols","rows","size","span"].forEach(e=>{i[e]=new n(e,6,!1,e,null,!1,!1)}),["rowSpan","start"].forEach(e=>{i[e]=new n(e,5,!1,e.toLowerCase(),null,!1,!1)});const o=/[\-\:]([a-z])/g,a=e=>e[1].toUpperCase();["accent-height","alignment-baseline","arabic-form","baseline-shift","cap-height","clip-path","clip-rule","color-interpolation","color-interpolation-filters","color-profile","color-rendering","dominant-baseline","enable-background","fill-opacity","fill-rule","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","glyph-name","glyph-orientation-horizontal","glyph-orientation-vertical","horiz-adv-x","horiz-origin-x","image-rendering","letter-spacing","lighting-color","marker-end","marker-mid","marker-start","overline-position","overline-thickness","paint-order","panose-1","pointer-events","rendering-intent","shape-rendering","stop-color","stop-opacity","strikethrough-position","strikethrough-thickness","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","text-anchor","text-decoration","text-rendering","underline-position","underline-thickness","unicode
31-bidi","unicode-range","units-per-em","v-alphabetic","v-hanging","v-ideographic","v-mathematical","vector-effect","vert-adv-y","vert-origin-x","vert-origin-y","word-spacing","writing-mode","xmlns:xlink","x-height"].forEach(e=>{const t=e.replace(o,a);i[t]=new n(t,1,!1,e,null,!1,!1)}),["xlink:actuate","xlink:arcrole","xlink:role","xlink:show","xlink:title","xlink:type"].forEach(e=>{const t=e.replace(o,a);i[t]=new n(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(e=>{const t=e.replace(o,a);i[t]=new n(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(e=>{i[e]=new n(e,1,!1,e.toLowerCase(),null,!1,!1)});i.xlinkHref=new n("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(e=>{i[e]=new n(e,1,!1,e.toLowerCase(),null,!0,!0)});const{CAMELCASE:s,SAME:l,possibleStandardNames:c}=r(927),u=RegExp.prototype.test.bind(new RegExp("^(data|aria)-[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$")),p=Object.keys(c).reduce((e,t)=>{const r=c[t];return r===l?e[t]=t:r===s?e[t.toLowerCase()]=t:e[t]=r,e},{});t.BOOLEAN=3,t.BOOLEANISH_STRING=2,t.NUMERIC=5,t.OVERLOADED_BOOLEAN=4,t.POSITIVE_NUMERIC=6,t.RESERVED=0,t.STRING=1,t.getPropertyInfo=function(e){return i.hasOwnProperty(e)?i[e]:null},t.isCustomAttribute=u,t.possibleStandardNames=p},(e,t)=>{t.SAME=0;t.CAMELCASE=1,t.possibleStandardNames={accept:0,acceptCharset:1,"accept-charset":"acceptCharset",accessKey:1,action:0,allowFullScreen:1,alt:0,as:0,async:0,autoCapitalize:1,autoComplete:1,autoCorrect:1,autoFocus:1,autoPlay:1,autoSave:1,capture:0,cellPadding:1,cellSpacing:1,challenge:0,charSet:1,checked:0,children:0,cite:0,class:"className",classID:1,className:1,cols:0,colSpan:1,content:0,contentEditable:1,contextMenu:1,controls:0,controlsList:1,coords:0,crossOrigin:1,dangerouslySetInnerHTML:1,data:0,dateTime:1,default:0,defaultChecked:1,defaultValue:1,defer:0,dir:0,disabled:0,disablePictureInPicture:1,disableRemotePlayback:1,download:0,draggable:0,encType:1,enterKeyHint:1,for:"htmlFor",form:0,formMethod:1,formAction:1,formEncType:1,formNoValidate:1,formTarget:1,frameBorder:1,headers:0,height:0,hidden:0,high:0,href:0,hrefLang:1,htmlFor:1,httpEquiv:1,"http-equiv":"httpEquiv",icon:0,id:0,innerHTML:1,inputMode:1,integrity:0,is:0,itemID:1,itemProp:1,itemRef:1,itemScope:1,itemType:1,keyParams:1,keyType:1,kind:0,label:0,lang:0,list:0,loop:0,low:0,manifest:0,marginWidth:1,marginHeight:1,max:0,maxLength:1,media:0,mediaGroup:1,method:0,min:0,minLength:1,multiple:0,muted:0,name:0,noModule:1,nonce:0,noValidate:1,open:0,optimum:0,pattern:0,placeholder:0,playsInline:1,poster:0,preload:0,profile:0,radioGroup:1,readOnly:1,referrerPolicy:1,rel:0,required:0,reversed:0,role:0,rows:0,rowSpan:1,sandbox:0,scope:0,scoped:0,scrolling:0,seamless:0,selected:0,shape:0,size:0,sizes:0,span:0,spellCheck:1,src:0,srcDoc:1,srcLang:1,srcSet:1,start:0,step:0,style:0,summary:0,tabIndex:1,target:0,title:0,type:0,useMap:1,value:0,width:0,wmode:0,wrap:0,about:0,accentHeight:1,"accent-height":"accentHeight",accumulate:0,additive:0,alignmentBaseline:1,"alignment-baseline":"alignmentBaseline",allowReorder:1,alphabetic:0,amplitude:0,arabicForm:1,"arabic-form":"arabicForm",ascent:0,attributeName:1,attributeType:1,autoReverse:1,azimuth:0,baseFrequency:1,baselineShift:1,"baseline-shift":"baselineShift",baseProfile:1,bbox:0,begin:0,bias:0,by:0,calcMode:1,capHeight:1,"cap-height":"capHeight",clip:0,clipPath:1,"clip-path":"clipPath",clipPathUnits:1,clipRule:1,"clip-rule":"clipRule",color:0,colorInterpolation:1,"color-interpolation":"colorInterpolation",colorInterpolationFilters:1,"color-interpolation-filters":"colorInterpolationFilters",colorProfile:1,"color-profile":"colorProfile",colorRendering:1,"color-rendering":"colorRendering",contentScriptType:1,contentStyleType:1,cursor:0,cx:0,cy:0,d:0,datatype:0,decelerate:0,descent:0,diffuseConstant:1,direction:0,display:0,divisor:0,dominantBaseline:1,"dominant-baseline":"dominantBaseline",dur:0,dx:0,dy:0,edgeMode:1,elevation:0,enableBackgroun
31d:1,"enable-background":"enableBackground",end:0,exponent:0,externalResourcesRequired:1,fill:0,fillOpacity:1,"fill-opacity":"fillOpacity",fillRule:1,"fill-rule":"fillRule",filter:0,filterRes:1,filterUnits:1,floodOpacity:1,"flood-opacity":"floodOpacity",floodColor:1,"flood-color":"floodColor",focusable:0,fontFamily:1,"font-family":"fontFamily",fontSize:1,"font-size":"fontSize",fontSizeAdjust:1,"font-size-adjust":"fontSizeAdjust",fontStretch:1,"font-stretch":"fontStretch",fontStyle:1,"font-style":"fontStyle",fontVariant:1,"font-variant":"fontVariant",fontWeight:1,"font-weight":"fontWeight",format:0,from:0,fx:0,fy:0,g1:0,g2:0,glyphName:1,"glyph-name":"glyphName",glyphOrientationHorizontal:1,"glyph-orientation-horizontal":"glyphOrientationHorizontal",glyphOrientationVertical:1,"glyph-orientation-vertical":"glyphOrientationVertical",glyphRef:1,gradientTransform:1,gradientUnits:1,hanging:0,horizAdvX:1,"horiz-adv-x":"horizAdvX",horizOriginX:1,"horiz-origin-x":"horizOriginX",ideographic:0,imageRendering:1,"image-rendering":"imageRendering",in2:0,in:0,inlist:0,intercept:0,k1:0,k2:0,k3:0,k4:0,k:0,kernelMatrix:1,kernelUnitLength:1,kerning:0,keyPoints:1,keySplines:1,keyTimes:1,lengthAdjust:1,letterSpacing:1,"letter-spacing":"letterSpacing",lightingColor:1,"lighting-color":"lightingColor",limitingConeAngle:1,local:0,markerEnd:1,"marker-end":"markerEnd",markerHeight:1,markerMid:1,"marker-mid":"markerMid",markerStart:1,"marker-start":"markerStart",markerUnits:1,markerWidth:1,mask:0,maskContentUnits:1,maskUnits:1,mathematical:0,mode:0,numOctaves:1,offset:0,opacity:0,operator:0,order:0,orient:0,orientation:0,origin:0,overflow:0,overlinePosition:1,"overline-position":"overlinePosition",overlineThickness:1,"overline-thickness":"overlineThickness",paintOrder:1,"paint-order":"paintOrder",panose1:0,"panose-1":"panose1",pathLength:1,patternContentUnits:1,patternTransform:1,patternUnits:1,pointerEvents:1,"pointer-events":"pointerEvents",points:0,pointsAtX:1,pointsAtY:1,pointsAtZ:1,prefix:0,preserveAlpha:1,preserveAspectRatio:1,primitiveUnits:1,property:0,r:0,radius:0,refX:1,refY:1,renderingIntent:1,"rendering-intent":"renderingIntent",repeatCount:1,repeatDur:1,requiredExtensions:1,requiredFeatures:1,resource:0,restart:0,result:0,results:0,rotate:0,rx:0,ry:0,scale:0,security:0,seed:0,shapeRendering:1,"shape-rendering":"shapeRendering",slope:0,spacing:0,specularConstant:1,specularExponent:1,speed:0,spreadMethod:1,startOffset:1,stdDeviation:1,stemh:0,stemv:0,stitchTiles:1,stopColor:1,"stop-color":"stopColor",stopOpacity:1,"stop-opacity":"stopOpacity",strikethroughPosition:1,"strikethrough-position":"strikethroughPosition",strikethroughThickness:1,"strikethrough-thickness":"strikethroughThickness",string:0,stroke:0,strokeDasharray:1,"stroke-dasharray":"strokeDasharray",strokeDashoffset:1,"stroke-dashoffset":"strokeDashoffset",strokeLinecap:1,"stroke-linecap":"strokeLinecap",strokeLinejoin:1,"stroke-linejoin":"strokeLinejoin",strokeMiterlimit:1,"stroke-miterlimit":"strokeMiterlimit",strokeWidth:1,"stroke-width":"strokeWidth",strokeOpacity:1,"stroke-opacity":"strokeOpacity",suppressContentEditableWarning:1,suppressHydrationWarning:1,surfaceScale:1,systemLanguage:1,tableValues:1,targetX:1,targetY:1,textAnchor:1,"text-anchor":"textAnchor",textDecoration:1,"text-decoration":"textDecoration",textLength:1,textRendering:1,"text-rendering":"textRendering",to:0,transform:0,typeof:0,u1:0,u2:0,underlinePosition:1,"underline-position":"underlinePosition",underlineThickness:1,"underline-thickness":"underlineThickness",unicode:0,unicodeBidi:1,"unicode-bidi":"unicodeBidi",unicodeRange:1,"unicode-range":"unicodeRange",unitsPerEm:1,"units-per-em":"unitsPerEm",unselectable:0,vAlphabetic:1,"v-alphabetic":"vAlphabetic",values:0,vectorEffect:1,"vector-effect":"vectorEffect",version:0,vertAdvY:1,"vert-adv-y":"vertAdvY",vertOriginX:1,"vert-origin-x":"vertOriginX",vertOriginY:1,"vert-origin-y":"vertOriginY",vHanging:1,"v-hanging":"vHanging",vIdeographic:1,"v-ideographic":"vIdeographic",viewBox:1,viewTarget:1,visibility:0,vMathematical:1,"v-mathematical":"vMathematical",vocab:0,widths:0,wordSpacing:1,"word-spacing":"wordSpacing",writingMode:1,"writing-mode":"writingMode",x1:0,x2:0,x:0,xChannelSelector:1,xHeight:1,"x-height":"xHeight",xlinkActuate:1,"xlink:actuate":"xlinkActuate",xlinkArcrole:1,"xlink:arcrole":"xlinkArcrole",xlinkHref:1,"xlink:href":"xl
31inkHref",xlinkRole:1,"xlink:role":"xlinkRole",xlinkShow:1,"xlink:show":"xlinkShow",xlinkTitle:1,"xlink:title":"xlinkTitle",xlinkType:1,"xlink:type":"xlinkType",xmlBase:1,"xml:base":"xmlBase",xmlLang:1,"xml:lang":"xmlLang",xmlns:0,"xml:space":"xmlSpace",xmlnsXlink:1,"xmlns:xlink":"xmlnsXlink",xmlSpace:1,y1:0,y2:0,y:0,yChannelSelector:1,z:0,zoomAndPan:1}},function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.returnFirstArg=t.canTextBeChildOfNode=t.ELEMENTS_WITH_NO_TEXT_CHILDREN=t.PRESERVE_CUSTOM_ATTRIBUTES=void 0,t.isCustomComponent=function(e,t){if(!e.includes("-"))return Boolean(t&&"string"==typeof t.is);if(a.has(e))return!1;return!0},t.setStyleProp=function(e,t){if("string"!=typeof e)return;if(!e.trim())return void(t.style={});try{t.style=(0,o.default)(e,s)}catch(e){t.style={}}};const i=r(341),o=n(r(929)),a=new Set(["annotation-xml","color-profile","font-face","font-face-src","font-face-uri","font-face-format","font-face-name","missing-glyph"]);const s={reactCompat:!0};t.PRESERVE_CUSTOM_ATTRIBUTES=Number(i.version.split(".")[0])>=16,t.ELEMENTS_WITH_NO_TEXT_CHILDREN=new Set(["tr","tbody","thead","tfoot","colgroup","table","head","html","frameset"]);t.canTextBeChildOfNode=e=>!t.ELEMENTS_WITH_NO_TEXT_CHILDREN.has(e.name);t.returnFirstArg=e=>e},(e,t,r)=>{var n=Object.create,i=Object.defineProperty,o=Object.getOwnPropertyDescriptor,a=Object.getOwnPropertyNames,s=Object.getPrototypeOf,l=Object.prototype.hasOwnProperty;let c=r(930);var u,p,d;d=null!=(u=c)?n(s(u)):{},c=((e,t,r,n)=>{if(t&&"object"==typeof t||"function"==typeof t)for(var s,c=a(t),u=0,p=c.length;u<p;u++)s=c[u],l.call(e,s)||s===r||i(e,s,{get:(e=>t[e]).bind(null,s),enumerable:!(n=o(t,s))||n.enumerable});return e})(!p&&u&&u.__esModule?d:i(d,"default",{value:u,enumerable:!0}),u);const h=/^--[a-zA-Z0-9_-]+$/,f=/-([a-z])/g,m=/^[^-]+$/,g=/^-(webkit|moz|ms|o|khtml)-/,y=/^-(ms)-/,b=(e,t)=>t.toUpperCase(),v=(e,t)=>`${t}-`,_=(e,t={})=>(e=>!e||m.test(e)||h.test(e))(e)?e:(e=e.toLowerCase(),(e=t.reactCompat?e.replace(y,v):e.replace(g,v)).replace(f,b));e.exports=function(e,t){const r={};return e&&"string"==typeof e?((0,c.default)(e,(e,n)=>{e&&n&&(r[_(e,t)]=n)}),r):r}},(e,t,r)=>{var n=Object.create,i=Object.defineProperty,o=Object.getOwnPropertyDescriptor,a=Object.getOwnPropertyNames,s=Object.getPrototypeOf,l=Object.prototype.hasOwnProperty;let c=r(931);var u,p,d;d=null!=(u=c)?n(s(u)):{},c=((e,t,r,n)=>{if(t&&"object"==typeof t||"function"==typeof t)for(var s,c=a(t),u=0,p=c.length;u<p;u++)s=c[u],l.call(e,s)||s===r||i(e,s,{get:(e=>t[e]).bind(null,s),enumerable:!(n=o(t,s))||n.enumerable});return e})(!p&&u&&u.__esModule?d:i(d,"default",{value:u,enumerable:!0}),u),e.exports=function(e,t){let r=null;if(!e||"string"!=typeof e)return r;const n=(0,c.default)(e),i="function"==typeof t;return n.forEach(e=>{if("declaration"!==e.type)return;const{property:n,value:o}=e;i?t(n,o,e):o&&(r=r??{},r[n]=o)}),r}},e=>{"use strict";var t=/\/\*(?:[^*]|\*(?!\/))*\*\//g,r=/\n/g,n=/^\s*/,i=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,o=/^:\s*/,a=/^((?:'(?:\\.|[^'\\])*'|"(?:\\.|[^"\\])*"|url\((?:'(?:\\.|[^'\\])*'|"(?:\\.|[^"\\])*"|[^)]*)\)|[^};])+)/,s=/^[;\s]*/;e.exports=function(e,l){if("string"!=typeof e)throw new TypeError("First argument must be a string");if(!e)return[];l=l||{};var c=1,u=1;function p(e){var t=e.match(r);t&&(c+=t.length);var n=e.lastIndexOf("\n");u=~n?e.length-n:u+e.length}function d(){var e={line:c,column:u};return function(t){return t.position=new h(e),g(),t}}function h(e){this.start=e,this.end={line:c,column:u},this.source=l.source}function f(t){var r=new Error(l.source+":"+c+":"+u+": "+t);if(r.reason=t,r.filename=l.source,r.line=c,r.column=u,r.source=e,!l.silent)throw r}function m(t){var r=t.exec(e);if(r){var n=r[0];return p(n),e=e.slice(n.length),r}}function g(){m(n)}function y(e){for(var t;t=b();)e.push(t);return e}function b(){var t=d();if("/"==e.charAt(0)&&"*"==e.charAt(1)){for(var r=2;""!=e.charAt(r)&&("*"!=e.charAt(r)||"/"!=e.charAt(r+1));)++r;if(r+=2,""===e.charAt(r-1))return f("End of comment missing");var n=e.slice(2,r-2);return u+=2,p(n),e=e.slice(r),u+=2,t({type:"comment",comment:n})}}function v(){var e=d(),r=m(i);if(r){if(b(),!m(o))return f("property missing ':'");
31var n=m(a),l=e({type:"declaration",property:r[0].replace(t,"").trim(),value:n?n[0].replace(t,"").trim():""});return m(s),l}}return h.prototype.content=e,g(),function(){var e,t=[];for(y(t);e=v();)t.push(e),y(t);return t}()}},function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.default=function e(t,r={}){var n,i,o,p,d;const h=[],f="function"==typeof r.replace,m=null!==(n=r.transform)&&void 0!==n?n:s.returnFirstArg,{cloneElement:g,createElement:y,isValidElement:b}=null!==(i=r.library)&&void 0!==i?i:l,v=t.length;c(t);for(let n=0;n<v;n++){const i=t[n];if(f){let e=null===(o=r.replace)||void 0===o?void 0:o.call(r,i,n);if(b(e)){v>1&&(e=g(e,{key:null!==(p=e.key)&&void 0!==p?p:n})),h.push(m(e,i,n));continue}}if("text"===i.type){const e=!i.data.trim().length;if(e&&i.parent&&!(0,s.canTextBeChildOfNode)(i.parent))continue;if(r.trim&&e)continue;h.push(m(i.data,i,n));continue}const l=i;let c,_={};switch(u(l)?((0,s.setStyleProp)(l.attribs.style,l.attribs),_=l.attribs):l.attribs&&(_=(0,a.default)(l.attribs,l.name)),i.type){case"script":case"style":i.children[0]&&(_.dangerouslySetInnerHTML={__html:i.children[0].data});break;case"tag":"textarea"===i.name&&i.children[0]?_.defaultValue=i.children[0].data:(null===(d=i.children)||void 0===d?void 0:d.length)&&(c=e(i.children,r));break;default:continue}v>1&&(_.key=n),h.push(m(y(i.name,_,c),i,n))}return 1===h.length?h[0]:h};const i=r(933),o=r(341),a=n(r(925)),s=r(928),l={cloneElement:o.cloneElement,createElement:o.createElement,isValidElement:o.isValidElement};function c(e){for(const t of e)"tag"!==t.type&&"script"!==t.type&&"style"!==t.type||(Object.setPrototypeOf(t,i.Element.prototype),c(t.children))}function u(e){return s.PRESERVE_CUSTOM_ATTRIBUTES&&"tag"===e.type&&(0,s.isCustomComponent)(e.name,e.attribs)}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{CDATA:()=>i.CDATA,Comment:()=>i.Comment,DataNode:()=>i.DataNode,Document:()=>i.Document,DomHandler:()=>a,Element:()=>i.Element,Node:()=>i.Node,NodeWithChildren:()=>i.NodeWithChildren,ProcessingInstruction:()=>i.ProcessingInstruction,Text:()=>i.Text,cloneNode:()=>i.cloneNode,default:()=>s,hasChildren:()=>i.hasChildren,isCDATA:()=>i.isCDATA,isComment:()=>i.isComment,isDirective:()=>i.isDirective,isDocument:()=>i.isDocument,isTag:()=>i.isTag,isText:()=>i.isText});var n=r(934),i=r(935);const o={withStartIndices:!1,withEndIndices:!1,xmlMode:!1};class a{dom=[];root=new i.Document(this.dom);callback;options;elementCB;done=!1;tagStack=[this.root];lastNode=null;parser=null;constructor(e,t,r){"function"==typeof t&&(r=t,t=o),"object"==typeof e&&(t=e,e=void 0),this.callback=e??null,this.options=t??o,this.elementCB=r??null}onparserinit(e){this.parser=e}onreset(){this.dom=[],this.root=new i.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null}onend(){this.done||(this.done=!0,this.parser=null,this.handleCallback(null))}onerror(e){this.handleCallback(e)}onclosetag(){this.lastNode=null;const e=this.tagStack.pop();this.options.withEndIndices&&this.parser&&(e.endIndex=this.parser.endIndex),this.elementCB&&this.elementCB(e)}onopentag(e,t){const r=this.options.xmlMode?n.ElementType.Tag:void 0,o=new i.Element(e,t,void 0,r);this.addNode(o),this.tagStack.push(o)}ontext(e){const{lastNode:t}=this;if(t&&t.type===n.ElementType.Text)t.data+=e,this.options.withEndIndices&&this.parser&&(t.endIndex=this.parser.endIndex);else{const t=new i.Text(e);this.addNode(t),this.lastNode=t}}oncomment(e){if(this.lastNode&&this.lastNode.type===n.ElementType.Comment)return void(this.lastNode.data+=e);const t=new i.Comment(e);this.addNode(t),this.lastNode=t}oncommentend(){this.lastNode=null}oncdatastart(){const e=new i.Text(""),t=new i.CDATA([e]);this.addNode(t),e.parent=t,this.lastNode=e}oncdataend(){this.lastNode=null}onprocessinginstruction(e,t){const r=new i.ProcessingInstruction(e,t);this.addNode(r)}handleCallback(e){if("function"==typeof this.callback)this.callback(e,this.dom);else if(e)throw e}addNode(e){const t=this.tagStack[this.tagStack.length-1],r=t.children[t.children.length-1];this.options.withStartIndices&&this.parser&&(e.startIndex=this.parser.startIndex),this.options.withEndIndices&&this.parser&&(e.endIndex=this.parser.endIndex),t.children.push(e),r&&(e.prev=r,r.next=e),e.parent=t,this.lastNode=null}}const s=a},(e,t,r)=>{"use strict";var n;function i(e){return e.type===n.Tag||e.type===n.Script||e.type===n.Style}r.r(t),r.d(t,{CDATA:()=>d,Comment:()=>l,Directive:()=>s,Doctype:()=>h,ElementType:()=>n,Root:()=>o,Script:()=>c,Style:()=>u,Tag:()=>p,Text:()=>a,isTag:()=>i}),function(e){e.Root="root",e.Text="text",e.Directive="directive",e.Comment="comment",e.Script="script",e.Style="style",e.Tag="tag",e.CDATA="cdata",e.Doctype="doctype"}(n||(n={}));const o=n.Root,a=n.Text,s=n.Directive,l=n.Comment,c=n.Script,u=n.Style,p=n.Tag,d=n.CDATA,h=n.Doctype},(e,t,r)=>{"use strict";r.r(t),r.d(t,{CDATA:()=>u,Comment:()=>s,DataNode:()=>o,Document:()=>p,Element:()=>d,Node:()=>i,NodeWithChildren:()=>c,ProcessingInstruction:()=>l,Text:()=>a,cloneNode:()=>_,hasChildren:()=>v,isCDATA:()=>f,isComment:()=>g,isDirective:()=>y,isDocument:()=>b,isTag:()=>h,isText:()=>m});var n=r(934);class i{parent=null;prev=null;next=null;startIndex=null;endIndex=null;get parentNode(){return this.parent}set parentNode(e){this.parent=e}get previousSibling(){return this.prev}set previousSibling(e){this.prev=e}get nextSibling(){return this.next}set nextSibling(e){this.next=e}cloneNode(e=!1){return _(this,e)}}class o extends i{data;constructor(e){super(),this.data=e}get nodeValue(){return this.data}set nodeValue(e){this.data=e}}class a extends o{type=n.ElementType.Text;get nodeType(){return 3}}class s extends o{type=n.ElementType.Comment;get nodeType(){return 8}}class l extends o{type=n.ElementType.Directive;name;constructor(e,t){super(t),this.name=e}get nodeType(){return 1}"x-name";"x-publicId";"x-systemId"}class c extends i{children;constructor(e){super(),this.children=e}get firstChild(){return this.children[0]??null}get lastChild(){return this.children.length>0?this.children[this.children.length-1]:null}get childNodes(){return this.children}set childNodes(e){this.children=e}}class u extends c{type=n.ElementType.CDATA;get nodeType(){return 4}}class p extends c{type=n.ElementType.Root;get nodeType(){return 9}}class d extends c{name;attribs;type;constructor(e,t,r=[],i=("script"===e?n.ElementType.Script:"style"===e?n.ElementType.Style:n.ElementType.Tag)){super(r),this.name=e,this.attribs=t,this.type=i}get nodeType(){return 1}get tagName(){return this.name}set tagName(e){this.name=e}get attributes(){return Object.keys(this.attribs).map(e=>({name:e,value:this.attribs[e],namespace:this["x-attribsNamespace"]?.[e],prefix:this["x-attribsPrefix"]?.[e]}))}namespace;"x-attribsNamespace";"x-attribsPrefix"}function h(e){return(0,n.isTag)(e)}function f(e){return e.type===n.ElementType.CDATA}function m(e){return e.type===n.ElementType.Text}function g(e){return e.type===n.ElementType.Comment}function y(e){return e.type===n.ElementType.Directive}function b(e){return e.type===n.ElementType.Root}function v(e){return Object.hasOwn(e,"children")}function _(e,t=!1){let r;if(m(e))r=new a(e.data);else if(g(e))r=new s(e.data);else if(h(e)){const n=t?S(e.children):[],i=new d(e.name,{...e.attribs},n);for(const e of n)e.parent=i;null!=e.namespace&&(i.namespace=e.namespace),e["x-attribsNamespace"]&&(i["x-attribsNamespace"]={...e["x-attribsNamespace"]}),e["x-attribsPrefix"]&&(i["x-attribsPrefix"]={...e["x-attribsPrefix"]}),r=i}else if(f(e)){const n=t?S(e.children):[],i=new u(n);for(const e of n)e.parent=i;r=i}else if(b(e)){const n=t?S(e.children):[],i=new p(n);for(const e of n)e.parent=i;e["x-mode"]&&(i["x-mode"]=e["x-mode"]),r=i}else{if(!y(e))throw new Error(`Not implemented yet: ${e.type}`);{const t=new l(e.name,e.data);null!=e["x-name"]&&(t["x-name"]=e["x-name"],t["x-publicId"]=e["x-publicId"],t["x-systemId"]=e["x-systemId"]),r=t}}return r.startIndex=e.startIndex,r.endIndex=e.endIndex,null!=e.sourceCodeLocation&&(r.sourceCodeLocation=e.sourceCodeLocation),r}function S(e){const t=e.map(e=>_(e,!0));for(let e=1;e<t.length;e++)t[e].prev=t[e-1],t[e-1].next=t[e];return t}},,,,,,(e,t,r)=>{"use strict";r.r(t),r.d(t,{useLazyQuery:()=>m});var n=r(575),i=r(341),o=r(644),a=r(560),s=r(592),l=r(424),c=r(942),u=r(792),p=r(812),d=r(795),h=r(420);const f=["refetch","fetchMore","updateQuery","startPolling","stopPolling","subscribeToMore"],m=function(e,t){const r=(0,d.useApolloClient)(t?.client),o=i.useRef(void 0),a=i.useRef(void 0),m=(0,u.useDeepMemo)(()=>t,[t]),y=(0,c.useRenderGuard)();function b(){return r.watchQuery({...t,query:e,initialFetchPolicy:t?.fetchPolicy,fetchPolicy:"standby",[s.variablesUnknownSymbol]:!0})}const[v,_]=i.useState(r),[S,E]=i.useState(b);v!==r&&(_(r),E(b()));const T=i.useCallback((e,t)=>{const r=a.current?.data;r&&!(0,n.equal)(r,e.data)&&(o.current=r),a.current=e,t()},[]),w=(0,h.useSyncExternalStore)(i.useCallback(e=>{const t=S.subscribe(t=>{(0,n.equal)(a.current,t)||T(t,e)});return()=>{t.unsubscribe()}},[S,T]),()=>a.current||g,()=>g),x=i.useMemo(()=>{const e={};for(const t of f)e[t]=function(...e){return(0,l.invariant)(a.current,29,t),S[t](...e)};return e},[S]);i.useEffect(()=>{const r={query:e,errorPolicy:m?.errorPolicy,refetchOn:m?.refetchOn,refetchWritePolicy:m?.refetchWritePolicy,returnPartialData:m?.returnPartialData,notifyOnNetworkStatusChange:m?.notifyOnNetworkStatusChange,pollInterval:m?.pollInterval,nextFetchPolicy:t?.nextFetchPolicy,skipPollAttempt:t?.skipPollAttempt};"standby"!==S.options.fetchPolicy&&m?.fetchPolicy&&(r.fetchPolicy=m.fetchPolicy),S.applyOptions(r)},[e,S,m,t?.nextFetchPolicy,t?.skipPollAttempt]);const O=i.useCallback((...e)=>{(0,l.invariant)(!y(),30);const[t]=e;let r=S.options.fetchPolicy;return"standby"===r&&(r=S.options.initialFetchPolicy),S.reobserve({fetchPolicy:r,variables:t?.variables,context:t?.context??{}})},[S,y]),I=i.useRef(O);(0,p.useIsomorphicLayoutEffect)(()=>{I.current=O});return[i.useCallback((...e)=>I.current(...e),[]),i.useMemo(()=>{const{partial:e,...t}=w;return{...x,...t,client:r,previousData:o.current,variables:S.variables,observable:S,called:!!a.current}},[r,w,x,S])]},g=(0,a.maybeDeepFreeze)({data:void 0,dataState:"empty",loading:!1,networkStatus:o.NetworkStatus.ready,partial:!0})},(e,t,r)=>{"use strict";r.r(t),r.d(t,{useRenderGuard:()=>a});var n=r(341);let i;function o(){}
31function a(){return i||(i=n.createContext(null)),n.useCallback(()=>{const e=console.error;try{return console.error=o,n.useContext(i),!0}catch(e){return!1}finally{console.error=e}},[])}},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,(e,t,r)=>{"use strict";r.r(t),r.d(t,{Particles:()=>i.default,ParticlesProvider:()=>n.ParticlesProvider,default:()=>o,useParticlesProvider:()=>n.useParticlesProvider});var n=r(990),i=r(1055),o=i.default},(e,t,r)=>{"use strict";r.r(t),r.d(t,{ParticlesProvider:()=>c,useParticlesProvider:()=>u});var n,i,o=r(341),a=r(991),s=!1,l=(0,o.createContext)({loaded:!1}),c=({children:e,init:t})=>{let[r,c]=(0,o.useState)(s);(0,o.useEffect)(()=>{let e=!1;if(!s){if(n){if(i&&i!==t)throw Error("ParticlesProvider init callback must be stable across the app lifecycle.")}else i=t,n=(async()=>{await t(a.tsParticles),s=!0})().catch(e=>{throw n=void 0,i=void 0,e});return n.then(()=>{e||c(!0)}).catch(()=>{e||c(!1)}),()=>{e=!0}}},[t]);let u=(0,o.useMemo)(()=>({loaded:r}),[r]);return(0,o.jsx)(l.Provider,{value:u,children:r?e:null})};function u(){return(0,o.useContext)(l)}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{AlterType:()=>i.AlterType,AnimatableColor:()=>i.AnimatableColor,AnimationMode:()=>i.AnimationMode,AnimationOptions:()=>i.AnimationOptions,AnimationStatus:()=>i.AnimationStatus,AnimationValueWithRandom:()=>i.AnimationValueWithRandom,Background:()=>i.Background,BaseRange:()=>i.BaseRange,Circle:()=>i.Circle,ColorAnimation:()=>i.ColorAnimation,DestroyType:()=>i.DestroyType,DrawLayer:()=>i.DrawLayer,EventType:()=>i.EventType,Fill:()=>i.Fill,FullScreen:()=>i.FullScreen,GradientType:()=>i.GradientType,HDROptions:()=>i.HDROptions,HdrMode:()=>i.HdrMode,HslAnimation:()=>i.HslAnimation,LimitMode:()=>i.LimitMode,Move:()=>i.Move,MoveAngle:()=>i.MoveAngle,MoveCenter:()=>i.MoveCenter,MoveDirection:()=>i.MoveDirection,MoveGravity:()=>i.MoveGravity,MovePath:()=>i.MovePath,OptionLoader:()=>i.OptionLoader,Options:()=>i.Options,OptionsColor:()=>i.OptionsColor,OutMode:()=>i.OutMode,OutModeDirection:()=>i.OutModeDirection,OutModes:()=>i.OutModes,Paint:()=>i.Paint,ParticleOutType:()=>i.ParticleOutType,ParticlesBounce:()=>i.ParticlesBounce,ParticlesBounceFactor:()=>i.ParticlesBounceFactor,ParticlesDensity:()=>i.ParticlesDensity,ParticlesNumber:()=>i.ParticlesNumber,ParticlesNumberLimit:()=>i.ParticlesNumberLimit,ParticlesOptions:()=>i.ParticlesOptions,PixelMode:()=>i.PixelMode,RangedAnimationOptions:()=>i.RangedAnimationOptions,RangedAnimationValueWithRandom:()=>i.RangedAnimationValueWithRandom,Rectangle:()=>i.Rectangle,ResizeEvent:()=>i.ResizeEvent,RotateDirection:()=>i.RotateDirection,Shape:()=>i.Shape,Spin:()=>i.Spin,StartValueType:()=>i.StartValueType,Stroke:()=>i.Stroke,ValueWithRandom:()=>i.ValueWithRandom,Vector:()=>
31i.Vector,Vector3d:()=>i.Vector3d,ZIndex:()=>i.ZIndex,alterHsl:()=>i.alterHsl,animate:()=>i.animate,areBoundsInside:()=>i.areBoundsInside,calcExactPositionOrRandomFromSize:()=>i.calcExactPositionOrRandomFromSize,calcPositionFromSize:()=>i.calcPositionFromSize,calcPositionOrRandomFromSize:()=>i.calcPositionOrRandomFromSize,calcPositionOrRandomFromSizeRanged:()=>i.calcPositionOrRandomFromSizeRanged,calculateBounds:()=>i.calculateBounds,cancelAnimation:()=>i.cancelAnimation,canvasFirstIndex:()=>i.canvasFirstIndex,canvasTag:()=>i.canvasTag,checkDistance:()=>i.checkDistance,circleBounce:()=>i.circleBounce,circleBounceDataFromParticle:()=>i.circleBounceDataFromParticle,clamp:()=>i.clamp,cloneStyle:()=>i.cloneStyle,collisionVelocity:()=>i.collisionVelocity,colorMix:()=>i.colorMix,colorToRgb:()=>i.colorToRgb,countOffset:()=>i.countOffset,decayOffset:()=>i.decayOffset,deepExtend:()=>i.deepExtend,defaultAlpha:()=>i.defaultAlpha,defaultAngle:()=>i.defaultAngle,defaultCompositeValue:()=>i.defaultCompositeValue,defaultDensityFactor:()=>i.defaultDensityFactor,defaultFps:()=>i.defaultFps,defaultFpsLimit:()=>i.defaultFpsLimit,defaultLoops:()=>i.defaultLoops,defaultOpacity:()=>i.defaultOpacity,defaultRatio:()=>i.defaultRatio,defaultReduceFactor:()=>i.defaultReduceFactor,defaultRemoveQuantity:()=>i.defaultRemoveQuantity,defaultRetryCount:()=>i.defaultRetryCount,defaultRgbMin:()=>i.defaultRgbMin,defaultTime:()=>i.defaultTime,defaultTransform:()=>i.defaultTransform,defaultTransformValue:()=>i.defaultTransformValue,defaultVelocity:()=>i.defaultVelocity,defaultZoom:()=>i.defaultZoom,degToRad:()=>i.degToRad,deleteCount:()=>i.deleteCount,double:()=>i.double,doublePI:()=>i.doublePI,empty:()=>i.empty,executeOnSingleOrMultiple:()=>i.executeOnSingleOrMultiple,generatedAttribute:()=>i.generatedAttribute,generatedFalse:()=>i.generatedFalse,generatedTrue:()=>i.generatedTrue,getDistance:()=>i.getDistance,getDistanceSq:()=>i.getDistanceSq,getDistances:()=>i.getDistances,getFullScreenStyle:()=>i.getFullScreenStyle,getHslAnimationFromHsl:()=>i.getHslAnimationFromHsl,getHslFromAnimation:()=>i.getHslFromAnimation,getItemMapFromInitializer:()=>i.getItemMapFromInitializer,getItemsFromInitializer:()=>i.getItemsFromInitializer,getLinkColor:()=>i.getLinkColor,getLinkRandomColor:()=>i.getLinkRandomColor,getLogger:()=>i.getLogger,getParticleBaseVelocity:()=>i.getParticleBaseVelocity,getParticleDirectionAngle:()=>i.getParticleDirectionAngle,getPosition:()=>i.getPosition,getRandom:()=>i.getRandom,getRandomFn:()=>i.getRandomFn,getRandomInRange:()=>i.getRandomInRange,getRandomRgbColor:()=>i.getRandomRgbColor,getRangeMax:()=>i.getRangeMax,getRangeMin:()=>i.getRangeMin,getRangeValue:()=>i.getRangeValue,getStyleFromHsl:()=>i.getStyleFromHsl,getStyleFromRgb:()=>i.getStyleFromRgb,hMax:()=>i.hMax,hMin:()=>i.hMin,hPhase:()=>i.hPhase,half:()=>i.half,hslToRgb:()=>i.hslToRgb,hslToRgbFloat:()=>i.hslToRgbFloat,hslaToRgba:()=>i.hslaToRgba,identity:()=>i.identity,inverseFactorNumerator:()=>i.inverseFactorNumerator,isArray:()=>i.isArray,isBoolean:()=>i.isBoolean,isFunction:()=>i.isFunction,isInArray:()=>i.isInArray,isNull:()=>i.isNull,isNumber:()=>i.isNumber,isObject:()=>i.isObject,isPointInside:()=>i.isPointInside,isString:()=>i.isString,itemFromArray:()=>i.itemFromArray,itemFromSingleOrMultiple:()=>i.itemFromSingleOrMultiple,lFactor:()=>i.lFactor,lMax:()=>i.lMax,lMin:()=>i.lMin,lengthOffset:()=>i.lengthOffset,loadExtendProperty:()=>i.loadExtendProperty,loadLazyProperty:()=>i.loadLazyProperty,loadMinIndex:()=>i.loadMinIndex,loadNestedProperty:()=>i.loadNestedProperty,loadOptionProperty:()=>i.loadOptionProperty,loadOptions:()=>i.loadOptions,loadParticlesOptions:()=>i.loadParticlesOptions,loadProperty:()=>i.loadProperty,loadRandomFactor:()=>i.loadRandomFactor,loadRangeProperty:()=>i.loadRangeProperty,manageListener:()=>i.manageListener,maxNits:()=>i.maxNits,midColorValue:()=>i.midColorValue,millisecondsToSeconds:()=>i.millisecondsToSeconds,minCount:()=>i.minCount,minDistance:()=>i.minDistance,minFpsLimit:()=>i.minFpsLimit,minIndex:()=>i.minIndex,minLimit:()=>i.minLimit,minRadius:()=>i.minRadius,minStrokeWidth:()=>i.minStrokeWidth,minVelocity:()=>i.minVelocity,minZ:()=>i.minZ,minimumSize:()=>i.minimumSize,mix:()=>i.mix,none:()=>i.none,one:()=>i.one,originPoint:()=>i.originPoint,parseAlpha:()=>i.parseAlpha,percentDenominator:()=>i.percentDenominator,phaseNumerator:()=>i.phaseNumerator,quarter:()=>i.quarter,randomColorValue:()=>i.randomColorValue,randomInRangeValue:()=>i.randomInRangeValue,rangeColorToHsl:()=>i.rangeColorToHsl,rangeColorToRgb:()=>i.rangeColorToRgb,removeDeleteCount:()=>i.removeDeleteCount,removeMinIndex:()=>i.removeMinIndex,resizeEvent:()=>i.resizeEvent,rgbMax:()=>
31i.rgbMax,rgbToHsl:()=>i.rgbToHsl,sMax:()=>i.sMax,sMin:()=>i.sMin,sNormalizedOffset:()=>i.sNormalizedOffset,safeDocument:()=>i.safeDocument,safeMatchMedia:()=>i.safeMatchMedia,safeMutationObserver:()=>i.safeMutationObserver,setAnimationFunctions:()=>i.setAnimationFunctions,setLogger:()=>i.setLogger,setRandom:()=>i.setRandom,setRangeValue:()=>i.setRangeValue,sextuple:()=>i.sextuple,spatialHashGridCellSize:()=>i.spatialHashGridCellSize,squareExp:()=>i.squareExp,stringToAlpha:()=>i.stringToAlpha,stringToRgb:()=>i.stringToRgb,threeQuarter:()=>i.threeQuarter,triple:()=>i.triple,tryCountIncrement:()=>i.tryCountIncrement,tsParticles:()=>o,updateColor:()=>i.updateColor,updateColorValue:()=>i.updateColorValue,visibilityChangeEvent:()=>i.visibilityChangeEvent,zIndexFactorOffset:()=>i.zIndexFactorOffset});var n=r(992),i=r(1006);const o=(0,n.initEngine)()},(e,t,r)=>{"use strict";r.r(t),r.d(t,{initEngine:()=>i});var n=r(993);function i(){const e=globalThis.tsParticles;return e?.pluginManager?e:new n.Engine}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{Engine:()=>u});var n=r(994),i=r(995),o=r(1002),a=r(1003),s=r(1005),l=r(996);const c="100%";class u{pluginManager=new a.PluginManager(this);#e=[];#t=new o.EventDispatcher;#r=!1;get items(){return this.#e}get version(){return"4.4.0"}addEventListener(e,t){this.#t.addEventListener(e,t)}checkVersion(e){if(this.version!==e)throw new Error(`The tsParticles version is different from the loaded plugins version. Engine version: ${this.version}. Plugin version: ${e}`)}dispatchEvent(e,t){this.#t.dispatchEvent(e,t)}
31async init(){this.#r||(await this.pluginManager.init(),this.#r=!0)}item(e){const t=this.items,r=t[e];if(!r?.destroyed)return r;t.splice(e,n.removeDeleteCount)}async load(e){let t;await this.init(),"undefined"!=typeof HTMLElement&&e.element instanceof HTMLElement&&(t=e.element);const{Container:o}=await r.e("vendors").then(()=>r(2864)),a=e.id??t?.id??`tsparticles${Math.floor((0,l.getRandom)()*n.loadRandomFactor).toString()}`,{index:u,url:p}=e,d=p?await async function(e){const t=(0,i.itemFromSingleOrMultiple)(e.url,e.index);if(!t)return e.fallback;const r=await fetch(t);return r.ok?await r.json():((0,s.getLogger)().error(`${r.status.toString()} while retrieving config file`),e.fallback)}({fallback:e.options,url:p,index:u}):e.options,h=(0,i.itemFromSingleOrMultiple)(d,u),{items:f}=this,m=f.findIndex(e=>e.id.description===a),g=new o({dispatchCallback:(e,t)=>{this.dispatchEvent(e,t)},id:a,onDestroy:e=>{if(!e)return;const t=this.items,r=t.indexOf(g);r>=n.removeMinIndex&&t.splice(r,n.removeDeleteCount)},pluginManager:this.pluginManager,sourceOptions:h});if(m>=n.loadMinIndex){const e=this.item(m),t=e?n.one:n.none;e&&!e.destroyed&&e.destroy(!1),f.splice(m,t,g)}else f.push(g);const y="undefined"!=typeof OffscreenCanvas&&e.element instanceof OffscreenCanvas?e.element:(e=>{const t=(0,i.safeDocument)();let r;if(e instanceof HTMLCanvasElement||e.tagName.toLowerCase()===n.canvasTag)r=e,r.dataset[n.generatedAttribute]??=n.generatedFalse,r.dataset[n.generatedAttribute]===n.generatedTrue&&(r.style.width||=c,r.style.height||=c,r.style.pointerEvents="none",r.style.setProperty("pointer-events","none"));else{const i=e.getElementsByTagName(n.canvasTag).item(n.canvasFirstIndex);i?(r=i,r.dataset[n.generatedAttribute]=n.generatedFalse):(r=t.createElement(n.canvasTag),r.dataset[n.generatedAttribute]=n.generatedTrue,e.appendChild(r)),r.style.width||=c,r.style.height||=c,r.style.pointerEvents="none",r.style.setProperty("pointer-events","none")}return r})(((e,t)=>{const r=(0,i.safeDocument)();let o=t??r.getElementById(e);return o||(o=r.createElement("canvas"),o.id=e,o.dataset[n.generatedAttribute]=n.generatedTrue,r.body.append(o),o)})(a,t));return g.canvas.loadCanvas(y),await g.start(),g}async refresh(e=!0){e&&await Promise.all(this.items.map(e=>e.refresh()))}removeEventListener(e,t){this.#t.removeEventListener(e,t)}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{canvasFirstIndex:()=>K,canvasTag:()=>_,countOffset:()=>ie,decayOffset:()=>ee,defaultAlpha:()=>y,defaultAngle:()=>ue,defaultCompositeValue:()=>i,defaultDensityFactor:()=>le,defaultFps:()=>g,defaultFpsLimit:()=>W,defaultLoops:()=>Ee,defaultOpacity:()=>G,defaultRatio:()=>x,defaultReduceFactor:()=>O,defaultRemoveQuantity:()=>w,defaultRetryCount:()=>S,defaultRgbMin:()=>_e,defaultTime:()=>Te,defaultTransform:()=>p,defaultTransformValue:()=>H,defaultVelocity:()=>Se,defaultZoom:()=>we,deleteCount:()=>ce,double:()=>f,doublePI:()=>m,empty:()=>N,generatedAttribute:()=>n,generatedFalse:()=>v,generatedTrue:()=>b,hMax:()=>k,hMin:()=>P,hPhase:()=>M,half:()=>l,identity:()=>pe,inverseFactorNumerator:()=>I,lFactor:()=>he,lMax:()=>C,lMin:()=>fe,lengthOffset:()=>se,loadMinIndex:()=>Q,loadRandomFactor:()=>J,maxNits:()=>me,midColorValue:()=>h,millisecondsToSeconds:()=>c,minCount:()=>oe,minDistance:()=>U,minFpsLimit:()=>Y,minIndex:()=>ae,minLimit:()=>ne,minRadius:()=>j,minStrokeWidth:()=>de,minVelocity:()=>B,minZ:()=>re,minimumSize:()=>V,none:()=>Z,one:()=>X,originPoint:()=>u,percentDenominator:()=>s,phaseNumerator:()=>ve,quarter:()=>L,randomColorValue:()=>d,removeDeleteCount:()=>q,removeMinIndex:()=>$,resizeEvent:()=>o,rgbMax:()=>A,sMax:()=>R,sMin:()=>D,sNormalizedOffset:()=>be,sextuple:()=>ye,spatialHashGridCellSize:()=>T,squareExp:()=>E,threeQuarter:()=>F,triple:()=>ge,tryCountIncrement:()=>te,visibilityChangeEvent:()=>a,zIndexFactorOffset:()=>z});const n="generated",i="source-over",o="resize",a="visibilitychange",s=100,l=.5,c=1e3,u={x:0,y:0,z:0},p={a:1,b:0,c:0,d:1},d="random",h="mid",f=2,m=Math.PI*f,g=60,y=1,b="true",v="false",_="canvas",S=0,E=2,T=100,w=1,x=1,O=1,I=1,A=255,k=360,R=100,C=100,P=0,D=0,M=60,N=0,L=.25,F=l+L,B=0,U=0,j=0,H=1,V=0,z=1,G=1,q=1,$=0,W=120,Y=0,K=0,J=1e4,Q=0,X=1,Z=0,ee=1,te=1,re=0,ne=0,ie=1,oe=0,ae=0,se=1,le=1,ce=1,ue=0,pe=1,de=0,he=1,fe=0,me=400,ge=3,ye=6,be=1,ve=1,_e=0,Se=0,Ee=0,Te=0,we=1},(e,t,r)=>{"use strict";r.r(t),r.d(t,{areBoundsInside:()=>y,calculateBounds:()=>b,circleBounce:()=>S,circleBounceDataFromParticle:()=>_,cloneStyle:()=>x,deepExtend:()=>v,executeOnSingleOrMultiple:()=>E,getFullScreenStyle:()=>A,getItemMapFromInitializer:()=>C,getItemsFromInitializer:()=>R,getPosition:()=>w,isInArray:()=>f,isPointInside:()=>g,itemFromArray:()=>m,itemFromSingleOrMultiple:()=>T,manageListener:()=>k,safeDocument:()=>p,safeMatchMedia:()=>d,safeMutationObserver:()=>h});var n=r(996),i=r(999),o=r(1e3),a=r(1001),s=r(998),l=r(994);const c=0;function u(e){return"__proto__"===e||"constructor"===e||"prototype"===e}function p(){return globalThis.document}function d(e){if("undefined"!=typeof matchMedia)return matchMedia(e)}function h(e){if("undefined"!=typeof MutationObserver)return new MutationObserver(e)}function f(e,t){return e===t||(0,i.isArray)(t)&&t.includes(e)}function m(e,t,r=!0){return e[void 0!==t&&r?t%e.length:Math.floor((0,n.getRandom)()*e.length)]}
vendor: 4,915 bytes, line 31
31function g(e,t,r,n,i){return y(b(e,n??c),t,r,i)}function y(e,t,r,n){let i=!0;return n&&n!==o.OutModeDirection.bottom||(i=e.top<t.height+r.x),!i||n&&n!==o.OutModeDirection.left||(i=e.right>r.x),!i||n&&n!==o.OutModeDirection.right||(i=e.left<t.width+r.y),!i||n&&n!==o.OutModeDirection.top||(i=e.bottom>r.y),i}function b(e,t){return{bottom:e.y+t,left:e.x-t,right:e.x+t,top:e.y-t}}function v(e,...t){for(const r of t){if((0,i.isNull)(r))continue;if(!(0,i.isObject)(r)){e=r;continue}Array.isArray(r)?Array.isArray(e)||(e=[]):(0,i.isObject)(e)&&!Array.isArray(e)||(e=Object.create(null));const t=Object.keys(r);if(!t.some(e=>{const t=r[e];return(0,i.isObject)(t)||Array.isArray(t)})){const n=r,i=e;for(const e of t){if(u(e))continue;const t=n[e];void 0!==t&&(i[e]=t)}continue}for(const n of t){if(u(n))continue;const t=e,i=r[n];t[n]=Array.isArray(i)?i.map(e=>v(void 0,e)):v(t[n],i)}}return e}function _(e){return{position:e.getPosition(),radius:e.getRadius(),mass:e.getMass(),velocity:e.velocity,factor:s.Vector.create((0,n.getRangeValue)(e.options.bounce.horizontal.value),(0,n.getRangeValue)(e.options.bounce.vertical.value))}}function S(e,t){const{x:r,y:i}=e.velocity.sub(t.velocity),[o,a]=[e.position,t.position],{dx:s,dy:l}=(0,n.getDistances)(a,o);if(r*s+i*l<0)return;const c=-Math.atan2(l,s),u=e.mass,p=t.mass,d=e.velocity.rotate(c),h=t.velocity.rotate(c),f=(0,n.collisionVelocity)(d,h,u,p),m=(0,n.collisionVelocity)(h,d,u,p),g=f.rotate(-c),y=m.rotate(-c);e.velocity.x=g.x*e.factor.x,e.velocity.y=g.y*e.factor.y,t.velocity.x=y.x*t.factor.x,t.velocity.y=y.y*t.factor.y}function E(e,t){return(0,i.isArray)(e)?e.map((e,r)=>t(e,r)):t(e,0)}function T(e,t,r){return(0,i.isArray)(e)?m(e,t,r):e}function w(e,t){return function(e,t){if(e.mode!==a.PixelMode.percent){const{mode:t,...r}=e;return r}return"x"in e?{x:e.x/l.percentDenominator*t.width,y:e.y/l.percentDenominator*t.height}:{width:e.width/l.percentDenominator*t.width,height:e.height/l.percentDenominator*t.height}}(e,t)}function x(e){const t=p().createElement("div").style;for(const r in e){const n=e[r];if(!(r in e)||(0,i.isNull)(n))continue;const o=e.getPropertyValue?.(n);if(!o)continue;const a=e.getPropertyPriority?.(n);a?t.setProperty(n,o,a):t.setProperty(n,o)}return t}let O,I;function A(e){if(O!==e||!I){O=e;const t=p().createElement("div").style,r=10,n={width:"100%",height:"100%",margin:"0",padding:"0",borderWidth:"0",position:"fixed",zIndex:e.toString(r),"z-index":e.toString(r),top:"0",left:"0","pointer-events":"none"};for(const e in n){const r=n[e];void 0!==r&&t.setProperty(e,r)}I=t}return I}function k(e,t,r,n,o){if(n){let n={passive:!0};(0,i.isBoolean)(o)?n.capture=o:void 0!==o&&(n=o),e.addEventListener(t,r,n)}else{const n=o;e.removeEventListener(t,r,n)}}async function R(e,t,r,n=!1){let i=t.get(e);return i&&!n||(i=await Promise.all([...r.values()].map(t=>t(e))),t.set(e,i)),i}async function C(e,t,r,n=!1){let i=t.get(e);if(!i||n){const n=await Promise.all([...r.entries()].map(([t,r])=>r(e).then(e=>[t,e])));i=new Map(n),t.set(e,i)}return i}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{animate:()=>m,calcExactPositionOrRandomFromSize:()=>N,calcPositionFromSize:()=>P,calcPositionOrRandomFromSize:()=>D,calcPositionOrRandomFromSizeRanged:()=>M,cancelAnimation:()=>g,checkDistance:()=>I,clamp:()=>y,collisionVelocity:()=>C,degToRad:()=>A,getDistance:()=>O,getDistanceSq:()=>x,getDistances:()=>w,getParticleBaseVelocity:()=>R,getParticleDirectionAngle:()=>k,getRandom:()=>d,getRandomFn:()=>p,getRandomInRange:()=>h,getRangeMax:()=>E,getRangeMin:()=>S,getRangeValue:()=>_,mix:()=>b,parseAlpha:()=>L,randomInRangeValue:()=>v,setAnimationFunctions:()=>f,setRandom:()=>u,setRangeValue:()=>T});var n=r(997),i=r(994),o=r(998),a=r(999);const s=Math.PI/180;let l=Math.random;const c={nextFrame:e=>requestAnimationFrame(e),cancel:e=>{cancelAnimationFrame(e)}};function u(e=Math.random){l=e}function p(){return l}function d(){return y(l(),0,1-Number.EPSILON)}function h(e,t){return d()*(t-e)+e}function f(e,t){c.nextFrame=e,c.cancel=t}function m(e){return c.nextFrame(e)}function g(e){c.cancel(e)}function y(e,t,r){return Math.min(Math.max(e,t),r)}function b(e,t,r,n){return Math.floor((e*r+t*n)/(r+n))}function v(e){const t=E(e);let r=S(e);return t===r&&(r=0),h(r,t)}function _(e){return(0,a.isNumber)(e)?e:v(e)}function S(e){return(0,a.isNumber)(e)?e:e.min}function E(e){return(0,a.isNumber)(e)?e:e.max}function T(e,t){if(e===t||void 0===t&&(0,a.isNumber)(e))return e;const r=S(e),n=E(e);return void 0!==t?{min:Math.min(r,t),max:Math.max(n,t)}:T(r,n)}function w(e,t){const r=e.x-t.x,n=e.y-t.y;return{dx:r,dy:n,distance:Math.hypot(r,n)}}function x(e,t){const r=e.x-t.x,n=e.y-t.y;return r*r+n*n}function O(e,t){return Math.sqrt(x(e,t))}function I(e,t,r){return x(e,t)<=r*r}function A(e){return e*s}function k(e,t,r){if((0,a.isNumber)(e))return A(e);switch(e){case n.MoveDirection.top:return-Math.PI*i.half;case n.MoveDirection.topRight:return-Math.PI*i.quarter;
31case n.MoveDirection.right:return i.empty;case n.MoveDirection.bottomRight:return Math.PI*i.quarter;case n.MoveDirection.bottom:return Math.PI*i.half;case n.MoveDirection.bottomLeft:return Math.PI*i.threeQuarter;case n.MoveDirection.left:return Math.PI;case n.MoveDirection.topLeft:return-Math.PI*i.threeQuarter;case n.MoveDirection.inside:return Math.atan2(r.y-t.y,r.x-t.x);case n.MoveDirection.outside:return Math.atan2(t.y-r.y,t.x-r.x);default:return d()*i.doublePI}}function R(e){const t=o.Vector.origin;return t.length=1,t.angle=e,t}function C(e,t,r,n){return o.Vector.create(e.x*(r-n)/(r+n)+t.x*i.double*n/(r+n),e.y)}function P(e){return void 0!==e.position?.x&&void 0!==e.position.y?{x:e.position.x*e.size.width/i.percentDenominator,y:e.position.y*e.size.height/i.percentDenominator}:void 0}function D(e){return{x:(e.position?.x??d()*i.percentDenominator)*e.size.width/i.percentDenominator,y:(e.position?.y??d()*i.percentDenominator)*e.size.height/i.percentDenominator}}function M(e){const t={x:void 0!==e.position?.x?_(e.position.x):void 0,y:void 0!==e.position?.y?_(e.position.y):void 0};return D({size:e.size,position:t})}function N(e){const{position:t,size:r}=e;return{x:t?.x??d()*r.width,y:t?.y??d()*r.height}}function L(e){return e?e.endsWith("%")?parseFloat(e)/i.percentDenominator:parseFloat(e):1}},(e,t,r)=>{"use strict";var n;r.r(t),r.d(t,{MoveDirection:()=>n}),function(e){e.bottom="bottom",e.bottomLeft="bottom-left",e.bottomRight="bottom-right",e.left="left",e.none="none",e.right="right",e.top="top",e.topLeft="top-left",e.topRight="top-right",e.outside="outside",e.inside="inside"}(n||(n={}))},(e,t,r)=>{"use strict";r.r(t),r.d(t,{Vector:()=>a,Vector3d:()=>o});var n=r(994);function i(e){return"z"in e?e.z:n.originPoint.z}class o{x;y;z;constructor(e=n.originPoint.x,t=n.originPoint.y,r=n.originPoint.z){this.x=e,this.y=t,this.z=r}static get origin(){return o.create(n.originPoint.x,n.originPoint.y,n.originPoint.z)}get angle(){return Math.atan2(this.y,this.x)}set angle(e){this.#n(e,this.length)}get length(){return Math.sqrt(this.getLengthSq())}set length(e){this.#n(this.angle,e)}static clone(e){return o.create(e.x,e.y,i(e))}static create(e,t,r){return"number"==typeof e?new o(e,t??n.originPoint.y,r??n.originPoint.z):new o(e.x,e.y,i(e))}add(e){return o.create(this.x+e.x,this.y+e.y,this.z+i(e))}addTo(e){this.x+=e.x,this.y+=e.y,this.z+=i(e)}copy(){return o.clone(this)}div(e){return o.create(this.x/e,this.y/e,this.z/e)}getLengthSq(){return this.x**n.squareExp+this.y**n.squareExp}mult(e){return o.create(this.x*e,this.y*e,this.z*e)}multTo(e){this.x*=e,this.y*=e,this.z*=e}normalize(){const e=this.length;e!=n.none&&this.multTo(n.inverseFactorNumerator/e)}rotate(e){return o.create(this.x*Math.cos(e)-this.y*Math.sin(e),this.x*Math.sin(e)+this.y*Math.cos(e),n.originPoint.z)}setTo(e){this.x=e.x,this.y=e.y,this.z=i(e)}sub(e){return o.create(this.x-e.x,this.y-e.y,this.z-i(e))}subFrom(e){this.x-=e.x,this.y-=e.y,this.z-=i(e)}#n(e,t){this.x=Math.cos(e)*t,this.y=Math.sin(e)*t}}class a extends o{constructor(e=n.originPoint.x,t=n.originPoint.y){super(e,t,n.originPoint.z)}static get origin(){return a.create(n.originPoint.x,n.originPoint.y)}static clone(e){return a.create(e.x,e.y)}static create(e,t){return"number"==typeof e?new a(e,t??n.originPoint.y):new a(e.x,e.y)}}},(e,t,r)=>{"use strict";function n(e){return"boolean"==typeof e}function i(e){return"string"==typeof e}function o(e){return"number"==typeof e}function a(e){return"function"==typeof e}function s(e){return"object"==typeof e&&null!==e}function l(e){return Array.isArray(e)}function c(e){return null==e}r.r(t),r.d(t,{isArray:()=>l,isBoolean:()=>n,isFunction:()=>a,isNull:()=>c,isNumber:()=>o,isObject:()=>s,isString:()=>i})},(e,t,r)=>{"use strict";var n;r.r(t),r.d(t,{OutModeDirection:()=>n}),function(e){e.bottom="bottom",e.left="left",e.right="right",e.top="top"}(n||(n={}))},(e,t,r)=>{"use strict";var n;r.r(t),r.d(t,{PixelMode:()=>n}),function(e){e.precise="precise",e.percent="percent"}(n||(n={}))},(e,t,r)=>{"use strict";r.r(t),r.d(t,{EventDispatcher:()=>i});var n=r(994);class i{#i;constructor(){this.#i=new Map}addEventListener(e,t){this.removeEventListener(e,t);let r=this.#i.get(e);r||(r=[],this.#i.set(e,r)),r.push(t)}
vendor: 2,013 bytes, line 31
31dispatchEvent(e,t){const r=this.#i.get(e);r?.forEach(e=>{e(t)})}hasEventListener(e){return!!this.#i.get(e)}removeAllEventListeners(e){e?this.#i.delete(e):this.#i=new Map}removeEventListener(e,t){const r=this.#i.get(e);if(!r)return;const i=r.length,o=r.indexOf(t);o<n.minIndex||(i===n.deleteCount?this.#i.delete(e):r.splice(o,n.deleteCount))}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{PluginManager:()=>o});var n=r(995),i=r(1004);class o{colorManagers=new Map;easingFunctions=new Map;effectDrawers=new Map;initializers={effects:new Map,shapes:new Map,updaters:new Map};palettes=new Map;plugins=[];presets=new Map;shapeDrawers=new Map;updaters=new Map;#o=new Set;#a=new Map;#s;#l=new Set;#r=!1;#c=!1;#u=new Set;constructor(e){this.#s=e}get configs(){const e={};for(const[t,r]of this.#a)e[t]=r;return e}addColorManager(e,t){this.colorManagers.set(e,t)}addConfig(e){const t=e.key??e.name??"default";this.#a.set(t,e),this.#s.dispatchEvent(i.EventType.configAdded,{data:{name:t,config:e}})}addEasing(e,t){this.easingFunctions.get(e)||this.easingFunctions.set(e,t)}addEffect(e,t){this.initializers.effects.set(e,t)}addPalette(e,t){this.palettes.set(e,t)}addParticleUpdater(e,t){this.initializers.updaters.set(e,t)}addPlugin(e){this.getPlugin(e.id)||this.plugins.push(e)}addPreset(e,t,r=!1){!r&&this.getPreset(e)||this.presets.set(e,t)}addShape(e,t){for(const r of e)this.initializers.shapes.set(r,t)}clearPlugins(e){this.effectDrawers.delete(e),this.shapeDrawers.delete(e),this.updaters.delete(e)}getEasing(e){return this.easingFunctions.get(e)??(e=>e)}getEffectDrawers(e,t=!1){return(0,n.getItemMapFromInitializer)(e,this.effectDrawers,this.initializers.effects,t)}getPalette(e){return this.palettes.get(e)}getPlugin(e){return this.plugins.find(t=>t.id===e)}getPreset(e){return this.presets.get(e)}async getShapeDrawers(e,t=!1){return(0,n.getItemMapFromInitializer)(e,this.shapeDrawers,this.initializers.shapes,t)}async getUpdaters(e,t=!1){return(0,n.getItemsFromInitializer)(e,this.updaters,this.initializers.updaters,t)}
vendor: 8,015 bytes, line 31
31async init(){if(!this.#r&&!this.#c){this.#c=!0,this.#l=new Set,this.#o=new Set(this.#u);try{for(const e of this.#o)await this.#p(e,this.#l,this.#o)}finally{this.#u.clear(),this.#c=!1,this.#r=!0}}}loadParticlesOptions(e,t,...r){const n=this.updaters.get(e);n&&n.forEach(e=>e.loadOptions?.(t,...r))}async register(...e){if(this.#r)throw new Error("Register plugins can only be done before calling tsParticles.load()");for(const t of e)this.#c?await this.#p(t,this.#l,this.#o):this.#u.add(t)}async#p(e,t,r){t.has(e)||(t.add(e),r.add(e),await e(this.#s))}}},(e,t,r)=>{"use strict";var n;r.r(t),r.d(t,{EventType:()=>n}),function(e){e.configAdded="configAdded",e.containerInit="containerInit",e.particlesSetup="particlesSetup",e.containerStarted="containerStarted",e.containerStopped="containerStopped",e.containerDestroyed="containerDestroyed",e.containerPaused="containerPaused",e.containerPlay="containerPlay",e.containerBuilt="containerBuilt",e.particleAdded="particleAdded",e.particleDestroyed="particleDestroyed",e.particleRemoved="particleRemoved"}(n||(n={}))},(e,t,r)=>{"use strict";r.r(t),r.d(t,{getLogger:()=>a,setLogger:()=>o});const n=e=>(...t)=>{e(...t)},i={debug:n(console.debug),error:(e,...t)=>{console.error(`tsParticles - Error - ${e}`,...t)},info:n(console.info),log:n(console.log),trace:n(console.trace),verbose:n(console.log),warning:n(console.warn)};function o(e){e.debug&&(i.debug=n(e.debug)),e.error&&(i.error=n(e.error)),e.info&&(i.info=n(e.info)),e.log&&(i.log=n(e.log)),e.trace&&(i.trace=n(e.trace)),e.verbose&&(i.verbose=n(e.verbose)),e.warning&&(i.warning=n(e.warning))}function a(){return i}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{AlterType:()=>f.AlterType,AnimatableColor:()=>E.AnimatableColor,AnimationMode:()=>c.AnimationMode,AnimationOptions:()=>T.AnimationOptions,AnimationStatus:()=>_.AnimationStatus,AnimationValueWithRandom:()=>J.AnimationValueWithRandom,Background:()=>w.Background,BaseRange:()=>i.BaseRange,Circle:()=>i.Circle,ColorAnimation:()=>x.ColorAnimation,DestroyType:()=>m.DestroyType,DrawLayer:()=>S.DrawLayer,EventType:()=>v.EventType,Fill:()=>M.Fill,FullScreen:()=>O.FullScreen,GradientType:()=>g.GradientType,HDROptions:()=>I.HDROptions,HdrMode:()=>u.HdrMode,HslAnimation:()=>A.HslAnimation,LimitMode:()=>p.LimitMode,Move:()=>F.Move,MoveAngle:()=>B.MoveAngle,MoveCenter:()=>U.MoveCenter,MoveDirection:()=>a.MoveDirection,MoveGravity:()=>j.MoveGravity,MovePath:()=>V.MovePath,OptionLoader:()=>ee.OptionLoader,Options:()=>k.Options,OptionsColor:()=>R.OptionsColor,OutMode:()=>d.OutMode,OutModeDirection:()=>l.OutModeDirection,OutModes:()=>H.OutModes,Paint:()=>N.Paint,ParticleOutType:()=>y.ParticleOutType,ParticlesBounce:()=>C.ParticlesBounce,ParticlesBounceFactor:()=>P.ParticlesBounceFactor,ParticlesDensity:()=>$.ParticlesDensity,ParticlesNumber:()=>G.ParticlesNumber,ParticlesNumberLimit:()=>q.ParticlesNumberLimit,ParticlesOptions:()=>D.ParticlesOptions,PixelMode:()=>h.PixelMode,RangedAnimationOptions:()=>T.RangedAnimationOptions,RangedAnimationValueWithRandom:()=>J.RangedAnimationValueWithRandom,Rectangle:()=>i.Rectangle,ResizeEvent:()=>K.ResizeEvent,RotateDirection:()=>s.RotateDirection,Shape:()=>W.Shape,Spin:()=>z.Spin,StartValueType:()=>b.StartValueType,Stroke:()=>L.Stroke,ValueWithRandom:()=>J.ValueWithRandom,Vector:()=>o.Vector,Vector3d:()=>o.Vector3d,ZIndex:()=>Y.ZIndex,alterHsl:()=>Q.alterHsl,animate:()=>Z.animate,areBoundsInside:()=>ne.areBoundsInside,calcExactPositionOrRandomFromSize:()=>Z.calcExactPositionOrRandomFromSize,calcPositionFromSize:()=>Z.calcPositionFromSize,calcPositionOrRandomFromSize:()=>Z.calcPositionOrRandomFromSize,calcPositionOrRandomFromSizeRanged:()=>Z.calcPositionOrRandomFromSizeRanged,calculateBounds:()=>ne.calculateBounds,cancelAnimation:()=>Z.cancelAnimation,canvasFirstIndex:()=>n.canvasFirstIndex,canvasTag:()=>n.canvasTag,checkDistance:()=>Z.checkDistance,circleBounce:()=>ne.circleBounce,circleBounceDataFromParticle:()=>ne.circleBounceDataFromParticle,clamp:()=>Z.clamp,cloneStyle:()=>ne.cloneStyle,collisionVelocity:()=>Z.collisionVelocity,colorMix:()=>Q.colorMix,colorToRgb:()=>Q.colorToRgb,countOffset:()=>n.countOffset,decayOffset:()=>n.decayOffset,deepExtend:()=>ne.deepExtend,defaultAlpha:()=>n.defaultAlpha,defaultAngle:()=>n.defaultAngle,defaultCompositeValue:()=>n.defaultCompositeValue,defaultDensityFactor:()=>n.defaultDensityFactor,defaultFps:()=>n.defaultFps,defaultFpsLimit:()=>n.defaultFpsLimit,defaultLoops:()=>n.defaultLoops,defaultOpacity:()=>n.defaultOpacity,defaultRatio:()=>n.defaultRatio,defaultReduceFactor:()=>n.defaultReduceFactor,defaultRemoveQuantity:()=>n.defaultRemoveQuantity,defaultRetryCount:()=>n.defaultRetryCount,defaultRgbMin:()=>n.defaultRgbMin,defaultTime:()=>n.defaultTime,defaultTransform:()=>n.defaultTransform,defaultTransformValue:()=>n.defaultTransformValue,defaultVelocity:()=>n.defaultVelocity,defaultZoom:()=>n.defaultZoom,degToRad:()=>Z.degToRad,deleteCount:()=>n.deleteCount,double:()=>n.double,doublePI:()=>n.doublePI,empty:()=>n.empty,executeOnSingleOrMultiple:()=>ne.executeOnSingleOrMultiple,generatedAttribute:()=>n.generatedAttribute,generatedFalse:()=>n.generatedFalse,generatedTrue:()=>n.generatedTrue,getDistance:()=>Z.getDistance,getDistanceSq:()=>Z.getDistanceSq,getDistances:()=>Z.getDistances,getFullScreenStyle:()=>ne.getFullScreenStyle,getHslAnimationFromHsl:()=>Q.getHslAnimationFromHsl,getHslFromAnimation:()=>Q.getHslFromAnimation,getItemMapFromInitializer:()=>ne.getItemMapFromInitializer,getItemsFromInitializer:()=>ne.getItemsFromInitializer,getLinkColor:()=>Q.getLinkColor,getLinkRandomColor:()=>Q.getLinkRandomColor,getLogger:()=>X.getLogger,getParticleBaseVelocity:()=>Z.getParticleBaseVelocity,getParticleDirectionAngle:()=>Z.getParticleDirectionAngle,getPosition:()=>ne.getPosition,getRandom:()=>Z.getRandom,getRandomFn:()=>Z.getRandomFn,getRandomInRange:()=>Z.getRandomInRange,getRandomRgbColor:()=>Q.getRandomRgbColor,getRangeMax:()=>Z.getRangeMax,getRangeMin:()=>Z.getRangeMin,getRangeValue:()=>Z.getRangeValue,getStyleFromHsl:()=>Q.getStyleFromHsl,getStyleFromRgb:()=>Q.getStyleFromRgb,hMax:()=>n.hMax,hMin:()=>n.hMin,hPhase:()=>n.hPhase,half:()=>n.half,hslToRgb:()=>Q.hslToRgb,hslToRgbFloat:()=>Q.hslToRgbFloat,hslaToRgba:()=>Q.hslaToRgba,identity:()=>n.identity,inverseFactorNumerator:()=>n.inverseFactorNumerator,isArray:()=>ie.isArray,isBoolean:()=>ie.isBoolean,isFunction:()=>ie.isFunction,isInArray:()=>ne.isInArray,isNull:()=>ie.isNull,isNumber:()=>ie.isNumber,isObject:()=>ie.isObject,isPointInside:()=>ne.isPointInside,isString:()=>ie.isString,itemFromArray:()=>ne.itemFromArray,itemFromSingleOrMultiple:()=>ne.itemFromSingleOrMultiple,lFactor:()=>n.lFactor,lMax:()=>n.lMax,lMin:()=>n.lMin,lengthOffset:()=>n.lengthOffset,loadExtendProperty:()=>re.loadExtendProperty,loadLazyProperty:()=>re.loadLazyProperty,loadMinIndex:()=>n.loadMinIndex,loadNestedProperty:()=>re.loadNestedProperty,loadOptionProperty:()=>re.loadOptionProperty,loadOptions:()=>ee.loadOptions,loadParticlesOptions:()=>te.loadParticlesOptions,loadProperty:()=>re.loadProperty,loadRandomFactor:()=>n.loadRandomFactor,loadRangeProperty:()=>re.loadRangeProperty,manageListener:()=>ne.manageListener,maxNits:()=>n.maxNits,midColorValue:()=>n.midColorValue,millisecondsToSeconds:()=>n.millisecondsToSeconds,minCount:()=>n.minCount,minDistance:()=>n.minDistance,minFpsLimit:()=>n.minFpsLimit,minIndex:()=>n.minIndex,minLimit:()=>n.minLimit,minRadius:()=>n.minRadius,minStrokeWidth:()=>n.minStrokeWidth,minVelocity:()=>n.minVelocity,minZ:()=>n.minZ,minimumSize:()=>n.minimumSize,mix:()=>Z.mix,none:()=>n.none,one:()=>n.one,originPoint:()=>n.originPoint,parseAlpha:()=>Z.parseAlpha,percentDenominator:()=>n.percentDenominator,phaseNumerator:()=>n.phaseNumerator,quarter:()=>n.quarter,randomColorValue:()=>n.randomColorValue,randomInRangeValue:()=>Z.randomInRangeValue,rangeColorToHsl:()=>Q.rangeColorToHsl,rangeColorToRgb:()=>Q.rangeColorToRgb,removeDeleteCount:()=>n.removeDeleteCount,removeMinIndex:()=>n.removeMinIndex,resizeEvent:()=>n.resizeEvent,rgbMax:()=>
31n.rgbMax,rgbToHsl:()=>Q.rgbToHsl,sMax:()=>n.sMax,sMin:()=>n.sMin,sNormalizedOffset:()=>n.sNormalizedOffset,safeDocument:()=>ne.safeDocument,safeMatchMedia:()=>ne.safeMatchMedia,safeMutationObserver:()=>ne.safeMutationObserver,setAnimationFunctions:()=>Z.setAnimationFunctions,setLogger:()=>X.setLogger,setRandom:()=>Z.setRandom,setRangeValue:()=>Z.setRangeValue,sextuple:()=>n.sextuple,spatialHashGridCellSize:()=>n.spatialHashGridCellSize,squareExp:()=>n.squareExp,stringToAlpha:()=>Q.stringToAlpha,stringToRgb:()=>Q.stringToRgb,threeQuarter:()=>n.threeQuarter,triple:()=>n.triple,tryCountIncrement:()=>n.tryCountIncrement,updateColor:()=>Q.updateColor,updateColorValue:()=>Q.updateColorValue,visibilityChangeEvent:()=>n.visibilityChangeEvent,zIndexFactorOffset:()=>n.zIndexFactorOffset});var n=r(994),i=r(1007),o=r(998),a=r(997),s=r(1009),l=r(1e3),c=r(1010),u=r(1011),p=r(1012),d=r(1013),h=r(1001),f=r(1014),m=r(1015),g=r(1016),y=r(1017),b=r(1018),v=r(1004),_=r(1019),S=r(1020),E=r(1021),T=r(1026),w=r(1028),x=r(1023),O=r(1029),I=r(1030),A=r(1022),k=r(1031),R=r(1027),C=r(1047),P=r(1048),D=r(1034),M=r(1036),N=r(1045),L=r(1046),F=r(1037),B=r(1038),U=r(1039),j=r(1040),H=r(1043),V=r(1041),z=r(1044),G=r(1049),q=r(1051),$=r(1050),W=r(1052),Y=r(1053),K=r(1032),J=r(1042),Q=r(1054),X=r(1005),Z=r(996),ee=r(1025),te=r(1033),re=r(1024),ne=r(995),ie=r(999)},(e,t,r)=>{"use strict";r.r(t),r.d(t,{BaseRange:()=>a,Circle:()=>s,Rectangle:()=>l});var n=r(1008),i=r(996),o=r(994);class a{position;type;constructor(e,t,r){this.position={x:e,y:t},this.type=r}_resetPosition(e,t){this.position.x=e,this.position.y=t}}class s extends a{radius;constructor(e,t,r){super(e,t,n.RangeType.circle),this.radius=r}contains(e){return(0,i.checkDistance)(e,this.position,this.radius)}intersects(e){const t=this.position,r=e.position,i=this.radius,a=Math.abs(r.x-t.x),c=Math.abs(r.y-t.y);if(e instanceof s||e.type===n.RangeType.circle){return i+e.radius>Math.hypot(a,c)}if(e instanceof l||e.type===n.RangeType.rectangle){const t=e,{width:r,height:n}=t.size;return Math.pow(a-r,o.squareExp)+Math.pow(c-n,o.squareExp)<=i**o.squareExp||a<=i+r&&c<=i+n||a<=r||c<=n}return!1}reset(e,t,r){return this._resetPosition(e,t),this.radius=r,this}}class l extends a{size;
31constructor(e,t,r,i){super(e,t,n.RangeType.rectangle),this.size={height:i,width:r}}contains(e){const t=this.size.width,r=this.size.height,n=this.position;return e.x>=n.x&&e.x<=n.x+t&&e.y>=n.y&&e.y<=n.y+r}intersects(e){if(e instanceof s)return e.intersects(this);if(!(e instanceof l))return!1;const t=this.size.width,r=this.size.height,n=this.position,i=e.position,o=e.size,a=o.width,c=o.height;return i.x<n.x+t&&i.x+a>n.x&&i.y<n.y+r&&i.y+c>n.y}reset(e,t,r,n){return this._resetPosition(e,t),this.size.width=r,this.size.height=n,this}}},(e,t,r)=>{"use strict";var n;r.r(t),r.d(t,{RangeType:()=>n}),function(e){e.circle="circle",e.rectangle="rectangle"}(n||(n={}))},(e,t,r)=>{"use strict";var n;r.r(t),r.d(t,{RotateDirection:()=>n}),function(e){e.clockwise="clockwise",e.counterClockwise="counter-clockwise",e.random="random"}(n||(n={}))},(e,t,r)=>{"use strict";var n;r.r(t),r.d(t,{AnimationMode:()=>n}),function(e){e.auto="auto",e.increase="increase",e.decrease="decrease",e.random="random"}(n||(n={}))},(e,t,r)=>{"use strict";var n;r.r(t),r.d(t,{HdrMode:()=>n}),function(e){e.standard="standard",e.natural="natural",e.vivid="vivid",e.cinematic="cinematic",e.dynamic="dynamic"}(n||(n={}))},(e,t,r)=>{"use strict";var n;r.r(t),r.d(t,{LimitMode:()=>n}),function(e){e.delete="delete",e.wait="wait"}(n||(n={}))},(e,t,r)=>{"use strict";var n;r.r(t),r.d(t,{OutMode:()=>n}),function(e){e.bounce="bounce",e.none="none",e.out="out",e.destroy="destroy",e.split="split"}(n||(n={}))},(e,t,r)=>{"use strict";var n;r.r(t),r.d(t,{AlterType:()=>n}),function(e){e.darken="darken",e.enlighten="enlighten"}(n||(n={}))},(e,t,r)=>{"use strict";var n;r.r(t),r.d(t,{DestroyType:()=>n}),function(e){e.none="none",e.max="max",e.min="min"}(n||(n={}))},(e,t,r)=>{"use strict";var n;r.r(t),r.d(t,{GradientType:()=>n}),function(e){e.linear="linear",e.radial="radial",e.random="random"}(n||(n={}))},(e,t,r)=>{"use strict";var n;r.r(t),r.d(t,{ParticleOutType:()=>n}),function(e){e.normal="normal",e.inside="inside",e.outside="outside"}(n||(n={}))},(e,t,r)=>{"use strict";var n;r.r(t),r.d(t,{StartValueType:()=>n}),function(e){e.max="max",e.min="min",e.random="random"}(n||(n={}))},(e,t,r)=>{"use strict";var n;r.r(t),r.d(t,{AnimationStatus:()=>n}),function(e){e.increasing="increasing",e.decreasing="decreasing"}(n||(n={}))},(e,t,r)=>{"use strict";var n;r.r(t),r.d(t,{DrawLayer:()=>n}
31),function(e){e[e.BackgroundElement=0]="BackgroundElement",e[e.BackgroundDraw=1]="BackgroundDraw",e[e.BackgroundMask=2]="BackgroundMask",e[e.CanvasSetup=3]="CanvasSetup",e[e.PluginContent=4]="PluginContent",e[e.Particles=5]="Particles",e[e.CanvasCleanup=6]="CanvasCleanup",e[e.Foreground=7]="Foreground"}(n||(n={}))},(e,t,r)=>{"use strict";r.r(t),r.d(t,{AnimatableColor:()=>a});var n=r(999),i=r(1022),o=r(1027);class a extends o.OptionsColor{animation=new i.HslAnimation;static create(e,t){const r=new a;return r.load(e),void 0!==t&&((0,n.isString)(t)||(0,n.isArray)(t)?r.load({value:t}):r.load(t)),r}doLoad(e){super.doLoad(e);const t=e.animation;void 0!==t&&(void 0===t.enable?this.animation.load(e.animation):this.animation.h.load(t))}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{HslAnimation:()=>a});var n=r(994),i=r(1023),o=r(1025);class a extends o.OptionLoader{h=new i.ColorAnimation(n.hMin,n.hMax);l=new i.ColorAnimation(n.lMin,n.lMax);s=new i.ColorAnimation(n.sMin,n.sMax);doLoad(e){this.h.load(e.h),this.s.load(e.s),this.l.load(e.l)}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{ColorAnimation:()=>o});var n=r(1024),i=r(1026);class o extends i.AnimationOptions{max;min;offset=0;sync=!0;constructor(e,t){super(),this.min=e,this.max=t}doLoad(e){super.doLoad(e),(0,n.loadProperty)(this,"max",e.max),(0,n.loadProperty)(this,"min",e.min),(0,n.loadRangeProperty)(this,"offset",e.offset)}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{OptionLoader:()=>n.OptionLoader,loadExtendProperty:()=>u,loadLazyProperty:()=>c,loadNestedProperty:()=>l,loadOptionProperty:()=>p,loadOptions:()=>n.loadOptions,loadProperty:()=>a,loadRangeProperty:()=>s});var n=r(1025),i=r(995),o=r(996);function a(e,t,r){void 0!==r&&(e[t]=r)}function s(e,t,r){void 0!==r&&(e[t]=(0,o.setRangeValue)(r))}function l(e,t,r){void 0!==r&&e[t].load(r)}function c(e,t,r,n){if(void 0!==r){const i=e;i[t]??=n(),i[t].load(r)}}function u(e,t,r){if(void 0!==r){const n=t;if("__proto__"===n||"constructor"===n||"prototype"===n)return;const o=e,a=Object.prototype.hasOwnProperty.call(o,n)?o[n]:{};o[n]=(0,i.deepExtend)(a,r)}}function p(e,t,r,...n){const i=e;i[t]??=new r;const o=i[t];for(const e of n)o.load(e?.[t])}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{OptionLoader:()=>i,loadOptions:()=>o});var n=r(999);class i{load(e){(0,n.isNull)(e)||this.doLoad(e)}}function o(e,...t){for(const r of t)e.load(r)}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{AnimationOptions:()=>s,RangedAnimationOptions:()=>l});var n=r(1024),i=r(1010),o=r(1025),a=r(1018);class s extends o.OptionLoader{count=0;decay=0;delay=0;enable=!1;speed=1;sync=!1;doLoad(e){(0,n.loadRangeProperty)(this,"count",e.count),(0,n.loadProperty)(this,"enable",e.enable),(0,n.loadRangeProperty)(this,"speed",e.speed),(0,n.loadRangeProperty)(this,"decay",e.decay),(0,n.loadRangeProperty)(this,"delay",e.delay),(0,n.loadProperty)(this,"sync",e.sync)}}class l extends s{mode=i.AnimationMode.auto;startValue=a.StartValueType.random;doLoad(e){super.doLoad(e),(0,n.loadProperty)(this,"mode",e.mode),(0,n.loadProperty)(this,"startValue",e.startValue)}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{OptionsColor:()=>o});var n=r(999),i=r(1025);class o extends i.OptionLoader{value="";static create(e,t){const r=new o;return r.load(e),void 0!==t&&((0,n.isString)(t)||(0,n.isArray)(t)?r.load({value:t}):r.load(t)),r}doLoad(e){(0,n.isNull)(e.value)||(this.value=e.value)}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{Background:()=>a});var n=r(1024),i=r(1025),o=r(1027);class a extends i.OptionLoader{color;draw;element;image="";opacity=1;position="";repeat="";size="";constructor(){super(),this.color=new o.OptionsColor,this.color.value=""}doLoad(e){void 0!==e.color&&(this.color=o.OptionsColor.create(this.color,e.color)),(0,n.loadProperty)(this,"element",e.element),(0,n.loadProperty)(this,"draw",e.draw),(0,n.loadProperty)(this,"image",e.image),(0,n.loadProperty)(this,"position",e.position),(0,n.loadProperty)(this,"repeat",e.repeat),(0,n.loadProperty)(this,"size",e.size),(0,n.loadProperty)(this,"opacity",e.opacity)}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{FullScreen:()=>o});var n=r(1024),i=r(1025);class o extends i.OptionLoader{enable=!0;zIndex=0;doLoad(e){(0,n.loadProperty)(this,"enable",e.enable),(0,n.loadProperty)(this,"zIndex",e.zIndex)}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{HDROptions:()=>s});var n=r(1024),i=r(1025),o=r(999),a=r(1011);class s extends i.OptionLoader{enable=!0;mode=a.HdrMode.standard;peakNits=400;doLoad(e){if(void 0!==e.enable&&!(0,o.isBoolean)(e.enable))throw new Error(`Invalid HDR "enable" value: expected a boolean, got "${String(e.enable)}"`);if(void 0!==e.mode&&("string"!=typeof e.mode||!Object.values(a.HdrMode).includes(e.mode)))throw new Error(`Invalid HDR "mode" value: expected one of ${Object.values(a.HdrMode).join(", ")}, got "${t=e.mode,String(t)}"`);var t;if(void 0!==e.peakNits&&(!(0,o.isNumber)(e.peakNits)||!Number.isFinite(e.peakNits)||e.peakNits<=0))throw new Error(`Invalid HDR "peakNits" value: expected a positive number, got "${String(e.peakNits)}"`);(0,n.loadProperty)(this,"enable",e.enable),(0,n.loadProperty)(this,"mode",e.mode),(0,n.loadProperty)(this,"peakNits",e.peakNits)}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{Options:()=>h});var n=r(995),i=r(1024),o=r(1028),a=r(1029),s=r(1030),l=r(1011),c=r(1025),u=r(1032),p=r(999),d=r(1033);class h extends c.OptionLoader{autoPlay=!0;background;clear=!0;defaultThemes={};delay=0;detectRetina=!0;duration=0;fpsLimit=120;fullScreen;hdr;key;name;palette;particles;pauseOnBlur=!0;pauseOnOutsideViewport=!0;preset;resize;smooth=!1;style={};zLayers=100;#d;#h;constructor(e,t){super(),this.#h=e,this.#d=t,this.background=new o.Backgroun
31d,this.fullScreen=new a.FullScreen,this.hdr=new s.HDROptions,this.particles=(0,d.loadParticlesOptions)(this.#h,this.#d),this.resize=new u.ResizeEvent}doLoad(e){void 0!==e.preset&&(this.preset=e.preset,(0,n.executeOnSingleOrMultiple)(this.preset,e=>{this.#f(e)})),void 0!==e.palette&&(this.palette=e.palette,this.#m(this.palette)),(0,i.loadProperty)(this,"autoPlay",e.autoPlay),(0,i.loadProperty)(this,"clear",e.clear),(0,i.loadProperty)(this,"key",e.key),(0,i.loadProperty)(this,"name",e.name),(0,i.loadRangeProperty)(this,"delay",e.delay),(0,i.loadProperty)(this,"detectRetina",e.detectRetina),(0,i.loadRangeProperty)(this,"duration",e.duration),(0,i.loadProperty)(this,"fpsLimit",e.fpsLimit);const t=e.hdr;(0,p.isBoolean)(t)?(this.hdr.enable=t,this.hdr.mode=l.HdrMode.standard,this.hdr.peakNits=400):this.hdr.load(t),(0,i.loadProperty)(this,"pauseOnBlur",e.pauseOnBlur),(0,i.loadProperty)(this,"pauseOnOutsideViewport",e.pauseOnOutsideViewport),(0,i.loadProperty)(this,"zLayers",e.zLayers),this.background.load(e.background);const r=e.fullScreen;(0,p.isBoolean)(r)?this.fullScreen.enable=r:this.fullScreen.load(r),this.particles.load(e.particles),this.resize.load(e.resize),this.style=(0,n.deepExtend)(this.style,e.style),(0,i.loadProperty)(this,"smooth",e.smooth),this.#h.plugins.forEach(t=>{t.loadOptions(this.#d,this,e)})}#m(e){const t=this.#h.getPalette(e);t&&this.load({background:{color:t.background},blend:{enable:!0,mode:t.blendMode},particles:{palette:e}})}#f(e){this.load(this.#h.getPreset(e))}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{ResizeEvent:()=>o});var n=r(1024),i=r(1025);class o extends i.OptionLoader{delay=.5;enable=!0;doLoad(e){(0,n.loadProperty)(this,"delay",e.delay),(0,n.loadProperty)(this,"enable",e.enable)}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{loadParticlesOptions:()=>o});var n=r(1034),i=r(1025);function o(e,t,...r){const o=new n.ParticlesOptions(e,t);return(0,i.loadOptions)(o,...r),o}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{ParticlesOptions:()=>m});var n=r(995),i=r(1021),o=r(1035),a=r(1036),s=r(1037),l=r(1025),c=r(1045),u=r(1047),p=r(1049),d=r(1052),h=r(1053),f=r(999);class m extends l.OptionLoader{bounce=new u.ParticlesBounce;effect=new o.Effect;groups={};move=new s.Move;number=new p.ParticlesNumber;paint;palette;reduceDuplicates=!1;shape=new d.Shape;zIndex=new h.ZIndex;#d;#h;constructor(e,t){super(),this.#h=e,this.#d=t,this.paint=new c.Paint,this.paint.color=new i.AnimatableColor,this.paint.color.value="#fff",this.paint.fill=new a.Fill,this.paint.fill.enable=!0}doLoad(e){if(e.palette&&(this.palette=e.palette,this.#m(this.palette)),void 0!==e.groups)for(const t of Object.keys(e.groups)){if(!(t in e.groups))continue;const r=e.groups[t];void 0!==r&&(this.groups[t]=(0,n.deepExtend)(this.groups[t]??{},r))}void 0!==e.reduceDuplicates&&(this.reduceDuplicates=e.reduceDuplicates),this.bounce.load(e.bounce),this.effect.load(e.effect),this.move.load(e.move),this.number.load(e.number);const t=e.paint;if(t&&((0,f.isArray)(t)?this.paint=(0,n.executeOnSingleOrMultiple)(t,e=>{const t=new c.Paint;return t.load(e),t}):(0,f.isArray)(this.paint)?(this.paint=new c.Paint,this.paint.load(t)):this.paint.load(t)),this.shape.load(e.shape),this.zIndex.load(e.zIndex),this.#d){for(const t of this.#h.plugins)t.loadParticlesOptions&&t.loadParticlesOptions(this.#d,this,e);const t=this.#h.updaters.get(this.#d);if(t)for(const r of t)r.loadOptions&&r.loadOptions(this,e)}}#m(e){const t=this.#h.getPalette(e);if(!t)return;const r=t.colors,n=((0,f.isArray)(r)?r:[r]).flatMap(e=>{const t=e.fill,r=e.stroke,n=t?{color:{value:t.value},enable:t.enable,opacity:t.opacity}:void 0;return r?[{fill:n,stroke:{color:{value:r.value},opacity:r.opacity,width:r.width||0}}]:[{fill:n}]}),i=n.length>1?n:n[0]??{};this.load({paint:i,blend:{enable:!0,mode:t.blendMode}})}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{Effect:()=>a});var n=r(1025),i=r(995),o=r(1024);class a extends n.OptionLoader{close=!0;options={};type=[];doLoad(e){const t=e.options;if(void 0!==t)for(const e in t){const r=t[e];r&&(this.options[e]=(0,i.deepExtend)(this.options[e]??{},r))}(0,o.loadProperty)(this,"close",e.close),(0,o.loadProperty)(this,"type",e.type)}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{Fill:()=>a});var n=r(1024),i=r(1021),o=r(1025);class a extends o.OptionLoader{color;enable=!0;opacity=1;doLoad(e){void 0!==e.color&&(this.color=i.AnimatableColor.create(this.color,e.color)),(0,n.loadProperty)(this,"enable",e.enable),(0,n.loadRangeProperty)(this,"opacity",e.opacity)}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{Move:()=>h});var n=r(997),i=r(999),o=r(1024),a=r(1038),s=r(1039),l=r(1040),c=r(1041),u=r(1025),p=r(1043),d=r(1044);class h extends u.OptionLoader{angle=new a.MoveAngle;center=new s.MoveCenter;decay=0;direction=n.MoveDirection.none;distance={};drift=0;enable=!1;gravity=new l.MoveGravity;outModes=new p.OutModes;path=new c.MovePath;random=!1;size=!1;speed=2;spin=new d.Spin;straight=!1;vibrate=!1;warp=!1;doLoad(e){this.angle.load((0,i.isNumber)(e.angle)?{value:e.angle}:e.angle),this.center.load(e.center),(0,o.loadRangeProperty)(this,"decay",e.decay),(0,o.loadProperty)(this,"direction",e.direction),void 0!==e.distance&&(this.distance=(0,i.isNumber)(e.distance)?{horizontal:e.distance,vertical:e.distance}:{...e.distance}),(0,o.loadRangeProperty)(this,"drift",e.drift),(0,o.loadProperty)(this,"enable",e.enable),this.gravity.load(e.gravity);const t=e.outModes;void 0!==t&&((0,i.isObject)(t)?this.outModes.load(t):this.outModes.load({default:t})),this.path.load(e.path),(0,o.loadProperty)(this,"random",e.random),(0,o.loadProperty)(this,"size",e.size),(0,o.loadRangeProperty)(this,"speed",e.speed),this.spin.load(e.spin),(0,o.loadProperty)(this,"straight",e.straight),(0,o.loadProperty)(this,"vibrate",e.vibrate),(0,o.loadProperty)(this,"warp",e.warp)}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{MoveAngle:()=>o});var n=r(1025),i=r(1024);class o extends n.OptionLoader{offset=0;value=90;doLoad(e){(0,i.loadRangeProperty)(this,"offset",e.offset),(0,i.loadRangeProperty)(this,"value",e.value)}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{MoveCenter:()=>a});var n=r(1025),i=r(1001),o=r(1024);class a extends n.OptionLoader{mode=i.PixelMode.percent;radius=0;x=50;y=50;doLoad(e){(0,o.loadProperty)(this,"x",e.x),(0,o.loadProperty)(this,"y",e.y),(0,o.loadProperty)(this,"mode",e.mode),(0,o.loadProperty)(this,"radiu
31s",e.radius)}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{MoveGravity:()=>o});var n=r(1024),i=r(1025);class o extends i.OptionLoader{acceleration=9.81;enable=!1;inverse=!1;maxSpeed=50;doLoad(e){(0,n.loadRangeProperty)(this,"acceleration",e.acceleration),(0,n.loadProperty)(this,"enable",e.enable),(0,n.loadProperty)(this,"inverse",e.inverse),(0,n.loadRangeProperty)(this,"maxSpeed",e.maxSpeed)}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{MovePath:()=>s});var n=r(1025),i=r(1042),o=r(995),a=r(1024);class s extends n.OptionLoader{clamp=!0;delay=new i.ValueWithRandom;enable=!1;generator;options={};doLoad(e){(0,a.loadProperty)(this,"clamp",e.clamp),this.delay.load(e.delay),(0,a.loadProperty)(this,"enable",e.enable),this.generator=e.generator,e.options&&(this.options=(0,o.deepExtend)(this.options,e.options))}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{AnimationValueWithRandom:()=>c,RangedAnimationValueWithRandom:()=>u,ValueWithRandom:()=>l});var n=r(1026),i=r(1025),o=r(999),a=r(1024),s=r(996);class l extends i.OptionLoader{value=0;doLoad(e){(0,o.isNull)(e.value)||(this.value=(0,s.setRangeValue)(e.value))}}class c extends l{animation=new n.AnimationOptions;doLoad(e){super.doLoad(e),(0,a.loadNestedProperty)(this,"animation",e.animation)}}class u extends c{animation=new n.RangedAnimationOptions}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{OutModes:()=>o});var n=r(1025),i=r(1013);class o extends n.OptionLoader{bottom;default=i.OutMode.out;left;right;top;doLoad(e){void 0!==e.default&&(this.default=e.default),this.bottom=e.bottom??e.default,this.left=e.left??e.default,this.right=e.right??e.default,this.top=e.top??e.default}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{Spin:()=>a});var n=r(1024),i=r(1025),o=r(995);class a extends i.OptionLoader{acceleration=0;enable=!1;position;doLoad(e){(0,n.loadRangeProperty)(this,"acceleration",e.acceleration),(0,n.loadProperty)(this,"enable",e.enable),e.position&&(this.position=(0,o.deepExtend)({},e.position))}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{Paint:()=>l});var n=r(1021),i=r(1036),o=r(1025),a=r(1046),s=r(1024);class l extends o.OptionLoader{color;fill;stroke;doLoad(e){void 0!==e.color&&(this.color=n.AnimatableColor.create(this.color,e.color)),(0,s.loadLazyProperty)(this,"fill",e.fill,()=>new i.Fill),(0,s.loadLazyProperty)(this,"stroke",e.stroke,()=>new a.Stroke)}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{Stroke:()=>a});var n=r(1021),i=r(1025),o=r(1024);class a extends i.OptionLoader{color;opacity;width=0;doLoad(e){void 0!==e.color&&(this.color=n.AnimatableColor.create(this.color,e.color)),(0,o.loadRangeProperty)(this,"width",e.width),(0,o.loadRangeProperty)(this,"opacity",e.opacity)}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{ParticlesBounce:()=>o});var n=r(1025),i=r(1048);class o extends n.OptionLoader{horizontal=new i.ParticlesBounceFactor;vertical=new i.ParticlesBounceFactor;doLoad(e){this.horizontal.load(e.horizontal),this.vertical.load(e.vertical)}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{ParticlesBounceFactor:()=>i});var n=r(1042);class i extends n.ValueWithRandom{value=1}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{ParticlesNumber:()=>s});var n=r(1025),i=r(1050),o=r(1051),a=r(1024);class s extends n.OptionLoader{density=new i.ParticlesDensity;limit=new o.ParticlesNumberLimit;value=0;doLoad(e){this.density.load(e.density),this.limit.load(e.limit),(0,a.loadProperty)(this,"value",e.value)}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{ParticlesDensity:()=>o});var n=r(1025),i=r(1024);class o extends n.OptionLoader{enable=!1;height=1080;width=1920;doLoad(e){(0,i.loadProperty)(this,"enable",e.enable),(0,i.loadProperty)(this,"width",e.width),(0,i.loadProperty)(this,"height",e.height)}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{ParticlesNumberLimit:()=>a});var n=r(1012),i=r(1025),o=r(1024);class a extends i.OptionLoader{mode=n.LimitMode.delete;value=0;doLoad(e){(0,o.loadProperty)(this,"mode",e.mode),(0,o.loadProperty)(this,"value",e.value)}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{Shape:()=>a});var n=r(1025),i=r(995),o=r(1024);class a extends n.OptionLoader{close=!0;options={};type="circle";doLoad(e){const t=e.options;if(void 0!==t)for(const e in t){const r=t[e];r&&(this.options[e]=(0,i.deepExtend)(this.options[e]??{},r))}(0,o.loadProperty)(this,"close",e.close),(0,o.loadProperty)(this,"type",e.type)}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{ZIndex:()=>o});var n=r(1042),i=r(1024);class o extends n.ValueWithRandom{opacityRate=1;sizeRate=1;velocityRate=1;doLoad(e){super.doLoad(e),(0,i.loadProperty)(this,"opacityRate",e.opacityRate),(0,i.loadProperty)(this,"sizeRate",e.sizeRate),(0,i.loadProperty)(this,"velocityRate",e.velocityRate)}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{alterHsl:()=>pe,colorMix:()=>ne,colorToRgb:()=>q,getHslAnimationFromHsl:()=>se,getHslFromAnimation:()=>ae,getLinkColor:()=>ie,getLinkRandomColor:()=>oe,getRandomRgbColor:()=>ee,getStyleFromHsl:()=>re,getStyleFromRgb:()=>te,hslToRgb:()=>Q,hslToRgbFloat:()=>X,hslaToRgba:()=>Z,rangeColorToHsl:()=>$,rangeColorToRgb:()=>G,rgbToHsl:()=>W,stringToAlpha:()=>Y,stringToRgb:()=>K,updateColor:()=>ue,updateColorValue:()=>ce});var n=r(996),i=r(994),o=r(999),a=r(1014),s=r(1019),l=r(1011),c=r(995);
31const u=new Map,p=2e3,d=2,h=2,f=4,m=4,g=203,y=2.51,b=.03,v=2.43,_=.59,S=.14,E=1.15,T=1.05,w=1.05,x=.95,O=1.1,I=.2126,A=.7152,k=.0722,R=2,C=3,P=.04045,D=12.92,M=.055,N=1.055,L=2.4,F=.0031308,B=12.92;function U(e,t){let r=u.get(e);return r||(r=t(),u.size>p&&u.clear(),u.set(e,r)),r}function j(e){return(0,n.clamp)(e*(y*e+b)/(e*(v*e+_)+S),i.none,i.one)}function H(e){return e<=P?e/D:Math.pow((e+M)/N,L)}function V(e){return e<=F?e*B:N*Math.pow(e,i.one/L)-M}function z(e,t){if(t)for(const r of e.colorManagers.values())if(r.accepts(t))return r.parseString(t)}function G(e,t,r,n=!0){if(!t)return;const i=(0,o.isString)(t)?{value:t}:t;if((0,o.isString)(i.value))return q(e,i.value,r,n);if((0,o.isArray)(i.value)){const t=(0,c.itemFromArray)(i.value,r,n);if(!t)return;return G(e,{value:t})}for(const t of e.colorManagers.values()){const e=t.handleRangeColor(i);if(e)return e}}function q(e,t,r,n=!0){if(!t)return;const a=(0,o.isString)(t)?{value:t}:t;if((0,o.isString)(a.value))return a.value===i.randomColorValue?ee():K(e,a.value);if((0,o.isArray)(a.value)){const t=(0,c.itemFromArray)(a.value,r,n);if(!t)return;return q(e,{value:t})}for(const t of e.colorManagers.values()){const e=t.handleColor(a);if(e)return e}}function $(e,t,r,n=!0){const i=G(e,t,r,n);return i?W(i):void 0}function W(e){const t=e.r/i.rgbMax,r=e.g/i.rgbMax,n=e.b/i.rgbMax,o=Math.max(t,r,n),a=Math.min(t,r,n),s={h:i.hMin,l:(o+a)*i.half,s:i.sMin};return o!==a&&(s.s=s.l<i.half?(o-a)/(o+a):(o-a)/(i.double-o-a),s.h=t===o?(r-n)/(o-a):r===o?i.double+(n-t)/(o-a):i.double*i.double+(t-r)/(o-a)),s.l*=i.lMax,s.s*=i.sMax,s.h*=i.hPhase,s.h<i.hMin&&(s.h+=i.hMax),s.h>=i.hMax&&(s.h-=i.hMax),s}function Y(e,t){return z(e,t)?.a}function K(e,t){return z(e,t)}function J(e,t,r){if(r<0&&r++,r>1&&r--,r*i.sextuple<1)return e+(t-e)*i.sextuple*r;if(r*i.double<1)return t;if(r*i.triple<1*i.double){return e+(t-e)*(i.double/i.triple-r)*i.sextuple}return e}function Q(e){const t=(e.h%i.hMax+i.hMax)%i.hMax,r=Math.max(i.sMin,Math.min(i.sMax,e.s)),n=Math.max(i.lMin,Math.min(i.lMax,e.l)),o=t/i.hMax,a=r/i.sMax,s=n/i.lMax;if(r===i.sMin){const e=Math.round(s*i.rgbMax);return{r:e,g:e,b:e}}const l=s<i.half?s*(i.sNormalizedOffset+a):s+a-s*a,c=i.double*s-l,u=i.phaseNumerator/i.triple,p=Math.min(i.rgbMax,i.rgbMax*J(c,l,o+u)),d=Math.min(i.rgbMax,i.rgbMax*J(c,l,o)),h=Math.min(i.rgbMax,i.rgbMax*J(c,l,o-u));return{r:Math.round(p),g:Math.round(d),b:Math.round(h)}}function X(e){const t=(e.h%i.hMax+i.hMax)%i.hMax,r=Math.max(i.sMin,Math.min(i.sMax,e.s)),n=Math.max(i.lMin,Math.min(i.lMax,e.l)),o=t/i.hMax,a=r/i.sMax,s=n/i.lMax;if(r===i.sMin){const e=s*i.rgbMax;return{r:e,g:e,b:e}}const l=s<i.half?s*(i.sNormalizedOffset+a):s+a-s*a,c=i.double*s-l,u=i.phaseNumerator/i.triple;return{r:Math.min(i.rgbMax,i.rgbMax*J(c,l,o+u)),g:Math.min(i.rgbMax,i.rgbMax*J(c,l,o)),b:Math.min(i.rgbMax,i.rgbMax*J(c,l,o-u))}}function Z(e){const t=Q(e);return{a:e.a,b:t.b,g:t.g,r:t.r}}function ee(e,t){const r=e??i.defaultRgbMin;if(t)return{r:(0,n.getRandomInRange)(r,i.rgbMax),g:(0,n.getRandomInRange)(r,i.rgbMax),b:(0,n.getRandomInRange)(r,i.rgbMax)};const o=i.rgbMax+i.identity,a=()=>Math.floor((0,n.getRandomInRange)(r,o));return{b:a(),g:a(),r:a()}}function te(e,t,r,o,a){const s=t?f:d,c=r??i.defaultOpacity;return U(t?`rgb-${e.r.toFixed(s)}-${e.g.toFixed(s)}-${e.b.toFixed(s)}-hdr-${c.toString()}-${(o??i.maxNits).toString()}-${a??l.HdrMode.standard}`:`rgb-${e.r.toFixed(s)}-${e.g.toFixed(s)}-${e.b.toFixed(s)}-sdr-${c.toString()}`,()=>t?function(e,t,r=i.maxNits,o=l.HdrMode.standard){const a=r/g,s=function(e,t,r,o){const a=e.r/i.rgbMax,s=e.g/i.rgbMax,c=e.b/i.rgbMax;if(o!==l.HdrMode.natural&&o!==l.HdrMode.vivid&&o!==l.HdrMode.cinematic&&o!==l.HdrMode.dynamic)return{b:c,g:s,r:a};const u=Math.max(i.one,t),p=I*a+A*s+k*c,d=function(e,t,r){if(e<=r)return j(e);const n=e+(e-r)*(t-i.one);return j(n)}(p,t,r),h=p>i.none?d/p:i.one;return function(e,t,r,o,a){switch(o){case l.HdrMode.vivid:{const o=(e+t+r)/C;return{b:(0,n.clamp)((0,n.clamp)(o+(r-o)*E,i.none,a)*T,i.none,a),g:(0,n.clamp)((0,n.clamp)(o+(t-o)*E,i.none,a)*T,i.none,a),r:(0,n.clamp)((0,n.clamp)(o+(e-o)*E,i.none,a)*T,i.none,a)}}case l.HdrMode.cinematic:{const o=e*w,s=r*x,l=(o+t+s)/C;return{b:(0,n.clamp)(l+(s-l)*O,i.none,a),g:(0,n.clamp)(l+(t-l)*O,i.none,a),r:(0,n.clamp)(l+(o-l)*O,i.none,a)}}case l.HdrMode.dynamic:{const o=I*e+A*t+k*r,s=Math.min(i.one,o*R),l=i.one-s,c=(e+t+r)/C,u=(0,n.clamp)(c+(e-c)*E,i.none,a)*T,p=(0,n.clamp)(c+(t-c)*E,i.none,a)*T,d=(0,n.clamp)(c+(r-c)*E,i.none,a)*T;return{b:(0,n.clamp)(r*l+d*s,i.none,a),g:(0,n.clamp)(t*l+p*s,i.none,a),r:(0,n.clamp)(e*l+u*s,i.none,a)}}
31case l.HdrMode.standard:case l.HdrMode.natural:default:return{b:r,g:t,r:e}}}((0,n.clamp)(a*h,i.none,u),(0,n.clamp)(s*h,i.none,u),(0,n.clamp)(c*h,i.none,u),o,u)}(e,a,.18,o);return`color(display-p3 ${s.r.toString()} ${s.g.toString()} ${s.b.toString()} / ${(t??i.defaultOpacity).toString()})`}(e,r,o,a):function(e,t){return`rgba(${e.r.toString()}, ${e.g.toString()}, ${e.b.toString()}, ${(t??i.defaultOpacity).toString()})`}(e,r))}function re(e,t,r,n,o){const a=t?m:h,s=r??i.defaultOpacity;return U(t?`hsl-${e.h.toFixed(a)}-${e.s.toFixed(a)}-${e.l.toFixed(a)}-hdr-${s.toString()}-${(n??i.maxNits).toString()}-${o??l.HdrMode.standard}`:`hsl-${e.h.toFixed(a)}-${e.s.toFixed(a)}-${e.l.toFixed(a)}-sdr-${s.toString()}`,()=>t?te(X(e),!0,r,n,o):`hsla(${e.h.toString()}, ${e.s.toString()}%, ${e.l.toString()}%, ${s.toString()})`)}function ne(e,t,r,o,a){let s=e,l=t;if("r"in s||(s=a?X(e):Q(e)),"r"in l||(l=a?X(t):Q(t)),a){const e={b:H(s.b/i.rgbMax),g:H(s.g/i.rgbMax),r:H(s.r/i.rgbMax)},t={b:H(l.b/i.rgbMax),g:H(l.g/i.rgbMax),r:H(l.r/i.rgbMax)},n=r+o;return{b:V((e.b*r+t.b*o)/n)*i.rgbMax,g:V((e.g*r+t.g*o)/n)*i.rgbMax,r:V((e.r*r+t.r*o)/n)*i.rgbMax}}return{b:(0,n.mix)(s.b,l.b,r,o),g:(0,n.mix)(s.g,l.g,r,o),r:(0,n.mix)(s.r,l.r,r,o)}}function ie(e,t,r,n){if(r===i.randomColorValue)return ee();if(r!==i.midColorValue)return r;{const r=e.getFillColor()??e.getStrokeColor(),i=t?.getFillColor()??t?.getStrokeColor();if(r&&i&&t)return ne(r,i,e.getRadius(),t.getRadius(),n);{const e=r??i;if(e)return Q(e)}}}function oe(e,t,r,n){const a=(0,o.isString)(t)?t:t.value;return a===i.randomColorValue?n?G(e,{value:a}):r?i.randomColorValue:i.midColorValue:a===i.midColorValue?i.midColorValue:G(e,{value:a})}function ae(e){return void 0===e?void 0:{h:e.h.value,s:e.s.value,l:e.l.value}}function se(e,t,r){const n={h:{enable:!1,value:e.h,min:i.hMin,max:i.hMax},s:{enable:!1,value:e.s,min:i.sMin,max:i.sMax},l:{enable:!1,value:e.l,min:i.lMin,max:i.lMax}};return t&&(le(n.h,t.h,r),le(n.s,t.s,r),le(n.l,t.l,r)),n}function le(e,t,r){e.enable=t.enable,e.min=t.min,e.max=t.max,e.enable?(e.velocity=(0,n.getRangeValue)(t.speed)/i.percentDenominator*r,e.decay=i.decayOffset-(0,n.getRangeValue)(t.decay),e.status=s.AnimationStatus.increasing,e.loops=i.defaultLoops,e.maxLoops=(0,n.getRangeValue)(t.count),e.time=i.defaultTime,e.delayTime=(0,n.getRangeValue)(t.delay)*i.millisecondsToSeconds,t.sync||(e.velocity*=(0,n.getRandom)(),e.value*=(0,n.getRandom)()),e.initialValue=e.value,e.offset=(0,n.setRangeValue)(t.offset)):e.velocity=i.defaultVelocity}function ce(e,t,r,i){if(!e.enable||(e.maxLoops??0)>0&&(e.loops??0)>(e.maxLoops??0))return;if(e.time??=0,(e.delayTime??0)>0&&e.time<(e.delayTime??0)&&(e.time+=r.value),(e.delayTime??0)>0&&e.time<(e.delayTime??0))return;const o=e.offset?(0,n.randomInRangeValue)(e.offset):0,a=(e.velocity??0)*r.factor+3.6*o,l=e.decay??1,c=e.max,u=e.min;t&&e.status!==s.AnimationStatus.increasing?(e.value-=a,e.value<u&&(e.loops??=0,e.loops++,e.status=s.AnimationStatus.increasing)):(e.value+=a,e.value>c&&(e.loops??=0,e.loops++,t?e.status=s.AnimationStatus.decreasing:e.value-=c)),e.velocity&&1!==l&&(e.velocity*=l),e.value=(0,n.clamp)(e.value,u,c)}function ue(e,t,r){if(!e)return;const{h:n,s:i,l:o}=e;ce(n,!1,t),ce(i,!0,t),ce(o,!0,t)}function pe(e,t,r){return{h:e.h,s:e.s,l:e.l+(t===a.AlterType.darken?-i.lFactor:i.lFactor)*r}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>a});var n=r(990),i=r(341),o=r(991),a=e=>{let{className:t,id:r,options:a,particlesLoaded:s,style:l,url:c}=e,{loaded:u}=(0,n.useParticlesProvider)(),p=(0,i.useRef)(void 0);return(0,i.useEffect)(()=>{if(!u)return;let e=r??"tsparticles";return o.tsParticles.load({id:e,url:c,options:a}).then(t=>{if(!t?.destroyed){if(!document.getElementById(e))return void t?.destroy();p.current=t,s?.(t)}}),()=>{p.current?.destroy(),p.current=void 0}},[r,u,a,s,c]),(0,i.jsx)("div",{id:r??"tsparticles",className:t,style:l})}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{loadConfettiPreset:()=>m});var n=r(1057),i=r(1090),o=r(1092),a=r(1103),s=r(1109),l=r(1113),c=r(1119),u=r(1123),p=r(1126),d=r(1131),h=r(1136);const f="confetti";async function m(e){await e.pluginManager.register(async e=>{await Promise.all([(0,n.loadBasic)(e),(0,i.loadConfettiPalette)(e),(0,o.loadEmittersPluginSimple)(e),(0,u.loadSquareShape)(e),(0,s.loadMotionPlugin)(e),(0,d.loadWobbleUpdater)(e),(0,l.loadRollUpdater)(e),(0,c.loadRotateUpdater)(e),(0,p.loadTiltUpdater)(e),(0,a.loadLifeUpdater)(e)]),e.pluginManager.addPreset(f,h.options,!1)})}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{loadBasic:()=>h});var n=r(1058),i=r(1061),o=r(1064),a=r(1066),s=r(1068),l=r(1070),c=r(1075),u=r(1082),p=r(1084),d=r(1086);async function h(e){e.checkVersion("4.4.0"),await e.pluginManager.register(async e=>{await Promise.all([(0,n.loadBlendPlugin)(e),(0,o.loadHexColorPlugin)(e),(0,a.loadHslColorPlugin)(e),(0,p.loadRgbColorPlugin)(e),(0,s.loadMovePlugin)(e),(0,i.loadCircleShape)(e),(0,u.loadPaintUpdater)(e),(0,l.loadOpacityUpdater)(e),(0,c.loadOutModesUpdater)(e),(0,d.loadSizeUpdater)(e)])})}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{loadBlendPlugin:()=>i});var n=r(1059);async function i(e){e.checkVersion("4.4.0"),await e.pluginManager.register(e=>{e.pluginManager.addPlugin(new n.BlendPlugin)})}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{BlendPlugin:()=>i});var n=r(1060);class i{id="blend";async getPlugin(e){const{BlendPluginInstance:t}=await r.e("vendors").then(()=>r(2872));return new t(e)}loadOptions(e,t,r){if(!this.needsPlugin(t)&&!this.needsPlugin(r))return;let i=t.blend;i?.load||(t.blend=i=new n.Blend),i.load(r?.blend)}loadParticlesOptions(e,t,r){t.blend??=new n.Blend,t.blend.load(r?.blend)}needsPlugin(e){return!!e?.blend?.enable||!!e?.particles?.blend?.enable}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{Blend:()=>o});var n=r(1024),i=r(999);class o{enable=!1;mode="destination-out";load(e){(0,i.isNull)(e)||((0,n.loadProperty)(this,"mode",e.mode),(0,n.loadProperty)(this,"enable",e.enable))}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{loadCircleShape:()=>i});var n=r(1062);async function i(e){e.checkVersion("4.4.0"),await e.pluginManager.register(e=>
31{e.pluginManager.addShape(["circle"],()=>Promise.resolve(new n.CircleDrawer))})}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{CircleDrawer:()=>a});var n=r(996),i=r(999),o=r(1063);class a{draw(e){(0,o.drawCircle)(e)}getSidesCount(){return 12}particleInit(e,t){const r=t.shapeData,o=r?.angle??{max:360,min:0};t.circleRange=(0,i.isObject)(o)?{min:(0,n.degToRad)(o.min),max:(0,n.degToRad)(o.max)}:{min:0,max:(0,n.degToRad)(o)}}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{drawCircle:()=>o});var n=r(994);const i=0;function o(e){const{context:t,particle:r,radius:o}=e;r.circleRange??={min:i,max:n.doublePI};const a=r.circleRange;t.arc(n.originPoint.x,n.originPoint.y,o,a.min,a.max,!1)}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{loadHexColorPlugin:()=>i});var n=r(1065);async function i(e){e.checkVersion("4.4.0"),await e.pluginManager.register(e=>{e.pluginManager.addColorManager("hex",new n.HexColorManager)})}},(e,t,r)=>{"use strict";var n;r.r(t),r.d(t,{HexColorManager:()=>a}),function(e){e[e.r=1]="r",e[e.g=2]="g",e[e.b=3]="b",e[e.a=4]="a"}(n||(n={}));const i=/^#?([a-f\d])([a-f\d])([a-f\d])([a-f\d])?$/i,o=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})?$/i;class a{accepts(e){return e.startsWith("#")}handleColor(e){return this.#g(e.value)}handleRangeColor(e){return this.#g(e.value)}parseString(e){return this.#g(e)}#g(e){if("string"!=typeof e||!this.accepts(e))return;const t=e.replace(i,(e,t,r,n,i)=>t+t+r+r+n+n+(void 0===i?"":i+i)),r=o.exec(t);return r?{a:r[n.a]?Number.parseInt(r[n.a],16)/255:1,b:Number.parseInt(r[n.b]??"0",16),g:Number.parseInt(r[n.g]??"0",16),r:Number.parseInt(r[n.r]??"0",16)}:void 0}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{loadHslColorPlugin:()=>i});var n=r(1067);async function i(e){e.checkVersion("4.4.0"),await e.pluginManager.register(e=>{e.pluginManager.addColorManager("hsl",new n.HslColorManager)})}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{HslColorManager:()=>s});var n,i=r(1054),o=r(996);!function(e){e[e.h=1]="h",e[e.s=2]="s",e[e.l=3]="l",e[e.a=5]="a"}(n||(n={}));const a=/hsla?\(\s*(\d+)\s*[\s,]\s*(\d+)%\s*[\s,]\s*(\d+)%\s*([\s,]\s*(0|1|0?\.\d+|(\d{1,3})%)\s*)?\)/i;class s{accepts(e){return e.startsWith("hsl")}handleColor(e){const t=e.value.hsl??e.value;if("h"in t&&"s"in t&&"l"in t)return(0,i.hslToRgb)(t)}handleRangeColor(e){const t=e.value.hsl??e.value;if("h"in t&&"s"in t&&"l"in t)return(0,i.hslToRgb)({h:(0,o.getRangeValue)(t.h),l:(0,o.getRangeValue)(t.l),s:(0,o.getRangeValue)(t.s)})}parseString(e){if(!this.accepts(e))return;const t=a.exec(e);return t?(0,i.hslaToRgba)({a:t.length>4?(0,o.parseAlpha)(t[n.a]):1,h:Number.parseInt(t[n.h]??"0",10),l:Number.parseInt(t[n.l]??"0",10),s:Number.parseInt(t[n.s]??"0",10)}):void 0}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{ensureBaseMoverLoaded:()=>a,loadMovePlugin:()=>o});var n=r(995),i=r(1069);async function o(e){e.checkVersion("4.4.0"),await e.pluginManager.register(e=>{const t=e.pluginManager;t.initializers.pathGenerators??=new Map,t.pathGenerators??=new Map,t.addPathGenerator=(e,r)=>{t.initializers.pathGenerators??=new Map,t.initializers.pathGenerators.set(e,r)},t.getPathGenerators=async(e,r=!1)=>(t.initializers.pathGenerators??=new Map,t.pathGenerators??=new Map,(0,n.getItemMapFromInitializer)(e,t.pathGenerators,t.initializers.pathGenerators,r)),e.pluginManager.addPlugin(new i.MovePlugin(e.pluginManager))})}function a(e){if(!e.pluginManager.addPathGenerator)throw new Error("tsParticles Base Mover is not loaded")}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{MovePlugin:()=>n});class n{id="move";#h;constructor(e){this.#h=e}async getPlugin(e){const{MovePluginInstance:t}=await r.e("vendors").then(()=>r(2873));return new t(this.#h,e)}loadOptions(){}needsPlugin(){return!0}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{loadOpacityUpdater:()=>i});var n=r(1071);async function i(e){e.checkVersion("4.4.0"),await e.pluginManager.register(e=>{e.pluginManager.addParticleUpdater("opacity",e=>Promise.resolve(new n.OpacityUpdater(e)))})}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{OpacityUpdater:()=>l});var n=r(994),i=r(996),o=r(1024),a=r(1072),s=r(1073);class l{#d;constructor(e){this.#d=e}init(e){const t=e.options.opacity;if(!t)return;e.opacity=(0,a.initParticleNumericAnimationValue)(t,1);const r=t.animation;r.enable&&(e.opacity.velocity=(0,i.getRangeValue)(r.speed)/n.percentDenominator*this.#d.retina.reduceFactor,r.sync||(e.opacity.velocity
31*=(0,i.getRandom)()))}isEnabled(e){return!e.destroyed&&!e.spawning&&!!e.opacity&&e.opacity.enable&&((e.opacity.maxLoops??0)<=0||(e.opacity.maxLoops??0)>0&&(e.opacity.loops??0)<(e.opacity.maxLoops??0))}loadOptions(e,...t){(0,o.loadOptionProperty)(e,"opacity",s.Opacity,...t)}reset(e){e.opacity&&(e.opacity.time=0,e.opacity.loops=0)}update(e,t){this.isEnabled(e)&&e.opacity&&e.options.opacity&&(0,a.updateAnimation)(e,e.opacity,!0,e.options.opacity.animation.destroy,t)}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{initParticleNumericAnimationValue:()=>c,updateAnimation:()=>u});var n=r(994),i=r(1010),o=r(1015),a=r(1018),s=r(1019),l=r(996);function c(e,t){const r=e.value,o=e.animation,c={delayTime:(0,l.getRangeValue)(o.delay)*n.millisecondsToSeconds,enable:o.enable,value:(0,l.getRangeValue)(e.value)*t,max:(0,l.getRangeMax)(r)*t,min:(0,l.getRangeMin)(r)*t,loops:0,maxLoops:(0,l.getRangeValue)(o.count),time:0};if(o.enable){switch(c.decay=1-(0,l.getRangeValue)(o.decay),o.mode){case i.AnimationMode.increase:c.status=s.AnimationStatus.increasing;break;case i.AnimationMode.decrease:c.status=s.AnimationStatus.decreasing;break;case i.AnimationMode.random:c.status=(0,l.getRandom)()>=n.half?s.AnimationStatus.increasing:s.AnimationStatus.decreasing}const e=o.mode===i.AnimationMode.auto;switch(o.startValue){case a.StartValueType.min:c.value=c.min,e&&(c.status=s.AnimationStatus.increasing);break;case a.StartValueType.max:c.value=c.max,e&&(c.status=s.AnimationStatus.decreasing);break;case a.StartValueType.random:default:c.value=(0,l.randomInRangeValue)(c),e&&(c.status=(0,l.getRandom)()>=n.half?s.AnimationStatus.increasing:s.AnimationStatus.decreasing)}}return c.initialValue=c.value,c}function u(e,t,r,n,i){if(e.destroyed||!t.enable||(t.maxLoops??0)>0&&(t.loops??0)>(t.maxLoops??0))return;const a=(t.velocity??0)*i.factor,c=t.min,u=t.max,p=t.decay??1;t.time??=0;const d=t.delayTime??0;if(!(d>0&&t.time<d&&(t.time+=i.value,t.time<d))){switch(t.status){case s.AnimationStatus.increasing:t.value+=a;break;case s.AnimationStatus.decreasing:t.value-=a}
vendor: 4,247 bytes, line 31
31switch(t.velocity&&1!==p&&(t.velocity*=p),t.status){case s.AnimationStatus.increasing:t.value>=u&&(r?t.status=s.AnimationStatus.decreasing:t.value-=u,t.loops??=0,t.loops++);break;case s.AnimationStatus.decreasing:t.value<=c&&(r?t.status=s.AnimationStatus.increasing:t.value+=u,t.loops??=0,t.loops++)}!function(e,t,r,n,i){switch(t){case o.DestroyType.max:r>=i&&e.destroy();break;case o.DestroyType.min:r<=n&&e.destroy()}}(e,n,t.value,c,u),e.destroyed||(t.value=(0,l.clamp)(t.value,c,u))}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{Opacity:()=>a});var n=r(1042),i=r(999),o=r(1074);class a extends n.RangedAnimationValueWithRandom{animation=new o.OpacityAnimation;value=1;load(e){if((0,i.isNull)(e))return;super.load(e);const t=e.animation;void 0!==t&&this.animation.load(t)}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{OpacityAnimation:()=>s});var n=r(1015),i=r(1026),o=r(1024),a=r(999);class s extends i.RangedAnimationOptions{destroy=n.DestroyType.none;load(e){super.load(e),(0,a.isNull)(e)||(0,o.loadProperty)(this,"destroy",e.destroy)}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{loadOutModesUpdater:()=>i});var n=r(1076);async function i(e){e.checkVersion("4.4.0"),await e.pluginManager.register(e=>{e.pluginManager.addParticleUpdater("outModes",e=>Promise.resolve(new n.OutOfCanvasUpdater(e)))})}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{OutOfCanvasUpdater:()=>c});var n=r(1e3),i=r(1013),o=r(1077),a=r(1079),s=r(1080),l=r(1081);class c{updaters;#d;constructor(e){this.#d=e,this.updaters=new Map}init(e){this.#y(e,i.OutMode.bounce,e=>new o.BounceOutMode(e)),this.#y(e,i.OutMode.out,e=>new l.OutOutMode(e)),this.#y(e,i.OutMode.destroy,e=>new a.DestroyOutMode(e)),this.#y(e,i.OutMode.none,e=>new s.NoneOutMode(e))}isEnabled(e){return!e.destroyed&&!e.spawning}update(e,t){const r=e.options.move.outModes;e.justWarped=!1,this.#b(e,t,r.bottom??r.default,n.OutModeDirection.bottom),this.#b(e,t,r.left??r.default,n.OutModeDirection.left),this.#b(e,t,r.right??r.default,n.OutModeDirection.right),this.#b(e,t,r.top??r.default,n.OutModeDirection.top)}#y(e,t,r){const n=e.options.move.outModes;!this.updaters.has(t)&&((e,t)=>e.default===t||e.bottom===t||e.left===t||e.right===t||e.top===t)(n,t)&&this.updaters.set(t,r(this.#d))}#b(e,t,r,n){for(const i of this.updaters.values())i.update(e,n,t,r)}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{BounceOutMode:()=>a});var n=r(1013),i=r(995),o=r(1078);class a{modes;#d;#v;constructor(e){this.#d=e,this.modes=[n.OutMode.bounce,n.OutMode.split],this.#v=e.plugins.filter(e=>void 0!==e.particleBounce)}update(e,t,r,n){if(!this.modes.includes(n))return;const a=this.#d;let s=!1;for(const n of this.#v)if(s=n.particleBounce?.(e,r,t)??!1,s)break;if(s)return;const l=e.getPosition(),c=e.offset,u=e.getRadius(),p=(0,i.calculateBounds)(l,u),d=a.canvas.size,h=!e.isInsideCanvasForOutMode(n,t);(0,o.bounceHorizontal)({particle:e,outMode:n,direction:t,bounds:p,canvasSize:d,offset:c,outOfCanvas:h,size:u}),(0,o.bounceVertical)({particle:e,outMode:n,direction:t,bounds:p,canvasSize:d,offset:c,outOfCanvas:h,size:u})}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{bounceHorizontal:()=>l,bounceVertical:()=>c});var n=r(994),i=r(1e3),o=r(1013),a=r(996);const s=0;function l(e){if(e.outMode!==o.OutMode.bounce&&e.outMode!==o.OutMode.split||e.direction!==i.OutModeDirection.left&&e.direction!==i.OutModeDirection.right)return;e.bounds.right<s&&e.direction===i.OutModeDirection.left?e.particle.position.x=e.size+e.offset.x:e.bounds.left>e.canvasSize.width&&e.direction===i.OutModeDirection.right&&(e.particle.position.x=e.canvasSize.width-e.size-e.offset.x);const t=e.particle.velocity.x;let r=!1;if(e.outOfCanvas&&(e.direction===i.OutModeDirection.right&&t>n.minVelocity||e.direction===i.OutModeDirection.left&&t<n.minVelocity)){const t=(0,a.getRangeValue)(e.particle.options.bounce.horizontal.value);e.particle.velocity.x*=-t,r=!0}if(!r)return;const l=e.offset.x+e.size;e.outOfCanvas&&e.direction===i.OutModeDirection.right?e.particle.position.x=e.canvasSize.width-l:e.outOfCanvas&&e.direction===i.OutModeDirection.left&&(e.particle.position.x=l),e.outMode===o.OutMode.split&&e.particle.destroy()}function c(e){if(e.outMode!==o.OutMode.bounce&&e.outMode!==o.OutMode.split||e.direction!==i.OutModeDirection.bottom&&e.direction!==i.OutModeDirection.top)return;
vendor: 4,109 bytes, line 31
31e.bounds.bottom<s&&e.direction===i.OutModeDirection.top?e.particle.position.y=e.size+e.offset.y:e.bounds.top>e.canvasSize.height&&e.direction===i.OutModeDirection.bottom&&(e.particle.position.y=e.canvasSize.height-e.size-e.offset.y);const t=e.particle.velocity.y;let r=!1;if(e.outOfCanvas&&(e.direction===i.OutModeDirection.bottom&&t>n.minVelocity||e.direction===i.OutModeDirection.top&&t<n.minVelocity)){const t=(0,a.getRangeValue)(e.particle.options.bounce.vertical.value);e.particle.velocity.y*=-t,r=!0}if(!r)return;const l=e.offset.y+e.size;e.outOfCanvas&&e.direction===i.OutModeDirection.bottom?e.particle.position.y=e.canvasSize.height-l:e.outOfCanvas&&e.direction===i.OutModeDirection.top&&(e.particle.position.y=l),e.outMode===o.OutMode.split&&e.particle.destroy()}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{DestroyOutMode:()=>s});var n=r(994),i=r(1013),o=r(1017),a=r(996);class s{modes;constructor(e){this.modes=[i.OutMode.destroy]}update(e,t,r,i){if(this.modes.includes(i)){switch(e.outType){case o.ParticleOutType.normal:case o.ParticleOutType.outside:if(e.isInsideCanvasForOutMode(i,t))return;break;case o.ParticleOutType.inside:{const{dx:t,dy:r}=(0,a.getDistances)(e.position,e.moveCenter),{x:i,y:o}=e.velocity;if(i<n.minVelocity&&t>e.moveCenter.radius||o<n.minVelocity&&r>e.moveCenter.radius||i>=n.minVelocity&&t<-e.moveCenter.radius||o>=n.minVelocity&&r<-e.moveCenter.radius)return;break}}e.destroy(!0)}}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{NoneOutMode:()=>s});var n=r(994),i=r(1e3),o=r(1013),a=r(995);class s{modes;#d;constructor(e){this.#d=e,this.modes=[o.OutMode.none]}update(e,t,r,o){if(!this.modes.includes(o))return;if((e.options.move.distance.horizontal&&(t===i.OutModeDirection.left||t===i.OutModeDirection.right))??(e.options.move.distance.vertical&&(t===i.OutModeDirection.top||t===i.OutModeDirection.bottom)))return;const s=e.options.move.gravity,l=this.#d,c=l.canvas.size,u=e.getRadius();if(s.enable){const r=e.position;(!s.inverse&&r.y>c.height+u&&t===i.OutModeDirection.bottom||s.inverse&&r.y<-u&&t===i.OutModeDirection.top)&&e.destroy()}else{if(e.velocity.y>n.minVelocity&&e.position.y<=c.height+u||e.velocity.y<n.minVelocity&&e.position.y>=-u||e.velocity.x>n.minVelocity&&e.position.x<=c.width+u||e.velocity.x<n.minVelocity&&e.position.x>=-u)return;(0,a.isPointInside)(e.position,l.canvas.size,n.originPoint,u,t)||e.destroy()}}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{OutOutMode:()=>p});var n=r(994),i=r(998),o=r(1e3),a=r(1013),s=r(1017),l=r(996),c=r(995);const u=i.Vector.origin;class p{modes;#d;constructor(e){this.#d=e,this.modes=[a.OutMode.out]}update(e,t,r,i){if(!this.modes.includes(i))return;const a=this.#d;switch(e.outType){case s.ParticleOutType.inside:{const{x:t,y:r}=e.velocity;u.setTo(n.originPoint),u.length=e.moveCenter.radius,u.angle=e.velocity.angle+Math.PI,u.addTo(e.moveCenter);const{dx:i,dy:o}=(0,l.getDistances)(e.position,u);if(t<=n.minVelocity&&i>=n.minDistance||r<=n.minVelocity&&o>=n.minDistance||t>=n.minVelocity&&i<=n.minDistance||r>=n.minVelocity&&o<=n.minDistance)return;e.position.x=Math.floor((0,l.randomInRangeValue)({min:0,max:a.canvas.size.width})),e.position.y=Math.floor((0,l.randomInRangeValue)({min:0,max:a.canvas.size.height}));const{dx:s,dy:c}=(0,l.getDistances)(e.position,e.moveCenter);e.direction=Math.atan2(-c,-s),e.velocity.angle=e.direction,e.justWarped=!0;break}default:if(e.isInsideCanvasForOutMode(i,t))return;switch(e.outType){case s.ParticleOutType.outside:{e.position.x=Math.floor((0,l.randomInRangeValue)({min:-e.moveCenter.radius,max:e.moveCenter.radius}))+e.moveCenter.x,e.position.y=Math.floor((0,l.randomInRangeValue)({min:-e.moveCenter.radius,max:e.moveCenter.radius}))+e.moveCenter.y;const{dx:t,dy:r}=(0,l.getDistances)(e.position,e.moveCenter);e.moveCenter.radius&&(e.direction=Math.atan2(r,t),e.velocity.angle=e.direction),e.justWarped=!0;break}case s.ParticleOutType.normal:{const r=e.options.move.warp,n=a.canvas.size,i={bottom:n.height+e.getRadius()+e.offset.y,left:-e.getRadius()-e.offset.x,right:n.width+e.getRadius()+e.offset.x,top:-e.getRadius()-e.offset.y},s=e.getRadius(),u=(0,c.calculateBounds)(e.position,s);
31t===o.OutModeDirection.right&&u.left>n.width+e.offset.x?(e.position.x=i.left,e.initialPosition.x=e.position.x,r||(e.position.y=(0,l.getRandom)()*n.height,e.initialPosition.y=e.position.y),e.justWarped=!0):t===o.OutModeDirection.left&&u.right<-e.offset.x&&(e.position.x=i.right,e.initialPosition.x=e.position.x,r||(e.position.y=(0,l.getRandom)()*n.height,e.initialPosition.y=e.position.y),e.justWarped=!0),t===o.OutModeDirection.bottom&&u.top>n.height+e.offset.y?(r||(e.position.x=(0,l.getRandom)()*n.width,e.initialPosition.x=e.position.x),e.position.y=i.top,e.initialPosition.y=e.position.y,e.justWarped=!0):t===o.OutModeDirection.top&&u.bottom<-e.offset.y&&(r||(e.position.x=(0,l.getRandom)()*n.width,e.initialPosition.x=e.position.x),e.position.y=i.bottom,e.initialPosition.y=e.position.y,e.justWarped=!0);break}}}}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{loadPaintUpdater:()=>i});var n=r(1083);async function i(e){e.checkVersion("4.4.0"),await e.pluginManager.register(e=>{e.pluginManager.addParticleUpdater("paint",t=>Promise.resolve(new n.PaintUpdater(e.pluginManager,t)))})}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{PaintUpdater:()=>s});var n=r(1021),i=r(1054),o=r(996),a=r(995);class s{#d;#h;constructor(e,t){this.#d=t,this.#h=e}init(e){const t=this.#d,r=e.options,s=(0,a.itemFromSingleOrMultiple)(r.paint,e.id,r.reduceDuplicates),l=s?.color,c=l??void 0,u=s?.fill,p=s?.stroke;if(u){const r=n.AnimatableColor.create(void 0===c?void 0:n.AnimatableColor.create(void 0,c),u.color);e.fillEnabled=u.enable,e.fillOpacity=(0,o.getRangeValue)(u.opacity),e.fillAnimation=r.animation;const a=(0,i.rangeColorToHsl)(this.#h,r);a&&(e.fillColor=(0,i.getHslAnimationFromHsl)(a,e.fillAnimation,t.retina.reduceFactor))}else e.fillEnabled=!1,e.fillAnimation=void 0,e.fillColor=void 0,e.fillOpacity=1;if(p){const r=n.AnimatableColor.create(void 0===c?void 0:n.AnimatableColor.create(void 0,c),p.color);e.strokeWidth=(0,o.getRangeValue)(p.width)*t.retina.pixelRatio,e.strokeOpacity=(0,o.getRangeValue)(p.opacity??1),e.strokeAnimation=r.animation;const a=(0,i.rangeColorToHsl)(this.#h,r)??e.getFillColor();a&&(e.strokeColor=(0,i.getHslAnimationFromHsl)(a,e.strokeAnimation,t.retina.reduceFactor))}else e.strokeAnimation=void 0,e.strokeColor=void 0,e.strokeOpacity=1,e.strokeWidth=0}isEnabled(e){const{fillAnimation:t,fillColor:r,strokeAnimation:n,strokeColor:i}=e,o=!!t&&(void 0!==r?.h.value&&r.h.enable||void 0!==r?.s.value&&r.s.enable||void 0!==r?.l.value&&r.l.enable),a=!!n&&(void 0!==i?.h.value&&i.h.enable||void 0!==i?.s.value&&i.s.enable||void 0!==i?.l.value&&i.l.enable);return!e.destroyed&&!e.spawning&&(o||a)}update(e,t){this.isEnabled(e)&&((0,i.updateColor)(e.fillColor,t,this.#d.hdr),(0,i.updateColor)(e.strokeColor,t,this.#d.hdr))}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{loadRgbColorPlugin:()=>i});var n=r(1085);async function i(e){e.checkVersion("4.4.0"),await e.pluginManager.register(e=>{e.pluginManager.addColorManager("rgb",new n.RgbColorManager)})}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{RgbColorManager:()=>a});var n,i=r(996);!function(e){e[e.r=1]="r",e[e.g=2]="g",e[e.b=3]="b",e[e.a=5]="a"}(n||(n={}));const o=/rgba?\(\s*(\d{1,3})\s*[\s,]\s*(\d{1,3})\s*[\s,]\s*(\d{1,3})\s*([\s,]\s*(0|1|0?\.\d+|(\d{1,3})%)\s*)?\)/i;class a{accepts(e){return e.startsWith("rgb")}handleColor(e){const t=e.value.rgb??e.value;if("r"in t&&"g"in t&&"b"in t)return t}handleRangeColor(e){const t=e.value.rgb??e.value;if("r"in t&&"g"in t&&"b"in t)return{r:(0,i.getRangeValue)(t.r),g:(0,i.getRangeValue)(t.g),b:(0,i.getRangeValue)(t.b)}}parseString(e){if(!this.accepts(e))return;const t=o.exec(e);return t?{a:t.length>4?(0,i.parseAlpha)(t[n.a]):1,b:parseInt(t[n.b]??"0",10),g:parseInt(t[n.g]??"0",10),r:parseInt(t[n.r]??"0",10)}:void 0}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{loadSizeUpdater:()=>i});var n=r(1087);async function i(e){e.checkVersion("4.4.0"),await e.pluginManager.register(e=>{e.pluginManager.addParticleUpdater("size",e=>Promise.resolve(new n.SizeUpdater(e)))})}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{SizeUpdater:()=>l});var n=r(994),i=r(996),o=r(1024),a=r(1072),s=r(1088);class l{#d;constructor(e){this.#d=e}init(e){const t=this.#d,r=e.options.size;if(!r)return;const o=r.animation;o.enable&&(e.size.velocity=e.retina.sizeAnimationSpeed/n.percentDenominator*t.retina.reduceFactor,o.sync||(e.size.velocity
31*=(0,i.getRandom)()))}isEnabled(e){return!e.destroyed&&!e.spawning&&e.size.enable&&((e.size.maxLoops??0)<=0||(e.size.maxLoops??0)>0&&(e.size.loops??0)<(e.size.maxLoops??0))}loadOptions(e,...t){(0,o.loadOptionProperty)(e,"size",s.Size,...t)}preInit(e){const t=this.#d.retina.pixelRatio,r=e.options.size;r&&(e.size=(0,a.initParticleNumericAnimationValue)(r,t),e.retina.sizeAnimationSpeed=(0,i.getRangeValue)(r.animation.speed)*t)}reset(e){e.size.time=0,e.size.loops=0}update(e,t){this.isEnabled(e)&&e.options.size&&(0,a.updateAnimation)(e,e.size,!0,e.options.size.animation.destroy,t)}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{Size:()=>a});var n=r(1042),i=r(999),o=r(1089);class a extends n.RangedAnimationValueWithRandom{animation=new o.SizeAnimation;value=3;load(e){if(super.load(e),(0,i.isNull)(e))return;const t=e.animation;void 0!==t&&this.animation.load(t)}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{SizeAnimation:()=>s});var n=r(1015),i=r(1026),o=r(1024),a=r(999);class s extends i.RangedAnimationOptions{destroy=n.DestroyType.none;load(e){super.load(e),(0,a.isNull)(e)||(0,o.loadProperty)(this,"destroy",e.destroy)}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{loadConfettiPalette:()=>o});var n=r(1091);const i="confetti";async function o(e){await e.pluginManager.register(e=>{e.pluginManager.addPalette(i,n.options)})}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{options:()=>n});const n={name:"Confetti",background:"#1a1a2e",blendMode:"source-over",colors:{fill:{enable:!0,value:["#FF0044","#FF4400","#FFCC00","#00CC44","#00AAFF","#AA00FF","#FF00AA","#00FFCC","#FF6600","#FFFFFF"]}}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{loadEmittersPluginSimple:()=>a});var n=r(1093),i=r(1101),o=r(1102);async function a(e){e.checkVersion("4.4.0"),await e.pluginManager.register(async e=>{const t=await(0,o.getEmittersInstancesManager)(e);await(0,i.addEmittersShapesManager)(e),e.pluginManager.addPlugin(new n.EmittersPlugin(t))})}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{EmittersPlugin:()=>a});var n=r(995),i=r(999),o=r(1094);class a{id="emitters";#_;constructor(e){this.#_=e}async getPlugin(e){const{EmittersPluginInstance:t}=await r.e("vendors").then(()=>r(2875));return new t(this.#_,e)}loadOptions(e,t,r){(this.needsPlugin(t)||this.needsPlugin(r))&&r?.emitters&&(t.emitters=(0,n.executeOnSingleOrMultiple)(r.emitters,e=>{const t=new o.Emitter;return t.load(e),t}))}needsPlugin(e){if(!e)return!1;const t=e.emitters;return(0,i.isArray)(t)&&!!t.length||void 0!==t}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{Emitter:()=>h});var n=r(1021),i=r(996),o=r(1024),a=r(995),s=r(999),l=r(1095),c=r(1096),u=r(1097),p=r(1099),d=r(1100);class h{autoPlay=!0;direction;domId;fill=!0;life=new l.EmitterLife;name;particles;position;rate=new c.EmitterRate;shape=new u.EmitterShape;size;spawn=new d.EmitterSpawn;spawnFillColor;spawnStrokeColor;startCount=0;load(e){(0,s.isNull)(e)||((0,o.loadProperty)(this,"autoPlay",e.autoPlay),void 0!==e.size&&(this.size??=new p.EmitterSize,this.size.load(e.size)),(0,o.loadProperty)(this,"direction",e.direction),(0,o.loadProperty)(this,"domId",e.domId),(0,o.loadProperty)(this,"fill",e.fill),this.life.load(e.life),(0,o.loadProperty)(this,"name",e.name),this.particles=(0,a.executeOnSingleOrMultiple)(e.particles,e=>(0,a.deepExtend)({},e)),this.rate.load(e.rate),this.shape.load(e.shape),this.spawn.load(e.spawn),void 0!==e.position&&(this.position={},void 0!==e.position.x&&(this.position.x=(0,i.setRangeValue)(e.position.x)),void 0!==e.position.y&&(this.position.y=(0,i.setRangeValue)(e.position.y))),void 0!==e.spawnFillColor&&(this.spawnFillColor??=new n.AnimatableColor,this.spawnFillColor.load(e.spawnFillColor)),void 0!==e.spawnStrokeColor&&(this.spawnStrokeColor??=new n.AnimatableColor,this.spawnStrokeColor.load(e.spawnStrokeColor)),(0,o.loadProperty)(this,"startCount",e.startCount))}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{EmitterLife:()=>o});var n=r(1024),i=r(999);class o{count;delay;duration;wait=!1;load(e){(0,i.isNull)(e)||((0,n.loadProperty)(this,"count",e.count),(0,n.loadRangeProperty)(this,"delay",e.delay),(0,n.loadRangeProperty)(this,"duration",e.duration),(0,n.loadProperty)(this,"wait",e.wait))}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{EmitterRate:()=>
31o});var n=r(1024),i=r(999);class o{delay=.1;quantity=1;load(e){(0,i.isNull)(e)||((0,n.loadRangeProperty)(this,"quantity",e.quantity),(0,n.loadRangeProperty)(this,"delay",e.delay))}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{EmitterShape:()=>s});var n=r(1024),i=r(995),o=r(999),a=r(1098);class s{options={};replace=new a.EmitterShapeReplace;type="square";load(e){(0,o.isNull)(e)||(void 0!==e.options&&(this.options=(0,i.deepExtend)({},e.options??{})),this.replace.load(e.replace),(0,n.loadProperty)(this,"type",e.type))}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{EmitterShapeReplace:()=>o});var n=r(1024),i=r(999);class o{color=!1;opacity=!1;load(e){(0,i.isNull)(e)||((0,n.loadProperty)(this,"color",e.color),(0,n.loadProperty)(this,"opacity",e.opacity))}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{EmitterSize:()=>a});var n=r(1001),i=r(1024),o=r(999);class a{height=0;mode=n.PixelMode.percent;width=0;load(e){(0,o.isNull)(e)||((0,i.loadProperty)(this,"mode",e.mode),(0,i.loadProperty)(this,"height",e.height),(0,i.loadProperty)(this,"width",e.width))}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{EmitterSpawn:()=>a});var n=r(1036),i=r(1046),o=r(999);class a{fill;stroke;load(e){(0,o.isNull)(e)||(e.fill&&(this.fill??=new n.Fill,this.fill.load(e.fill)),e.stroke&&(this.stroke??=new i.Stroke,this.stroke.load(e.stroke)))}}},(e,t,r)=>{"use strict";async function n(e){const{ShapeManager:t}=await r.e("vendors").then(()=>r(2876)),n=e.pluginManager;n.emitterShapeManager??=new t,n.addEmitterShapeGenerator??=(e,t)=>{n.emitterShapeManager?.addShapeGenerator(e,t)}}r.r(t),r.d(t,{addEmittersShapesManager:()=>n})},(e,t,r)=>{"use strict";r.r(t),r.d(t,{getEmittersInstancesManager:()=>i});const n=new WeakMap;function i(e){const t=e.pluginManager;let i=n.get(t);return i||(i=r.e("vendors").then(()=>r(2877)).then(({EmittersInstancesManager:e})=>new e(t)).catch(e=>{throw n.delete(t),e}),n.set(t,i)),i}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{loadLifeUpdater:()=>i});var n=r(1104);async function i(e){e.checkVersion("4.4.0"),await e.pluginManager.register(e=>{e.pluginManager.addParticleUpdater("life",e=>Promise.resolve(new n.LifeUpdater(e)))})}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{LifeUpdater:()=>l});var n=r(994),i=r(996),o=r(1024),a=r(1105),s=r(1108);class l{#d;constructor(e){this.#d=e}init(e){const t=this.#d,r=e.options.life;if(!r)return;const o=r.delay.sync?1:(0,i.getRandom)(),a=r.duration.sync?1:(0,i.getRandom)();e.life={delay:t.retina.reduceFactor?(0,i.getRangeValue)(r.delay.value)*o/t.retina.reduceFactor*n.millisecondsToSeconds:0,delayTime:0,duration:t.retina.reduceFactor?(0,i.getRangeValue)(r.duration.value)*a/t.retina.reduceFactor*n.millisecondsToSeconds:0,time:0,count:r.count},e.life.duration<=0&&(e.life.duration=-1),e.life.count<=0&&(e.life.count=-1),e.spawning=e.life.delay>0}isEnabled(e){return!e.destroyed}loadOptions(e,...t){(0,o.loadOptionProperty)(e,"life",a.Life,...t)}update(e,t){this.isEnabled(e)&&e.life&&(0,s.updateLife)(e,t,this.#d.canvas.size)}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{Life:()=>s});var n=r(1024),i=r(999),o=r(1106),a=r(1107);class s{count=0;delay=new o.LifeDelay;duration=new a.LifeDuration;load(e){(0,i.isNull)(e)||((0,n.loadProperty)(this,"count",e.count),this.delay.load(e.delay),this.duration.load(e.duration))}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{LifeDelay:()=>a});var n=r(1042),i=r(1024),o=r(999);class a extends n.ValueWithRandom{sync=!1;load(e){(0,o.isNull)(e)||(super.load(e),(0,i.loadProperty)(this,"sync",e.sync))}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{LifeDuration:()=>a});var n=r(1042),i=r(1024),o=r(999);class a extends n.ValueWithRandom{sync=!1;load(e){(0,o.isNull)(e)||(super.load(e),(0,i.loadProperty)(this,"sync",e.sync))}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{updateLife:()=>c});var n=r(994),i=r(996);const o=0,a=-1,s=0,l=0;function c(e,t,r){if(!e.life)return;const c=e.life;let u=!1;if(e.spawning){if(c.delayTime+=t.value,!(c.delayTime>=e.life.delay))return;u=!0,e.spawning=!1,c.delayTime=o,c.time=o}if(c.duration===a)return;if(u?c.time=o:c.time+=t.value,c.time<c.duration)return;if(c.time=o,e.life.count>s&&e.life.count--,e.life.count===s)return void e.destroy();const p=(0,i.setRangeValue)(l,r.width),d=(0,i.setRangeValue)(l,r.width);e.position.x=(0,i.randomInRangeValue)(p),e.position.y=(0,i.randomInRangeValue)(d),e.spawning=!0,c.delayTime=o,c.time=o,e.reset();const h=e.options.life;h&&(c.delay=(0,i.getRangeValue)(h.delay.value)*n.millisecondsToSeconds,c.duration=(0,i.getRangeValue)(h.duration.value)*n.millisecondsToSeconds)}},(e,t,r)=>{"use strict";
31r.r(t),r.d(t,{loadMotionPlugin:()=>i});var n=r(1110);async function i(e){e.checkVersion("4.4.0"),await e.pluginManager.register(e=>{e.pluginManager.addPlugin(new n.MotionPlugin)})}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{MotionPlugin:()=>i});var n=r(1111);class i{id="motion";async getPlugin(e){const{MotionPluginInstance:t}=await r.e("vendors").then(()=>r(2878));return new t(e)}loadOptions(e,t,r){if(!this.needsPlugin())return;let i=t.motion;i?.load||(t.motion=i=new n.Motion),i.load(r?.motion)}needsPlugin(){return!0}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{Motion:()=>a});var n=r(1024),i=r(999),o=r(1112);class a{disable=!0;reduce=new o.MotionReduce;load(e){(0,i.isNull)(e)||((0,n.loadProperty)(this,"disable",e.disable),this.reduce.load(e.reduce))}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{MotionReduce:()=>o});var n=r(1024),i=r(999);class o{factor=4;value=!0;load(e){(0,i.isNull)(e)||((0,n.loadProperty)(this,"factor",e.factor),(0,n.loadProperty)(this,"value",e.value))}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{loadRollUpdater:()=>i});var n=r(1114);async function i(e){e.checkVersion("4.4.0"),await e.pluginManager.register(e=>{e.pluginManager.addParticleUpdater("roll",()=>Promise.resolve(new n.RollUpdater(e.pluginManager)))})}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{RollUpdater:()=>a});var n=r(1024),i=r(1115),o=r(1117);class a{#h;constructor(e){this.#h=e}getTransformValues(e){const t=e.roll?.enable&&e.roll,r=t&&t.horizontal,n=t&&t.vertical;return{a:r?Math.cos(t.angle):void 0,d:n?Math.sin(t.angle):void 0}}init(e){(0,i.initParticle)(this.#h,e)}isEnabled(e){const t=e.options.roll;return!e.destroyed&&!e.spawning&&!!t?.enable}loadOptions(e,...t){(0,n.loadOptionProperty)(e,"roll",o.Roll,...t)}update(e,t){this.isEnabled(e)&&(0,i.updateRoll)(e,t)}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{initParticle:()=>c,updateRoll:()=>u});var n=r(994),i=r(1014),o=r(1054),a=r(996),s=r(1116);const l=360;function c(e,t){const r=t.options.roll;if(r?.enable)if(t.roll={enable:r.enable,horizontal:r.mode===s.RollMode.horizontal||r.mode===s.RollMode.both,vertical:r.mode===s.RollMode.vertical||r.mode===s.RollMode.both,angle:(0,a.getRandom)()*n.doublePI,speed:(0,a.getRangeValue)(r.speed)/l},r.backColor)t.backColor=(0,o.rangeColorToHsl)(e,r.backColor);else if(r.darken.enable&&r.enlighten.enable){const e=(0,a.getRandom)()>=n.half?i.AlterType.darken:i.AlterType.enlighten;t.roll.alter={type:e,value:(0,a.getRangeValue)(e===i.AlterType.darken?r.darken.value:r.enlighten.value)}}else r.darken.enable?t.roll.alter={type:i.AlterType.darken,value:(0,a.getRangeValue)(r.darken.value)}:r.enlighten.enable&&(t.roll.alter={type:i.AlterType.enlighten,value:(0,a.getRangeValue)(r.enlighten.value)});else t.roll={enable:!1,horizontal:!1,vertical:!1,angle:0,speed:0}}function u(e,t){const r=e.options.roll,i=e.roll;if(!i||!r?.enable)return;const o=i.speed*t.factor,a=n.doublePI;i.angle+=o,i.angle>a&&(i.angle-=a)}},(e,t,r)=>{"use strict";var n;r.r(t),r.d(t,{RollMode:()=>n}),function(e){e.both="both",e.horizontal="horizontal",e.vertical="vertical"}(n||(n={}))},(e,t,r)=>{"use strict";r.r(t),r.d(t,{Roll:()=>l});var n=r(1027),i=r(1024),o=r(999),a=r(1118),s=r(1116);class l{backColor;darken=new a.RollLight;enable=!1;enlighten=new a.RollLight;mode=s.RollMode.vertical;speed=25;load(e){(0,o.isNull)(e)||(void 0!==e.backColor&&(this.backColor=n.OptionsColor.create(this.backColor,e.backColor)),this.darken.load(e.darken),(0,i.loadProperty)(this,"enable",e.enable),this.enlighten.load(e.enlighten),(0,i.loadProperty)(this,"mode",e.mode),(0,i.loadRangeProperty)(this,"speed",e.speed))}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{RollLight:()=>o});var n=r(1024),i=r(999);class o{enable=!1;value=0;load(e){(0,i.isNull)(e)||((0,n.loadProperty)(this,"enable",e.enable),(0,n.loadRangeProperty)(this,"value",e.value))}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{loadRotateUpdater:()=>i});var n=r(1120);async function i(e){e.checkVersion("4.4.0"),await e.pluginManager.register(e=>{e.pluginManager.addParticleUpdater("rotate",e=>Promise.resolve(new n.RotateUpdater(e)))})}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{RotateUpdater:()=>p});var n=r(994),i=r(1009),o=r(1015),a=r(1019),s=r(996),l=r(1024),c=r(1121),u=r(1072);class p{#d;constructor(e){this.#d=e}init(e){const t=e.options.rotate;if(!t)return;e.rotate={enable:t.animation.enable,value:(0,s.degToRad)((0,s.getRangeValue)(t.value)),min:0,max:n.doublePI},e.pathRotation=t.path;let r=t.direction;if(r===i.RotateDirection.random){r=Math.floor((0,s.getRandom)()*n.double)>0?i.RotateDirection.counterClockwise:i.RotateDirection.clockwise}switch(r){case i.RotateDirection.counterClockwise:case"counterClockwise":e.rotate.status=a.AnimationStatus.decreasing;break;case i.RotateDirection.clockwise:e.rotate.status=a.AnimationStatus.increasing}const o=t.animation;o.enable&&(e.rotate.decay=n.identity-(0,s.getRangeValue)(o.decay),e.rotate.velocity=(0,s.getRangeValue)(o.speed)/360*this.#d.retina.reduceFactor,o.sync||(e.rotate.velocity
31*=(0,s.getRandom)())),e.rotation=e.rotate.value}isEnabled(e){const t=e.options.rotate;return!!t&&(!e.destroyed&&!e.spawning&&(!!t.value||t.animation.enable||t.path))}loadOptions(e,...t){(0,l.loadOptionProperty)(e,"rotate",c.Rotate,...t)}update(e,t){this.isEnabled(e)&&(e.isRotating=!!e.rotate,e.rotate&&((0,u.updateAnimation)(e,e.rotate,!1,o.DestroyType.none,t),e.rotation=e.rotate.value))}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{Rotate:()=>l});var n=r(1009),i=r(1042),o=r(1024),a=r(999),s=r(1122);class l extends i.ValueWithRandom{animation=new s.RotateAnimation;direction=n.RotateDirection.clockwise;path=!1;load(e){(0,a.isNull)(e)||(super.load(e),(0,o.loadProperty)(this,"direction",e.direction),this.animation.load(e.animation),(0,o.loadProperty)(this,"path",e.path))}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{RotateAnimation:()=>o});var n=r(1024),i=r(999);class o{decay=0;enable=!1;speed=0;sync=!1;load(e){(0,i.isNull)(e)||((0,n.loadProperty)(this,"enable",e.enable),(0,n.loadRangeProperty)(this,"speed",e.speed),(0,n.loadRangeProperty)(this,"decay",e.decay),(0,n.loadProperty)(this,"sync",e.sync))}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{loadSquareShape:()=>i});var n=r(1124);async function i(e){e.checkVersion("4.4.0"),await e.pluginManager.register(e=>{e.pluginManager.addShape(["edge","square"],()=>Promise.resolve(new n.SquareDrawer))})}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{SquareDrawer:()=>i});var n=r(1125);class i{draw(e){(0,n.drawSquare)(e)}getSidesCount(){return 4}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{drawSquare:()=>i});var n=r(994);function i(e){const{context:t,radius:r}=e,i=r*Math.SQRT1_2,o=i*n.double;t.rect(-i,-i,o,o)}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{loadTiltUpdater:()=>i});var n=r(1127);async function i(e){e.checkVersion("4.4.0"),await e.pluginManager.register(e=>{e.pluginManager.addParticleUpdater("tilt",e=>Promise.resolve(new n.TiltUpdater(e)))})}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{TiltUpdater:()=>p});var n=r(994),i=r(1015),o=r(1019),a=r(996),s=r(1024),l=r(1128),c=r(1129),u=r(1072);class p{#d;constructor(e){this.#d=e}getTransformValues(e){const t=e.tilt?.enable&&e.tilt;return{b:t?Math.cos(t.value)*t.cosDirection:void 0,c:t?Math.sin(t.value)*t.sinDirection:void 0}}init(e){const t=e.options.tilt;if(!t)return;e.tilt={enable:t.enable,value:(0,a.degToRad)((0,a.getRangeValue)(t.value)),sinDirection:(0,a.getRandom)()>=n.half?n.identity:-n.identity,cosDirection:(0,a.getRandom)()>=n.half?n.identity:-n.identity,min:0,max:n.doublePI};let r=t.direction;if(r===c.TiltDirection.random){r=Math.floor((0,a.getRandom)()*n.double)>0?c.TiltDirection.counterClockwise:c.TiltDirection.clockwise}switch(r){case c.TiltDirection.counterClockwise:case"counterClockwise":e.tilt.status=o.AnimationStatus.decreasing;break;case c.TiltDirection.clockwise:e.tilt.status=o.AnimationStatus.increasing}const i=e.options.tilt?.animation;i?.enable&&(e.tilt.decay=n.identity-(0,a.getRangeValue)(i.decay),e.tilt.velocity=(0,a.getRangeValue)(i.speed)/360*this.#d.retina.reduceFactor,i.sync||(e.tilt.velocity*=(0,a.getRandom)()))}isEnabled(e){const t=e.options.tilt?.animation;return!e.destroyed&&!e.spawning&&!!t?.enable}loadOptions(e,...t){(0,s.loadOptionProperty)(e,"tilt",l.Tilt,...t)}update(e,t){this.isEnabled(e)&&e.tilt&&(0,u.updateAnimation)(e,e.tilt,!1,i.DestroyType.none,t)}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{Tilt:()=>l});var n=r(1042),i=r(1024),o=r(999),a=r(1129),s=r(1130);class l extends n.ValueWithRandom{animation=new s.TiltAnimation;direction=a.TiltDirection.clockwise;enable=!1;load(e){super.load(e),(0,o.isNull)(e)||(this.animation.load(e.animation),(0,i.loadProperty)(this,"direction",e.direction),(0,i.loadProperty)(this,"enable",e.enable))}}},(e,t,r)=>{"use strict";var n;r.r(t),r.d(t,{TiltDirection:()=>n}),function(e){e.clockwise="clockwise",e.counterClockwise="counter-clockwise",e.random="random"}(n||(n={}))},(e,t,r)=>{"use strict";r.r(t),r.d(t,{TiltAnimation:()=>o});var n=r(1024),i=r(999);class o{decay=0;enable=!1;speed=0;sync=!1;load(e){(0,i.isNull)(e)||((0,n.loadProperty)(this,"enable",e.enable),(0,n.loadRangeProperty)(this,"speed",e.speed),(0,n.loadRangeProperty)(this,"decay",e.decay),(0,n.loadProperty)(this,"sync",e.sync))}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{loadWobbleUpdater:()=>i});var n=r(1132);async function i(e){e.checkVersion("4.4.0"),await e.pluginManager.register(e=>{e.pluginManager.addParticleUpdater("wobble",e=>Promise.resolve(new n.WobbleUpdater(e)))})}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{WobbleUpdater:()=>l});var n=r(994),i=r(996),o=r(1024),a=r(1133),s=r(1135);class l{#d;constructor(e){this.#d=e}init(e){const t=e.options.wobble;e.wobble=t?.enable?{angle:(0,i.getRandom)()*n.doublePI,angleSpeed:(0,i.getRangeValue)(t.speed.angle)/360,moveSpeed:(0,i.getRangeValue)(t.speed.move)/10}:{angle:0,angleSpeed:0,moveSpeed:0},e.retina.wobbleDistance=(0,i.getRangeValue)(t?.distance??0)*this.#d.retina.pixelRatio}isEnabled(e){return!e.destroyed&&!e.spawning&&!!e.options.wobble?.enable}loadOptions(e,...t){(0,o.loadOptionProperty)(e,"wobble",a.Wobble,...t)}update(e,t){this.isEnabled(e)&&(0,s.updateWobble)(this.#d,e,t)}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{Wobble:()=>a});var n=r(1024),i=r(999),o=r(1134);class a{distance=5;enable=!1;speed=new o.WobbleSpeed;load(e){if(!(0,i.isNull)(e)&&((0,n.loadRangeProperty)(this,"distance",e.distance),(0,n.loadProperty)(this,"enable",e.enable),void 0!==e.speed))if((0,i.isNumber)(e.speed))this.speed.load({angle:e.speed});else{const t=e.speed;"min"in t?this.speed.load({angle:t}):this.speed.load(e.speed)}}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{WobbleSpeed:()=>o});var n=r(1024),i=r(999);class o{angle=50;move=10;load(e){(0,i.isNull)(e)||((0,n.loadRangeProperty)(this,"angle",e.angle),(0,n.loadRangeProperty)(this,"move",e.move))}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{updateWobble:()=>a});var n=r(994);const i=0,o=60;function a(e,t,r){const{wobble:a}=t.options,{wobble:s}=t;if(!a?.enable||!s)return;const l=e.retina.reduceFactor,c=s.angleSpeed*r.factor*l,u=s.moveSpeed*r.factor*l*(t.retina.wobbleDistance??i)/(n.millisecondsToSeconds/o),p=n.doublePI,{position:d}=t;s.angle+=c,s.angle>p&&(s.angle-=p),d.x+=u*Math.cos(s.angle),d.y+=u*Math.abs(Math.sin(s.angle))}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{options:()=>n});const n={palette:"confetti",background:{color:{value:""}},fullScreen:{enable:!0,zIndex:100},particles:{number:{value:0},shape:{type:["square","circle"]},opacity:{value:{min:0,max:1},animation:{enable:!0,speed:.5,startValue:"max",destroy:"min"}},size:{value:5},links:{enable:!1},life:{duration:{sync:!0,value:10/3},count:1},move:{angle:{value:45,offset:0},drift:0,enable:!0,gravity:{enable:!0,acceleration:9.81},speed:45,decay:.1,direction:-90,random:!0,straight:!1,outModes:{default:"destroy",top:"none"}},rotate:{value:{min:0,max:360},direction:"random",animation:{enable:!0,speed:60}},tilt:{direction:"random",enable:!0,value:{min:0,max:360},animation:{enable:!0,speed:60}}
31,roll:{darken:{enable:!0,value:25},enable:!0,speed:{min:15,max:25}},wobble:{distance:30,enable:!0,speed:{min:-15,max:15}}},motion:{disable:!0},emitters:{name:"confetti",startCount:50,position:{x:50,y:50},size:{width:0,height:0},rate:{delay:0,quantity:0},life:{duration:.1,count:1}}}},(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=m(r(1138)),i=m(r(1174)),o=m(r(1176)),a=m(r(1183)),s=m(r(1187)),l=m(r(1188)),c=m(r(1192)),u=m(r(1225)),p=m(r(341)),d=m(r(782)),h=m(r(1233)),f=m(r(1234));function m(e){return e&&e.__esModule?e:{default:e}}var g=function(e){function t(){return(0,s.default)(this,t),(0,c.default)(this,(t.__proto__||(0,a.default)(t)).apply(this,arguments))}return(0,u.default)(t,e),(0,l.default)(t,[{key:"componentDidMount",value:function(){var e=this.props,t=e.options,r=e.eventListeners,n=t.loop,i=t.autoplay,a=t.animationData,s=t.path,l=t.renderer,c=void 0===l?"svg":l,u=t.rendererSettings,p=t.assetsPath;this.options={container:this.el,path:s,renderer:c,loop:!1!==n,autoplay:!1!==i,animationData:a,rendererSettings:u,assetsPath:p},this.options=(0,o.default)({},this.options,t),this.anim=h.default.loadAnimation(this.options),this.setSpeed(),this.setDirection(),this.animApi=f.default.createAnimationApi(this.anim),this.registerEvents(r),this.setAnimationControl(),this.props.isStopped?this.stops():this.props.segments?this.playSegments(!0):this.play()}},{key:"componentWillUpdate",value:function(e){this.options.animationData!==e.options.animationData&&(this.deRegisterEvents(this.props.eventListeners),this.destroy(),this.options=(0,o.default)({},this.options,e.options),this.anim=h.default.loadAnimation(this.options),this.animApi=f.default.createAnimationApi(this.anim),this.registerEvents(e.eventListeners))}},{key:"componentDidUpdate",value:function(e){if(void 0!==this.props.options.loop&&(this.anim.loop=this.props.options.loop),this.props.isStopped)this.stop();else if(this.props.segments){if((0,i.default)(this.props.segments)===(0,i.default)(e.segments))return;this.playSegments(this.props.forceSegments)}else this.play();this.setAnimationControl(),this.pause(),this.setSpeed(),this.setDirection()}},{key:"componentWillUnmount",value:function(){this.deRegisterEvents(this.props.eventListeners),this.destroy(),this.options.animationData=null,this.anim=null,this.animApi=null}},{key:"setSpeed",value:function(){this.anim.setSpeed(this.props.speed)}},{key:"setDirection",value:function(){this.anim.setDirection(this.props.direction)}},{key:"setAnimationControl",value:function(){var e=this,t=this.props.animationControl;t&&(0,n.default)(t).forEach(function(r){var n=e.animApi.getKeyPath(r),i=t[r];e.animApi.addValueCallback(n,function(){return i})})}},{key:"play",value:function(){this.anim.play()}},{key:"playSegments",value:function(e){this.anim.playSegments(this.props.segments,e)}},{key:"stop",value:function(){this.anim.stop()}},{key:"pause",value:function(){(this.props.isPaused&&!this.anim.isPaused||!this.props.isPaused&&this.anim.isPaused)&&this.anim.pause()}},{key:"destroy",value:function(){this.anim.destroy()}},{key:"registerEvents",value:function(e){var t=this;e.forEach(function(e){t.anim.addEventListener(e.eventName,e.callback)})}},{key:"deRegisterEvents",value:function(e){var t=this;e.forEach(function(e){t.anim.removeEventListener(e.eventName,e.callback)})}},{key:"render",value:function(){var e=this,t=this.props,r=t.width,n=t.height,i=t.ariaRole,a=t.ariaLabel,s=t.title,l=t.tabIndex,c=function(e){return"number"==typeof e?e+"px":e||"100%"},u=(0,o.default)({width:c(r),height:c(n),overflow:"hidden",margin:"0 auto",outline:"none"},this.props.style);return p.default.createElement("div",{ref:function(t){e.el=t},style:u,title:s,role:i,"aria-label":a,tabIndex:l})}}]),t}(p.default.Component);t.default=g,g.propTypes={eventListeners:d.default.arrayOf(d.default.object),options:d.default.object.isRequired,height:d.default.oneOfType([d.default.string,d.default.number]),width:d.default.oneOfType([d.default.string,d.default.number]),isStopped:d.default.bool,isPaused:d.default.bool,speed:d.default.number,segments:d.default.arrayOf(d.default.number),forceSegments:d.default.bool,direction:d.default.number,ariaRole:d.default.string,ariaLabel:d.default.string,title:d.default.string,style:d.default.string,tabIndex:d.default.oneOfType([d.default.number,d.default.string])},g.defaultProps={eventListeners:[],isStopped:!1,isPaused:!1,speed:1,ariaRole:"button",ariaLabel:"animation",title:"",tabIndex:0}},(e,t,r)=>{e.exports={default:r(1139),__esModule:!0}},(e,t,r)=>{r(1140),e.exports=r(1155).Object.keys},(e,t,r)=>{var n=r(1141),i=r(1143);r(1160)("keys",function(){return function(e){return i(n(e))}})},(e,t,r)=>{var n=r(1142);e.exports=function(e){return Object(n(e))}},e=>{e.exports=function(e){if(null==e)throw TypeError("Can't call method on  "+e);return e}},(e,t,r)=>{var n=r(1144),i=r(1159);e.exports=Object.keys||function(e){return n(e,i)}},(e,t,r)=>{var n=r(1145),i=r(1146),o=r(1149)(!1),a=r(1153)("IE_PROTO");e.exports=function(e,t){var r,s=i(e),l=0,c=[];for(r in s)r!=a&&n(s,r)&&c.push(r);for(;t.length>l;
vendor: 4,908 bytes, line 31
31)n(s,r=t[l++])&&(~o(c,r)||c.push(r));return c}},e=>{var t={}.hasOwnProperty;e.exports=function(e,r){return t.call(e,r)}},(e,t,r)=>{var n=r(1147),i=r(1142);e.exports=function(e){return n(i(e))}},(e,t,r)=>{var n=r(1148);e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==n(e)?e.split(""):Object(e)}},e=>{var t={}.toString;e.exports=function(e){return t.call(e).slice(8,-1)}},(e,t,r)=>{var n=r(1146),i=r(1150),o=r(1152);e.exports=function(e){return function(t,r,a){var s,l=n(t),c=i(l.length),u=o(a,c);if(e&&r!=r){for(;c>u;)if((s=l[u++])!=s)return!0}else for(;c>u;u++)if((e||u in l)&&l[u]===r)return e||u||0;return!e&&-1}}},(e,t,r)=>{var n=r(1151),i=Math.min;e.exports=function(e){return e>0?i(n(e),9007199254740991):0}},e=>{var t=Math.ceil,r=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?r:t)(e)}},(e,t,r)=>{var n=r(1151),i=Math.max,o=Math.min;e.exports=function(e,t){return(e=n(e))<0?i(e+t,0):o(e,t)}},(e,t,r)=>{var n=r(1154)("keys"),i=r(1158);e.exports=function(e){return n[e]||(n[e]=i(e))}},(e,t,r)=>{var n=r(1155),i=r(1156),o="__core-js_shared__",a=i[o]||(i[o]={});(e.exports=function(e,t){return a[e]||(a[e]=void 0!==t?t:{})})("versions",[]).push({version:n.version,mode:r(1157)?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},e=>{var t=e.exports={version:"2.6.12"};"number"==typeof __e&&(__e=t)},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)},e=>{e.exports=!0},e=>{var t=0,r=Math.random();e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++t+r).toString(36))}},e=>{e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},(e,t,r)=>{var n=r(1161),i=r(1155),o=r(1170);e.exports=function(e,t){var r=(i.Object||{})[e]||Object[e],a={};a[e]=t(r),n(n.S+n.F*o(function(){r(1)}),"Object",a)}},(e,t,r)=>{var n=r(1156),i=r(1155),o=r(1162),a=r(1164),s=r(1145),l="prototype",c=function(e,t,r){var u,p,d,h=e&c.F,f=e&c.G,m=e&c.S,g=e&c.P,y=e&c.B,b=e&c.W,v=f?i:i[t]||(i[t]={}),_=v[l],S=f?n:m?n[t]:(n[t]||{})[l];for(u in f&&(r=t),r)(p=!h&&S&&void 0!==S[u])&&s(v,u)||(d=p?S[u]:r[u],v[u]=f&&"function"!=typeof S[u]?r[u]:y&&p?o(d,n):b&&S[u]==d?function(e){var t=function(t,r,n){if(this instanceof e){switch(arguments.length){case 0:return new e;case 1:return new e(t);case 2:return new e(t,r)}return new e(t,r,n)}return e.apply(this,arguments)};return t[l]=e[l],t}(d):g&&"function"==typeof d?o(Function.call,d):d,g&&((v.virtual||(v.virtual={}))[u]=d,e&c.R&&_&&!_[u]&&a(_,u,d)))};c.F=1,c.G=2,c.S=4,c.P=8,c.B=16,c.W=32,c.U=64,c.R=128,e.exports=c},(e,t,r)=>{var n=r(1163);e.exports=function(e,t,r){if(n(e),void 0===t)return e;switch(r){case 1:return function(r){return e.call(t,r)};case 2:return function(r,n){return e.call(t,r,n)};case 3:return function(r,n,i){return e.call(t,r,n,i)}}return function(){return e.apply(t,arguments)}}},e=>{e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},(e,t,r)=>{var n=r(1165),i=r(1173);e.exports=r(1169)?function(e,t,r){return n.f(e,t,i(1,r))}:function(e,t,r){return e[t]=r,e}},(e,t,r)=>{var n=r(1166),i=r(1168),o=r(1172),a=Object.defineProperty;t.f=r(1169)?Object.defineProperty:function(e,t,r){if(n(e),t=o(t,!0),n(r),i)try{return a(e,t,r)}catch(e){}if("get"in r||"set"in r)throw TypeError("Accessors not supported!");return"value"in r&&(e[t]=r.value),e}},(e,t,r)=>{var n=r(1167);e.exports=function(e){if(!n(e))throw TypeError(e+" is not an object!");return e}},e=>{e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},(e,t,r)=>{e.exports=!r(1169)&&!r(1170)(function(){return 7!=Object.defineProperty(r(1171)("div"),"a",{get:function(){return 7}}).a})},(e,t,r)=>{e.exports=!r(1170)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},e=>{e.exports=function(e){try{return!!e()}catch(e){return!0}}},(e,t,r)=>{var n=r(1167),i=r(1156).document,o=n(i)&&n(i.createElement);e.exports=function(e){return o?i.createElement(e):{}}},(e,t,r)=>{var n=r(1167);e.exports=function(e,t){if(!n(e))return e;var r,i;if(t&&"function"==typeof(r=e.toString)&&!n(i=r.call(e)))return i;if("function"==typeof(r=e.valueOf)&&!n(i=r.call(e)))return i;if(!t&&"function"==typeof(r=e.toString)&&!n(i=r.call(e)))return i;throw TypeError("Can't convert object to primitive value")}},e=>{e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},(e,t,r)=>{e.exports={default:r(1175),__esModule:!0}},(e,t,r)=>{var n=r(1155),i=n.JSON||(n.JSON={stringify:JSON.stringify});e.exports=function(e){return i.stringify.apply(i,arguments)}},(e,t,r)=>{"use strict";t.__esModule=!0;var n,i=r(1177),o=(n=i)&&n.__esModule?n:{default:n};t.default=o.default||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];
vendor: 5,585 bytes, line 31
31for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}},(e,t,r)=>{e.exports={default:r(1178),__esModule:!0}},(e,t,r)=>{r(1179),e.exports=r(1155).Object.assign},(e,t,r)=>{var n=r(1161);n(n.S+n.F,"Object",{assign:r(1180)})},(e,t,r)=>{"use strict";var n=r(1169),i=r(1143),o=r(1181),a=r(1182),s=r(1141),l=r(1147),c=Object.assign;e.exports=!c||r(1170)(function(){var e={},t={},r=Symbol(),n="abcdefghijklmnopqrst";return e[r]=7,n.split("").forEach(function(e){t[e]=e}),7!=c({},e)[r]||Object.keys(c({},t)).join("")!=n})?function(e,t){for(var r=s(e),c=arguments.length,u=1,p=o.f,d=a.f;c>u;)for(var h,f=l(arguments[u++]),m=p?i(f).concat(p(f)):i(f),g=m.length,y=0;g>y;)h=m[y++],n&&!d.call(f,h)||(r[h]=f[h]);return r}:c},(e,t)=>{t.f=Object.getOwnPropertySymbols},(e,t)=>{t.f={}.propertyIsEnumerable},(e,t,r)=>{e.exports={default:r(1184),__esModule:!0}},(e,t,r)=>{r(1185),e.exports=r(1155).Object.getPrototypeOf},(e,t,r)=>{var n=r(1141),i=r(1186);r(1160)("getPrototypeOf",function(){return function(e){return i(n(e))}})},(e,t,r)=>{var n=r(1145),i=r(1141),o=r(1153)("IE_PROTO"),a=Object.prototype;e.exports=Object.getPrototypeOf||function(e){return e=i(e),n(e,o)?e[o]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?a:null}},(e,t)=>{"use strict";t.__esModule=!0,t.default=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}},(e,t,r)=>{"use strict";t.__esModule=!0;var n,i=r(1189),o=(n=i)&&n.__esModule?n:{default:n};t.default=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),(0,o.default)(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}()},(e,t,r)=>{e.exports={default:r(1190),__esModule:!0}},(e,t,r)=>{r(1191);var n=r(1155).Object;e.exports=function(e,t,r){return n.defineProperty(e,t,r)}},(e,t,r)=>{var n=r(1161);n(n.S+n.F*!r(1169),"Object",{defineProperty:r(1165).f})},(e,t,r)=>{"use strict";t.__esModule=!0;var n,i=r(1193),o=(n=i)&&n.__esModule?n:{default:n};t.default=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}},(e,t,r)=>{"use strict";t.__esModule=!0;var n=a(r(1194)),i=a(r(1212)),o="function"==typeof i.default&&"symbol"==typeof n.default?function(e){return typeof e}:function(e){return e&&"function"==typeof i.default&&e.constructor===i.default&&e!==i.default.prototype?"symbol":typeof e};function a(e){return e&&e.__esModule?e:{default:e}}t.default="function"==typeof i.default&&"symbol"===o(n.default)?function(e){return void 0===e?"undefined":o(e)}:function(e){return e&&"function"==typeof i.default&&e.constructor===i.default&&e!==i.default.prototype?"symbol":void 0===e?"undefined":o(e)}},(e,t,r)=>{e.exports={default:r(1195),__esModule:!0}},(e,t,r)=>{r(1196),r(1207),e.exports=r(1211).f("iterator")},(e,t,r)=>{"use strict";var n=r(1197)(!0);r(1198)(String,"String",function(e){this._t=String(e),this._i=0},function(){var e,t=this._t,r=this._i;return r>=t.length?{value:void 0,done:!0}:(e=n(t,r),this._i+=e.length,{value:e,done:!1})})},(e,t,r)=>{var n=r(1151),i=r(1142);e.exports=function(e){return function(t,r){var o,a,s=String(i(t)),l=n(r),c=s.length;return l<0||l>=c?e?"":void 0:(o=s.charCodeAt(l))<55296||o>56319||l+1===c||(a=s.charCodeAt(l+1))<56320||a>57343?e?s.charAt(l):o:e?s.slice(l,l+2):a-56320+(o-55296<<10)+65536}}},(e,t,r)=>{"use strict";var n=r(1157),i=r(1161),o=r(1199),a=r(1164),s=r(1200),l=r(1201),c=r(1205),u=r(1186),p=r(1206)("iterator"),d=!([].keys&&"next"in[].keys()),h="keys",f="values",m=function(){return this};e.exports=function(e,t,r,g,y,b,v){l(r,t,g);var _,S,E,T=function(e){if(!d&&e in I)return I[e];switch(e){case h:case f:return function(){return new r(this,e)}}return function(){return new r(this,e)}},w=t+" Iterator",x=y==f,O=!1,I=e.prototype,A=I[p]||I["@@iterator"]||y&&I[y],k=A||T(y),R=y?x?T("entries"):k:void 0,C="Array"==t&&I.entries||A;if(C&&(E=u(C.call(new e)))!==Object.prototype&&E.next&&(c(E,w,!0),n||"function"==typeof E[p]||a(E,p,m)),x&&A&&A.name!==f&&(O=!0,k=function(){return A.call(this)}),n&&!v||!d&&!O&&I[p]||a(I,p,k),s[t]=k,s[w]=m,y)if(_={values:x?k:T(f),keys:b?k:T(h),entries:R},v)for(S in _)S in I||o(I,S,_[S]);else i(i.P+i.F*(d||O),t,_);return _}},(e,t,r)=>{e.exports=r(1164)},e=>{e.exports={}},(e,t,r)=>{"use strict";var n=r(1202),i=r(1173),o=r(1205),a={};r(1164)(a,r(1206)("iterator"),function(){return this}),e.exports=function(e,t,r){e.prototype=n(a,{next:i(1,r)}),o(e,t+" Iterator")}},(e,t,r)=>{var n=r(1166),i=r(1203),o=r(1159),a=r(1153)("IE_PROTO"),s=function(){},l="prototype",c=function(){var e,t=r(1171)("iframe"),n=o.length;for(t.style.display="none",r(1204).appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write("<script>document.F=Object<\/script>"),e.close(),c=e.F;n--;)delete c[l][o[n]];return c()};e.exports=Object.create||function(e,t){var r;return null!==e?(s[l]=n(e),r=new s,s[l]=null,r[a]=e):r=c(),void 0===t?r:i(r,t)}},(e,t,r)=>{var n=r(1165),i=r(1166),o=r(1143);e.exports=r(1169)?Object.defineProperties:function(e,t){i(e);for(var r,a=o(t),s=a.length,l=0;s>l;)n.f(e,r=a[l++],t[r]);return e}},(e,t,r)=>{var n=r(1156).document;e.exports=n&&n.documentElement},(e,t,r)=>{var n=r(1165).f,i=r(1145),o=r(1206)("toStringTag");e.exports=function(e,t,r){e&&!i(e=r?e:e.prototype,o)&&n(e,o,{configurable:!0,value:t})}},(e,t,r)=>{var n=r(1154)("wks"),i=r(1158),o=r(1156).Symbol,a="function"==typeof o;
vendor: 4,965 bytes, line 31
31(e.exports=function(e){return n[e]||(n[e]=a&&o[e]||(a?o:i)("Symbol."+e))}).store=n},(e,t,r)=>{r(1208);for(var n=r(1156),i=r(1164),o=r(1200),a=r(1206)("toStringTag"),s="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),l=0;l<s.length;l++){var c=s[l],u=n[c],p=u&&u.prototype;p&&!p[a]&&i(p,a,c),o[c]=o.Array}},(e,t,r)=>{"use strict";var n=r(1209),i=r(1210),o=r(1200),a=r(1146);e.exports=r(1198)(Array,"Array",function(e,t){this._t=a(e),this._i=0,this._k=t},function(){var e=this._t,t=this._k,r=this._i++;return!e||r>=e.length?(this._t=void 0,i(1)):i(0,"keys"==t?r:"values"==t?e[r]:[r,e[r]])},"values"),o.Arguments=o.Array,n("keys"),n("values"),n("entries")},e=>{e.exports=function(){}},e=>{e.exports=function(e,t){return{value:t,done:!!e}}},(e,t,r)=>{t.f=r(1206)},(e,t,r)=>{e.exports={default:r(1213),__esModule:!0}},(e,t,r)=>{r(1214),r(1222),r(1223),r(1224),e.exports=r(1155).Symbol},(e,t,r)=>{"use strict";var n=r(1156),i=r(1145),o=r(1169),a=r(1161),s=r(1199),l=r(1215).KEY,c=r(1170),u=r(1154),p=r(1205),d=r(1158),h=r(1206),f=r(1211),m=r(1216),g=r(1217),y=r(1218),b=r(1166),v=r(1167),_=r(1141),S=r(1146),E=r(1172),T=r(1173),w=r(1202),x=r(1219),O=r(1221),I=r(1181),A=r(1165),k=r(1143),R=O.f,C=A.f,P=x.f,D=n.Symbol,M=n.JSON,N=M&&M.stringify,L="prototype",F=h("_hidden"),B=h("toPrimitive"),U={}.propertyIsEnumerable,j=u("symbol-registry"),H=u("symbols"),V=u("op-symbols"),z=Object[L],G="function"==typeof D&&!!I.f,q=n.QObject,$=!q||!q[L]||!q[L].findChild,W=o&&c(function(){return 7!=w(C({},"a",{get:function(){return C(this,"a",{value:7}).a}})).a})?function(e,t,r){var n=R(z,t);n&&delete z[t],C(e,t,r),n&&e!==z&&C(z,t,n)}:C,Y=function(e){var t=H[e]=w(D[L]);return t._k=e,t},K=G&&"symbol"==typeof D.iterator?function(e){return"symbol"==typeof e}:function(e){return e instanceof D},J=function(e,t,r){return e===z&&J(V,t,r),b(e),t=E(t,!0),b(r),i(H,t)?(r.enumerable?(i(e,F)&&e[F][t]&&(e[F][t]=!1),r=w(r,{enumerable:T(0,!1)})):(i(e,F)||C(e,F,T(1,{})),e[F][t]=!0),W(e,t,r)):C(e,t,r)},Q=function(e,t){b(e);for(var r,n=g(t=S(t)),i=0,o=n.length;o>i;)J(e,r=n[i++],t[r]);return e},X=function(e){var t=U.call(this,e=E(e,!0));return!(this===z&&i(H,e)&&!i(V,e))&&(!(t||!i(this,e)||!i(H,e)||i(this,F)&&this[F][e])||t)},Z=function(e,t){if(e=S(e),t=E(t,!0),e!==z||!i(H,t)||i(V,t)){var r=R(e,t);return!r||!i(H,t)||i(e,F)&&e[F][t]||(r.enumerable=!0),r}},ee=function(e){for(var t,r=P(S(e)),n=[],o=0;r.length>o;)i(H,t=r[o++])||t==F||t==l||n.push(t);return n},te=function(e){for(var t,r=e===z,n=P(r?V:S(e)),o=[],a=0;n.length>a;)!i(H,t=n[a++])||r&&!i(z,t)||o.push(H[t]);return o};G||(s((D=function(){if(this instanceof D)throw TypeError("Symbol is not a constructor!");var e=d(arguments.length>0?arguments[0]:void 0),t=function(r){this===z&&t.call(V,r),i(this,F)&&i(this[F],e)&&(this[F][e]=!1),W(this,e,T(1,r))};return o&&$&&W(z,e,{configurable:!0,set:t}),Y(e)})[L],"toString",function(){return this._k}),O.f=Z,A.f=J,r(1220).f=x.f=ee,r(1182).f=X,I.f=te,o&&!r(1157)&&s(z,"propertyIsEnumerable",X,!0),f.f=function(e){return Y(h(e))}),a(a.G+a.W+a.F*!G,{Symbol:D});for(var re="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),ne=0;re.length>ne;)h(re[ne++]);for(var ie=k(h.store),oe=0;ie.length>oe;)m(ie[oe++]);a(a.S+a.F*!G,"Symbol",{for:function(e){return i(j,e+="")?j[e]:j[e]=D(e)},keyFor:function(e){if(!K(e))throw TypeError(e+" is not a symbol!");for(var t in j)if(j[t]===e)return t},useSetter:function(){$=!0},useSimple:function(){$=!1}}),a(a.S+a.F*!G,"Object",{create:function(e,t){return void 0===t?w(e):Q(w(e),t)},defineProperty:J,defineProperties:Q,getOwnPropertyDescriptor:Z,getOwnPropertyNames:ee,getOwnPropertySymbols:te});var ae=c(function(){I.f(1)});a(a.S+a.F*ae,"Object",{getOwnPropertySymbols:function(e){return I.f(_(e))}}),M&&a(a.S+a.F*(!G||c(function(){var e=D();return"[null]"!=N([e])||"{}"!=N({a:e})||"{}"!=N(Object(e))})),"JSON",{stringify:function(e){for(var t,r,n=[e],i=1;arguments.length>i;)n.push(arguments[i++]);if(r=t=n[1],(v(t)||void 0!==e)&&!K(e))return y(t)||(t=function(e,t){if("function"==typeof r&&(t=r.call(this,e,t)),!K(t))return t}),n[1]=t,N.apply(M,n)}}),D[L][B]||r(1164)(D[L],B,D[L].valueOf),p(D,"Symbol"),p(Math,"Math",!0),p(n.JSON,"JSON",!0)},(e,t,r)=>{var n=r(1158)("meta"),i=r(1167),o=r(1145),a=r(1165).f,s=0,l=Object.isExtensible||function(){return!0},c=!r(1170)(function(){return l(Object.preventExtensions({}))}),u=function(e){a(e,n,{value:{i:"O"+ ++s,w:{}}})},p=e.exports={KEY:n,NEED:!1,fastKey:function(e,t){if(!i(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;
vendor: 9,691 bytes, line 31
31if(!o(e,n)){if(!l(e))return"F";if(!t)return"E";u(e)}return e[n].i},getWeak:function(e,t){if(!o(e,n)){if(!l(e))return!0;if(!t)return!1;u(e)}return e[n].w},onFreeze:function(e){return c&&p.NEED&&l(e)&&!o(e,n)&&u(e),e}}},(e,t,r)=>{var n=r(1156),i=r(1155),o=r(1157),a=r(1211),s=r(1165).f;e.exports=function(e){var t=i.Symbol||(i.Symbol=o?{}:n.Symbol||{});"_"==e.charAt(0)||e in t||s(t,e,{value:a.f(e)})}},(e,t,r)=>{var n=r(1143),i=r(1181),o=r(1182);e.exports=function(e){var t=n(e),r=i.f;if(r)for(var a,s=r(e),l=o.f,c=0;s.length>c;)l.call(e,a=s[c++])&&t.push(a);return t}},(e,t,r)=>{var n=r(1148);e.exports=Array.isArray||function(e){return"Array"==n(e)}},(e,t,r)=>{var n=r(1146),i=r(1220).f,o={}.toString,a="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];e.exports.f=function(e){return a&&"[object Window]"==o.call(e)?function(e){try{return i(e)}catch(e){return a.slice()}}(e):i(n(e))}},(e,t,r)=>{var n=r(1144),i=r(1159).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return n(e,i)}},(e,t,r)=>{var n=r(1182),i=r(1173),o=r(1146),a=r(1172),s=r(1145),l=r(1168),c=Object.getOwnPropertyDescriptor;t.f=r(1169)?c:function(e,t){if(e=o(e),t=a(t,!0),l)try{return c(e,t)}catch(e){}if(s(e,t))return i(!n.f.call(e,t),e[t])}},()=>{},(e,t,r)=>{r(1216)("asyncIterator")},(e,t,r)=>{r(1216)("observable")},(e,t,r)=>{"use strict";t.__esModule=!0;var n=a(r(1226)),i=a(r(1230)),o=a(r(1193));function a(e){return e&&e.__esModule?e:{default:e}}t.default=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,o.default)(t)));e.prototype=(0,i.default)(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(n.default?(0,n.default)(e,t):e.__proto__=t)}},(e,t,r)=>{e.exports={default:r(1227),__esModule:!0}},(e,t,r)=>{r(1228),e.exports=r(1155).Object.setPrototypeOf},(e,t,r)=>{var n=r(1161);n(n.S,"Object",{setPrototypeOf:r(1229).set})},(e,t,r)=>{var n=r(1167),i=r(1166),o=function(e,t){if(i(e),!n(t)&&null!==t)throw TypeError(t+": can't set as prototype!")};e.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(e,t,n){try{(n=r(1162)(Function.call,r(1221).f(Object.prototype,"__proto__").set,2))(e,[]),t=!(e instanceof Array)}catch(e){t=!0}return function(e,r){return o(e,r),t?e.__proto__=r:n(e,r),e}}({},!1):void 0),check:o}},(e,t,r)=>{e.exports={default:r(1231),__esModule:!0}},(e,t,r)=>{r(1232);var n=r(1155).Object;e.exports=function(e,t){return n.create(e,t)}},(e,t,r)=>{var n=r(1161);n(n.S,"Object",{create:r(1202)})},function(module,exports,__webpack_require__){var factory;"undefined"!=typeof document&&"undefined"!=typeof navigator&&(factory=function(){"use strict";var svgNS="http://www.w3.org/2000/svg",locationHref="",_useWebWorker=!1,initialDefaultFrame=-999999,setWebWorker=function(e){_useWebWorker=!!e},getWebWorker=function(){return _useWebWorker},setLocationHref=function(e){locationHref=e},getLocationHref=function(){return locationHref};function createTag(e){return document.createElement(e)}function extendPrototype(e,t){var r,n,i=e.length;for(r=0;r<i;r+=1)for(var o in n=e[r].prototype)Object.prototype.hasOwnProperty.call(n,o)&&(t.prototype[o]=n[o])}function getDescriptor(e,t){return Object.getOwnPropertyDescriptor(e,t)}function createProxyFunction(e){function t(){}return t.prototype=e,t}var audioControllerFactory=function(){function e(e){this.audios=[],this.audioFactory=e,this._volume=1,this._isMuted=!1}return e.prototype={addAudio:function(e){this.audios.push(e)},pause:function(){var e,t=this.audios.length;for(e=0;e<t;e+=1)this.audios[e].pause()},resume:function(){var e,t=this.audios.length;for(e=0;e<t;e+=1)this.audios[e].resume()},setRate:function(e){var t,r=this.audios.length;for(t=0;t<r;t+=1)this.audios[t].setRate(e)},createAudio:function(e){return this.audioFactory?this.audioFactory(e):window.Howl?new window.Howl({src:[e]}):{isPlaying:!1,play:function(){this.isPlaying=!0},seek:function(){this.isPlaying=!1},playing:function(){},rate:function(){},setVolume:function(){}}},setAudioFactory:function(e){this.audioFactory=e},setVolume:function(e){this._volume=e,this._updateVolume()},mute:function(){this._isMuted=!0,this._updateVolume()},unmute:function(){this._isMuted=!1,this._updateVolume()},getVolume:function(){return this._volume},_updateVolume:function(){var e,t=this.audios.length;for(e=0;e<t;e+=1)this.audios[e].volume(this._volume*(this._isMuted?0:1))}},function(){return new e}}(),createTypedArray=function(){function e(e,t){var r,n=0,i=[];switch(e){case"int16":case"uint8c":r=1;break;default:r=1.1}for(n=0;n<t;n+=1)i.push(r);return i}return"function"==typeof Uint8ClampedArray&&"function"==typeof Float32Array?function(t,r){return"float32"===t?new Float32Array(r):"int16"===t?new Int16Array(r):"uint8c"===t?new Uint8ClampedArray(r):e(t,r)}:e}();function createSizedArray(e){return Array.apply(null,{length:e})}function _typeof$6(e){return _typeof$6="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},_typeof$6(e)}var subframeEnabled=!0,expressionsPlugin=null,expressionsInterfaces=null,idPrefix$1="",isSafari=/^((?!chrome|android).)*safari/i.test(navigator.userAgent),_shouldRoundValues=!1,bmPow=Math.pow,bmSqrt=Math.sqrt,bmFloor=Math.floor,bmMax=Math.max,bmMin=Math.min,BMMath={};function ProjectInterface$1(){return{}}!function(){var e,t=["abs","acos","acosh","asin","asinh","atan","atanh","atan2","ceil","cbrt","expm1","clz32","cos","cosh","exp","floor","fround","hypot","imul","log","log1p","log2","log10","max","min","pow","random","round","sign","sin","sinh","sqrt","tan","tanh","trunc","E","LN10","LN2","LOG10E","LOG2E","PI","SQRT1_2","SQRT2"],r=t.length;for(e=0;e<r;e+=1)BMMath[t[e]]=Math[t[e]]}(),BMMath.random=Math.random,BMMath.abs=function(e){if("object"===_typeof$6(e)&&e.length){var t,r=createSizedArray(e.length),n=e.length;for(t=0;t<n;t+=1)r[t]=Math.abs(e[t]);return r}return Math.abs(e)};var defaultCurveSegments=150,degToRads=Math.PI/180,roundCorner=.5519;function roundValues(e){_shouldRoundValues=!!e}function bmRnd(e){return _shouldRoundValues?Math.round(e):e}function styleDiv(e){e.style.position="absolute",e.style.top=0,e.style.left=0,e.style.display="block",e.style.transformOrigin="0 0",e.style.webkitTransformOrigin="0 0",e.style.backfaceVisibility="visible",e.style.webkitBackfaceVisibility="visible",e.style.transformStyle="preserve-3d",e.style.webkitTransformStyle="preserve-3d",e.style.mozTransformStyle="preserve-3d"}function BMEnterFrameEvent(e,t,r,n){this.type=e,this.currentTime=t,this.totalTime=r,this.direction=n<0?-1:1}function BMCompleteEvent(e,t){this.type=e,this.direction=t<0?-1:1}function BMCompleteLoopEvent(e,t,r,n){this.type=e,this.currentLoop=r,this.totalLoops=t,this.direction=n<0?-1:1}function BMSegmentStartEvent(e,t,r){this.type=e,this.firstFrame=t,this.totalFrames=r}function BMDestroyEvent(e,t){this.type=e,this.target=t}function BMRenderFrameErrorEvent(e,t){this.type="renderFrameError",this.nativeError=e,this.currentTime=t}function BMConfigErrorEvent(e){this.type="configError",this.nativeError=e}function BMAnimationConfigErrorEvent(e,t){this.type=e,this.nativeError=t}var createElementID=(_count=0,function(){return idPrefix$1+"__lottie_element_"+(_count+=1)}),_count;function HSVtoRGB(e,t,r){var n,i,o,a,s,l,c,u;switch(l=r*(1-t),c=r*(1-(s=6*e-(a=Math.floor(6*e)))*t),u=r*(1-(1-s)*t),a%6){case 0:n=r,i=u,o=l;break;case 1:n=c,i=r,o=l;break;case 2:n=l,i=r,o=u;break;case 3:n=l,i=c,o=r;break;case 4:n=u,i=l,o=r;break;case 5:n=r,i=l,o=c}return[n,i,o]}function RGBtoHSV(e,t,r){var n,i=Math.max(e,t,r),o=Math.min(e,t,r),a=i-o,s=0===i?0:a/i,l=i/255;switch(i){case o:n=0;break;case e:n=t-r+a*(t<r?6:0),n/=6*a;break;case t:n=r-e+2*a,n/=6*a;break;case r:n=e-t+4*a,n/=6*a}return[n,s,l]}function addSaturationToRGB(e,t){var r=RGBtoHSV(255*e[0],255*e[1],255*e[2]);return r[1]+=t,r[1]>1?r[1]=1:r[1]<=0&&(r[1]=0),HSVtoRGB(r[0],r[1],r[2])}function addBrightnessToRGB(e,t){var r=RGBtoHSV(255*e[0],255*e[1],255*e[2]);return r[2]+=t,r[2]>1?r[2]=1:r[2]<0&&(r[2]=0),HSVtoRGB(r[0],r[1],r[2])}function addHueToRGB(e,t){var r=RGBtoHSV(255*e[0],255*e[1],255*e[2]);return r[0]+=t/360,r[0]>1?r[0]-=1:r[0]<0&&(r[0]+=1),HSVtoRGB(r[0],r[1],r[2])}var rgbToHex=function(){var e,t,r=[];for(e=0;e<256;e+=1)t=e.toString(16),r[e]=1===t.length?"0"+t:t;return function(e,t,n){return e<0&&(e=0),t<0&&(t=0),n<0&&(n=0),"#"+r[e]+r[t]+r[n]}}(),setSubframeEnabled=function(e){subframeEnabled=!!e},getSubframeEnabled=function(){return subframeEnabled},setExpressionsPlugin=function(e){expressionsPlugin=e},getExpressionsPlugin=function(){return expressionsPlugin},setExpressionInterfaces=function(e){expressionsInterfaces=e},getExpressionInterfaces=function(){return expressionsInterfaces},setDefaultCurveSegments=function(e){defaultCurveSegments=e},getDefaultCurveSegments=function(){return defaultCurveSegments},setIdPrefix=function(e){idPrefix$1=e},getIdPrefix=function(){return idPrefix$1};function createNS(e){return document.createElementNS(svgNS,e)}function _typeof$5(e){return _typeof$5="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},_typeof$5(e)}var dataManager=function(){var e,t,r=1,n=[],i={onmessage:function(){},postMessage:function(t){e({data:t})}},o={postMessage:function(e){i.onmessage({data:e})}};function a(){t||(t=function(t){if(window.Worker&&window.Blob&&getWebWorker()){var r=new Blob(["var _workerSelf = self;
31 self.onmessage = ",t.toString()],{type:"text/javascript"}),n=URL.createObjectURL(r);return new Worker(n)}return e=t,i}(function(e){if(o.dataManager||(o.dataManager=function(){function e(i,o){var a,s,l,c,u,d,h=i.length;for(s=0;s<h;s+=1)if("ks"in(a=i[s])&&!a.completed){if(a.completed=!0,a.hasMask){var f=a.masksProperties;for(c=f.length,l=0;l<c;l+=1)if(f[l].pt.k.i)n(f[l].pt.k);else for(d=f[l].pt.k.length,u=0;u<d;u+=1)f[l].pt.k[u].s&&n(f[l].pt.k[u].s[0]),f[l].pt.k[u].e&&n(f[l].pt.k[u].e[0])}0===a.ty?(a.layers=t(a.refId,o),e(a.layers,o)):4===a.ty?r(a.shapes):5===a.ty&&p(a)}}function t(e,t){var r=function(e,t){for(var r=0,n=t.length;r<n;){if(t[r].id===e)return t[r];r+=1}return null}(e,t);return r?r.layers.__used?JSON.parse(JSON.stringify(r.layers)):(r.layers.__used=!0,r.layers):null}function r(e){var t,i,o;for(t=e.length-1;t>=0;t-=1)if("sh"===e[t].ty)if(e[t].ks.k.i)n(e[t].ks.k);else for(o=e[t].ks.k.length,i=0;i<o;i+=1)e[t].ks.k[i].s&&n(e[t].ks.k[i].s[0]),e[t].ks.k[i].e&&n(e[t].ks.k[i].e[0]);else"gr"===e[t].ty&&r(e[t].it)}function n(e){var t,r=e.i.length;for(t=0;t<r;t+=1)e.i[t][0]+=e.v[t][0],e.i[t][1]+=e.v[t][1],e.o[t][0]+=e.v[t][0],e.o[t][1]+=e.v[t][1]}function i(e,t){var r=t?t.split("."):[100,100,100];return e[0]>r[0]||!(r[0]>e[0])&&(e[1]>r[1]||!(r[1]>e[1])&&(e[2]>r[2]||!(r[2]>e[2])&&null))}var o,a=function(){var e=[4,4,14];function t(e){var t=e.t.d;e.t.d={k:[{s:t,t:0}]}}function r(e){var r,n=e.length;for(r=0;r<n;r+=1)5===e[r].ty&&t(e[r])}return function(t){if(i(e,t.v)&&(r(t.layers),t.assets)){var n,o=t.assets.length;for(n=0;n<o;n+=1)t.assets[n].layers&&r(t.assets[n].layers)}}}(),s=(o=[4,7,99],function(e){if(e.chars&&!i(o,e.v)){var t,n=e.chars.length;for(t=0;t<n;t+=1){var a=e.chars[t];a.data&&a.data.shapes&&(r(a.data.shapes),a.data.ip=0,a.data.op=99999,a.data.st=0,a.data.sr=1,a.data.ks={p:{k:[0,0],a:0},s:{k:[100,100],a:0},a:{k:[0,0],a:0},r:{k:0,a:0},o:{k:100,a:0}},e.chars[t].t||(a.data.shapes.push({ty:"no"}),a.data.shapes[0].it.push({p:{k:[0,0],a:0},s:{k:[100,100],a:0},a:{k:[0,0],a:0},r:{k:0,a:0},o:{k:100,a:0},sk:{k:0,a:0},sa:{k:0,a:0},ty:"tr"})))}}}),l=function(){var e=[5,7,15];function t(e){var t=e.t.p;"number"==typeof t.a&&(t.a={a:0,k:t.a}),"number"==typeof t.p&&(t.p={a:0,k:t.p}),"number"==typeof t.r&&(t.r={a:0,k:t.r})}function r(e){var r,n=e.length;for(r=0;r<n;r+=1)5===e[r].ty&&t(e[r])}return function(t){if(i(e,t.v)&&(r(t.layers),t.assets)){var n,o=t.assets.length;for(n=0;n<o;n+=1)t.assets[n].layers&&r(t.assets[n].layers)}}}(),c=function(){var e=[4,1,9];function t(e){var r,n,i,o=e.length;for(r=0;r<o;r+=1)if("gr"===e[r].ty)t(e[r].it);else if("fl"===e[r].ty||"st"===e[r].ty)if(e[r].c.k&&e[r].c.k[0].i)for(i=e[r].c.k.length,n=0;n<i;n+=1)e[r].c.k[n].s&&(e[r].c.k[n].s[0]/=255,e[r].c.k[n].s[1]/=255,e[r].c.k[n].s[2]/=255,e[r].c.k[n].s[3]/=255),e[r].c.k[n].e&&(e[r].c.k[n].e[0]/=255,e[r].c.k[n].e[1]/=255,e[r].c.k[n].e[2]/=255,e[r].c.k[n].e[3]/=255);else e[r].c.k[0]/=255,e[r].c.k[1]/=255,e[r].c.k[2]/=255,e[r].c.k[3]/=255}function r(e){var r,n=e.length;for(r=0;r<n;r+=1)4===e[r].ty&&t(e[r].shapes)}return function(t){if(i(e,t.v)&&(r(t.layers),t.assets)){var n,o=t.assets.length;for(n=0;n<o;n+=1)t.assets[n].layers&&r(t.assets[n].layers)}}}(),u=function(){var e=[4,4,18];function t(e){var r,n,i;for(r=e.length-1;r>=0;r-=1)if("sh"===e[r].ty)if(e[r].ks.k.i)e[r].ks.k.c=e[r].closed;else for(i=e[r].ks.k.length,n=0;n<i;n+=1)e[r].ks.k[n].s&&(e[r].ks.k[n].s[0].c=e[r].closed),e[r].ks.k[n].e&&(e[r].ks.k[n].e[0].c=e[r].closed);else"gr"===e[r].ty&&t(e[r].it)}function r(e){var r,n,i,o,a,s,l=e.length;for(n=0;n<l;n+=1){if((r=e[n]).hasMask){var c=r.masksProperties;for(o=c.length,i=0;i<o;i+=1)if(c[i].pt.k.i)c[i].pt.k.c=c[i].cl;else for(s=c[i].pt.k.length,a=0;a<s;a+=1)c[i].pt.k[a].s&&(c[i].pt.k[a].s[0].c=c[i].cl),c[i].pt.k[a].e&&(c[i].pt.k[a].e[0].c=c[i].cl)}4===r.ty&&t(r.shapes)}}return function(t){if(i(e,t.v)&&(r(t.layers),t.assets)){var n,o=t.assets.length;for(n=0;n<o;n+=1)t.assets[n].layers&&r(t.assets[n].layers)}}}();function p(e){0===e.t.a.length&&e.t.p}var d={completeData:function(r){r.__complete||(c(r),a(r),s(r),l(r),u(r),e(r.layers,r.assets),function(r,n){if(r){var i=0,o=r.length;for(i=0;i<o;i+=1)1===r[i].t&&(r[i].data.layers=t(r[i].data.refId,n),e(r[i].data.layers,n))}}(r.chars,r.assets),r.__complete=!0)}};return d.checkColors=c,d.checkChars=s,d.checkPathProperties=l,d.checkShapes=u,d.completeLayers=e,d}()),o.assetLoader||(o.assetLoader=function(){function e(e){var t=e.getResponseHeader("content-type");return t&&"json"===e.responseType&&-1!==t.indexOf("json")||e.response&&"object"===_typeof$5(e.response)?e.response:e.response&&"string"==typeof e.response?JSON.parse(e.response):e.responseText?JSON.parse(e.responseText):null}return{load:function(t,r,n,i){var o,a=new XMLHttpRequest;try{a.responseType="json"}catch(e){}a.onreadystatechange=function(){if(4===a.readyState)if(200===a.status)o=e(a),n(o);else try{o=e(a),n(o)}catch(e){i&&i(e)}};try{a.open(["G","E","T"].join(""),t,!0)}catch(e){a.open(["G","E","T"].join(""),r+"/"+t,!0)}a.send()}}}()),"loadAnimation"===e.data.type)o.assetLoader.load(e.data.path,e.data.fullPath,function(t){o.dataManager.completeData(t),o.postMessage({id:e.data.id,payload:t,status:"success"})},function(){o.postMessage({id:e.data.id,status:"error"})});else if("complete"===e.data.type){var t=e.data.animation;o.dataManager.completeData(t),o.postMessage({id:e.data.id,payload:t,status:"success"})}else"loadData"===e.data.type&&o.assetLoader.load(e.data.path,e.data.fullPath,function(t){o.postMessage({id:e.data.id,payload:t,status:"success"})},function(){o.postMessage({id:e.data.id,status:"error"})})}),t.onmessage=function(e){var t=e.data,r=t.id,i=n[r];n[r]=null,"success"===t.status?i.onComplete(t.payload):i.onError&&i.onError()})}function s(e,t){var i="processId_"+(r+=1);return n[i]={onComplete:e,onError:t},i}return{loadAnimation:function(e,r,n){a();var i=s(r,n);t.postMessage({type:"loadAnimation",path:e,fullPath:window.location.origin+window.location.pathname,id:i})}
vendor: 22,576 bytes, line 31
31,loadData:function(e,r,n){a();var i=s(r,n);t.postMessage({type:"loadData",path:e,fullPath:window.location.origin+window.location.pathname,id:i})},completeAnimation:function(e,r,n){a();var i=s(r,n);t.postMessage({type:"complete",animation:e,id:i})}}}(),ImagePreloader=function(){var e=function(){var e=createTag("canvas");e.width=1,e.height=1;var t=e.getContext("2d");return t.fillStyle="rgba(0,0,0,0)",t.fillRect(0,0,1,1),e}();function t(){this.loadedAssets+=1,this.loadedAssets===this.totalImages&&this.loadedFootagesCount===this.totalFootages&&this.imagesLoadedCb&&this.imagesLoadedCb(null)}function r(){this.loadedFootagesCount+=1,this.loadedAssets===this.totalImages&&this.loadedFootagesCount===this.totalFootages&&this.imagesLoadedCb&&this.imagesLoadedCb(null)}function n(e,t,r){var n="";if(e.e)n=e.p;else if(t){var i=e.p;-1!==i.indexOf("images/")&&(i=i.split("/")[1]),n=t+i}else n=r,n+=e.u?e.u:"",n+=e.p;return n}function i(e){var t=0,r=setInterval(function(){(e.getBBox().width||t>500)&&(this._imageLoaded(),clearInterval(r)),t+=1}.bind(this),50)}function o(e){var t={assetData:e},r=n(e,this.assetsPath,this.path);return dataManager.loadData(r,function(e){t.img=e,this._footageLoaded()}.bind(this),function(){t.img={},this._footageLoaded()}.bind(this)),t}function a(){this._imageLoaded=t.bind(this),this._footageLoaded=r.bind(this),this.testImageLoaded=i.bind(this),this.createFootageData=o.bind(this),this.assetsPath="",this.path="",this.totalImages=0,this.totalFootages=0,this.loadedAssets=0,this.loadedFootagesCount=0,this.imagesLoadedCb=null,this.images=[]}return a.prototype={loadAssets:function(e,t){var r;this.imagesLoadedCb=t;var n=e.length;for(r=0;r<n;r+=1)e[r].layers||(e[r].t&&"seq"!==e[r].t?3===e[r].t&&(this.totalFootages+=1,this.images.push(this.createFootageData(e[r]))):(this.totalImages+=1,this.images.push(this._createImageData(e[r]))))},setAssetsPath:function(e){this.assetsPath=e||""},setPath:function(e){this.path=e||""},loadedImages:function(){return this.totalImages===this.loadedAssets},loadedFootages:function(){return this.totalFootages===this.loadedFootagesCount},destroy:function(){this.imagesLoadedCb=null,this.images.length=0},getAsset:function(e){for(var t=0,r=this.images.length;t<r;){if(this.images[t].assetData===e)return this.images[t].img;t+=1}return null},createImgData:function(t){var r=n(t,this.assetsPath,this.path),i=createTag("img");i.crossOrigin="anonymous",i.addEventListener("load",this._imageLoaded,!1),i.addEventListener("error",function(){o.img=e,this._imageLoaded()}.bind(this),!1),i.src=r;var o={img:i,assetData:t};return o},createImageData:function(t){var r=n(t,this.assetsPath,this.path),i=createNS("image");isSafari?this.testImageLoaded(i):i.addEventListener("load",this._imageLoaded,!1),i.addEventListener("error",function(){o.img=e,this._imageLoaded()}.bind(this),!1),i.setAttributeNS("http://www.w3.org/1999/xlink","href",r),this._elementHelper.append?this._elementHelper.append(i):this._elementHelper.appendChild(i);var o={img:i,assetData:t};return o},imageLoaded:t,footageLoaded:r,setCacheType:function(e,t){"svg"===e?(this._elementHelper=t,this._createImageData=this.createImageData.bind(this)):this._createImageData=this.createImgData.bind(this)}},a}();function BaseEvent(){}BaseEvent.prototype={triggerEvent:function(e,t){if(this._cbs[e])for(var r=this._cbs[e],n=0;n<r.length;n+=1)r[n](t)},addEventListener:function(e,t){return this._cbs[e]||(this._cbs[e]=[]),this._cbs[e].push(t),function(){this.removeEventListener(e,t)}.bind(this)},removeEventListener:function(e,t){if(t){if(this._cbs[e]){for(var r=0,n=this._cbs[e].length;r<n;)this._cbs[e][r]===t&&(this._cbs[e].splice(r,1),r-=1,n-=1),r+=1;this._cbs[e].length||(this._cbs[e]=null)}}else this._cbs[e]=null}};var markerParser=function(){function e(e){for(var t,r=e.split("\r\n"),n={},i=0,o=0;o<r.length;o+=1)2===(t=r[o].split(":")).length&&(n[t[0]]=t[1].trim(),i+=1);if(0===i)throw new Error;return n}return function(t){for(var r=[],n=0;n<t.length;n+=1){var i=t[n],o={time:i.tm,duration:i.dr};try{o.payload=JSON.parse(t[n].cm)}catch(r){try{o.payload=e(t[n].cm)}catch(e){o.payload={name:t[n].cm}}}r.push(o)}return r}}(),ProjectInterface=function(){function e(e){this.compositions.push(e)}return function(){function t(e){for(var t=0,r=this.compositions.length;t<r;){if(this.compositions[t].data&&this.compositions[t].data.nm===e)return this.compositions[t].prepareFrame&&this.compositions[t].data.xt&&this.compositions[t].prepareFrame(this.currentFrame),this.compositions[t].compInterface;t+=1}return null}return t.compositions=[],t.currentFrame=0,t.registerComposition=e,t}}(),renderers={},registerRenderer=function(e,t){renderers[e]=t};function getRenderer(e){return renderers[e]}function getRegisteredRenderer(){if(renderers.canvas)return"canvas";for(var e in renderers)if(renderers[e])return e;return""}function _typeof$4(e){return _typeof$4="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},_typeof$4(e)}var AnimationItem=function(){this._cbs=[],this.name="",this.path="",this.isLoaded=!1,this.currentFrame=0,this.currentRawFrame=0,this.firstFrame=0,this.totalFrames=0,this.frameRate=0,this.frameMult=0,this.playSpeed=1,this.playDirection=1,this.playCount=0,this.animationData={},this.assets=[],this.isPaused=!0,this.autoplay=!1,this.loop=!0,this.renderer=null,this.animationID=createElementID(),this.assetsPath="",this.timeCompleted=0,this.segmentPos=0,this.isSubframeEnabled=getSubframeEnabled(),this.segments=[],this._idle=!0,this._completedLoop=!1,this.projectInterface=ProjectInterface(),this.imagePreloader=new ImagePreloader,this.audioController=audioControllerFactory(),this.markers=[],this.configAnimation=this.configAnimation.bind(this),this.onSetupError=this.onSetupError.bind(this),this.onSegmentComplete=this.onSegmentComplete.bind(this),this.drawnFrameEvent=new BMEnterFrameEvent("drawnFrame",0,0,0),this.expressionsPlugin=getExpressionsPlugin()};extendPrototype([BaseEvent],AnimationItem),AnimationItem.prototype.setParams=function(e){(e.wrapper||e.container)&&(this.wrapper=e.wrapper||e.container);var t="svg";e.animType?t=e.animType:e.renderer&&(t=e.renderer);var r=getRenderer(t);this.renderer=new r(this,e.rendererSettings),this.imagePreloader.setCacheType(t,this.renderer.globalData.defs),this.renderer.setProjectInterface(this.projectInterface),this.animType=t,""===e.loop||null===e.loop||void 0===e.loop||!0===e.loop?this.loop=!0:!1===e.loop?this.loop=!1:this.loop=parseInt(e.loop,10),this.autoplay=!("autoplay"in e)||e.autoplay,this.name=e.name?e.name:"",this.autoloadSegments=!Object.prototype.hasOwnProperty.call(e,"autoloadSegments")||e.autoloadSegments,this.assetsPath=e.assetsPath,this.initialSegment=e.initialSegment,e.audioFactory&&this.audioController.setAudioFactory(e.audioFactory),e.animationData?this.setupAnimation(e.animationData):e.path&&(-1!==e.path.lastIndexOf("\\")?this.path=e.path.substr(0,e.path.lastIndexOf("\\")+1):this.path=e.path.substr(0,e.path.lastIndexOf("/")+1),this.fileName=e.path.substr(e.path.lastIndexOf("/")+1),this.fileName=this.fileName.substr(0,this.fileName.lastIndexOf(".json")),dataManager.loadAnimation(e.path,this.configAnimation,this.onSetupError))},AnimationItem.prototype.onSetupError=function(){this.trigger("data_failed")},AnimationItem.prototype.setupAnimation=function(e){dataManager.completeAnimation(e,this.configAnimation)},AnimationItem.prototype.setData=function(e,t){t&&"object"!==_typeof$4(t)&&(t=JSON.parse(t));var r={wrapper:e,animationData:t},n=e.attributes;r.path=n.getNamedItem("data-animation-path")?n.getNamedItem("data-animation-path").value:n.getNamedItem("data-bm-path")?n.getNamedItem("data-bm-path").value:n.getNamedItem("bm-path")?n.getNamedItem("bm-path").value:"",r.animType=n.getNamedItem("data-anim-type")?n.getNamedItem("data-anim-type").value:n.getNamedItem("data-bm-type")?n.getNamedItem("data-bm-type").value:n.getNamedItem("bm-type")?n.getNamedItem("bm-type").value:n.getNamedItem("data-bm-renderer")?n.getNamedItem("data-bm-renderer").value:n.getNamedItem("bm-renderer")?n.getNamedItem("bm-renderer").value:getRegisteredRenderer()||"canvas";var i=n.getNamedItem("data-anim-loop")?n.getNamedItem("data-anim-loop").value:n.getNamedItem("data-bm-loop")?n.getNamedItem("data-bm-loop").value:n.getNamedItem("bm-loop")?n.getNamedItem("bm-loop").value:"";"false"===i?r.loop=!1:"true"===i?r.loop=!0:""!==i&&(r.loop=parseInt(i,10));var o=n.getNamedItem("data-anim-autoplay")?n.getNamedItem("data-anim-autoplay").value:n.getNamedItem("data-bm-autoplay")?n.getNamedItem("data-bm-autoplay").value:!n.getNamedItem("bm-autoplay")||n.getNamedItem("bm-autoplay").value;r.autoplay="false"!==o,r.name=n.getNamedItem("data-name")?n.getNamedItem("data-name").value:n.getNamedItem("data-bm-name")?n.getNamedItem("data-bm-name").value:n.getNamedItem("bm-name")?n.getNamedItem("bm-name").value:"","false"===(n.getNamedItem("data-anim-prerender")?n.getNamedItem("data-anim-prerender").value:n.getNamedItem("data-bm-prerender")?n.getNamedItem("data-bm-prerender").value:n.getNamedItem("bm-prerender")?n.getNamedItem("bm-prerender").value:"")&&(r.prerender=!1),r.path?this.setParams(r):this.trigger("destroy")},AnimationItem.prototype.includeLayers=function(e){e.op>this.animationData.op&&(this.animationData.op=e.op,this.totalFrames=Math.floor(e.op-this.animationData.ip));var t,r,n=this.animationData.layers,i=n.length,o=e.layers,a=o.length;for(r=0;r<a;r+=1)for(t=0;t<i;){if(n[t].id===o[r].id){n[t]=o[r];break}t+=1}if((e.chars||e.fonts)&&(this.renderer.globalData.fontManager.addChars(e.chars),this.renderer.globalData.fontManager.addFonts(e.fonts,this.renderer.globalData.defs)),e.assets)for(i=e.assets.length,t=0;t<i;t+=1)this.animationData.assets.push(e.assets[t]);this.animationData.__complete=!1,dataManager.completeAnimation(this.animationData,this.onSegmentComplete)},AnimationItem.prototype.onSegmentComplete=function(e){this.animationData=e;var t=getExpressionsPlugin();t&&t.initExpressions(this),this.loadNextSegment()},AnimationItem.prototype.loadNextSegment=function(){var e=this.animationData.segments;if(!e||0===e.length||!this.autoloadSegments)return this.trigger("data_ready"),void(this.timeCompleted=this.totalFrames);var t=e.shift();this.timeCompleted=t.time*this.frameRate;var r=this.path+this.fileName+"_"+this.segmentPos+".json";this.segmentPos+=1,dataManager.loadData(r,this.includeLayers.bind(this),function(){this.trigger("data_failed")}.bind(this))},AnimationItem.prototype.loadSegments=function(){this.animationData.segments||(this.timeCompleted=this.totalFrames),this.loadNextSegment()},AnimationItem.prototype.imagesLoaded=function(){this.trigger("loaded_images"),this.checkLoaded()},AnimationItem.prototype.preloadImages=function(){this.imagePreloader.setAssetsPath(this.assetsPath),this.imagePreloader.setPath(this.path),this.imagePreloader.loadAssets(this.animationData.assets,this.imagesLoaded.bind(this))},AnimationItem.prototype.configAnimation=function(e){if(this.renderer)try{this.animationData=e,this.initialSegment?(this.totalFrames=Math.floor(this.initialSegment[1]-this.initialSegment[0]),this.firstFrame=Math.round(this.initialSegment[0])):(this.totalFrames=Math.floor(this.animationData.op-this.animationData.ip),this.firstFrame=Math.round(this.animationData.ip)),this.renderer.configAnimation(e),e.assets||(e.assets=[]),this.assets=this.animationData.assets,this.frameRate=this.animationData.fr,this.frameMult=this.animationData.fr/1e3,this.renderer.searchExtraCompositions(e.assets),this.markers=markerParser(e.markers||[]),this.trigger("config_ready"),this.preloadImages(),this.loadSegments(),this.updaFrameModifier(),this.waitForFontsLoaded(),this.isPaused&&this.audioController.pause()}catch(e){this.triggerConfigError(e)}},AnimationItem.prototype.waitForFontsLoaded=function(){this.renderer&&(this.renderer.globalData.fontManager.isLoaded?this.checkLoaded():setTimeout(this.waitForFontsLoaded.bind(this),20))},AnimationItem.prototype.checkLoaded=function(){if(!this.isLoaded&&this.renderer.globalData.fontManager.isLoaded&&(this.imagePreloader.loadedImages()||"canvas"!==this.renderer.rendererType)&&this.imagePreloader.loadedFootages()){this.isLoaded=!0;var e=getExpressionsPlugin();e&&e.initExpressions(this),this.renderer.initItems(),setTimeout(function(){this.trigger("DOMLoaded")}.bind(this),0),this.gotoFrame(),this.autoplay&&this.play()}},AnimationItem.prototype.resize=function(e,t){var r="number"==typeof e?e:void 0,n="number"==typeof t?t:void 0;this.renderer.updateContainerSize(r,n)},AnimationItem.prototype.setSubframe=function(e){this.isSubframeEnabled=!!e},AnimationItem.prototype.gotoFrame=function(){this.currentFrame=this.isSubframeEnabled?this.currentRawFrame:~~this.currentRawFrame,this.timeCompleted!==this.totalFrames&&this.currentFrame>this.timeCompleted&&(this.currentFrame=this.timeCompleted),this.trigger("enterFrame"),this.renderFrame(),this.trigger("drawnFrame")},AnimationItem.prototype.renderFrame=function(){if(!1!==this.isLoaded&&this.renderer)try{this.expressionsPlugin&&this.expressionsPlugin.resetFrame(),this.renderer.renderFrame(this.currentFrame+this.firstFrame)}catch(e){this.triggerRenderFrameError(e)}},AnimationItem.prototype.play=function(e){e&&this.name!==e||!0===this.isPaused&&(this.isPaused=!1,this.trigger("_play"),this.audioController.resume(),this._idle&&(this._idle=!1,this.trigger("_active")))},AnimationItem.prototype.pause=function(e){e&&this.name!==e||!1===this.isPaused&&(this.isPaused=!0,this.trigger("_pause"),this._idle=!0,this.trigger("_idle"),this.audioController.pause())},AnimationItem.prototype.togglePause=function(e){e&&this.name!==e||(!0===this.isPaused?this.play():this.pause())},AnimationItem.prototype.stop=function(e){e&&this.name!==e||(this.pause(),this.playCount=0,this._completedLoop=!1,this.setCurrentRawFrameValue(0))},AnimationItem.prototype.getMarkerData=function(e){for(var t,r=0;r<this.markers.length;r+=1)if((t=this.markers[r]).payload&&t.payload.name===e)return t;return null},AnimationItem.prototype.goToAndStop=function(e,t,r){if(!r||this.name===r){var n=Number(e);if(isNaN(n)){var i=this.getMarkerData(e);i&&this.goToAndStop(i.time,!0)}else t?this.setCurrentRawFrameValue(e):this.setCurrentRawFrameValue(e*this.frameModifier);this.pause()}},AnimationItem.prototype.goToAndPlay=function(e,t,r){if(!r||this.name===r){var n=Number(e);if(isNaN(n)){var i=this.getMarkerData(e);i&&(i.duration?this.playSegments([i.time,i.time+i.duration],!0):this.goToAndStop(i.time,!0))}else this.goToAndStop(n,t,r);this.play()}},AnimationItem.prototype.advanceTime=function(e){if(!0!==this.isPaused&&!1!==this.isLoaded){var t=this.currentRawFrame+e*this.frameModifier,r=!1;t>=this.totalFrames-1&&this.frameModifier>0?this.loop&&this.playCount!==this.loop?t>=this.totalFrames?(this.playCount+=1,this.checkSegments(t%this.totalFrames)||(this.setCurrentRawFrameValue(t%this.totalFrames),this._completedLoop=!0,this.trigger("loopComplete"))):this.setCurrentRawFrameValue(t):this.checkSegments(t>this.totalFrames?t%this.totalFrames:0)||(r=!0,t=this.totalFrames-1):t<0?this.checkSegments(t%this.totalFrames)||(!this.loop||this.playCount--<=0&&!0!==this.loop?(r=!0,t=0):(this.setCurrentRawFrameValue(this.totalFrames+t%this.totalFrames),this._completedLoop?this.trigger("loopComplete"):this._completedLoop=!0)):this.setCurrentRawFrameValue(t),r&&(this.setCurrentRawFrameValue(t),this.pause(),this.trigger("complete"))}},AnimationItem.prototype.adjustSegment=function(e,t){this.playCount=0,e[1]<e[0]?(this.frameModifier>0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(-1)),this.totalFrames=e[0]-e[1],this.timeCompleted=this.totalFrames,this.firstFrame=e[1],this.setCurrentRawFrameValue(this.totalFrames-.001-t)):e[1]>e[0]&&(this.frameModifier<0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(1)),this.totalFrames=e[1]-e[0],this.timeCompleted=this.totalFrames,this.firstFrame=e[0],this.setCurrentRawFrameValue(.001+t)),this.trigger("segmentStart")},AnimationItem.prototype.setSegment=function(e,t){var r=-1;this.isPaused&&(this.currentRawFrame+this.firstFrame<e?r=e:this.currentRawFrame+this.firstFrame>t&&(r=t-e)),this.firstFrame=e,this.totalFrames=t-e,this.timeCompleted=this.totalFrames,-1!==r&&this.goToAndStop(r,!0)},AnimationItem.prototype.playSegments=function(e,t){if(t&&(this.segments.length=0),"object"===_typeof$4(e[0])){var r,n=e.length;for(r=0;r<n;r+=1)this.segments.push(e[r])}else this.segments.push(e);this.segments.length&&t&&this.adjustSegment(this.segments.shift(),0),this.isPaused&&this.play()},AnimationItem.prototype.resetSegments=function(e){this.segments.length=0,this.segments.push([this.animationData.ip,this.animationData.op]),e&&this.checkSegments(0)},AnimationItem.prototype.checkSegments=function(e){return!!this.segments.length&&(this.adjustSegment(this.segments.shift(),e),!0)},AnimationItem.prototype.destroy=function(e){e&&this.name!==e||!this.renderer||(this.renderer.destroy(),this.imagePreloader.destroy(),this.trigger("destroy"),this._cbs=null,this.onEnterFrame=null,this.onLoopComplete=null,this.onComplete=null,this.onSegmentStart=null,this.onDestroy=null,this.renderer=null,this.expressionsPlugin=null,this.imagePreloader=null,this.projectInterface=null)},AnimationItem.prototype.setCurrentRawFrameValue=function(e){this.currentRawFrame=e,this.gotoFrame()},AnimationItem.prototype.setSpeed=function(e){this.playSpeed=e,this.updaFrameModifier()},AnimationItem.prototype.setDirection=function(e){this.playDirection=e<0?-1:1,this.updaFrameModifier()},AnimationItem.prototype.setLoop=function(e){this.loop=e},AnimationItem.prototype.setVolume=function(e,t){t&&this.name!==t||this.audioController.setVolume(e)},AnimationItem.prototype.getVolume=function(){return this.audioController.getVolume()},AnimationItem.prototype.mute=function(e){e&&this.name!==e||this.audioController.mute()},AnimationItem.prototype.unmute=function(e){e&&this.name!==e||this.audioController.unmute()},AnimationItem.prototype.updaFrameModifier=function(){this.frameModifier=this.frameMult*this.playSpeed*this.playDirection,this.audioController.setRate(this.playSpeed*this.playDirection)},AnimationItem.prototype.getPath=function(){return this.path},AnimationItem.prototype.getAssetsPath=function(e){var t="";if(e.e)t=e.p;else if(this.assetsPath){var r=e.p;-1!==r.indexOf("images/")&&(r=r.split("/")[1]),t=this.assetsPath+r}else t=this.path,t+=e.u?e.u:"",t+=e.p;return t},AnimationItem.prototype.getAssetData=function(e){for(var t=0,r=this.assets.length;t<r;){if(e===this.assets[t].id)return this.assets[t];t+=1}return null},AnimationItem.prototype.hide=function(){this.renderer.hide()},AnimationItem.prototype.show=function(){this.renderer.show()},AnimationItem.prototype.getDuration=function(e){return e?this.totalFrames:this.totalFrames/this.frameRate},AnimationItem.prototype.updateDocumentData=function(e,t,r){try{this.renderer.getElementByPath(e).updateDocumentData(t,r)}catch(e){}},AnimationItem.prototype.trigger=function(e){if(this._cbs&&this._cbs[e])switch(e){case"enterFrame":this.triggerEvent(e,new BMEnterFrameEvent(e,this.currentFrame,this.totalFrames,this.frameModifier));break;case"drawnFrame":this.drawnFrameEvent.currentTime=this.currentFrame,this.drawnFrameEvent.totalTime=this.totalFrames,this.drawnFrameEvent.direction=this.frameModifier,this.triggerEvent(e,this.drawnFrameEvent);break;case"loopComplete":this.triggerEvent(e,new BMCompleteLoopEvent(e,this.loop,this.playCount,this.frameMult));break;case"complete":this.triggerEvent(e,new BMCompleteEvent(e,this.frameMult));break;case"segmentStart":this.triggerEvent(e,new BMSegmentStartEvent(e,this.firstFrame,this.totalFrames));break;case"destroy":this.triggerEvent(e,new BMDestroyEvent(e,this));break;default:this.triggerEvent(e)}"enterFrame"===e&&this.onEnterFrame&&this.onEnterFrame.call(this,new BMEnterFrameEvent(e,this.currentFrame,this.totalFrames,this.frameMult)),"loopComplete"===e&&this.onLoopComplete&&this.onLoopComplete.call(this,new BMCompleteLoopEvent(e,this.loop,this.playCount,this.frameMult)),"complete"===e&&this.onComplete&&this.onComplete.call(this,new BMCompleteEvent(e,this.frameMult)),"segmentStart"===e&&this.onSegmentStart&&this.onSegmentStart.call(this,new BMSegmentStartEvent(e,this.firstFrame,this.totalFrames)),"destroy"===e&&this.onDestroy&&this.onDestroy.call(this,new BMDestroyEvent(e,this))},AnimationItem.prototype.triggerRenderFrameError=function(e){var t=new BMRenderFrameErrorEvent(e,this.currentFrame);this.triggerEvent("error",t),this.onError&&this.onError.call(this,t)},AnimationItem.prototype.triggerConfigError=function(e){var t=new BMConfigErrorEvent(e,this.currentFrame);this.triggerEvent("error",t),this.onError&&this.onError.call(this,t)};var animationManager=function(){var e={},t=[],r=0,n=0,i=0,o=!0,a=!1;function s(e){for(var r=0,i=e.target;r<n;)t[r].animation===i&&(t.splice(r,1),r-=1,n-=1,i.isPaused||u()),r+=1}function l(e,r){if(!e)return null;for(var i=0;i<n;){if(t[i].elem===e&&null!==t[i].elem)return t[i].animation;i+=1}var o=new AnimationItem;return p(o,e),o.setData(e,r),o}function c(){i+=1,f()}function u(){i-=1}function p(e,r){e.addEventListener("destroy",s),e.addEventListener("_active",c),e.addEventListener("_idle",u),t.push({elem:r,animation:e}),n+=1}function d(e){var s,l=e-r;for(s=0;s<n;s+=1)t[s].animation.advanceTime(l);r=e,i&&!a?window.requestAnimationFrame(d):o=!0}function h(e){r=e,window.requestAnimationFrame(d)}function f(){!a&&i&&o&&(window.requestAnimationFrame(h),o=!1)}return e.registerAnimation=l,e.loadAnimation=function(e){var t=new AnimationItem;return p(t,null),t.setParams(e),t},e.setSpeed=function(e,r){var i;for(i=0;i<n;i+=1)t[i].animation.setSpeed(e,r)},e.setDirection=function(e,r){var i;for(i=0;i<n;i+=1)t[i].animation.setDirection(e,r)},e.play=function(e){var r;for(r=0;r<n;r+=1)t[r].animation.play(e)},e.pause=function(e){var r;for(r=0;r<n;r+=1)t[r].animation.pause(e)},e.stop=function(e){var r;for(r=0;r<n;r+=1)t[r].animation.stop(e)},e.togglePause=function(e){var r;for(r=0;r<n;r+=1)t[r].animation.togglePause(e)},e.searchAnimations=function(e,t,r){var n,i=[].concat([].slice.call(document.getElementsByClassName("lottie")),[].slice.call(document.getElementsByClassName("bodymovin"))),o=i.length;for(n=0;n<o;n+=1)r&&i[n].setAttribute("data-bm-type",r),l(i[n],e);if(t&&0===o){r||(r="svg");var a=document.getElementsByTagName("body")[0];a.innerText="";var s=createTag("div");s.style.width="100%",s.style.height="100%",s.setAttribute("data-bm-type",r),a.appendChild(s),l(s,e)}},e.resize=function(){var e;
vendor: 4,864 bytes, line 31
31for(e=0;e<n;e+=1)t[e].animation.resize()},e.goToAndStop=function(e,r,i){var o;for(o=0;o<n;o+=1)t[o].animation.goToAndStop(e,r,i)},e.destroy=function(e){var r;for(r=n-1;r>=0;r-=1)t[r].animation.destroy(e)},e.freeze=function(){a=!0},e.unfreeze=function(){a=!1,f()},e.setVolume=function(e,r){var i;for(i=0;i<n;i+=1)t[i].animation.setVolume(e,r)},e.mute=function(e){var r;for(r=0;r<n;r+=1)t[r].animation.mute(e)},e.unmute=function(e){var r;for(r=0;r<n;r+=1)t[r].animation.unmute(e)},e.getRegisteredAnimations=function(){var e,r=t.length,n=[];for(e=0;e<r;e+=1)n.push(t[e].animation);return n},e}(),BezierFactory=function(){var e={getBezierEasing:function(e,r,n,i,o){var a=o||("bez_"+e+"_"+r+"_"+n+"_"+i).replace(/\./g,"p");if(t[a])return t[a];var s=new u([e,r,n,i]);return t[a]=s,s}},t={},r=11,n=1/(r-1),i="function"==typeof Float32Array;function o(e,t){return 1-3*t+3*e}function a(e,t){return 3*t-6*e}function s(e){return 3*e}function l(e,t,r){return((o(t,r)*e+a(t,r))*e+s(t))*e}function c(e,t,r){return 3*o(t,r)*e*e+2*a(t,r)*e+s(t)}function u(e){this._p=e,this._mSampleValues=i?new Float32Array(r):new Array(r),this._precomputed=!1,this.get=this.get.bind(this)}return u.prototype={get:function(e){var t=this._p[0],r=this._p[1],n=this._p[2],i=this._p[3];return this._precomputed||this._precompute(),t===r&&n===i?e:0===e?0:1===e?1:l(this._getTForX(e),r,i)},_precompute:function(){var e=this._p[0],t=this._p[1],r=this._p[2],n=this._p[3];this._precomputed=!0,e===t&&r===n||this._calcSampleValues()},_calcSampleValues:function(){for(var e=this._p[0],t=this._p[2],i=0;i<r;++i)this._mSampleValues[i]=l(i*n,e,t)},_getTForX:function(e){for(var t=this._p[0],i=this._p[2],o=this._mSampleValues,a=0,s=1,u=r-1;s!==u&&o[s]<=e;++s)a+=n;var p=a+(e-o[--s])/(o[s+1]-o[s])*n,d=c(p,t,i);return d>=.001?function(e,t,r,n){for(var i=0;i<4;++i){var o=c(t,r,n);if(0===o)return t;t-=(l(t,r,n)-e)/o}return t}(e,p,t,i):0===d?p:function(e,t,r,n,i){var o,a,s=0;do{(o=l(a=t+(r-t)/2,n,i)-e)>0?r=a:t=a}while(Math.abs(o)>1e-7&&++s<10);return a}(e,a,a+n,t,i)}},e}(),pooling={double:function(e){return e.concat(createSizedArray(e.length))}},poolFactory=function(e,t,r){var n=0,i=e,o=createSizedArray(i);return{newElement:function(){return n?o[n-=1]:t()},release:function(e){n===i&&(o=pooling.double(o),i*=2),r&&r(e),o[n]=e,n+=1}}},bezierLengthPool=poolFactory(8,function(){return{addedLength:0,percents:createTypedArray("float32",getDefaultCurveSegments()),lengths:createTypedArray("float32",getDefaultCurveSegments())}}),segmentsLengthPool=poolFactory(8,function(){return{lengths:[],totalLength:0}},function(e){var t,r=e.lengths.length;for(t=0;t<r;t+=1)bezierLengthPool.release(e.lengths[t]);e.lengths.length=0});function bezFunction(){var e=Math;function t(e,t,r,n,i,o){var a=e*n+t*i+r*o-i*n-o*e-r*t;return a>-.001&&a<.001}var r=function(e,t,r,n){var i,o,a,s,l,c,u=getDefaultCurveSegments(),p=0,d=[],h=[],f=bezierLengthPool.newElement();for(a=r.length,i=0;i<u;i+=1){for(l=i/(u-1),c=0,o=0;o<a;o+=1)s=bmPow(1-l,3)*e[o]+3*bmPow(1-l,2)*l*r[o]+3*(1-l)*bmPow(l,2)*n[o]+bmPow(l,3)*t[o],d[o]=s,null!==h[o]&&(c+=bmPow(d[o]-h[o],2)),h[o]=d[o];c&&(p+=c=bmSqrt(c)),f.percents[i]=l,f.lengths[i]=p}return f.addedLength=p,f};function n(e){this.segmentLength=0,this.points=new Array(e)}function i(e,t){this.partialLength=e,this.point=t}var o,a=(o={},function(e,r,a,s){var l=(e[0]+"_"+e[1]+"_"+r[0]+"_"+r[1]+"_"+a[0]+"_"+a[1]+"_"+s[0]+"_"+s[1]).replace(/\./g,"p");if(!o[l]){var c,u,p,d,h,f,m,g=getDefaultCurveSegments(),y=0,b=null;2===e.length&&(e[0]!==r[0]||e[1]!==r[1])&&t(e[0],e[1],r[0],r[1],e[0]+a[0],e[1]+a[1])&&t(e[0],e[1],r[0],r[1],r[0]+s[0],r[1]+s[1])&&(g=2);var v=new n(g);for(p=a.length,c=0;c<g;c+=1){for(m=createSizedArray(p),h=c/(g-1),f=0,u=0;u<p;u+=1)d=bmPow(1-h,3)*e[u]+3*bmPow(1-h,2)*h*(e[u]+a[u])+3*(1-h)*bmPow(h,2)*(r[u]+s[u])+bmPow(h,3)*r[u],m[u]=d,null!==b&&(f+=bmPow(m[u]-b[u],2));y+=f=bmSqrt(f),v.points[c]=new i(f,m),b=m}v.segmentLength=y,o[l]=v}return o[l]});function s(e,t){var r=t.percents,n=t.lengths,i=r.length,o=bmFloor((i-1)*e),a=e*t.addedLength,s=0;if(o===i-1||0===o||a===n[o])return r[o];for(var l=n[o]>a?-1:1,c=!0;c;)if(n[o]<=a&&n[o+1]>a?(s=(a-n[o])/(n[o+1]-n[o]),c=!1):o+=l,o<0||o>=i-1){if(o===i-1)return r[o];c=!1}return r[o]+(r[o+1]-r[o])*s}var l=createTypedArray("float32",8);return{getSegmentsLength:function(e){var t,n=segmentsLengthPool.newElement(),i=e.c,o=e.v,a=e.o,s=e.i,l=e._length,c=n.lengths,u=0;for(t=0;t<l-1;t+=1)c[t]=r(o[t],o[t+1],a[t],s[t+1]),u+=c[t].addedLength;return i&&l&&(c[t]=r(o[t],o[0],a[t],s[0]),u+=c[t].addedLength),n.totalLength=u,n},getNewSegment:function(t,r,n,i,o,a,c){o<0?o=0:o>1&&(o=1);var u,p=s(o,c),d=s(a=a>1?1:a,c),h=t.length,f=1-p,m=1-d,g=f*f*f,y=p*f*f*3,b=p*p*f*3,v=p*p*p,_=f*f*m,S=p*f*m+f*p*m+f*f*d,E=p*p*m+f*p*d+p*f*d,T=p*p*d,w=f*m*m,x=p*m*m+f*d*m+f*m*d,O=p*d*m+f*d*d+p*m*d,I=p*d*d,A=m*m*m,k=d*m*m+m*d*m+m*m*d,R=d*d*m+m*d*d+d*m*d,C=d*d*d;for(u=0;
vendor: 3,313 bytes, line 31
31u<h;u+=1)l[4*u]=e.round(1e3*(g*t[u]+y*n[u]+b*i[u]+v*r[u]))/1e3,l[4*u+1]=e.round(1e3*(_*t[u]+S*n[u]+E*i[u]+T*r[u]))/1e3,l[4*u+2]=e.round(1e3*(w*t[u]+x*n[u]+O*i[u]+I*r[u]))/1e3,l[4*u+3]=e.round(1e3*(A*t[u]+k*n[u]+R*i[u]+C*r[u]))/1e3;return l},getPointInSegment:function(t,r,n,i,o,a){var l=s(o,a),c=1-l;return[e.round(1e3*(c*c*c*t[0]+(l*c*c+c*l*c+c*c*l)*n[0]+(l*l*c+c*l*l+l*c*l)*i[0]+l*l*l*r[0]))/1e3,e.round(1e3*(c*c*c*t[1]+(l*c*c+c*l*c+c*c*l)*n[1]+(l*l*c+c*l*l+l*c*l)*i[1]+l*l*l*r[1]))/1e3]},buildBezierData:a,pointOnLine2D:t,pointOnLine3D:function(r,n,i,o,a,s,l,c,u){if(0===i&&0===s&&0===u)return t(r,n,o,a,l,c);var p,d=e.sqrt(e.pow(o-r,2)+e.pow(a-n,2)+e.pow(s-i,2)),h=e.sqrt(e.pow(l-r,2)+e.pow(c-n,2)+e.pow(u-i,2)),f=e.sqrt(e.pow(l-o,2)+e.pow(c-a,2)+e.pow(u-s,2));return(p=d>h?d>f?d-h-f:f-h-d:f>h?f-h-d:h-d-f)>-1e-4&&p<1e-4}}}var bez=bezFunction(),initFrame=initialDefaultFrame,mathAbs=Math.abs;function interpolateValue(e,t){var r,n=this.offsetTime;"multidimensional"===this.propType&&(r=createTypedArray("float32",this.pv.length));for(var i,o,a,s,l,c,u,p,d,h=t.lastIndex,f=h,m=this.keyframes.length-1,g=!0;g;){if(i=this.keyframes[f],o=this.keyframes[f+1],f===m-1&&e>=o.t-n){i.h&&(i=o),h=0;break}if(o.t-n>e){h=f;break}f<m-1?f+=1:(h=0,g=!1)}a=this.keyframesMetadata[f]||{};var y,b=o.t-n,v=i.t-n;if(i.to){a.bezierData||(a.bezierData=bez.buildBezierData(i.s,o.s||i.e,i.to,i.ti));var _=a.bezierData;if(e>=b||e<v){var S=e>=b?_.points.length-1:0;for(l=_.points[S].point.length,s=0;s<l;s+=1)r[s]=_.points[S].point[s]}else{a.__fnct?d=a.__fnct:(d=BezierFactory.getBezierEasing(i.o.x,i.o.y,i.i.x,i.i.y,i.n).get,a.__fnct=d),c=d((e-v)/(b-v));var E,T=_.segmentLength*c,w=t.lastFrame<e&&t._lastKeyframeIndex===f?t._lastAddedLength:0;for(p=t.lastFrame<e&&t._lastKeyframeIndex===f?t._lastPoint:0,g=!0,u=_.points.length;g;){if(w+=_.points[p].partialLength,0===T||0===c||p===_.points.length-1){for(l=_.points[p].point.length,s=0;s<l;s+=1)r[s]=_.points[p].point[s];break}if(T>=w&&T<w+_.points[p+1].partialLength){for(E=(T-w)/_.points[p+1].partialLength,l=_.points[p].point.length,s=0;s<l;s+=1)r[s]=_.points[p].point[s]+(_.points[p+1].point[s]-_.points[p].point[s])*E;break}p<u-1?p+=1:g=!1}t._lastPoint=p,t._lastAddedLength=w-_.points[p].partialLength,t._lastKeyframeIndex=f}}else{var x,O,I,A,k;if(m=i.s.length,y=o.s||i.e,this.sh&&1!==i.h)e>=b?(r[0]=y[0],r[1]=y[1],r[2]=y[2]):e<=v?(r[0]=i.s[0],r[1]=i.s[1],r[2]=i.s[2]):quaternionToEuler(r,slerp(createQuaternion(i.s),createQuaternion(y),(e-v)/(b-v)));else for(f=0;f<m;f+=1)1!==i.h&&(e>=b?c=1:e<v?c=0:(i.o.x.constructor===Array?(a.__fnct||(a.__fnct=[]),a.__fnct[f]?d=a.__fnct[f]:(x=void 0===i.o.x[f]?i.o.x[0]:i.o.x[f],O=void 0===i.o.y[f]?i.o.y[0]:i.o.y[f],I=void 0===i.i.x[f]?i.i.x[0]:i.i.x[f],A=void 0===i.i.y[f]?i.i.y[0]:i.i.y[f],d=BezierFactory.getBezierEasing(x,O,I,A).get,a.__fnct[f]=d)):a.__fnct?d=a.__fnct:(x=i.o.x,O=i.o.y,I=i.i.x,A=i.i.y,d=BezierFactory.getBezierEasing(x,O,I,A).get,i.keyframeMetadata=d),c=d((e-v)/(b-v)))),y=o.s||i.e,k=1===i.h?i.s[f]:i.s[f]+(y[f]-i.s[f])*c,"multidimensional"===this.propType?r[f]=k:r=k}return t.lastIndex=h,r}function slerp(e,t,r){var n,i,o,a,s,l=[],c=e[0],u=e[1],p=e[2],d=e[3],h=t[0],f=t[1],m=t[2],g=t[3];return(i=c*h+u*f+p*m+d*g)<0&&(i=-i,h=-h,f=-f,m=-m,g=-g),1-i>1e-6?(n=Math.acos(i),o=Math.sin(n),a=Math.sin((1-r)*n)/o,s=Math.sin(r*n)/
vendor: 13,723 bytes, line 31
31o):(a=1-r,s=r),l[0]=a*c+s*h,l[1]=a*u+s*f,l[2]=a*p+s*m,l[3]=a*d+s*g,l}function quaternionToEuler(e,t){var r=t[0],n=t[1],i=t[2],o=t[3],a=Math.atan2(2*n*o-2*r*i,1-2*n*n-2*i*i),s=Math.asin(2*r*n+2*i*o),l=Math.atan2(2*r*o-2*n*i,1-2*r*r-2*i*i);e[0]=a/degToRads,e[1]=s/degToRads,e[2]=l/degToRads}function createQuaternion(e){var t=e[0]*degToRads,r=e[1]*degToRads,n=e[2]*degToRads,i=Math.cos(t/2),o=Math.cos(r/2),a=Math.cos(n/2),s=Math.sin(t/2),l=Math.sin(r/2),c=Math.sin(n/2);return[s*l*a+i*o*c,s*o*a+i*l*c,i*l*a-s*o*c,i*o*a-s*l*c]}function getValueAtCurrentTime(){var e=this.comp.renderedFrame-this.offsetTime,t=this.keyframes[0].t-this.offsetTime,r=this.keyframes[this.keyframes.length-1].t-this.offsetTime;if(!(e===this._caching.lastFrame||this._caching.lastFrame!==initFrame&&(this._caching.lastFrame>=r&&e>=r||this._caching.lastFrame<t&&e<t))){this._caching.lastFrame>=e&&(this._caching._lastKeyframeIndex=-1,this._caching.lastIndex=0);var n=this.interpolateValue(e,this._caching);this.pv=n}return this._caching.lastFrame=e,this.pv}function setVValue(e){var t;if("unidimensional"===this.propType)t=e*this.mult,mathAbs(this.v-t)>1e-5&&(this.v=t,this._mdf=!0);else for(var r=0,n=this.v.length;r<n;)t=e[r]*this.mult,mathAbs(this.v[r]-t)>1e-5&&(this.v[r]=t,this._mdf=!0),r+=1}function processEffectsSequence(){if(this.elem.globalData.frameId!==this.frameId&&this.effectsSequence.length)if(this.lock)this.setVValue(this.pv);else{var e;this.lock=!0,this._mdf=this._isFirstFrame;var t=this.effectsSequence.length,r=this.kf?this.pv:this.data.k;for(e=0;e<t;e+=1)r=this.effectsSequence[e](r);this.setVValue(r),this._isFirstFrame=!1,this.lock=!1,this.frameId=this.elem.globalData.frameId}}function addEffect(e){this.effectsSequence.push(e),this.container.addDynamicProperty(this)}function ValueProperty(e,t,r,n){this.propType="unidimensional",this.mult=r||1,this.data=t,this.v=r?t.k*r:t.k,this.pv=t.k,this._mdf=!1,this.elem=e,this.container=n,this.comp=e.comp,this.k=!1,this.kf=!1,this.vel=0,this.effectsSequence=[],this._isFirstFrame=!0,this.getValue=processEffectsSequence,this.setVValue=setVValue,this.addEffect=addEffect}function MultiDimensionalProperty(e,t,r,n){var i;this.propType="multidimensional",this.mult=r||1,this.data=t,this._mdf=!1,this.elem=e,this.container=n,this.comp=e.comp,this.k=!1,this.kf=!1,this.frameId=-1;var o=t.k.length;for(this.v=createTypedArray("float32",o),this.pv=createTypedArray("float32",o),this.vel=createTypedArray("float32",o),i=0;i<o;i+=1)this.v[i]=t.k[i]*this.mult,this.pv[i]=t.k[i];this._isFirstFrame=!0,this.effectsSequence=[],this.getValue=processEffectsSequence,this.setVValue=setVValue,this.addEffect=addEffect}function KeyframedValueProperty(e,t,r,n){this.propType="unidimensional",this.keyframes=t.k,this.keyframesMetadata=[],this.offsetTime=e.data.st,this.frameId=-1,this._caching={lastFrame:initFrame,lastIndex:0,value:0,_lastKeyframeIndex:-1},this.k=!0,this.kf=!0,this.data=t,this.mult=r||1,this.elem=e,this.container=n,this.comp=e.comp,this.v=initFrame,this.pv=initFrame,this._isFirstFrame=!0,this.getValue=processEffectsSequence,this.setVValue=setVValue,this.interpolateValue=interpolateValue,this.effectsSequence=[getValueAtCurrentTime.bind(this)],this.addEffect=addEffect}function KeyframedMultidimensionalProperty(e,t,r,n){var i;this.propType="multidimensional";var o,a,s,l,c=t.k.length;for(i=0;i<c-1;i+=1)t.k[i].to&&t.k[i].s&&t.k[i+1]&&t.k[i+1].s&&(o=t.k[i].s,a=t.k[i+1].s,s=t.k[i].to,l=t.k[i].ti,(2===o.length&&(o[0]!==a[0]||o[1]!==a[1])&&bez.pointOnLine2D(o[0],o[1],a[0],a[1],o[0]+s[0],o[1]+s[1])&&bez.pointOnLine2D(o[0],o[1],a[0],a[1],a[0]+l[0],a[1]+l[1])||3===o.length&&(o[0]!==a[0]||o[1]!==a[1]||o[2]!==a[2])&&bez.pointOnLine3D(o[0],o[1],o[2],a[0],a[1],a[2],o[0]+s[0],o[1]+s[1],o[2]+s[2])&&bez.pointOnLine3D(o[0],o[1],o[2],a[0],a[1],a[2],a[0]+l[0],a[1]+l[1],a[2]+l[2]))&&(t.k[i].to=null,t.k[i].ti=null),o[0]===a[0]&&o[1]===a[1]&&0===s[0]&&0===s[1]&&0===l[0]&&0===l[1]&&(2===o.length||o[2]===a[2]&&0===s[2]&&0===l[2])&&(t.k[i].to=null,t.k[i].ti=null));this.effectsSequence=[getValueAtCurrentTime.bind(this)],this.data=t,this.keyframes=t.k,this.keyframesMetadata=[],this.offsetTime=e.data.st,this.k=!0,this.kf=!0,this._isFirstFrame=!0,this.mult=r||1,this.elem=e,this.container=n,this.comp=e.comp,this.getValue=processEffectsSequence,this.setVValue=setVValue,this.interpolateValue=interpolateValue,this.frameId=-1;var u=t.k[0].s.length;for(this.v=createTypedArray("float32",u),this.pv=createTypedArray("float32",u),i=0;i<u;i+=1)this.v[i]=initFrame,this.pv[i]=initFrame;this._caching={lastFrame:initFrame,lastIndex:0,value:createTypedArray("float32",u)},this.addEffect=addEffect}var PropertyFactory={getProp:function(e,t,r,n,i){var o;if(t.sid&&(t=e.globalData.slotManager.getProp(t)),t.k.length)if("number"==typeof t.k[0])o=new MultiDimensionalProperty(e,t,n,i);else switch(r){case 0:o=new KeyframedValueProperty(e,t,n,i);break;case 1:o=new KeyframedMultidimensionalProperty(e,t,n,i)}else o=new ValueProperty(e,t,n,i);return o.effectsSequence.length&&i.addDynamicProperty(o),o}};function DynamicPropertyContainer(){}DynamicPropertyContainer.prototype={addDynamicProperty:function(e){-1===this.dynamicProperties.indexOf(e)&&(this.dynamicProperties.push(e),this.container.addDynamicProperty(this),this._isAnimated=!0)},iterateDynamicProperties:function(){var e;this._mdf=!1;var t=this.dynamicProperties.length;for(e=0;e<t;e+=1)this.dynamicProperties[e].getValue(),this.dynamicProperties[e]._mdf&&(this._mdf=!0)},initDynamicPropertyContainer:function(e){this.container=e,this.dynamicProperties=[],this._mdf=!1,this._isAnimated=!1}};var pointPool=poolFactory(8,function(){return createTypedArray("float32",2)});function ShapePath(){this.c=!1,this._length=0,this._maxLength=8,this.v=createSizedArray(this._maxLength),this.o=createSizedArray(this._maxLength),this.i=createSizedArray(this._maxLength)}ShapePath.prototype.setPathData=function(e,t){this.c=e,this.setLength(t);for(var r=0;r<t;)this.v[r]=pointPool.newElement(),this.o[r]=pointPool.newElement(),this.i[r]=pointPool.newElement(),r+=1},ShapePath.prototype.setLength=function(e){for(;this._maxLength<e;)this.doubleArrayLength();this._length=e},ShapePath.prototype.doubleArrayLength=function(){this.v=this.v.concat(createSizedArray(this._maxLength)),this.i=this.i.concat(createSizedArray(this._maxLength)),this.o=this.o.concat(createSizedArray(this._maxLength)),this._maxLength*=2},ShapePath.prototype.setXYAt=function(e,t,r,n,i){var o;switch(this._length=Math.max(this._length,n+1),this._length>=this._maxLength&&this.doubleArrayLength(),r){case"v":o=this.v;break;case"i":o=this.i;break;case"o":o=this.o;break;default:o=[]}(!o[n]||o[n]&&!i)&&(o[n]=pointPool.newElement()),o[n][0]=e,o[n][1]=t},ShapePath.prototype.setTripleAt=function(e,t,r,n,i,o,a,s){this.setXYAt(e,t,"v",a,s),this.setXYAt(r,n,"o",a,s),this.setXYAt(i,o,"i",a,s)},ShapePath.prototype.reverse=function(){var e=new ShapePath;e.setPathData(this.c,this._length);var t=this.v,r=this.o,n=this.i,i=0;this.c&&(e.setTripleAt(t[0][0],t[0][1],n[0][0],n[0][1],r[0][0],r[0][1],0,!1),i=1);var o,a=this._length-1,s=this._length;for(o=i;o<s;o+=1)e.setTripleAt(t[a][0],t[a][1],n[a][0],n[a][1],r[a][0],r[a][1],o,!1),a-=1;return e},ShapePath.prototype.length=function(){return this._length};var shapePool=(factory=poolFactory(4,function(){return new ShapePath},function(e){var t,r=e._length;for(t=0;t<r;t+=1)pointPool.release(e.v[t]),pointPool.release(e.i[t]),pointPool.release(e.o[t]),e.v[t]=null,e.i[t]=null,e.o[t]=null;e._length=0,e.c=!1}),factory.clone=function(e){var t,r=factory.newElement(),n=void 0===e._length?e.v.length:e._length;for(r.setLength(n),r.c=e.c,t=0;t<n;t+=1)r.setTripleAt(e.v[t][0],e.v[t][1],e.o[t][0],e.o[t][1],e.i[t][0],e.i[t][1],t);return r},factory),factory;function ShapeCollection(){this._length=0,this._maxLength=4,this.shapes=createSizedArray(this._maxLength)}ShapeCollection.prototype.addShape=function(e){this._length===this._maxLength&&(this.shapes=this.shapes.concat(createSizedArray(this._maxLength)),this._maxLength*=2),this.shapes[this._length]=e,this._length+=1},ShapeCollection.prototype.releaseShapes=function(){var e;for(e=0;e<this._length;e+=1)shapePool.release(this.shapes[e]);this._length=0};var shapeCollectionPool=(ob={newShapeCollection:function(){return _length?pool[_length-=1]:new ShapeCollection},release:function(e){var t,r=e._length;for(t=0;t<r;t+=1)shapePool.release(e.shapes[t]);e._length=0,_length===_maxLength&&(pool=pooling.double(pool),_maxLength*=2),pool[_length]=e,_length+=1}},_length=0,_maxLength=4,pool=createSizedArray(_maxLength),ob),ob,_length,_maxLength,pool,ShapePropertyFactory=function(){var e=-999999;function t(e,t,r){var n,i,o,a,s,l,c,u,p,d=r.lastIndex,h=this.keyframes;if(e<h[0].t-this.offsetTime)n=h[0].s[0],o=!0,d=0;else if(e>=h[h.length-1].t-this.offsetTime)n=h[h.length-1].s?h[h.length-1].s[0]:h[h.length-2].e[0],o=!0;else{for(var f,m,g,y=d,b=h.length-1,v=!0;v&&(f=h[y],!((m=h[y+1]).t-this.offsetTime>e));)y<b-1?y+=1:v=!1;if(g=this.keyframesMetadata[y]||{},d=y,!(o=1===f.h)){if(e>=m.t-this.offsetTime)u=1;else if(e<f.t-this.offsetTime)u=0;else{var _;g.__fnct?_=g.__fnct:(_=BezierFactory.getBezierEasing(f.o.x,f.o.y,f.i.x,f.i.y).get,g.__fnct=_),u=_((e-(f.t-this.offsetTime))/(m.t-this.offsetTime-(f.t-this.offsetTime)))}i=m.s?m.s[0]:f.e[0]}n=f.s[0]}for(l=t._length,c=n.i[0].length,r.lastIndex=d,a=0;a<l;a+=1)for(s=0;s<c;s+=1)p=o?n.i[a][s]:n.i[a][s]+(i.i[a][s]-n.i[a][s])*u,t.i[a][s]=p,p=o?n.o[a][s]:n.o[a][s]+(i.o[a][s]-n.o[a][s])*u,t.o[a][s]=p,p=o?n.v[a][s]:n.v[a][s]+(i.v[a][s]-n.v[a][s])*u,t.v[a][s]=p}function r(){var t=this.comp.renderedFrame-this.offsetTime,r=this.keyframes[0].t-this.offsetTime,n=this.keyframes[this.keyframes.length-1].t-this.offsetTime,i=this._caching.lastFrame;return i!==e&&(i<r&&t<r||i>n&&t>n)||(this._caching.lastIndex=i<t?this._caching.lastIndex:0,this.interpolateShape(t,this.pv,this._caching)),this._caching.lastFrame=t,this.pv}function n(){this.paths=this.localShapeCollection}function i(e){(function(e,t){if(e._length!==t._length||e.c!==t.c)return!1;var r,n=e._length;for(r=0;r<n;r+=1)if(e.v[r][0]!==t.v[r][0]||e.v[r][1]!==t.v[r][1]||e.o[r][0]!==t.o[r][0]||e.o[r][1]!==t.o[r][1]||e.i[r][0]!==t.i[r][0]||e.i[r][1]!==t.i[r][1])return!1;return!0})(this.v,e)||(this.v=shapePool.clone(e),this.localShapeCollection.releaseShapes(),this.localShapeCollection.addShape(this.v),this._mdf=!0,this.paths=this.localShapeCollection)}function o(){if(this.elem.globalData.frameId!==this.frameId)if(this.effectsSequence.length)if(this.lock)this.setVValue(this.pv);else{var e,t;this.lock=!0,this._mdf=!1,e=this.kf?this.pv:this.data.ks?this.data.ks.k:this.data.pt.k;var r=this.effectsSequence.length;for(t=0;t<r;t+=1)e=this.effectsSequence[t](e);this.setVValue(e),this.lock=!1,this.frameId=this.elem.globalData.frameId}else this._mdf=!1}function a(e,t,r){this.propType="shape",this.comp=e.comp,this.container=e,this.elem=e,this.data=t,this.k=!1,this.kf=!1,this._mdf=!1;var i=3===r?t.pt.k:t.ks.k;this.v=shapePool.clone(i),this.pv=shapePool.clone(this.v),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.reset=n,this.effectsSequence=[]}function s(e){this.effectsSequence.push(e),this.container.addDynamicProperty(this)}function l(t,i,o){this.propType="shape",this.comp=t.comp,this.elem=t,this.container=t,this.offsetTime=t.data.st,this.keyframes=3===o?i.pt.k:i.ks.k,this.keyframesMetadata=[],this.k=!0,this.kf=!0;var a=this.keyframes[0].s[0].i.length;this.v=shapePool.newElement(),this.v.setPathData(this.keyframes[0].s[0].c,a),this.pv=shapePool.clone(this.v),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.lastFrame=e,this.reset=n,this._caching={lastFrame:e,lastIndex:0},this.effectsSequence=[r.bind(this)]}a.prototype.interpolateShape=t,a.prototype.getValue=o,a.prototype.setVValue=i,a.prototype.addEffect=s,l.prototype.getValue=o,l.prototype.interpolateShape=t,l.prototype.setVValue=i,l.prototype.addEffect=s;var c=function(){var e=roundCorner;function t(e,t){this.v=shapePool.newElement(),this.v.setPathData(!0,4),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.paths=this.localShapeCollection,this.localShapeCollection.addShape(this.v),this.d=t.d,this.elem=e,this.comp=e.comp,this.frameId=-1,this.initDynamicPropertyContainer(e),this.p=PropertyFactory.getProp(e,t.p,1,0,this),this.s=PropertyFactory.getProp(e,t.s,1,0,this),this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertEllToPath())}return t.prototype={reset:n,getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertEllToPath())},convertEllToPath:function(){var t=this.p.v[0],r=this.p.v[1],n=this.s.v[0]/2,i=this.s.v[1]/2,o=3!==this.d,a=this.v;a.v[0][0]=t,a.v[0][1]=r-i,a.v[1][0]=o?t+n:t-n,a.v[1][1]=r,a.v[2][0]=t,a.v[2][1]=r+i,a.v[3][0]=o?t-n:t+n,a.v[3][1]=r,a.i[0][0]=o?t-n*e:t+n*e,a.i[0][1]=r-i,a.i[1][0]=o?t+n:t-n,a.i[1][1]=r-i*e,a.i[2][0]=o?t+n*e:t-n*e,a.i[2][1]=r+i,a.i[3][0]=o?t-n:t+n,a.i[3][1]=r+i*e,a.o[0][0]=o?t+n*e:t-n*e,a.o[0][1]=r-i,a.o[1][0]=o?t+n:t-n,a.o[1][1]=r+i*e,a.o[2][0]=o?t-n*e:t+n*e,a.o[2][1]=r+i,a.o[3][0]=o?t-n:t+n,a.o[3][1]=r-i*e}},extendPrototype([DynamicPropertyContainer],t),t}(),u=function(){function e(e,t){this.v=shapePool.newElement(),this.v.setPathData(!0,0),this.elem=e,this.comp=e.comp,this.data=t,this.frameId=-1,this.d=t.d,this.initDynamicPropertyContainer(e),1===t.sy?(this.ir=PropertyFactory.getProp(e,t.ir,0,0,this),this.is=PropertyFactory.getProp(e,t.is,0,.01,this),this.convertToPath=this.convertStarToPath):this.convertToPath=this.convertPolygonToPath,this.pt=Pro
vendor: 6,797 bytes, line 31
31pertyFactory.getProp(e,t.pt,0,0,this),this.p=PropertyFactory.getProp(e,t.p,1,0,this),this.r=PropertyFactory.getProp(e,t.r,0,degToRads,this),this.or=PropertyFactory.getProp(e,t.or,0,0,this),this.os=PropertyFactory.getProp(e,t.os,0,.01,this),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.localShapeCollection.addShape(this.v),this.paths=this.localShapeCollection,this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertToPath())}return e.prototype={reset:n,getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertToPath())},convertStarToPath:function(){var e,t,r,n,i=2*Math.floor(this.pt.v),o=2*Math.PI/i,a=!0,s=this.or.v,l=this.ir.v,c=this.os.v,u=this.is.v,p=2*Math.PI*s/(2*i),d=2*Math.PI*l/(2*i),h=-Math.PI/2;h+=this.r.v;var f=3===this.data.d?-1:1;for(this.v._length=0,e=0;e<i;e+=1){r=a?c:u,n=a?p:d;var m=(t=a?s:l)*Math.cos(h),g=t*Math.sin(h),y=0===m&&0===g?0:g/Math.sqrt(m*m+g*g),b=0===m&&0===g?0:-m/Math.sqrt(m*m+g*g);m+=+this.p.v[0],g+=+this.p.v[1],this.v.setTripleAt(m,g,m-y*n*r*f,g-b*n*r*f,m+y*n*r*f,g+b*n*r*f,e,!0),a=!a,h+=o*f}},convertPolygonToPath:function(){var e,t=Math.floor(this.pt.v),r=2*Math.PI/t,n=this.or.v,i=this.os.v,o=2*Math.PI*n/(4*t),a=.5*-Math.PI,s=3===this.data.d?-1:1;for(a+=this.r.v,this.v._length=0,e=0;e<t;e+=1){var l=n*Math.cos(a),c=n*Math.sin(a),u=0===l&&0===c?0:c/Math.sqrt(l*l+c*c),p=0===l&&0===c?0:-l/Math.sqrt(l*l+c*c);l+=+this.p.v[0],c+=+this.p.v[1],this.v.setTripleAt(l,c,l-u*o*i*s,c-p*o*i*s,l+u*o*i*s,c+p*o*i*s,e,!0),a+=r*s}this.paths.length=0,this.paths[0]=this.v}},extendPrototype([DynamicPropertyContainer],e),e}(),p=function(){function e(e,t){this.v=shapePool.newElement(),this.v.c=!0,this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.localShapeCollection.addShape(this.v),this.paths=this.localShapeCollection,this.elem=e,this.comp=e.comp,this.frameId=-1,this.d=t.d,this.initDynamicPropertyContainer(e),this.p=PropertyFactory.getProp(e,t.p,1,0,this),this.s=PropertyFactory.getProp(e,t.s,1,0,this),this.r=PropertyFactory.getProp(e,t.r,0,0,this),this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertRectToPath())}return e.prototype={convertRectToPath:function(){var e=this.p.v[0],t=this.p.v[1],r=this.s.v[0]/2,n=this.s.v[1]/2,i=bmMin(r,n,this.r.v),o=i*(1-roundCorner);this.v._length=0,2===this.d||1===this.d?(this.v.setTripleAt(e+r,t-n+i,e+r,t-n+i,e+r,t-n+o,0,!0),this.v.setTripleAt(e+r,t+n-i,e+r,t+n-o,e+r,t+n-i,1,!0),0!==i?(this.v.setTripleAt(e+r-i,t+n,e+r-i,t+n,e+r-o,t+n,2,!0),this.v.setTripleAt(e-r+i,t+n,e-r+o,t+n,e-r+i,t+n,3,!0),this.v.setTripleAt(e-r,t+n-i,e-r,t+n-i,e-r,t+n-o,4,!0),this.v.setTripleAt(e-r,t-n+i,e-r,t-n+o,e-r,t-n+i,5,!0),this.v.setTripleAt(e-r+i,t-n,e-r+i,t-n,e-r+o,t-n,6,!0),this.v.setTripleAt(e+r-i,t-n,e+r-o,t-n,e+r-i,t-n,7,!0)):(this.v.setTripleAt(e-r,t+n,e-r+o,t+n,e-r,t+n,2),this.v.setTripleAt(e-r,t-n,e-r,t-n+o,e-r,t-n,3))):(this.v.setTripleAt(e+r,t-n+i,e+r,t-n+o,e+r,t-n+i,0,!0),0!==i?(this.v.setTripleAt(e+r-i,t-n,e+r-i,t-n,e+r-o,t-n,1,!0),this.v.setTripleAt(e-r+i,t-n,e-r+o,t-n,e-r+i,t-n,2,!0),this.v.setTripleAt(e-r,t-n+i,e-r,t-n+i,e-r,t-n+o,3,!0),this.v.setTripleAt(e-r,t+n-i,e-r,t+n-o,e-r,t+n-i,4,!0),this.v.setTripleAt(e-r+i,t+n,e-r+i,t+n,e-r+o,t+n,5,!0),this.v.setTripleAt(e+r-i,t+n,e+r-o,t+n,e+r-i,t+n,6,!0),this.v.setTripleAt(e+r,t+n-i,e+r,t+n-i,e+r,t+n-o,7,!0)):(this.v.setTripleAt(e-r,t-n,e-r+o,t-n,e-r,t-n,1,!0),this.v.setTripleAt(e-r,t+n,e-r,t+n-o,e-r,t+n,2,!0),this.v.setTripleAt(e+r,t+n,e+r-o,t+n,e+r,t+n,3,!0)))},getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertRectToPath())},reset:n},extendPrototype([DynamicPropertyContainer],e),e}(),d={getShapeProp:function(e,t,r){var n;return 3===r||4===r?n=(3===r?t.pt:t.ks).k.length?new l(e,t,r):new a(e,t,r):5===r?n=new p(e,t):6===r?n=new c(e,t):7===r&&(n=new u(e,t)),n.k&&e.addDynamicProperty(n),n},getConstructorFunction:function(){return a},getKeyframedConstructorFunction:function(){return l}};return d}(),Matrix=function(){var e=Math.cos,t=Math.sin,r=Math.tan,n=Math.round;function i(){return this.props[0]=1,this.props[1]=0,this.props[2]=0,this.props[3]=0,this.props[4]=0,this.props[5]=1,this.props[6]=0,this.props[7]=0,this.props[8]=0,this.props[9]=0,this.props[10]=1,this.props[11]=0,this.props[12]=0,this.props[13]=0,this.props[14]=0,this.props[15]=1,this}function o(r){if(0===r)return this;var n=e(r),i=t(r);return this._t(n,-i,0,0,i,n,0,0,0,0,1,0,0,0,0,1)}function a(r){if(0===r)return this;var n=e(r),i=t(r);return this._t(1,0,0,0,0,n,-i,0,0,i,n,0,0,0,0,1)}function s(r){if(0===r)return this;var n=e(r),i=t(r);return this._t(n,0,i,0,0,1,0,0,-i,0,n,0,0,0,0,1)}function l(r){if(0===r)return this;var n=e(r),i=t(r);return this._t(n,-i,0,0,i,n,0,0,0,0,1,0,0,0,0,1)}function c(e,t){return this._t(1,t,e,1,0,0)}function u(e,t){return this.shear(r(e),r(t))}function p(n,i){var o=e(i),a=t(i);return this._t(o,a,0,0,-a,o,0,0,0,0,1,0,0,0,0,1)._t(1,0,0,0,r(n),1,0,0,0,0,1,0,0,0,0,1)._t(o,-a,0,0,a,o,0,0,0,0,1,0,0,0,0,1)}function d(e,t,r){return r||0===r||(r=1),1===e&&1===t&&1===r?this:this._t(e,0,0,0,0,t,0,0,0,0,r,0,0,0,0,1)}function h(e,t,r,n,i,o,a,s,l,c,u,p,d,h,f,m){return this.props[0]=e,this.props[1]=t,this.props[2]=r,this.props[3]=n,this.props[4]=i,this.props[5]=o,this.props[6]=a,this.props[7]=s,this.props[8]=l,this.props[9]=c,this.props[10]=u,this.props[11]=p,this.props[12]=d,this.props[13]=h,this.props[14]=f,this.props[15]=m,this}function f(e,t,r){return r=r||0,0!==e||0!==t||0!==r?this._t(1,0,0,0,0,1,0,0,0,0,1,0,e,t,r,1):this}function m(e,t,r,n,i,o,a,s,l,c,u,p,d,h,f,m){var g=this.props;if(1===e&&0===t&&0===r&&0===n&&0===i&&1===o&&0===a&&0===s&&0===l&&0===c&&1===u&&0===p)return g[12]=g[12]*e+g[15]*d,g[13]=g[13]*o+g[15]*h,g[14]=g[14]*u+g[15]*f,g[15]*=m,this._identityCalculated=!1,this;var y=g[0],b=g[1],v=g[2],_=g[3],S=g[4],E=g[5],T=g[6],w=g[7],x=g[8],O=g[9],I=g[10],A=g[11],k=g[12],R=g[13],C=g[14],P=g[15];return g[0]=y*e+b*i+v*l+_*d,g[1]=y*t+b*o+v*c+_*h,g[2]=y*r+b*a+v*u+_*f,g[3]=y*n+b*s+v*p+_*m,g[4]=S*e+E*i+T*l+w*d,g[5]=S*t+E*o+T*c+w*h,g[6]=S*r+E*a+T*u+w*f,g[7]=S*n+E*s+T*p+w*m,g[8]=x*e+O*i+I*l+A*d,g[9]=x*t+O*o+I*c+A*h,g[10]=x*r+O*a+I*u+A*f,g[11]=x*n+O*s+I*p+A*m,g[12]=k*e+R*i+C*l+P*d,g[13]=k*t+R*o+C*c+P*h,g[14]=k*r+R*a+C*u+P*f,g[15]=k*n+R*s+C*p+P*m,this._identityCalculated=!1,this}function g(e){var t=e.props;return this.transform(t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7],t[8],t[9],t[10],t[11],t[12],t[13],t[14],t[15])}function y(){return this._identityCalculated||(this._identity=!(1!==this.props[0]||0!==this.props[1]||0!==this.props[2]||0!==this.props[3]||0!==this.props[4]||1!==this.props[5]||0!==this.props[6]||0!==this.props[7]||0!==this.props[8]||
vendor: 7,541 bytes, line 31
310!==this.props[9]||1!==this.props[10]||0!==this.props[11]||0!==this.props[12]||0!==this.props[13]||0!==this.props[14]||1!==this.props[15]),this._identityCalculated=!0),this._identity}function b(e){for(var t=0;t<16;){if(e.props[t]!==this.props[t])return!1;t+=1}return!0}function v(e){var t;for(t=0;t<16;t+=1)e.props[t]=this.props[t];return e}function _(e){var t;for(t=0;t<16;t+=1)this.props[t]=e[t]}function S(e,t,r){return{x:e*this.props[0]+t*this.props[4]+r*this.props[8]+this.props[12],y:e*this.props[1]+t*this.props[5]+r*this.props[9]+this.props[13],z:e*this.props[2]+t*this.props[6]+r*this.props[10]+this.props[14]}}function E(e,t,r){return e*this.props[0]+t*this.props[4]+r*this.props[8]+this.props[12]}function T(e,t,r){return e*this.props[1]+t*this.props[5]+r*this.props[9]+this.props[13]}function w(e,t,r){return e*this.props[2]+t*this.props[6]+r*this.props[10]+this.props[14]}function x(){var e=this.props[0]*this.props[5]-this.props[1]*this.props[4],t=this.props[5]/e,r=-this.props[1]/e,n=-this.props[4]/e,i=this.props[0]/e,o=(this.props[4]*this.props[13]-this.props[5]*this.props[12])/e,a=-(this.props[0]*this.props[13]-this.props[1]*this.props[12])/e,s=new Matrix;return s.props[0]=t,s.props[1]=r,s.props[4]=n,s.props[5]=i,s.props[12]=o,s.props[13]=a,s}function O(e){return this.getInverseMatrix().applyToPointArray(e[0],e[1],e[2]||0)}function I(e){var t,r=e.length,n=[];for(t=0;t<r;t+=1)n[t]=O(e[t]);return n}function A(e,t,r){var n=createTypedArray("float32",6);if(this.isIdentity())n[0]=e[0],n[1]=e[1],n[2]=t[0],n[3]=t[1],n[4]=r[0],n[5]=r[1];else{var i=this.props[0],o=this.props[1],a=this.props[4],s=this.props[5],l=this.props[12],c=this.props[13];n[0]=e[0]*i+e[1]*a+l,n[1]=e[0]*o+e[1]*s+c,n[2]=t[0]*i+t[1]*a+l,n[3]=t[0]*o+t[1]*s+c,n[4]=r[0]*i+r[1]*a+l,n[5]=r[0]*o+r[1]*s+c}return n}function k(e,t,r){return this.isIdentity()?[e,t,r]:[e*this.props[0]+t*this.props[4]+r*this.props[8]+this.props[12],e*this.props[1]+t*this.props[5]+r*this.props[9]+this.props[13],e*this.props[2]+t*this.props[6]+r*this.props[10]+this.props[14]]}function R(e,t){if(this.isIdentity())return e+","+t;var r=this.props;return Math.round(100*(e*r[0]+t*r[4]+r[12]))/100+","+Math.round(100*(e*r[1]+t*r[5]+r[13]))/100}function C(){for(var e=0,t=this.props,r="matrix3d(";e<16;)r+=n(1e4*t[e])/1e4,r+=15===e?")":",",e+=1;return r}function P(e){return e<1e-6&&e>0||e>-1e-6&&e<0?n(1e4*e)/1e4:e}function D(){var e=this.props;return"matrix("+P(e[0])+","+P(e[1])+","+P(e[4])+","+P(e[5])+","+P(e[12])+","+P(e[13])+")"}return function(){this.reset=i,this.rotate=o,this.rotateX=a,this.rotateY=s,this.rotateZ=l,this.skew=u,this.skewFromAxis=p,this.shear=c,this.scale=d,this.setTransform=h,this.translate=f,this.transform=m,this.multiply=g,this.applyToPoint=S,this.applyToX=E,this.applyToY=T,this.applyToZ=w,this.applyToPointArray=k,this.applyToTriplePoints=A,this.applyToPointStringified=R,this.toCSS=C,this.to2dCSS=D,this.clone=v,this.cloneFromProps=_,this.equals=b,this.inversePoints=I,this.inversePoint=O,this.getInverseMatrix=x,this._t=this.transform,this.isIdentity=y,this._identity=!0,this._identityCalculated=!1,this.props=createTypedArray("float32",16),this.reset()}}();function _typeof$3(e){return _typeof$3="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},_typeof$3(e)}var lottie={},standalone="__[STANDALONE]__",animationData="__[ANIMATIONDATA]__",renderer="";function setLocation(e){setLocationHref(e)}function searchAnimations(){!0===standalone?animationManager.searchAnimations(animationData,standalone,renderer):animationManager.searchAnimations()}function setSubframeRendering(e){setSubframeEnabled(e)}function setPrefix(e){setIdPrefix(e)}function loadAnimation(e){return!0===standalone&&(e.animationData=JSON.parse(animationData)),animationManager.loadAnimation(e)}function setQuality(e){if("string"==typeof e)switch(e){case"high":setDefaultCurveSegments(200);break;default:case"medium":setDefaultCurveSegments(50);break;case"low":setDefaultCurveSegments(10)}else!isNaN(e)&&e>1&&setDefaultCurveSegments(e);getDefaultCurveSegments()>=50?roundValues(!1):roundValues(!0)}function inBrowser(){return"undefined"!=typeof navigator}function installPlugin(e,t){"expressions"===e&&setExpressionsPlugin(t)}function getFactory(e){switch(e){case"propertyFactory":return PropertyFactory;case"shapePropertyFactory":return ShapePropertyFactory;case"matrix":return Matrix;default:return null}}function checkReady(){"complete"===document.readyState&&(clearInterval(readyStateCheckInterval),searchAnimations())}function getQueryVariable(e){for(var t=queryString.split("&"),r=0;r<t.length;r+=1){var n=t[r].split("=");if(decodeURIComponent(n[0])==e)return decodeURIComponent(n[1])}return null}lottie.play=animationManager.play,lottie.pause=animationManager.pause,lottie.setLocationHref=setLocation,lottie.togglePause=animationManager.togglePause,lottie.setSpeed=animationManager.setSpeed,lottie.setDirection=animationManager.setDirection,lottie.stop=animationManager.stop,lottie.searchAnimations=searchAnimations,lottie.registerAnimation=animationManager.registerAnimation,lottie.loadAnimation=loadAnimation,lottie.setSubframeRendering=setSubframeRendering,lottie.resize=animationManager.resize,lottie.goToAndStop=animationManager.goToAndStop,lottie.destroy=animationManager.destroy,lottie.setQuality=setQuality,lottie.inBrowser=inBrowser,lottie.installPlugin=installPlugin,lottie.freeze=animationManager.freeze,lottie.unfreeze=animationManager.unfreeze,lottie.setVolume=animationManager.setVolume,lottie.mute=animationManager.mute,lottie.unmute=animationManager.unmute,lottie.getRegisteredAnimations=animationManager.getRegisteredAnimations,lottie.useWebWorker=setWebWorker,lottie.setIDPrefix=setPrefix,lottie.__getFactory=getFactory,lottie.version="5.13.0";var queryString="";if(standalone){var scripts=document.getElementsByTagName("script"),index=scripts.length-1,myScript=scripts[index]||{src:""};queryString=myScript.src?myScript.src.replace(/^[^\?]+\??/,""):"",renderer=getQueryVariable("renderer")}var readyStateCheckInterval=setInterval(checkReady,100);try{"object"!==_typeof$3(exports)&&__webpack_require__.amdO}catch(e){}var ShapeModifiers=function(){var e={},t={};return e.registerModifier=function(e,r){t[e]||(t[e]=r)},e.getModifier=function(e,r,n){return new t[e](r,n)},e}();function ShapeModifier(){}function TrimModifier(){}function PuckerAndBloatModifier(){}ShapeModifier.prototype.initModifierProperties=function(){},ShapeModifier.prototype.addShapeToModifier=function(){},ShapeModifier.prototype.addShape=function(e){if(!this.closed){e.sh.container.addDynamicProperty(e.sh);var t={shape:e.sh,data:e,localShapeCollection:shapeCollectionPool.newShapeCollection()};this.shapes.push(t),this.addShapeToModifier(t),this._isAnimated&&e.setAsAnimated()}},ShapeModifier.prototype.init=function(e,t){this.shapes=[],this.elem=e,this.initDynamicPropertyContainer(e),this.initModifierProperties(e,t),this.frameId=initialDefaultFrame,this.closed=!1,this.k=!1,this.dynamicProperties.length?this.k=!0:this.getValue(!0)},ShapeModifier.prototype.processKeys=function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties())},extendPrototype([DynamicPropertyContainer],ShapeModifier),extendPrototype([ShapeModifier],TrimModifier),TrimModifier.prototype.initModifierProperties=function(e,t){this.s=PropertyFactory.getProp(e,t.s,0,.01,this),this.e=Pro
vendor: 4,861 bytes, line 31
31pertyFactory.getProp(e,t.e,0,.01,this),this.o=PropertyFactory.getProp(e,t.o,0,0,this),this.sValue=0,this.eValue=0,this.getValue=this.processKeys,this.m=t.m,this._isAnimated=!!this.s.effectsSequence.length||!!this.e.effectsSequence.length||!!this.o.effectsSequence.length},TrimModifier.prototype.addShapeToModifier=function(e){e.pathsData=[]},TrimModifier.prototype.calculateShapeEdges=function(e,t,r,n,i){var o=[];t<=1?o.push({s:e,e:t}):e>=1?o.push({s:e-1,e:t-1}):(o.push({s:e,e:1}),o.push({s:0,e:t-1}));var a,s,l=[],c=o.length;for(a=0;a<c;a+=1){var u,p;(s=o[a]).e*i<n||s.s*i>n+r||(u=s.s*i<=n?0:(s.s*i-n)/r,p=s.e*i>=n+r?1:(s.e*i-n)/r,l.push([u,p]))}return l.length||l.push([0,0]),l},TrimModifier.prototype.releasePathsData=function(e){var t,r=e.length;for(t=0;t<r;t+=1)segmentsLengthPool.release(e[t]);return e.length=0,e},TrimModifier.prototype.processShapes=function(e){var t,r,n,i;if(this._mdf||e){var o=this.o.v%360/360;if(o<0&&(o+=1),(t=this.s.v>1?1+o:this.s.v<0?0+o:this.s.v+o)>(r=this.e.v>1?1+o:this.e.v<0?0+o:this.e.v+o)){var a=t;t=r,r=a}t=1e-4*Math.round(1e4*t),r=1e-4*Math.round(1e4*r),this.sValue=t,this.eValue=r}else t=this.sValue,r=this.eValue;var s,l,c,u,p,d=this.shapes.length,h=0;if(r===t)for(i=0;i<d;i+=1)this.shapes[i].localShapeCollection.releaseShapes(),this.shapes[i].shape._mdf=!0,this.shapes[i].shape.paths=this.shapes[i].localShapeCollection,this._mdf&&(this.shapes[i].pathsData.length=0);else if(1===r&&0===t||0===r&&1===t){if(this._mdf)for(i=0;i<d;i+=1)this.shapes[i].pathsData.length=0,this.shapes[i].shape._mdf=!0}else{var f,m,g=[];for(i=0;i<d;i+=1)if((f=this.shapes[i]).shape._mdf||this._mdf||e||2===this.m){if(l=(n=f.shape.paths)._length,p=0,!f.shape._mdf&&f.pathsData.length)p=f.totalShapeLength;else{for(c=this.releasePathsData(f.pathsData),s=0;s<l;s+=1)u=bez.getSegmentsLength(n.shapes[s]),c.push(u),p+=u.totalLength;f.totalShapeLength=p,f.pathsData=c}h+=p,f.shape._mdf=!0}else f.shape.paths=f.localShapeCollection;var y,b=t,v=r,_=0;for(i=d-1;i>=0;i-=1)if((f=this.shapes[i]).shape._mdf){for((m=f.localShapeCollection).releaseShapes(),2===this.m&&d>1?(y=this.calculateShapeEdges(t,r,f.totalShapeLength,_,h),_+=f.totalShapeLength):y=[[b,v]],l=y.length,s=0;s<l;s+=1){b=y[s][0],v=y[s][1],g.length=0,v<=1?g.push({s:f.totalShapeLength*b,e:f.totalShapeLength*v}):b>=1?g.push({s:f.totalShapeLength*(b-1),e:f.totalShapeLength*(v-1)}):(g.push({s:f.totalShapeLength*b,e:f.totalShapeLength}),g.push({s:0,e:f.totalShapeLength*(v-1)}));var S=this.addShapes(f,g[0]);if(g[0].s!==g[0].e){if(g.length>1)if(f.shape.paths.shapes[f.shape.paths._length-1].c){var E=S.pop();this.addPaths(S,m),S=this.addShapes(f,g[1],E)}else this.addPaths(S,m),S=this.addShapes(f,g[1]);this.addPaths(S,m)}}f.shape.paths=m}}},TrimModifier.prototype.addPaths=function(e,t){var r,n=e.length;for(r=0;r<n;r+=1)t.addShape(e[r])},TrimModifier.prototype.addSegment=function(e,t,r,n,i,o,a){i.setXYAt(t[0],t[1],"o",o),i.setXYAt(r[0],r[1],"i",o+1),a&&i.setXYAt(e[0],e[1],"v",o),i.setXYAt(n[0],n[1],"v",o+1)},TrimModifier.prototype.addSegmentFromArray=function(e,t,r,n){t.setXYAt(e[1],e[5],"o",r),t.setXYAt(e[2],e[6],"i",r+1),n&&t.setXYAt(e[0],e[4],"v",r),t.setXYAt(e[3],e[7],"v",r+1)},TrimModifier.prototype.addShapes=function(e,t,r){var n,i,o,a,s,l,c,u,p=e.pathsData,d=e.shape.paths.shapes,h=e.shape.paths._length,f=0,m=[],g=!0;for(r?(s=r._length,u=r._length):(r=shapePool.newElement(),s=0,u=0),m.push(r),n=0;n<h;n+=1){for(l=p[n].lengths,r.c=d[n].c,o=d[n].c?l.length:l.length+1,i=1;i<o;i+=1)if(f+(a=l[i-1]).addedLength<t.s)f+=a.addedLength,r.c=!1;else{if(f>t.e){r.c=!1;break}t.s<=f&&t.e>=f+a.addedLength?(this.addSegment(d[n].v[i-1],d[n].o[i-1],d[n].i[i],d[n].v[i],r,s,g),g=!1):(c=bez.getNewSegment(d[n].v[i-1],d[n].v[i],d[n].o[i-1],d[n].i[i],(t.s-f)/a.addedLength,(t.e-f)/a.addedLength,l[i-1]),this.addSegmentFromArray(c,r,s,g),g=!1,r.c=!1),f+=a.addedLength,s+=1}if(d[n].c&&l.length){if(a=l[i-1],f<=t.e){var y=l[i-1].addedLength;t.s<=f&&t.e>=f+y?(this.addSegment(d[n].v[i-1],d[n].o[i-1],d[n].i[0],d[n].v[0],r,s,g),g=!1):(c=bez.getNewSegment(d[n].v[i-1],d[n].v[0],d[n].o[i-1],d[n].i[0],(t.s-f)/y,(t.e-f)/y,l[i-1]),this.addSegmentFromArray(c,r,s,g),g=!1,r.c=!1)}else r.c=!1;f+=a.addedLength,s+=1}if(r._length&&(r.setXYAt(r.v[u][0],r.v[u][1],"i",u),r.setXYAt(r.v[r._length-1][0],r.v[r._length-1][1],"o",r._length-1)),f>t.e)break;n<h-1&&(r=shapePool.newElement(),g=!0,m.push(r),s=0)}return m},extendPrototype([ShapeModifier],PuckerAndBloatModifier),PuckerAndBloatModifier.prototype.initModifierProperties=function(e,t){this.getValue=this.processKeys,this.amount=PropertyFactory.getProp(e,t.a,0,null,this),this._isAnimated=!!this.amount.effectsSequence.length},PuckerAndBloatModifier.prototype.processPath=function(e,t){var r=t/100,n=[0,0],i=e._length,o=0;for(o=0;o<i;o+=1)n[0]+=e.v[o][0],n[1]+=e.v[o][1];n[0]/=i,n[1]/=i;var a,s,l,c,u,p,d=shapePool.newElement();for(d.c=e.c,o=0;o<i;
vendor: 45,472 bytes, line 31
31o+=1)a=e.v[o][0]+(n[0]-e.v[o][0])*r,s=e.v[o][1]+(n[1]-e.v[o][1])*r,l=e.o[o][0]+(n[0]-e.o[o][0])*-r,c=e.o[o][1]+(n[1]-e.o[o][1])*-r,u=e.i[o][0]+(n[0]-e.i[o][0])*-r,p=e.i[o][1]+(n[1]-e.i[o][1])*-r,d.setTripleAt(a,s,l,c,u,p,o);return d},PuckerAndBloatModifier.prototype.processShapes=function(e){var t,r,n,i,o,a,s=this.shapes.length,l=this.amount.v;if(0!==l)for(r=0;r<s;r+=1){if(a=(o=this.shapes[r]).localShapeCollection,o.shape._mdf||this._mdf||e)for(a.releaseShapes(),o.shape._mdf=!0,t=o.shape.paths.shapes,i=o.shape.paths._length,n=0;n<i;n+=1)a.addShape(this.processPath(t[n],l));o.shape.paths=o.localShapeCollection}this.dynamicProperties.length||(this._mdf=!1)};var TransformPropertyFactory=function(){var e=[0,0];function t(e,t,r){if(this.elem=e,this.frameId=-1,this.propType="transform",this.data=t,this.v=new Matrix,this.pre=new Matrix,this.appliedTransformations=0,this.initDynamicPropertyContainer(r||e),t.p&&t.p.s?(this.px=PropertyFactory.getProp(e,t.p.x,0,0,this),this.py=PropertyFactory.getProp(e,t.p.y,0,0,this),t.p.z&&(this.pz=PropertyFactory.getProp(e,t.p.z,0,0,this))):this.p=PropertyFactory.getProp(e,t.p||{k:[0,0,0]},1,0,this),t.rx){if(this.rx=PropertyFactory.getProp(e,t.rx,0,degToRads,this),this.ry=PropertyFactory.getProp(e,t.ry,0,degToRads,this),this.rz=PropertyFactory.getProp(e,t.rz,0,degToRads,this),t.or.k[0].ti){var n,i=t.or.k.length;for(n=0;n<i;n+=1)t.or.k[n].to=null,t.or.k[n].ti=null}this.or=PropertyFactory.getProp(e,t.or,1,degToRads,this),this.or.sh=!0}else this.r=PropertyFactory.getProp(e,t.r||{k:0},0,degToRads,this);t.sk&&(this.sk=PropertyFactory.getProp(e,t.sk,0,degToRads,this),this.sa=PropertyFactory.getProp(e,t.sa,0,degToRads,this)),this.a=PropertyFactory.getProp(e,t.a||{k:[0,0,0]},1,0,this),this.s=PropertyFactory.getProp(e,t.s||{k:[100,100,100]},1,.01,this),t.o?this.o=PropertyFactory.getProp(e,t.o,0,.01,e):this.o={_mdf:!1,v:1},this._isDirty=!0,this.dynamicProperties.length||this.getValue(!0)}return t.prototype={applyToMatrix:function(e){var t=this._mdf;this.iterateDynamicProperties(),this._mdf=this._mdf||t,this.a&&e.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.s&&e.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.sk&&e.skewFromAxis(-this.sk.v,this.sa.v),this.r?e.rotate(-this.r.v):e.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.data.p.s?this.data.p.z?e.translate(this.px.v,this.py.v,-this.pz.v):e.translate(this.px.v,this.py.v,0):e.translate(this.p.v[0],this.p.v[1],-this.p.v[2])},getValue:function(t){if(this.elem.globalData.frameId!==this.frameId){if(this._isDirty&&(this.precalculateMatrix(),this._isDirty=!1),this.iterateDynamicProperties(),this._mdf||t){var r;if(this.v.cloneFromProps(this.pre.props),this.appliedTransformations<1&&this.v.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.appliedTransformations<2&&this.v.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.sk&&this.appliedTransformations<3&&this.v.skewFromAxis(-this.sk.v,this.sa.v),this.r&&this.appliedTransformations<4?this.v.rotate(-this.r.v):!this.r&&this.appliedTransformations<4&&this.v.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.autoOriented){var n,i;if(r=this.elem.globalData.frameRate,this.p&&this.p.keyframes&&this.p.getValueAtTime)this.p._caching.lastFrame+this.p.offsetTime<=this.p.keyframes[0].t?(n=this.p.getValueAtTime((this.p.keyframes[0].t+.01)/r,0),i=this.p.getValueAtTime(this.p.keyframes[0].t/r,0)):this.p._caching.lastFrame+this.p.offsetTime>=this.p.keyframes[this.p.keyframes.length-1].t?(n=this.p.getValueAtTime(this.p.keyframes[this.p.keyframes.length-1].t/r,0),i=this.p.getValueAtTime((this.p.keyframes[this.p.keyframes.length-1].t-.05)/r,0)):(n=this.p.pv,i=this.p.getValueAtTime((this.p._caching.lastFrame+this.p.offsetTime-.01)/r,this.p.offsetTime));else if(this.px&&this.px.keyframes&&this.py.keyframes&&this.px.getValueAtTime&&this.py.getValueAtTime){n=[],i=[];var o=this.px,a=this.py;o._caching.lastFrame+o.offsetTime<=o.keyframes[0].t?(n[0]=o.getValueAtTime((o.keyframes[0].t+.01)/r,0),n[1]=a.getValueAtTime((a.keyframes[0].t+.01)/r,0),i[0]=o.getValueAtTime(o.keyframes[0].t/r,0),i[1]=a.getValueAtTime(a.keyframes[0].t/r,0)):o._caching.lastFrame+o.offsetTime>=o.keyframes[o.keyframes.length-1].t?(n[0]=o.getValueAtTime(o.keyframes[o.keyframes.length-1].t/r,0),n[1]=a.getValueAtTime(a.keyframes[a.keyframes.length-1].t/r,0),i[0]=o.getValueAtTime((o.keyframes[o.keyframes.length-1].t-.01)/r,0),i[1]=a.getValueAtTime((a.keyframes[a.keyframes.length-1].t-.01)/r,0)):(n=[o.pv,a.pv],i[0]=o.getValueAtTime((o._caching.lastFrame+o.offsetTime-.01)/r,o.offsetTime),i[1]=a.getValueAtTime((a._caching.lastFrame+a.offsetTime-.01)/r,a.offsetTime))}else n=i=e;this.v.rotate(-Math.atan2(n[1]-i[1],n[0]-i[0]))}this.data.p&&this.data.p.s?this.data.p.z?this.v.translate(this.px.v,this.py.v,-this.pz.v):this.v.translate(this.px.v,this.py.v,0):this.v.translate(this.p.v[0],this.p.v[1],-this.p.v[2])}this.frameId=this.elem.globalData.frameId}},precalculateMatrix:function(){if(this.appliedTransformations=0,this.pre.reset(),!this.a.effectsSequence.length&&(this.pre.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.appliedTransformations=1,!this.s.effectsSequence.length)){if(this.pre.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.appliedTransformations=2,this.sk){if(this.sk.effectsSequence.length||this.sa.effectsSequence.length)return;this.pre.skewFromAxis(-this.sk.v,this.sa.v),this.appliedTransformations=3}this.r?this.r.effectsSequence.length||(this.pre.rotate(-this.r.v),this.appliedTransformations=4):this.rz.effectsSequence.length||this.ry.effectsSequence.length||this.rx.effectsSequence.length||this.or.effectsSequence.length||(this.pre.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.appliedTransformations=4)}},autoOrient:function(){}},extendPrototype([DynamicPropertyContainer],t),t.prototype.addDynamicProperty=function(e){this._addDynamicProperty(e),this.elem.addDynamicProperty(e),this._isDirty=!0},t.prototype._addDynamicProperty=DynamicPropertyContainer.prototype.addDynamicProperty,{getTransformProperty:function(e,r,n){return new t(e,r,n)}}}();function RepeaterModifier(){}function RoundCornersModifier(){}function floatEqual(e,t){return 1e5*Math.abs(e-t)<=Math.min(Math.abs(e),Math.abs(t))}function floatZero(e){return Math.abs(e)<=1e-5}function lerp(e,t,r){return e*(1-r)+t*r}function lerpPoint(e,t,r){return[lerp(e[0],t[0],r),lerp(e[1],t[1],r)]}function quadRoots(e,t,r){if(0===e)return[];var n=t*t-4*e*r;if(n<0)return[];var i=-t/(2*e);if(0===n)return[i];var o=Math.sqrt(n)/(2*e);return[i-o,i+o]}function polynomialCoefficients(e,t,r,n){return[3*t-e-3*r+n,3*e-6*t+3*r,-3*e+3*t,e]}function singlePoint(e){return new PolynomialBezier(e,e,e,e,!1)}function PolynomialBezier(e,t,r,n,i){i&&pointEqual(e,t)&&(t=lerpPoint(e,n,1/3)),i&&pointEqual(r,n)&&(r=lerpPoint(e,n,2/3));var o=polynomialCoefficients(e[0],t[0],r[0],n[0]),a=polynomialCoefficients(e[1],t[1],r[1],n[1]);this.a=[o[0],a[0]],this.b=[o[1],a[1]],this.c=[o[2],a[2]],this.d=[o[3],a[3]],this.points=[e,t,r,n]}function extrema(e,t){var r=e.points[0][t],n=e.points[e.points.length-1][t];if(r>n){var i=n;n=r,r=i}for(var o=quadRoots(3*e.a[t],2*e.b[t],e.c[t]),a=0;a<o.length;a+=1)if(o[a]>0&&o[a]<1){var s=e.point(o[a])[t];s<r?r=s:s>n&&(n=s)}return{min:r,max:n}}function intersectData(e,t,r){var n=e.boundingBox();return{cx:n.cx,cy:n.cy,width:n.width,height:n.height,bez:e,t:(t+r)/2,t1:t,t2:r}}function splitData(e){var t=e.bez.split(.5);return[intersectData(t[0],e.t1,e.t),intersectData(t[1],e.t,e.t2)]}function boxIntersect(e,t){return 2*Math.abs(e.cx-t.cx)<e.width+t.width&&2*Math.abs(e.cy-t.cy)<e.height+t.height}function intersectsImpl(e,t,r,n,i,o){if(boxIntersect(e,t))if(r>=o||e.width<=n&&e.height<=n&&t.width<=n&&t.height<=n)i.push([e.t,t.t]);else{var a=splitData(e),s=splitData(t);intersectsImpl(a[0],s[0],r+1,n,i,o),intersectsImpl(a[0],s[1],r+1,n,i,o),intersectsImpl(a[1],s[0],r+1,n,i,o),intersectsImpl(a[1],s[1],r+1,n,i,o)}}function crossProduct(e,t){return[e[1]*t[2]-e[2]*t[1],e[2]*t[0]-e[0]*t[2],e[0]*t[1]-e[1]*t[0]]}function lineIntersection(e,t,r,n){var i=[e[0],e[1],1],o=[t[0],t[1],1],a=[r[0],r[1],1],s=[n[0],n[1],1],l=crossProduct(crossProduct(i,o),crossProduct(a,s));return floatZero(l[2])?null:[l[0]/l[2],l[1]/l[2]]}function polarOffset(e,t,r){return[e[0]+Math.cos(t)*r,e[1]-Math.sin(t)*r]}function pointDistance(e,t){return Math.hypot(e[0]-t[0],e[1]-t[1])}function pointEqual(e,t){return floatEqual(e[0],t[0])&&floatEqual(e[1],t[1])}function ZigZagModifier(){}function setPoint(e,t,r,n,i,o,a){var s=r-Math.PI/2,l=r+Math.PI/2,c=t[0]+Math.cos(r)*n*i,u=t[1]-Math.sin(r)*n*i;e.setTripleAt(c,u,c+Math.cos(s)*o,u-Math.sin(s)*o,c+Math.cos(l)*a,u-Math.sin(l)*a,e.length())}function getPerpendicularVector(e,t){var r=[t[0]-e[0],t[1]-e[1]],n=.5*-Math.PI;return[Math.cos(n)*r[0]-Math.sin(n)*r[1],Math.sin(n)*r[0]+Math.cos(n)*r[1]]}function getProjectingAngle(e,t){var r=0===t?e.length()-1:t-1,n=(t+1)%e.length(),i=getPerpendicularVector(e.v[r],e.v[n]);return Math.atan2(0,1)-Math.atan2(i[1],i[0])}function zigZagCorner(e,t,r,n,i,o,a){var s=getProjectingAngle(t,r),l=t.v[r%t._length],c=t.v[0===r?t._length-1:r-1],u=t.v[(r+1)%t._length],p=2===o?Math.sqrt(Math.pow(l[0]-c[0],2)+Math.pow(l[1]-c[1],2)):0,d=2===o?Math.sqrt(Math.pow(l[0]-u[0],2)+Math.pow(l[1]-u[1],2)):0;setPoint(e,t.v[r%t._length],s,a,n,d/(2*(i+1)),p/(2*(i+1)),o)}function zigZagSegment(e,t,r,n,i,o){for(var a=0;a<n;a+=1){var s=(a+1)/(n+1),l=2===i?Math.sqrt(Math.pow(t.points[3][0]-t.points[0][0],2)+Math.pow(t.points[3][1]-t.points[0][1],2)):0,c=t.normalAngle(s);setPoint(e,t.point(s),c,o,r,l/(2*(n+1)),l/(2*(n+1)),i),o=-o}return o}function linearOffset(e,t,r){var n=Math.atan2(t[0]-e[0],t[1]-e[1]);return[polarOffset(e,n,r),polarOffset(t,n,r)]}function offsetSegment(e,t){var r,n,i,o,a,s,l;r=(l=linearOffset(e.points[0],e.points[1],t))[0],n=l[1],i=(l=linearOffset(e.points[1],e.points[2],t))[0],o=l[1],a=(l=linearOffset(e.points[2],e.points[3],t))[0],s=l[1];var c=lineIntersection(r,n,i,o);null===c&&(c=n);var u=lineIntersection(a,s,i,o);return null===u&&(u=a),new PolynomialBezier(r,c,u,s)}function joinLines(e,t,r,n,i){var o=t.points[3],a=r.points[0];if(3===n)return o;if(pointEqual(o,a))return o;if(2===n){var s=-t.tangentAngle(1),l=-r.tangentAngle(0)+Math.PI,c=lineIntersection(o,polarOffset(o,s+Math.PI/2,100),a,polarOffset(a,s+Math.PI/2,100)),u=c?pointDistance(c,o):pointDistance(o,a)/2,p=polarOffset(o,s,2*u*roundCorner);return e.setXYAt(p[0],p[1],"o",e.length()-1),p=polarOffset(a,l,2*u*roundCorner),e.setTripleAt(a[0],a[1],a[0],a[1],p[0],p[1],e.length()),a}var d=lineIntersection(pointEqual(o,t.points[2])?t.points[0]:t.points[2],o,a,pointEqual(a,r.points[1])?r.points[3]:r.points[1]);return d&&pointDistance(d,o)<i?(e.setTripleAt(d[0],d[1],d[0],d[1],d[0],d[1],e.length()),d):o}function getIntersection(e,t){var r=e.intersections(t);return r.length&&floatEqual(r[0][0],1)&&r.shift(),r.length?r[0]:null}function pruneSegmentIntersection(e,t){var r=e.slice(),n=t.slice(),i=getIntersection(e[e.length-1],t[0]);return i&&(r[e.length-1]=e[e.length-1].split(i[0])[0],n[0]=t[0].split(i[1])[1]),e.length>1&&t.length>1&&(i=getIntersection(e[0],t[t.length-1]))?[[e[0].split(i[0])[0]],[t[t.length-1].split(i[1])[1]]]:[r,n]}function pruneIntersections(e){for(var t,r=1;r<e.length;r+=1)t=pruneSegmentIntersection(e[r-1],e[r]),e[r-1]=t[0],e[r]=t[1];return e.length>1&&(t=pruneSegmentIntersection(e[e.length-1],e[0]),e[e.length-1]=t[0],e[0]=t[1]),e}function offsetSegmentSplit(e,t){var r,n,i,o,a=e.inflectionPoints();if(0===a.length)return[offsetSegment(e,t)];if(1===a.length||floatEqual(a[1],1))return r=(i=e.split(a[0]))[0],n=i[1],[offsetSegment(r,t),offsetSegment(n,t)];r=(i=e.split(a[0]))[0];var s=(a[1]-a[0])/(1-a[0]);return o=(i=i[1].split(s))[0],n=i[1],[offsetSegment(r,t),offsetSegment(o,t),offsetSegment(n,t)]}function OffsetPathModifier(){}function getFontProperties(e){for(var t=e.fStyle?e.fStyle.split(" "):[],r="normal",n="normal",i=t.length,o=0;o<i;o+=1)switch(t[o].toLowerCase()){case"italic":n="italic";break;case"bold":r="700";break;case"black":r="900";break;case"medium":r="500";break;case"regular":case"normal":r="400";break;case"light":case"thin":r="200"}return{style:n,weight:e.fWeight||r}}extendPrototype([ShapeModifier],RepeaterModifier),RepeaterModifier.prototype.initModifierProperties=function(e,t){this.getValue=this.processKeys,this.c=PropertyFactory.getProp(e,t.c,0,null,this),this.o=PropertyFactory.getProp(e,t.o,0,null,this),this.tr=TransformPropertyFactory.getTransformProperty(e,t.tr,this),this.so=PropertyFactory.getProp(e,t.tr.so,0,.01,this),this.eo=PropertyFactory.getProp(e,t.tr.eo,0,.01,this),this.data=t,this.dynamicProperties.length||this.getValue(!0),this._isAnimated=!!this.dynamicProperties.length,this.pMatrix=new Matrix,this.rMatrix=new Matrix,this.sMatrix=new Matrix,this.tMatrix=new Matrix,this.matrix=new Matrix},RepeaterModifier.prototype.applyTransforms=function(e,t,r,n,i,o){var a=o?-1:1,s=n.s.v[0]+(1-n.s.v[0])*(1-i),l=n.s.v[1]+(1-n.s.v[1])*(1-i);e.translate(n.p.v[0]*a*i,n.p.v[1]*a*i,n.p.v[2]),t.translate(-n.a.v[0],-n.a.v[1],n.a.v[2]),t.rotate(-n.r.v*a*i),t.translate(n.a.v[0],n.a.v[1],n.a.v[2]),r.translate(-n.a.v[0],-n.a.v[1],n.a.v[2]),r.scale(o?1/s:s,o?1/l:l),r.translate(n.a.v[0],n.a.v[1],n.a.v[2])},RepeaterModifier.prototype.init=function(e,t,r,n){for(this.elem=e,this.arr=t,this.pos=r,this.elemsData=n,this._currentCopies=0,this._elements=[],this._groups=[],this.frameId=-1,this.initDynamicPropertyContainer(e),this.initModifierProperties(e,t[r]);r>0;)r-=1,this._elements.unshift(t[r]);this.dynamicProperties.length?this.k=!0:this.getValue(!0)},RepeaterModifier.prototype.resetElements=function(e){var t,r=e.length;for(t=0;t<r;t+=1)e[t]._processed=!1,"gr"===e[t].ty&&this.resetElements(e[t].it)},RepeaterModifier.prototype.cloneElements=function(e){var t=JSON.parse(JSON.stringify(e));return this.resetElements(t),t},RepeaterModifier.prototype.changeGroupRender=function(e,t){var r,n=e.length;for(r=0;r<n;r+=1)e[r]._render=t,"gr"===e[r].ty&&this.changeGroupRender(e[r].it,t)},RepeaterModifier.prototype.processShapes=function(e){var t,r,n,i,o,a=!1;if(this._mdf||e){var s,l=Math.ceil(this.c.v);if(this._groups.length<l){for(;this._groups.length<l;){var c={it:this.cloneElements(this._elements),ty:"gr"};c.it.push({a:{a:0,ix:1,k:[0,0]},nm:"Transform",o:{a:0,ix:7,k:100},p:{a:0,ix:2,k:[0,0]},r:{a:1,ix:6,k:[{s:0,e:0,t:0},{s:0,e:0,t:1}]},s:{a:0,ix:3,k:[100,100]},sa:{a:0,ix:5,k:0},sk:{a:0,ix:4,k:0},ty:"tr"}),this.arr.splice(0,0,c),this._groups.splice(0,0,c),this._currentCopies+=1}this.elem.reloadShapes(),a=!0}for(o=0,n=0;n<=this._groups.length-1;n+=1){if(s=o<l,this._groups[n]._render=s,this.changeGroupRender(this._groups[n].it,s),!s){var u=this.elemsData[n].it,p=u[u.length-1];0!==p.transform.op.v?(p.transform.op._mdf=!0,p.transform.op.v=0):p.transform.op._mdf=!1}o+=1}this._currentCopies=l;var d=this.o.v,h=d%1,f=d>0?Math.floor(d):Math.ceil(d),m=this.pMatrix.props,g=this.rMatrix.props,y=this.sMatrix.props;this.pMatrix.reset(),this.rMatrix.reset(),this.sMatrix.reset(),this.tMatrix.reset(),this.matrix.reset();var b,v,_=0;if(d>0){for(;_<f;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),_+=1;h&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,h,!1),_+=h)}else if(d<0){for(;_>f;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!0),_-=1;h&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,-h,!0),_-=h)}for(n=1===this.data.m?0:this._currentCopies-1,i=1===this.data.m?1:-1,o=this._currentCopies;o;){if(v=(r=(t=this.elemsData[n].it)[t.length-1].transform.mProps.v.props).length,t[t.length-1].transform.mProps._mdf=!0,t[t.length-1].transform.op._mdf=!0,t[t.length-1].transform.op.v=1===this._currentCopies?this.so.v:this.so.v+(this.eo.v-this.so.v)*(n/(this._currentCopies-1)),0!==_){for((0!==n&&1===i||n!==this._currentCopies-1&&-1===i)&&this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),this.matrix.transform(g[0],g[1],g[2],g[3],g[4],g[5],g[6],g[7],g[8],g[9],g[10],g[11],g[12],g[13],g[14],g[15]),this.matrix.transform(y[0],y[1],y[2],y[3],y[4],y[5],y[6],y[7],y[8],y[9],y[10],y[11],y[12],y[13],y[14],y[15]),this.matrix.transform(m[0],m[1],m[2],m[3],m[4],m[5],m[6],m[7],m[8],m[9],m[10],m[11],m[12],m[13],m[14],m[15]),b=0;b<v;b+=1)r[b]=this.matrix.props[b];this.matrix.reset()}else for(this.matrix.reset(),b=0;b<v;b+=1)r[b]=this.matrix.props[b];_+=1,o-=1,n+=i}}else for(o=this._currentCopies,n=0,i=1;o;)r=(t=this.elemsData[n].it)[t.length-1].transform.mProps.v.props,t[t.length-1].transform.mProps._mdf=!1,t[t.length-1].transform.op._mdf=!1,o-=1,n+=i;return a},RepeaterModifier.prototype.addShape=function(){},extendPrototype([ShapeModifier],RoundCornersModifier),RoundCornersModifier.prototype.initModifierProperties=function(e,t){this.getValue=this.processKeys,this.rd=PropertyFactory.getProp(e,t.r,0,null,this),this._isAnimated=!!this.rd.effectsSequence.length},RoundCornersModifier.prototype.processPath=function(e,t){var r,n=shapePool.newElement();n.c=e.c;var i,o,a,s,l,c,u,p,d,h,f,m,g=e._length,y=0;for(r=0;r<g;r+=1)i=e.v[r],a=e.o[r],o=e.i[r],i[0]===a[0]&&i[1]===a[1]&&i[0]===o[0]&&i[1]===o[1]?0!==r&&r!==g-1||e.c?(s=0===r?e.v[g-1]:e.v[r-1],c=(l=Math.sqrt(Math.pow(i[0]-s[0],2)+Math.pow(i[1]-s[1],2)))?Math.min(l/2,t)/l:0,u=f=i[0]+(s[0]-i[0])*c,p=m=i[1]-(i[1]-s[1])*c,d=u-(u-i[0])*roundCorner,h=p-(p-i[1])*roundCorner,n.setTripleAt(u,p,d,h,f,m,y),y+=1,s=r===g-1?e.v[0]:e.v[r+1],c=(l=Math.sqrt(Math.pow(i[0]-s[0],2)+Math.pow(i[1]-s[1],2)))?Math.min(l/2,t)/l:0,u=d=i[0]+(s[0]-i[0])*c,p=h=i[1]+(s[1]-i[1])*c,f=u-(u-i[0])*roundCorner,m=p-(p-i[1])*roundCorner,n.setTripleAt(u,p,d,h,f,m,y),y+=1):(n.setTripleAt(i[0],i[1],a[0],a[1],o[0],o[1],y),y+=1):(n.setTripleAt(e.v[r][0],e.v[r][1],e.o[r][0],e.o[r][1],e.i[r][0],e.i[r][1],y),y+=1);return n},RoundCornersModifier.prototype.processShapes=function(e){var t,r,n,i,o,a,s=this.shapes.length,l=this.rd.v;if(0!==l)for(r=0;r<s;r+=1){if(a=(o=this.shapes[r]).localShapeCollection,o.shape._mdf||this._mdf||e)for(a.releaseShapes(),o.shape._mdf=!0,t=o.shape.paths.shapes,i=o.shape.paths._length,n=0;n<i;n+=1)a.addShape(this.processPath(t[n],l));o.shape.paths=o.localShapeCollection}this.dynamicProperties.length||(this._mdf=!1)},PolynomialBezier.prototype.point=function(e){return[((this.a[0]*e+this.b[0])*e+this.c[0])*e+this.d[0],((this.a[1]*e+this.b[1])*e+this.c[1])*e+this.d[1]]},PolynomialBezier.prototype.derivative=function(e){return[(3*e*this.a[0]+2*this.b[0])*e+this.c[0],(3*e*this.a[1]+2*this.b[1])*e+this.c[1]]},PolynomialBezier.prototype.tangentAngle=function(e){var t=this.derivative(e);return Math.atan2(t[1],t[0])},PolynomialBezier.prototype.normalAngle=function(e){var t=this.derivative(e);return Math.atan2(t[0],t[1])},PolynomialBezier.prototype.inflectionPoints=function(){var e=this.a[1]*this.b[0]-this.a[0]*this.b[1];if(floatZero(e))return[];var t=-.5*(this.a[1]*this.c[0]-this.a[0]*this.c[1])/e,r=t*t-1/3*(this.b[1]*this.c[0]-this.b[0]*this.c[1])/e;if(r<0)return[];var n=Math.sqrt(r);return floatZero(n)?n>0&&n<1?[t]:[]:[t-n,t+n].filter(function(e){return e>0&&e<1})},PolynomialBezier.prototype.split=function(e){if(e<=0)return[singlePoint(this.points[0]),this];if(e>=1)return[this,singlePoint(this.points[this.points.length-1])];var t=lerpPoint(this.points[0],this.points[1],e),r=lerpPoint(this.points[1],this.points[2],e),n=lerpPoint(this.points[2],this.points[3],e),i=lerpPoint(t,r,e),o=lerpPoint(r,n,e),a=lerpPoint(i,o,e);return[new PolynomialBezier(this.points[0],t,i,a,!0),new PolynomialBezier(a,o,n,this.points[3],!0)]},PolynomialBezier.prototype.bounds=function(){return{x:extrema(this,0),y:extrema(this,1)}},PolynomialBezier.prototype.boundingBox=function(){var e=this.bounds();return{left:e.x.min,right:e.x.max,top:e.y.min,bottom:e.y.max,width:e.x.max-e.x.min,height:e.y.max-e.y.min,cx:(e.x.max+e.x.min)/2,cy:(e.y.max+e.y.min)/2}},PolynomialBezier.prototype.intersections=function(e,t,r){void 0===t&&(t=2),void 0===r&&(r=7);var n=[];return intersectsImpl(intersectData(this,0,1),intersectData(e,0,1),0,t,n,r),n},PolynomialBezier.shapeSegment=function(e,t){var r=(t+1)%e.length();return new PolynomialBezier(e.v[t],e.o[t],e.i[r],e.v[r],!0)},PolynomialBezier.shapeSegmentInverted=function(e,t){var r=(t+1)%e.length();return new PolynomialBezier(e.v[r],e.i[r],e.o[t],e.v[t],!0)},extendPrototype([ShapeModifier],ZigZagModifier),ZigZagModifier.prototype.initModifierProperties=function(e,t){this.getValue=this.processKeys,this.amplitude=PropertyFactory.getProp(e,t.s,0,null,this),this.frequency=PropertyFactory.getProp(e,t.r,0,null,this),this.pointsType=PropertyFactory.getProp(e,t.pt,0,null,this),this._isAnimated=0!==this.amplitude.effectsSequence.length||0!==this.frequency.effectsSequence.length||0!==this.pointsType.effectsSequence.length},ZigZagModifier.prototype.processPath=function(e,t,r,n){var i=e._length,o=shapePool.newElement();if(o.c=e.c,e.c||(i-=1),0===i)return o;var a=-1,s=PolynomialBezier.shapeSegment(e,0);zigZagCorner(o,e,0,t,r,n,a);for(var l=0;l<i;l+=1)a=zigZagSegment(o,s,t,r,n,-a),s=l!==i-1||e.c?PolynomialBezier.shapeSegment(e,(l+1)%i):null,zigZagCorner(o,e,l+1,t,r,n,a);return o},ZigZagModifier.prototype.processShapes=function(e){var t,r,n,i,o,a,s=this.shapes.length,l=this.amplitude.v,c=Math.max(0,Math.round(this.frequency.v)),u=this.pointsType.v;if(0!==l)for(r=0;r<s;r+=1){if(a=(o=this.shapes[r]).localShapeCollection,o.shape._mdf||this._mdf||e)for(a.releaseShapes(),o.shape._mdf=!0,t=o.shape.paths.shapes,i=o.shape.paths._length,n=0;n<i;n+=1)a.addShape(this.processPath(t[n],l,c,u));o.shape.paths=o.localShapeCollection}this.dynamicProperties.length||(this._mdf=!1)},extendPrototype([ShapeModifier],OffsetPathModifier),OffsetPathModifier.prototype.initModifierProperties=function(e,t){this.getValue=this.processKeys,this.amount=PropertyFactory.getProp(e,t.a,0,null,this),this.miterLimit=PropertyFactory.getProp(e,t.ml,0,null,this),this.lineJoin=t.lj,this._isAnimated=0!==this.amount.effectsSequence.length},OffsetPathModifier.prototype.processPath=function(e,t,r,n){var i=shapePool.newElement();i.c=e.c;var o,a,s,l=e.length();e.c||(l-=1);var c=[];for(o=0;o<l;o+=1)s=PolynomialBezier.shapeSegment(e,o),c.push(offsetSegmentSplit(s,t));if(!e.c)for(o=l-1;o>=0;o-=1)s=PolynomialBezier.shapeSegmentInverted(e,o),c.push(offsetSegmentSplit(s,t));c=pruneIntersections(c);var u=null,p=null;for(o=0;o<c.length;o+=1){var d=c[o];for(p&&(u=joinLines(i,p,d[0],r,n)),p=d[d.length-1],a=0;a<d.length;a+=1)s=d[a],u&&pointEqual(s.points[0],u)?i.setXYAt(s.points[1][0],s.points[1][1],"o",i.length()-1):i.setTripleAt(s.points[0][0],s.points[0][1],s.points[1][0],s.points[1][1],s.points[0][0],s.points[0][1],i.length()),i.setTripleAt(s.points[3][0],s.points[3][1],s.points[3][0],s.points[3][1],s.points[2][0],s.points[2][1],i.length()),u=s.points[3]}return c.length&&joinLines(i,p,c[0][0],r,n),i},OffsetPathModifier.prototype.processShapes=function(e){var t,r,n,i,o,a,s=this.shapes.length,l=this.amount.v,c=this.miterLimit.v,u=this.lineJoin;if(0!==l)for(r=0;r<s;r+=1){if(a=(o=this.shapes[r]).localShapeCollection,o.shape._mdf||this._mdf||e)for(a.releaseShapes(),o.shape._mdf=!0,t=o.shape.paths.shapes,i=o.shape.paths._length,n=0;n<i;n+=1)a.addShape(this.processPath(t[n],l,u,c));o.shape.paths=o.localShapeCollection}this.dynamicProperties.length||(this._mdf=!1)};var FontManager=function(){var e={w:0,size:0,shapes:[],data:{shapes:[]}},t=[];t=t.concat([2304,2305,2306,2307,2362,2363,2364,2364,2366,2367,2368,2369,2370,2371,2372,2373,2374,2375,2376,2377,2378,2379,2380,2381,2382,2383,2387,2388,2389,2390,2391,2402,2403]);var r=127988,n=["d83cdffb","d83cdffc","d83cdffd","d83cdffe","d83cdfff"];function i(e,t){var r=createTag("span");r.setAttribute("aria-hidden",!0),r.style.fontFamily=t;var n=createTag("span");n.innerText="giItT1WQy@!-/#",r.style.position="absolute",r.style.left="-10000px",r.style.top="-10000px",r.style.fontSize="300px",r.style.fontVariant="normal",r.style.fontStyle="normal",r.style.fontWeight="normal",r.style.letterSpacing="0",r.appendChild(n),document.body.appendChild(r);var i=n.offsetWidth;return n.style.fontFamily=function(e){var t,r=e.split(","),n=r.length,i=[];for(t=0;t<n;t+=1)"sans-serif"!==r[t]&&"monospace"!==r[t]&&i.push(r[t]);return i.join(",")}(e)+", "+t,{node:n,w:i,parent:r}}function o(e,t){var r,n=document.body&&t?"svg":"canvas",i=getFontProperties(e);if("svg"===n){var o=createNS("text");o.style.fontSize="100px",o.setAttribute("font-family",e.fFamily),o.setAttribute("font-style",i.style),o.setAttribute("font-weight",i.weight),o.textContent="1",e.fClass?(o.style.fontFamily="inherit",o.setAttribute("class",e.fClass)):o.style.fontFamily=e.fFamily,t.appendChild(o),r=o}else{var a=new OffscreenCanvas(500,500).getContext("2d");a.font=i.style+" "+i.weight+" 100px "+e.fFamily,r=a}return{measureText:function(e){return"svg"===n?(r.textContent=e,r.getComputedTextLength()):r.measureText(e).width}}}function a(e){var t=0,r=e.charCodeAt(0);if(r>=55296&&r<=56319){var n=e.charCodeAt(1);n>=56320&&n<=57343&&(t=1024*(r-55296)+n-56320+65536)}return t}function s(e){var t=a(e);return t>=127462&&t<=127487}var l=function(){this.fonts=[],this.chars=null,this.typekitLoaded=0,this.isLoaded=!1,this._warned=!1,this.initTime=Date.now(),this.setIsLoadedBinded=this.setIsLoaded.bind(this),this.checkLoadedFontsBinded=this.checkLoadedFonts.bind(this)};l.isModifier=function(e,t){var r=e.toString(16)+t.toString(16);return-1!==n.indexOf(r)},l.isZeroWidthJoiner=function(e){return 8205===e},l.isFlagEmoji=function(e){return s(e.substr(0,2))&&s(e.substr(2,2))},l.isRegionalCode=s,l.isCombinedCharacter=function(e){return-1!==t.indexOf(e)},l.isRegionalFlag=function(e,t){var n=a(e.substr(t,2));if(n!==r)return!1;var i=0;for(t+=2;i<5;){if((n=a(e.substr(t,2)))<917601||n>917626)return!1;i+=1,t+=2}return 917631===a(e.substr(t,2))},l.isVariationSelector=function(e){return 65039===e},l.BLACK_FLAG_CODE_POINT=r;var c={addChars:function(e){if(e){var t;this.chars||(this.chars=[]);var r,n,i=e.length,o=this.chars.length;for(t=0;t<i;t+=1){for(r=0,n=!1;r<o;)this.chars[r].style===e[t].style&&this.chars[r].fFamily===e[t].fFamily&&this.chars[r].ch===e[t].ch&&(n=!0),r+=1;n||(this.chars.push(e[t]),o+=1)}}},addFonts:function(e,t){if(e){if(this.chars)return this.isLoaded=!0,void(this.fonts=e.list);if(!document.body)return this.isLoaded=!0,e.list.forEach(function(e){e.helper=o(e),e.cache={}}),void(this.fonts=e.list);var r,n=e.list,a=n.length,s=a;for(r=0;r<a;r+=1){var l,c,u=!0;if(n[r].loaded=!1,n[r].monoCase=i(n[r].fFamily,"monospace"),n[r].sansCase=i(n[r].fFamily,"sans-serif"),n[r].fPath){if("p"===n[r].fOrigin||3===n[r].origin){if((l=document.querySelectorAll('style[f-forigin="p"][f-family="'+n[r].fFamily+'"], style[f-origin="3"][f-family="'+n[r].fFamily+'"]')).length>0&&(u=!1),u){var p=createTag("style");p.setAttribute("f-forigin",n[r].fOrigin),p.setAttribute("f-origin",n[r].origin),p.setAttribute("f-family",n[r].fFamily),p.type="text/css",p.innerText="@font-face {font-family: "+n[r].fFamily+"; font-style: normal; src: url('"+n[r].fPath+"');}",t.appendChild(p)}}else if("g"===n[r].fOrigin||1===n[r].origin){for(l=document.querySelectorAll('link[f-forigin="g"], link[f-origin="1"]'),c=0;c<l.length;c+=1)-1!==l[c].href.indexOf(n[r].fPath)&&(u=!1);if(u){var d=createTag("link");d.setAttribute("f-forigin",n[r].fOrigin),d.setAttribute("f-origin",n[r].origin),d.type="text/css",d.rel="stylesheet",d.href=n[r].fPath,document.body.appendChild(d)}}else if("t"===n[r].fOrigin||2===n[r].origin){for(l=document.querySelectorAll('script[f-forigin="t"], script[f-origin="2"]'),c=0;c<l.length;c+=1)n[r].fPath===l[c].src&&(u=!1);if(u){var h=createTag("link");h.setAttribute("f-forigin",n[r].fOrigin),h.setAttribute("f-origin",n[r].origin),h.setAttribute("rel","stylesheet"),h.setAttribute("href",n[r].fPath),t.appendChild(h)}}}else n[r].loaded=!0,s-=1;n[r].helper=o(n[r],t),n[r].cache={},this.fonts.push(n[r])}0===s?this.isLoaded=!0:setTimeout(this.checkLoadedFonts.bind(this),100)}else this.isLoaded=!0},getCharData:function(t,r,n){for(var i=0,o=this.chars.length;i<o;){if(this.chars[i].ch===t&&this.chars[i].style===r&&this.chars[i].fFamily===n)return this.chars[i];i+=1}return("string"==typeof t&&13!==t.charCodeAt(0)||!t)&&console&&console.warn&&!this._warned&&(this._warned=!0,console.warn("Missing character from exported characters list: ",t,r,n)),e},getFontByName:function(e){for(var t=0,r=this.fonts.length;t<r;){if(this.fonts[t].fName===e)return this.fonts[t];t+=1}return this.fonts[0]},measureText:function(e,t,r){var n=this.getFontByName(t),i=e;if(!n.cache[i]){var o=n.helper;if(" "===e){var a=o.measureText("|"+e+"|"),s=o.measureText("||");n.cache[i]=(a-s)/100}else n.cache[i]=o.measureText(e)/100}return n.cache[i]*r},checkLoadedFonts:function(){var e,t,r,n=this.fonts.length,i=n;for(e=0;e<n;e+=1)this.fonts[e].loaded?i-=1:"n"===this.fonts[e].fOrigin||0===this.fonts[e].origin?this.fonts[e].loaded=!0:(t=this.fonts[e].monoCase.node,r=this.fonts[e].monoCase.w,t.offsetWidth!==r?(i-=1,this.fonts[e].loaded=!0):(t=this.fonts[e].sansCase.node,r=this.fonts[e].sansCase.w,t.offsetWidth!==r&&(i-=1,this.fonts[e].loaded=!0)),this.fonts[e].loaded&&(this.fonts[e].sansCase.parent.parentNode.removeChild(this.fonts[e].sansCase.parent),this.fonts[e].monoCase.parent.parentNode.removeChild(this.fonts[e].monoCase.parent)));0!==i&&Date.now()-this.initTime<5e3?setTimeout(this.checkLoadedFontsBinded,20):setTimeout(this.setIsLoadedBinded,10)},setIsLoaded:function(){this.isLoaded=!0}};return l.prototype=c,l}();function SlotManager(e){this.animationData=e}function slotFactory(e){return new SlotManager(e)}function RenderableElement(){}SlotManager.prototype.getProp=function(e){return this.animationData.slots&&this.animationData.slots[e.sid]?Object.assign(e,this.animationData.slots[e.sid].p):e},RenderableElement.prototype={initRenderable:function(){this.isInRange=!1,this.hidden=!1,this.isTransparent=!1,this.renderableComponents=[]},addRenderableComponent:function(e){-1===this.renderableComponents.indexOf(e)&&this.renderableComponents.push(e)},removeRenderableComponent:function(e){-1!==this.renderableComponents.indexOf(e)&&this.renderableComponents.splice(this.renderableComponents.indexOf(e),1)},prepareRenderableFrame:function(e){this.checkLayerLimits(e)},checkTransparency:function(){this.finalTransform.mProp.o.v<=0?!this.isTransparent&&this.globalData.renderConfig.hideOnTransparent&&(this.isTransparent=!0,this.hide()):this.isTransparent&&(this.isTransparent=!1,this.show())},checkLayerLimits:function(e){this.data.ip-this.data.st<=e&&this.data.op-this.data.st>e?!0!==this.isInRange&&(this.globalData._mdf=!0,this._mdf=!0,this.isInRange=!0,this.show()):!1!==this.isInRange&&(this.globalData._mdf=!0,this.isInRange=!1,this.hide())},renderRenderable:function(){var e,t=this.renderableComponents.length;for(e=0;e<t;e+=1)this.renderableComponents[e].renderFrame(this._isFirstFrame)},sourceRectAtTime:function(){return{top:0,left:0,width:100,height:100}},getLayerSize:function(){return 5===this.data.ty?{w:this.data.textData.width,h:this.data.textData.height}:{w:this.data.width,h:this.data.height}}};var getBlendMode=(blendModeEnums={0:"source-over",1:"multiply",2:"screen",3:"overlay",4:"darken",5:"lighten",6:"color-dodge",7:"color-burn",8:"hard-light",9:"soft-light",10:"difference",11:"exclusion",12:"hue",13:"saturation",14:"color",15:"luminosity"},function(e){return blendModeEnums[e]||""}),blendModeEnums;function SliderEffect(e,t,r){this.p=PropertyFactory.getProp(t,e.v,0,0,r)}function AngleEffect(e,t,r){this.p=PropertyFactory.getProp(t,e.v,0,0,r)}function ColorEffect(e,t,r){this.p=PropertyFactory.getProp(t,e.v,1,0,r)}function PointEffect(e,t,r){this.p=PropertyFactory.getProp(t,e.v,1,0,r)}function LayerIndexEffect(e,t,r){this.p=PropertyFactory.getProp(t,e.v,0,0,r)}function MaskIndexEffect(e,t,r){this.p=PropertyFactory.getProp(t,e.v,0,0,r)}function CheckboxEffect(e,t,r){this.p=PropertyFactory.getProp(t,e.v,0,0,r)}function NoValueEffect(){this.p={}}function EffectsManager(e,t){var r,n=e.ef||[];this.effectElements=[];var i,o=n.length;for(r=0;r<o;r+=1)i=new GroupEffect(n[r],t),this.effectElements.push(i)}function GroupEffect(e,t){this.init(e,t)}function BaseElement(){}function FrameElement(){}function FootageElement(e,t,r){this.initFrame(),this.initRenderable(),this.assetData=t.getAssetData(e.refId),this.footageData=t.imageLoader.getAsset(this.assetData),this.initBaseData(e,t,r)}function AudioElement(e,t,r){this.initFrame(),this.initRenderable(),this.assetData=t.getAssetData(e.refId),this.initBaseData(e,t,r),this._isPlaying=!1,this._canPlay=!1;var n=this.globalData.getAssetsPath(this.assetData);this.audio=this.globalData.audioController.createAudio(n),this._currentTime=0,this.globalData.audioController.addAudio(this),this._volumeMultiplier=1,this._volume=1,this._previousVolume=null,this.tm=e.tm?PropertyFactory.getProp(this,e.tm,0,t.frameRate,this):{_placeholder:!0},this.lv=PropertyFactory.getProp(this,e.au&&e.au.lv?e.au.lv:{k:[100]},1,.01,this)}function BaseRenderer(){}extendPrototype([DynamicPropertyContainer],GroupEffect),GroupEffect.prototype.getValue=GroupEffect.prototype.iterateDynamicProperties,GroupEffect.prototype.init=function(e,t){var r;this.data=e,this.effectElements=[],this.initDynamicPropertyContainer(t);var n,i=this.data.ef.length,o=this.data.ef;for(r=0;r<i;r+=1){switch(n=null,o[r].ty){case 0:n=new SliderEffect(o[r],t,this);break;case 1:n=new AngleEffect(o[r],t,this);break;case 2:n=new ColorEffect(o[r],t,this);break;case 3:n=new PointEffect(o[r],t,this);break;case 4:case 7:n=new CheckboxEffect(o[r],t,this);break;case 10:n=new LayerIndexEffect(o[r],t,this);break;case 11:n=new MaskIndexEffect(o[r],t,this);break;case 5:n=new EffectsManager(o[r],t,this);break;default:n=new NoValueEffect(o[r],t,this)}n&&this.effectElements.push(n)}},BaseElement.prototype={checkMasks:function(){if(!this.data.hasMask)return!1;for(var e=0,t=this.data.masksProperties.length;e<t;){if("n"!==this.data.masksProperties[e].mode&&!1!==this.data.masksProperties[e].cl)return!0;e+=1}return!1},initExpressions:function(){var e=getExpressionInterfaces();if(e){var t=e("layer"),r=e("effects"),n=e("shape"),i=e("text"),o=e("comp");this.layerInterface=t(this),this.data.hasMask&&this.maskManager&&this.layerInterface.registerMaskInterface(this.maskManager);var a=r.createEffectsInterface(this,this.layerInterface);this.layerInterface.registerEffectsInterface(a),0===this.data.ty||this.data.xt?this.compInterface=o(this):4===this.data.ty?(this.layerInterface.shapeInterface=n(this.shapesData,this.itemsData,this.layerInterface),this.layerInterface.content=this.layerInterface.shapeInterface):5===this.data.ty&&(this.layerInterface.textInterface=i(this),this.layerInterface.text=this.layerInterface.textInterface)}},setBlendMode:function(){var e=getBlendMode(this.data.bm);(this.baseElement||this.layerElement).style["mix-blend-mode"]=e},initBaseData:function(e,t,r){this.globalData=t,this.comp=r,this.data=e,this.layerId=createElementID(),this.data.sr||(this.data.sr=1),this.effectsManager=new EffectsManager(this.data,this,this.dynamicProperties)},getType:function(){return this.type},sourceRectAtTime:function(){}},FrameElement.prototype={initFrame:function(){this._isFirstFrame=!1,this.dynamicProperties=[],this._mdf=!1},prepareProperties:function(e,t){var r,n=this.dynamicProperties.length;for(r=0;r<n;r+=1)(t||this._isParent&&"transform"===this.dynamicProperties[r].propType)&&(this.dynamicProperties[r].getValue(),this.dynamicProperties[r]._mdf&&(this.globalData._mdf=!0,this._mdf=!0))},addDynamicProperty:function(e){-1===this.dynamicProperties.indexOf(e)&&this.dynamicProperties.push(e)}},FootageElement.prototype.prepareFrame=function(){},extendPrototype([RenderableElement,BaseElement,FrameElement],FootageElement),FootageElement.prototype.getBaseElement=function(){return null},FootageElement.prototype.renderFrame=function(){},FootageElement.prototype.destroy=function(){},FootageElement.prototype.initExpressions=function(){var e=getExpressionInterfaces();if(e){var t=e("footage");this.layerInterface=t(this)}},FootageElement.prototype.getFootageData=function(){return this.footageData},AudioElement.prototype.prepareFrame=function(e){if(this.prepareRenderableFrame(e,!0),this.prepareProperties(e,!0),this.tm._placeholder)this._currentTime=e/this.data.sr;else{var t=this.tm.v;this._currentTime=t}this._volume=this.lv.v[0];var r=this._volume*this._volumeMultiplier;this._previousVolume!==r&&(this._previousVolume=r,this.audio.volume(r))},extendPrototype([RenderableElement,BaseElement,FrameElement],AudioElement),AudioElement.prototype.renderFrame=function(){this.isInRange&&this._canPlay&&(this._isPlaying?(!this.audio.playing()||Math.abs(this._currentTime/this.globalData.frameRate-this.audio.seek())>.1)&&this.audio.seek(this._currentTime/this.globalData.frameRate):(this.audio.play(),this.audio.seek(this._currentTime/this.globalData.frameRate),this._isPlaying=!0))},AudioElement.prototype.show=function(){},AudioElement.prototype.hide=function(){this.audio.pause(),this._isPlaying=!1},AudioElement.prototype.pause=function(){this.audio.pause(),this._isPlaying=!1,this._canPlay=!1},AudioElement.prototype.resume=function(){this._canPlay=!0},AudioElement.prototype.setRate=function(e){this.audio.rate(e)},AudioElement.prototype.volume=function(e){this._volumeMultiplier=e,this._previousVolume=e*this._volume,this.audio.volume(this._previousVolume)},AudioElement.prototype.getBaseElement=function(){return null},AudioElement.prototype.destroy=function(){},AudioElement.prototype.sourceRectAtTime=function(){},AudioElement.prototype.initExpressions=function(){},BaseRenderer.prototype.checkLayers=function(e){var t,r,n=this.layers.length;for(this.completeLayers=!0,t=n-1;t>=0;t-=1)this.elements[t]||(r=this.layers[t]).ip-r.st<=e-this.layers[t].st&&r.op-r.st>e-this.layers[t].st&&this.buildItem(t),this.completeLayers=!!this.elements[t]&&this.completeLayers;this.checkPendingElements()},BaseRenderer.prototype.createItem=function(e){switch(e.ty){case 2:return this.createImage(e);case 0:return this.createComp(e);case 1:return this.createSolid(e);case 3:default:return this.createNull(e);case 4:return this.createShape(e);case 5:return this.createText(e);case 6:return this.createAudio(e);case 13:return this.createCamera(e);case 15:return this.createFootage(e)}},BaseRenderer.prototype.createCamera=function(){throw new Error("You're using a 3d camera. Try the html renderer.")},BaseRenderer.prototype.createAudio=function(e){return new AudioElement(e,this.globalData,this)},BaseRenderer.prototype.createFootage=function(e){return new FootageElement(e,this.globalData,this)},BaseRenderer.prototype.buildAllItems=function(){var e,t=this.layers.length;for(e=0;e<t;e+=1)this.buildItem(e);this.checkPendingElements()},BaseRenderer.prototype.includeLayers=function(e){var t;this.completeLayers=!1;var r,n=e.length,i=this.layers.length;for(t=0;t<n;t+=1)for(r=0;r<i;){if(this.layers[r].id===e[t].id){this.layers[r]=e[t];break}r+=1}},BaseRenderer.prototype.setProjectInterface=function(e){this.globalData.projectInterface=e},BaseRenderer.prototype.initItems=function(){this.globalData.progressiveLoad||this.buildAllItems()},BaseRenderer.prototype.buildElementParenting=function(e,t,r){for(var n=this.elements,i=this.layers,o=0,a=i.length;o<a;)i[o].ind==t&&(n[o]&&!0!==n[o]?(r.push(n[o]),n[o].setAsParent(),void 0!==i[o].parent?this.buildElementParenting(e,i[o].parent,r):e.setHierarchy(r)):(this.buildItem(o),this.addPendingElement(e))),o+=1},BaseRenderer.prototype.addPendingElement=function(e){this.pendingElements.push(e)},BaseRenderer.prototype.searchExtraCompositions=function(e){var t,r=e.length;for(t=0;t<r;t+=1)if(e[t].xt){var n=this.createComp(e[t]);n.initExpressions(),this.globalData.projectInterface.registerComposition(n)}},BaseRenderer.prototype.getElementById=function(e){var t,r=this.elements.length;for(t=0;t<r;t+=1)if(this.elements[t].data.ind===e)return this.elements[t];return null},BaseRenderer.prototype.getElementByPath=function(e){var t,r=e.shift();if("number"==typeof r)t=this.elements[r];else{var n,i=this.elements.length;for(n=0;n<i;n+=1)if(this.elements[n].data.nm===r){t=this.elements[n];break}}return 0===e.length?t:t.getElementByPath(e)},BaseRenderer.prototype.setupGlobalData=function(e,t){this.globalData.fontManager=new FontManager,this.globalData.slotManager=slotFactory(e),this.globalData.fontManager.addChars(e.chars),this.globalData.fontManager.addFonts(e.fonts,t),this.globalData.getAssetData=this.animationItem.getAssetData.bind(this.animationItem),this.globalData.getAssetsPath=this.animationItem.getAssetsPath.bind(this.animationItem),this.globalData.imageLoader=this.animationItem.imagePreloader,this.globalData.audioController=this.animationItem.audioController,this.globalData.frameId=0,this.globalData.frameRate=e.fr,this.globalData.nm=e.nm,this.globalData.compSize={w:e.w,h:e.h}};var effectTypes={TRANSFORM_EFFECT:"transformEFfect"};function TransformElement(){}function MaskElement(e,t,r){this.data=e,this.element=t,this.globalData=r,this.storedData=[],this.masksProperties=this.data.masksProperties||[],this.maskElement=null;var n,i,o=this.globalData.defs,a=this.masksProperties?this.masksProperties.length:0;this.viewData=createSizedArray(a),this.solidPath="";var s,l,c,u,p,d,h=this.masksProperties,f=0,m=[],g=createElementID(),y="clipPath",b="clip-path";for(n=0;n<a;n+=1)if(("a"!==h[n].mode&&"n"!==h[n].mode||h[n].inv||100!==h[n].o.k||h[n].o.x)&&(y="mask",b="mask"),"s"!==h[n].mode&&"i"!==h[n].mode||0!==f?c=null:((c=createNS("rect")).setAttribute("fill","#ffffff"),c.setAttribute("width",this.element.comp.data.w||0),c.setAttribute("height",this.element.comp.data.h||0),m.push(c)),i=createNS("path"),"n"===h[n].mode)this.viewData[n]={op:PropertyFactory.getProp(this.element,h[n].o,0,.01,this.element),prop:ShapePropertyFactory.getShapeProp(this.element,h[n],3),elem:i,lastPath:""},o.appendChild(i);else{var v;if(f+=1,i.setAttribute("fill","s"===h[n].mode?"#000000":"#ffffff"),i.setAttribute("clip-rule","nonzero"),0!==h[n].x.k?(y="mask",b="mask",d=PropertyFactory.getProp(this.element,h[n].x,0,null,this.element),v=createElementID(),(u=createNS("filter")).setAttribute("id",v),(p=createNS("feMorphology")).setAttribute("operator","erode"),p.setAttribute("in","SourceGraphic"),p.setAttribute("radius","0"),u.appendChild(p),o.appendChild(u),i.setAttribute("stroke","s"===h[n].mode?"#000000":"#ffffff")):(p=null,d=null),this.storedData[n]={elem:i,x:d,expan:p,lastPath:"",lastOperator:"",filterId:v,lastRadius:0},"i"===h[n].mode){l=m.length;var _=createNS("g");for(s=0;s<l;s+=1)_.appendChild(m[s]);var S=createNS("mask");S.setAttribute("mask-type","alpha"),S.setAttribute("id",g+"_"+f),S.appendChild(i),o.appendChild(S),_.setAttribute("mask","url("+getLocationHref()+"#"+g+"_"+f+")"),m.length=0,m.push(_)}else m.push(i);h[n].inv&&!this.solidPath&&(this.solidPath=this.createLayerSolidPath()),this.viewData[n]={elem:i,lastPath:"",op:PropertyFactory.getProp(this.element,h[n].o,0,.01,this.element),prop:ShapePropertyFactory.getShapeProp(this.element,h[n],3),invRect:c},this.viewData[n].prop.k||this.drawPath(h[n],this.viewData[n].prop.v,this.viewData[n])}for(this.maskElement=createNS(y),a=m.length,n=0;n<a;n+=1)this.maskElement.appendChild(m[n]);f>0&&(this.maskElement.setAttribute("id",g),this.element.maskedElement.setAttribute(b,"url("+getLocationHref()+"#"+g+")"),o.appendChild(this.maskElement)),this.viewData.length&&this.element.addRenderableComponent(this)}TransformElement.prototype={initTransform:function(){var e=new Matrix;this.finalTransform={mProp:this.data.ks?TransformPropertyFactory.getTransformProperty(this,this.data.ks,this):{o:0},_matMdf:!1,_localMatMdf:!1,_opMdf:!1,mat:e,localMat:e,localOpacity:1},this.data.ao&&(this.finalTransform.mProp.autoOriented=!0),this.data.ty},renderTransform:function(){if(this.finalTransform._opMdf=this.finalTransform.mProp.o._mdf||this._isFirstFrame,this.finalTransform._matMdf=this.finalTransform.mProp._mdf||this._isFirstFrame,this.hierarchy){var e,t=this.finalTransform.mat,r=0,n=this.hierarchy.length;if(!this.finalTransform._matMdf)for(;r<n;){if(this.hierarchy[r].finalTransform.mProp._mdf){this.finalTransform._matMdf=!0;break}r+=1}if(this.finalTransform._matMdf)for(e=this.finalTransform.mProp.v.props,t.cloneFromProps(e),r=0;r<n;r+=1)t.multiply(this.hierarchy[r].finalTransform.mProp.v)}this.localTransforms&&!this.finalTransform._matMdf||(this.finalTransform._localMatMdf=this.finalTransform._matMdf),this.finalTransform._opMdf&&(this.finalTransform.localOpacity=this.finalTransform.mProp.o.v)},renderLocalTransform:function(){if(this.localTransforms){var e=0,t=this.localTransforms.length;if(this.finalTransform._localMatMdf=this.finalTransform._matMdf,!this.finalTransform._localMatMdf||!this.finalTransform._opMdf)for(;e<t;)this.localTransforms[e]._mdf&&(this.finalTransform._localMatMdf=!0),this.localTransforms[e]._opMdf&&!this.finalTransform._opMdf&&(this.finalTransform.localOpacity=this.finalTransform.mProp.o.v,this.finalTransform._opMdf=!0),e+=1;if(this.finalTransform._localMatMdf){var r=this.finalTransform.localMat;for(this.localTransforms[0].matrix.clone(r),e=1;e<t;e+=1){var n=this.localTransforms[e].matrix;r.multiply(n)}r.multiply(this.finalTransform.mat)}if(this.finalTransform._opMdf){var i=this.finalTransform.localOpacity;for(e=0;e<t;e+=1)i*=.01*this.localTransforms[e].opacity;this.finalTransform.localOpacity=i}}}
vendor: 4,313 bytes, line 31
31,searchEffectTransforms:function(){if(this.renderableEffectsManager){var e=this.renderableEffectsManager.getEffects(effectTypes.TRANSFORM_EFFECT);if(e.length){this.localTransforms=[],this.finalTransform.localMat=new Matrix;var t=0,r=e.length;for(t=0;t<r;t+=1)this.localTransforms.push(e[t])}}},globalToLocal:function(e){var t=[];t.push(this.finalTransform);for(var r,n=!0,i=this.comp;n;)i.finalTransform?(i.data.hasMask&&t.splice(0,0,i.finalTransform),i=i.comp):n=!1;var o,a=t.length;for(r=0;r<a;r+=1)o=t[r].mat.applyToPointArray(0,0,0),e=[e[0]-o[0],e[1]-o[1],0];return e},mHelper:new Matrix},MaskElement.prototype.getMaskProperty=function(e){return this.viewData[e].prop},MaskElement.prototype.renderFrame=function(e){var t,r=this.element.finalTransform.mat,n=this.masksProperties.length;for(t=0;t<n;t+=1)if((this.viewData[t].prop._mdf||e)&&this.drawPath(this.masksProperties[t],this.viewData[t].prop.v,this.viewData[t]),(this.viewData[t].op._mdf||e)&&this.viewData[t].elem.setAttribute("fill-opacity",this.viewData[t].op.v),"n"!==this.masksProperties[t].mode&&(this.viewData[t].invRect&&(this.element.finalTransform.mProp._mdf||e)&&this.viewData[t].invRect.setAttribute("transform",r.getInverseMatrix().to2dCSS()),this.storedData[t].x&&(this.storedData[t].x._mdf||e))){var i=this.storedData[t].expan;this.storedData[t].x.v<0?("erode"!==this.storedData[t].lastOperator&&(this.storedData[t].lastOperator="erode",this.storedData[t].elem.setAttribute("filter","url("+getLocationHref()+"#"+this.storedData[t].filterId+")")),i.setAttribute("radius",-this.storedData[t].x.v)):("dilate"!==this.storedData[t].lastOperator&&(this.storedData[t].lastOperator="dilate",this.storedData[t].elem.setAttribute("filter",null)),this.storedData[t].elem.setAttribute("stroke-width",2*this.storedData[t].x.v))}},MaskElement.prototype.getMaskelement=function(){return this.maskElement},MaskElement.prototype.createLayerSolidPath=function(){var e="M0,0 ";return e+=" h"+this.globalData.compSize.w,e+=" v"+this.globalData.compSize.h,e+=" h-"+this.globalData.compSize.w,e+=" v-"+this.globalData.compSize.h+" "},MaskElement.prototype.drawPath=function(e,t,r){var n,i,o=" M"+t.v[0][0]+","+t.v[0][1];for(i=t._length,n=1;n<i;n+=1)o+=" C"+t.o[n-1][0]+","+t.o[n-1][1]+" "+t.i[n][0]+","+t.i[n][1]+" "+t.v[n][0]+","+t.v[n][1];if(t.c&&i>1&&(o+=" C"+t.o[n-1][0]+","+t.o[n-1][1]+" "+t.i[0][0]+","+t.i[0][1]+" "+t.v[0][0]+","+t.v[0][1]),r.lastPath!==o){var a="";r.elem&&(t.c&&(a=e.inv?this.solidPath+o:o),r.elem.setAttribute("d",a)),r.lastPath=o}},MaskElement.prototype.destroy=function(){this.element=null,this.globalData=null,this.maskElement=null,this.data=null,this.masksProperties=null};var filtersFactory=function(){var e={createFilter:function(e,t){var r=createNS("filter");return r.setAttribute("id",e),!0!==t&&(r.setAttribute("filterUnits","objectBoundingBox"),r.setAttribute("x","0%"),r.setAttribute("y","0%"),r.setAttribute("width","100%"),r.setAttribute("height","100%")),r},createAlphaToLuminanceFilter:function(){var e=createNS("feColorMatrix");return e.setAttribute("type","matrix"),e.setAttribute("color-interpolation-filters","sRGB"),e.setAttribute("values","0 0 0 1 0  0 0 0 1 0  0 0 0 1 0  0 0 0 1 1"),e}};return e}(),featureSupport=function(){var e={maskType:!0,svgLumaHidden:!0,offscreenCanvas:"undefined"!=typeof OffscreenCanvas};return(/MSIE 10/i.test(navigator.userAgent)||/MSIE 9/i.test(navigator.userAgent)||/rv:11.0/i.test(navigator.userAgent)||/Edge\/\d./i.test(navigator.userAgent))&&(e.maskType=!1),/firefox/i.test(navigator.userAgent)&&(e.svgLumaHidden=!1),e}(),registeredEffects$1={},idPrefix="filter_result_";function SVGEffects(e){var t,r,n="SourceGraphic",i=e.data.ef?e.data.ef.length:0,o=createElementID(),a=filtersFactory.createFilter(o,!0),s=0;for(this.filters=[],t=0;t<i;t+=1){r=null;var l=e.data.ef[t].ty;registeredEffects$1[l]&&(r=new(0,registeredEffects$1[l].effect)(a,e.effectsManager.effectElements[t],e,idPrefix+s,n),n=idPrefix+s,registeredEffects$1[l].countsAsEffect&&(s+=1)),r&&this.filters.push(r)}s&&(e.globalData.defs.appendChild(a),e.layerElement.setAttribute("filter","url("+getLocationHref()+"#"+o+")")),this.filters.length&&e.addRenderableComponent(this)}function registerEffect$1(e,t,r){registeredEffects$1[e]={effect:t,countsAsEffect:r}}function SVGBaseElement(){}function HierarchyElement(){}
vendor: 15,130 bytes, line 31
31function RenderableDOMElement(){}function IImageElement(e,t,r){this.assetData=t.getAssetData(e.refId),this.assetData&&this.assetData.sid&&(this.assetData=t.slotManager.getProp(this.assetData)),this.initElement(e,t,r),this.sourceRect={top:0,left:0,width:this.assetData.w,height:this.assetData.h}}function ProcessedElement(e,t){this.elem=e,this.pos=t}function IShapeElement(){}SVGEffects.prototype.renderFrame=function(e){var t,r=this.filters.length;for(t=0;t<r;t+=1)this.filters[t].renderFrame(e)},SVGEffects.prototype.getEffects=function(e){var t,r=this.filters.length,n=[];for(t=0;t<r;t+=1)this.filters[t].type===e&&n.push(this.filters[t]);return n},SVGBaseElement.prototype={initRendererElement:function(){this.layerElement=createNS("g")},createContainerElements:function(){this.matteElement=createNS("g"),this.transformedElement=this.layerElement,this.maskedElement=this.layerElement,this._sizeChanged=!1;var e=null;if(this.data.td){this.matteMasks={};var t=createNS("g");t.setAttribute("id",this.layerId),t.appendChild(this.layerElement),e=t,this.globalData.defs.appendChild(t)}else this.data.tt?(this.matteElement.appendChild(this.layerElement),e=this.matteElement,this.baseElement=this.matteElement):this.baseElement=this.layerElement;if(this.data.ln&&this.layerElement.setAttribute("id",this.data.ln),this.data.cl&&this.layerElement.setAttribute("class",this.data.cl),0===this.data.ty&&!this.data.hd){var r=createNS("clipPath"),n=createNS("path");n.setAttribute("d","M0,0 L"+this.data.w+",0 L"+this.data.w+","+this.data.h+" L0,"+this.data.h+"z");var i=createElementID();if(r.setAttribute("id",i),r.appendChild(n),this.globalData.defs.appendChild(r),this.checkMasks()){var o=createNS("g");o.setAttribute("clip-path","url("+getLocationHref()+"#"+i+")"),o.appendChild(this.layerElement),this.transformedElement=o,e?e.appendChild(this.transformedElement):this.baseElement=this.transformedElement}else this.layerElement.setAttribute("clip-path","url("+getLocationHref()+"#"+i+")")}0!==this.data.bm&&this.setBlendMode()},renderElement:function(){this.finalTransform._localMatMdf&&this.transformedElement.setAttribute("transform",this.finalTransform.localMat.to2dCSS()),this.finalTransform._opMdf&&this.transformedElement.setAttribute("opacity",this.finalTransform.localOpacity)},destroyBaseElement:function(){this.layerElement=null,this.matteElement=null,this.maskManager.destroy()},getBaseElement:function(){return this.data.hd?null:this.baseElement},createRenderableComponents:function(){this.maskManager=new MaskElement(this.data,this,this.globalData),this.renderableEffectsManager=new SVGEffects(this),this.searchEffectTransforms()},getMatte:function(e){if(this.matteMasks||(this.matteMasks={}),!this.matteMasks[e]){var t,r,n,i,o=this.layerId+"_"+e;if(1===e||3===e){var a=createNS("mask");a.setAttribute("id",o),a.setAttribute("mask-type",3===e?"luminance":"alpha"),(n=createNS("use")).setAttributeNS("http://www.w3.org/1999/xlink","href","#"+this.layerId),a.appendChild(n),this.globalData.defs.appendChild(a),featureSupport.maskType||1!==e||(a.setAttribute("mask-type","luminance"),t=createElementID(),r=filtersFactory.createFilter(t),this.globalData.defs.appendChild(r),r.appendChild(filtersFactory.createAlphaToLuminanceFilter()),(i=createNS("g")).appendChild(n),a.appendChild(i),i.setAttribute("filter","url("+getLocationHref()+"#"+t+")"))}else if(2===e){var s=createNS("mask");s.setAttribute("id",o),s.setAttribute("mask-type","alpha");var l=createNS("g");s.appendChild(l),t=createElementID(),r=filtersFactory.createFilter(t);var c=createNS("feComponentTransfer");c.setAttribute("in","SourceGraphic"),r.appendChild(c);var u=createNS("feFuncA");u.setAttribute("type","table"),u.setAttribute("tableValues","1.0 0.0"),c.appendChild(u),this.globalData.defs.appendChild(r);var p=createNS("rect");p.setAttribute("width",this.comp.data.w),p.setAttribute("height",this.comp.data.h),p.setAttribute("x","0"),p.setAttribute("y","0"),p.setAttribute("fill","#ffffff"),p.setAttribute("opacity","0"),l.setAttribute("filter","url("+getLocationHref()+"#"+t+")"),l.appendChild(p),(n=createNS("use")).setAttributeNS("http://www.w3.org/1999/xlink","href","#"+this.layerId),l.appendChild(n),featureSupport.maskType||(s.setAttribute("mask-type","luminance"),r.appendChild(filtersFactory.createAlphaToLuminanceFilter()),i=createNS("g"),l.appendChild(p),i.appendChild(this.layerElement),l.appendChild(i)),this.globalData.defs.appendChild(s)}this.matteMasks[e]=o}return this.matteMasks[e]},setMatte:function(e){this.matteElement&&this.matteElement.setAttribute("mask","url("+getLocationHref()+"#"+e+")")}},HierarchyElement.prototype={initHierarchy:function(){this.hierarchy=[],this._isParent=!1,this.checkParenting()},setHierarchy:function(e){this.hierarchy=e},setAsParent:function(){this._isParent=!0},checkParenting:function(){void 0!==this.data.parent&&this.comp.buildElementParenting(this,this.data.parent,[])}},extendPrototype([RenderableElement,createProxyFunction({initElement:function(e,t,r){this.initFrame(),this.initBaseData(e,t,r),this.initTransform(e,t,r),this.initHierarchy(),this.initRenderable(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),this.createContent(),this.hide()},hide:function(){this.hidden||this.isInRange&&!this.isTransparent||((this.baseElement||this.layerElement).style.display="none",this.hidden=!0)},show:function(){this.isInRange&&!this.isTransparent&&(this.data.hd||((this.baseElement||this.layerElement).style.display="block"),this.hidden=!1,this._isFirstFrame=!0)},renderFrame:function(){this.data.hd||this.hidden||(this.renderTransform(),this.renderRenderable(),this.renderLocalTransform(),this.renderElement(),this.renderInnerContent(),this._isFirstFrame&&(this._isFirstFrame=!1))},renderInnerContent:function(){},prepareFrame:function(e){this._mdf=!1,this.prepareRenderableFrame(e),this.prepareProperties(e,this.isInRange),this.checkTransparency()},destroy:function(){this.innerElem=null,this.destroyBaseElement()}})],RenderableDOMElement),extendPrototype([BaseElement,TransformElement,SVGBaseElement,HierarchyElement,FrameElement,RenderableDOMElement],IImageElement),IImageElement.prototype.createContent=function(){var e=this.globalData.getAssetsPath(this.assetData);this.innerElem=createNS("image"),this.innerElem.setAttribute("width",this.assetData.w+"px"),this.innerElem.setAttribute("height",this.assetData.h+"px"),this.innerElem.setAttribute("preserveAspectRatio",this.assetData.pr||this.globalData.renderConfig.imagePreserveAspectRatio),this.innerElem.setAttributeNS("http://www.w3.org/1999/xlink","href",e),this.layerElement.appendChild(this.innerElem)},IImageElement.prototype.sourceRectAtTime=function(){return this.sourceRect},IShapeElement.prototype={addShapeToModifiers:function(e){var t,r=this.shapeModifiers.length;for(t=0;t<r;t+=1)this.shapeModifiers[t].addShape(e)},isShapeInAnimatedModifiers:function(e){for(var t=this.shapeModifiers.length;0<t;)if(this.shapeModifiers[0].isAnimatedWithShape(e))return!0;return!1},renderModifiers:function(){if(this.shapeModifiers.length){var e,t=this.shapes.length;for(e=0;e<t;e+=1)this.shapes[e].sh.reset();for(e=(t=this.shapeModifiers.length)-1;e>=0&&!this.shapeModifiers[e].processShapes(this._isFirstFrame);e-=1);}},searchProcessedElement:function(e){for(var t=this.processedElements,r=0,n=t.length;r<n;){if(t[r].elem===e)return t[r].pos;r+=1}return 0},addProcessedElement:function(e,t){for(var r=this.processedElements,n=r.length;n;)if(r[n-=1].elem===e)return void(r[n].pos=t);r.push(new ProcessedElement(e,t))},prepareFrame:function(e){this.prepareRenderableFrame(e),this.prepareProperties(e,this.isInRange)}};var lineCapEnum={1:"butt",2:"round",3:"square"},lineJoinEnum={1:"miter",2:"round",3:"bevel"};function SVGShapeData(e,t,r){this.caches=[],this.styles=[],this.transformers=e,this.lStr="",this.sh=r,this.lvl=t,this._isAnimated=!!r.k;for(var n=0,i=e.length;n<i;){if(e[n].mProps.dynamicProperties.length){this._isAnimated=!0;break}n+=1}}function SVGStyleData(e,t){this.data=e,this.type=e.ty,this.d="",this.lvl=t,this._mdf=!1,this.closed=!0===e.hd,this.pElem=createNS("path"),this.msElem=null}function DashProperty(e,t,r,n){var i;this.elem=e,this.frameId=-1,this.dataProps=createSizedArray(t.length),this.renderer=r,this.k=!1,this.dashStr="",this.dashArray=createTypedArray("float32",t.length?t.length-1:0),this.dashoffset=createTypedArray("float32",1),this.initDynamicPropertyContainer(n);var o,a=t.length||0;for(i=0;i<a;i+=1)o=PropertyFactory.getProp(e,t[i].v,0,0,this),this.k=o.k||this.k,this.dataProps[i]={n:t[i].n,p:o};this.k||this.getValue(!0),this._isAnimated=this.k}function SVGStrokeStyleData(e,t,r){this.initDynamicPropertyContainer(e),this.getValue=this.iterateDynamicProperties,this.o=PropertyFactory.getProp(e,t.o,0,.01,this),this.w=PropertyFactory.getProp(e,t.w,0,null,this),this.d=new DashProperty(e,t.d||{},"svg",this),this.c=PropertyFactory.getProp(e,t.c,1,255,this),this.style=r,this._isAnimated=!!this._isAnimated}function SVGFillStyleData(e,t,r){this.initDynamicPropertyContainer(e),this.getValue=this.iterateDynamicProperties,this.o=PropertyFactory.getProp(e,t.o,0,.01,this),this.c=PropertyFactory.getProp(e,t.c,1,255,this),this.style=r}function SVGNoStyleData(e,t,r){this.initDynamicPropertyContainer(e),this.getValue=this.iterateDynamicProperties,this.style=r}function GradientProperty(e,t,r){this.data=t,this.c=createTypedArray("uint8c",4*t.p);var n=t.k.k[0].s?t.k.k[0].s.length-4*t.p:t.k.k.length-4*t.p;this.o=createTypedArray("float32",n),this._cmdf=!1,this._omdf=!1,this._collapsable=this.checkCollapsable(),this._hasOpacity=n,this.initDynamicPropertyContainer(r),this.prop=PropertyFactory.getProp(e,t.k,1,null,this),this.k=this.prop.k,this.getValue(!0)}function SVGGradientFillStyleData(e,t,r){this.initDynamicPropertyContainer(e),this.getValue=this.iterateDynamicProperties,this.initGradientData(e,t,r)}function SVGGradientStrokeStyleData(e,t,r){this.initDynamicPropertyContainer(e),this.getValue=this.iterateDynamicProperties,this.w=PropertyFactory.getProp(e,t.w,0,null,this),this.d=new DashProperty(e,t.d||{},"svg",this),this.initGradientData(e,t,r),this._isAnimated=!!this._isAnimated}function ShapeGroupData(){this.it=[],this.prevViewData=[],this.gr=createNS("g")}function SVGTransformData(e,t,r){this.transform={mProps:e,op:t,container:r},this.elements=[],this._isAnimated=this.transform.mProps.dynamicProperties.length||this.transform.op.effectsSequence.length}SVGShapeData.prototype.setAsAnimated=function(){this._isAnimated=!0},SVGStyleData.prototype.reset=function(){this.d="",this._mdf=!1},DashProperty.prototype.getValue=function(e){if((this.elem.globalData.frameId!==this.frameId||e)&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf=this._mdf||e,this._mdf)){var t=0,r=this.dataProps.length;for("svg"===this.renderer&&(this.dashStr=""),t=0;t<r;t+=1)"o"!==this.dataProps[t].n?"svg"===this.renderer?this.dashStr+=" "+this.dataProps[t].p.v:this.dashArray[t]=this.dataProps[t].p.v:this.dashoffset[0]=this.dataProps[t].p.v}},extendPrototype([DynamicPropertyContainer],DashProperty),extendPrototype([DynamicPropertyContainer],SVGStrokeStyleData),extendPrototype([DynamicPropertyContainer],SVGFillStyleData),extendPrototype([DynamicPropertyContainer],SVGNoStyleData),GradientProperty.prototype.comparePoints=function(e,t){for(var r=0,n=this.o.length/2;r<n;){if(Math.abs(e[4*r]-e[4*t+2*r])>.01)return!1;r+=1}return!0},GradientProperty.prototype.checkCollapsable=function(){if(this.o.length/2!=this.c.length/4)return!1;if(this.data.k.k[0].s)for(var e=0,t=this.data.k.k.length;e<t;){if(!this.comparePoints(this.data.k.k[e].s,this.data.p))return!1;e+=1}else if(!this.comparePoints(this.data.k.k,this.data.p))return!1;return!0},GradientProperty.prototype.getValue=function(e){if(this.prop.getValue(),this._mdf=!1,this._cmdf=!1,this._omdf=!1,this.prop._mdf||e){var t,r,n,i=4*this.data.p;for(t=0;t<i;t+=1)r=t%4==0?100:255,n=Math.round(this.prop.v[t]*r),this.c[t]!==n&&(this.c[t]=n,this._cmdf=!e);if(this.o.length)for(i=this.prop.v.length,t=4*this.data.p;t<i;t+=1)r=t%2==0?100:1,n=t%2==0?Math.round(100*this.prop.v[t]):this.prop.v[t],this.o[t-4*this.data.p]!==n&&(this.o[t-4*this.data.p]=n,this._omdf=!e);this._mdf=!e}},extendPrototype([DynamicPropertyContainer],GradientProperty),SVGGradientFillStyleData.prototype.initGradientData=function(e,t,r){this.o=PropertyFactory.getProp(e,t.o,0,.01,this),this.s=PropertyFactory.getProp(e,t.s,1,null,this),this.e=PropertyFactory.getProp(e,t.e,1,null,this),this.h=PropertyFactory.getProp(e,t.h||{k:0},0,.01,this),this.a=PropertyFactory.getProp(e,t.a||{k:0},0,degToRads,this),this.g=new GradientProperty(e,t.g,this),this.style=r,this.stops=[],this.setGradientData(r.pElem,t),this.setGradientOpacity(t,r),this._isAnimated=!!this._isAnimated},SVGGradientFillStyleData.prototype.setGradientData=function(e,t){var r=createElementID(),n=createNS(1===t.t?"linearGradient":"radialGradient");n.setAttribute("id",r),n.setAttribute("spreadMethod","pad"),n.setAttribute("gradientUnits","userSpaceOnUse");var i,o,a,s=[];for(a=4*t.g.p,o=0;o<a;o+=4)i=createNS("stop"),n.appendChild(i),s.push(i);e.setAttribute("gf"===t.ty?"fill":"stroke","url("+getLocationHref()+"#"+r+")"),this.gf=n,this.cst=s},SVGGradientFillStyleData.prototype.setGradientOpacity=function(e,t){if(this.g._hasOpacity&&!this.g._collapsable){var r,n,i,o=createNS("mask"),a=createNS("path");o.appendChild(a);var s=createElementID(),l=createElementID();o.setAttribute("id",l);var c=createNS(1===e.t?"linearGradient":"radialGradient");c.setAttribute("id",s),c.setAttribute("spreadMethod","pad"),c.setAttribute("gradientUnits","userSpaceOnUse"),i=e.g.k.k[0].s?e.g.k.k[0].s.length:e.g.k.k.length;var u=this.stops;for(n=4*e.g.p;n<i;n+=2)(r=createNS("stop")).setAttribute("stop-color","rgb(255,255,255)"),c.appendChild(r),u.push(r);a.setAttribute("gf"===e.ty?"fill":"stroke","url("+getLocationHref()+"#"+s+")"),"gs"===e.ty&&(a.setAttribute("stroke-linecap",lineCapEnum[e.lc||2]),a.setAttribute("stroke-linejoin",lineJoinEnum[e.lj||2]),1===e.lj&&a.setAttribute("stroke-miterlimit",e.ml)),this.of=c,this.ms=o,this.ost=u,this.maskId=l,t.msElem=a}},extendPrototype([DynamicPropertyContainer],SVGGradientFillStyleData),extendPrototype([SVGGradientFillStyleData,DynamicPropertyContainer],SVGGradientStrokeStyleData);var buildShapeString=function(e,t,r,n){if(0===t)return"";var i,o=e.o,a=e.i,s=e.v,l=" M"+n.applyToPointStringified(s[0][0],s[0][1]);for(i=1;i<t;i+=1)l+=" C"+n.applyToPointStringified(o[i-1][0],o[i-1][1])+" "+n.applyToPointStringified(a[i][0],a[i][1])+" "+n.applyToPointStringified(s[i][0],s[i][1]);return r&&t&&(l+=" C"+n.applyToPointStringified(o[i-1][0],o[i-1][1])+" "+n.applyToPointStringified(a[0][0],a[0][1])+" "+n.applyToPointStringified(s[0][0],s[0][1]),l+="z"),l},SVGElementsRenderer=function(){var e=new Matrix,t=new Matrix;function r(e,t,r){(r||t.transform.op._mdf)&&t.transform.container.setAttribute("opacity",t.transform.op.v),(r||t.transform.mProps._mdf)&&t.transform.container.setAttribute("transform",t.transform.mProps.v.to2dCSS())}function n(){}function i(r,n,i){var o,a,s,l,c,u,p,d,h,f,m=n.styles.length,g=n.lvl;for(u=0;
vendor: 5,828 bytes, line 31
31u<m;u+=1){if(l=n.sh._mdf||i,n.styles[u].lvl<g){for(d=t.reset(),h=g-n.styles[u].lvl,f=n.transformers.length-1;!l&&h>0;)l=n.transformers[f].mProps._mdf||l,h-=1,f-=1;if(l)for(h=g-n.styles[u].lvl,f=n.transformers.length-1;h>0;)d.multiply(n.transformers[f].mProps.v),h-=1,f-=1}else d=e;if(a=(p=n.sh.paths)._length,l){for(s="",o=0;o<a;o+=1)(c=p.shapes[o])&&c._length&&(s+=buildShapeString(c,c._length,c.c,d));n.caches[u]=s}else s=n.caches[u];n.styles[u].d+=!0===r.hd?"":s,n.styles[u]._mdf=l||n.styles[u]._mdf}}function o(e,t,r){var n=t.style;(t.c._mdf||r)&&n.pElem.setAttribute("fill","rgb("+bmFloor(t.c.v[0])+","+bmFloor(t.c.v[1])+","+bmFloor(t.c.v[2])+")"),(t.o._mdf||r)&&n.pElem.setAttribute("fill-opacity",t.o.v)}function a(e,t,r){s(e,t,r),l(0,t,r)}function s(e,t,r){var n,i,o,a,s,l=t.gf,c=t.g._hasOpacity,u=t.s.v,p=t.e.v;if(t.o._mdf||r){var d="gf"===e.ty?"fill-opacity":"stroke-opacity";t.style.pElem.setAttribute(d,t.o.v)}if(t.s._mdf||r){var h=1===e.t?"x1":"cx",f="x1"===h?"y1":"cy";l.setAttribute(h,u[0]),l.setAttribute(f,u[1]),c&&!t.g._collapsable&&(t.of.setAttribute(h,u[0]),t.of.setAttribute(f,u[1]))}if(t.g._cmdf||r){n=t.cst;var m=t.g.c;for(o=n.length,i=0;i<o;i+=1)(a=n[i]).setAttribute("offset",m[4*i]+"%"),a.setAttribute("stop-color","rgb("+m[4*i+1]+","+m[4*i+2]+","+m[4*i+3]+")")}if(c&&(t.g._omdf||r)){var g=t.g.o;for(o=(n=t.g._collapsable?t.cst:t.ost).length,i=0;i<o;i+=1)a=n[i],t.g._collapsable||a.setAttribute("offset",g[2*i]+"%"),a.setAttribute("stop-opacity",g[2*i+1])}if(1===e.t)(t.e._mdf||r)&&(l.setAttribute("x2",p[0]),l.setAttribute("y2",p[1]),c&&!t.g._collapsable&&(t.of.setAttribute("x2",p[0]),t.of.setAttribute("y2",p[1])));else if((t.s._mdf||t.e._mdf||r)&&(s=Math.sqrt(Math.pow(u[0]-p[0],2)+Math.pow(u[1]-p[1],2)),l.setAttribute("r",s),c&&!t.g._collapsable&&t.of.setAttribute("r",s)),t.s._mdf||t.e._mdf||t.h._mdf||t.a._mdf||r){s||(s=Math.sqrt(Math.pow(u[0]-p[0],2)+Math.pow(u[1]-p[1],2)));var y=Math.atan2(p[1]-u[1],p[0]-u[0]),b=t.h.v;b>=1?b=.99:b<=-1&&(b=-.99);var v=s*b,_=Math.cos(y+t.a.v)*v+u[0],S=Math.sin(y+t.a.v)*v+u[1];l.setAttribute("fx",_),l.setAttribute("fy",S),c&&!t.g._collapsable&&(t.of.setAttribute("fx",_),t.of.setAttribute("fy",S))}}function l(e,t,r){var n=t.style,i=t.d;i&&(i._mdf||r)&&i.dashStr&&(n.pElem.setAttribute("stroke-dasharray",i.dashStr),n.pElem.setAttribute("stroke-dashoffset",i.dashoffset[0])),t.c&&(t.c._mdf||r)&&n.pElem.setAttribute("stroke","rgb("+bmFloor(t.c.v[0])+","+bmFloor(t.c.v[1])+","+bmFloor(t.c.v[2])+")"),(t.o._mdf||r)&&n.pElem.setAttribute("stroke-opacity",t.o.v),(t.w._mdf||r)&&(n.pElem.setAttribute("stroke-width",t.w.v),n.msElem&&n.msElem.setAttribute("stroke-width",t.w.v))}return{createRenderFunction:function(e){switch(e.ty){case"fl":return o;case"gf":return s;case"gs":return a;case"st":return l;case"sh":case"el":case"rc":case"sr":return i;case"tr":return r;case"no":return n;default:return null}}}}();function SVGShapeElement(e,t,r){this.shapes=[],this.shapesData=e.shapes,this.stylesList=[],this.shapeModifiers=[],this.itemsData=[],this.processedElements=[],this.animatedContents=[],this.initElement(e,t,r),this.prevViewData=[]}function LetterProps(e,t,r,n,i,o){this.o=e,this.sw=t,this.sc=r,this.fc=n,this.m=i,this.p=o,this._mdf={o:!0,sw:!!t,sc:!!r,fc:!!n,m:!0,p:!0}}function TextProperty(e,t){this._frameId=initialDefaultFrame,this.pv="",this.v="",this.kf=!1,this._isFirstFrame=!0,this._mdf=!1,t.d&&t.d.sid&&(t.d=e.globalData.slotManager.getProp(t.d)),this.data=t,this.elem=e,this.comp=this.elem.comp,this.keysIndex=0,this.canResize=!1,this.minimumFontSize=1,this.effectsSequence=[],this.currentData={ascent:0,boxWidth:this.defaultBoxWidth,f:"",fStyle:"",fWeight:"",fc:"",j:"",justifyOffset:"",l:[],lh:0,lineWidths:[],ls:"",of:"",s:"",sc:"",sw:0,t:0,tr:0,sz:0,ps:null,fillColorAnim:!1,strokeColorAnim:!1,strokeWidthAnim:!1,yOffset:0,finalSize:0,finalText:[],finalLineHeight:0,__complete:!1},this.copyData(this.currentData,this.data.d.k[0].s),this.searchProperty()||this.completeTextData(this.currentData)}extendPrototype([BaseElement,TransformElement,SVGBaseElement,IShapeElement,HierarchyElement,FrameElement,RenderableDOMElement],SVGShapeElement),SVGShapeElement.prototype.initSecondaryElement=function(){},SVGShapeElement.prototype.identityMatrix=new Matrix,SVGShapeElement.prototype.buildExpressionInterface=function(){},SVGShapeElement.prototype.createContent=function(){this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes()},SVGShapeElement.prototype.filterUniqueShapes=function(){var e,t,r,n,i=this.shapes.length,o=this.stylesList.length,a=[],s=!1;for(r=0;r<o;r+=1){for(n=this.stylesList[r],s=!1,a.length=0,e=0;e<i;e+=1)-1!==(t=this.shapes[e]).styles.indexOf(n)&&(a.push(t),s=t._isAnimated||s);a.length>1&&s&&this.setShapesAsAnimated(a)}},SVGShapeElement.prototype.setShapesAsAnimated=function(e){var t,r=e.length;for(t=0;t<r;t+=1)e[t].setAsAnimated()},SVGShapeElement.prototype.createStyleElement=function(e,t){var r,n=new SVGStyleData(e,t),i=n.pElem;return"st"===e.ty?r=new SVGStrokeStyleData(this,e,n):"fl"===e.ty?r=new SVGFillStyleData(this,e,n):"gf"===e.ty||"gs"===e.ty?(r=new("gf"===e.ty?SVGGradientFillStyleData:SVGGradientStrokeStyleData)(this,e,n),this.globalData.defs.appendChild(r.gf),r.maskId&&(this.globalData.defs.appendChild(r.ms),this.globalData.defs.appendChild(r.of),i.setAttribute("mask","url("+getLocationHref()+"#"+r.maskId+")"))):"no"===e.ty&&(r=new SVGNoStyleData(this,e,n)),"st"!==e.ty&&"gs"!==e.ty||(i.setAttribute("stroke-linecap",lineCapEnum[e.lc||2]),i.setAttribute("stroke-linejoin",lineJoinEnum[e.lj||2]),i.setAttribute("fill-opacity","0"),1===e.lj&&i.setAttribute("stroke-miterlimit",e.ml)),2===e.r&&i.setAttribute("fill-rule","evenodd"),e.ln&&i.setAttribute("id",e.ln),e.cl&&i.setAttribute("class",e.cl),e.bm&&(i.style["mix-blend-mode"]=getBlendM
vendor: 38,726 bytes, line 31
31ode(e.bm)),this.stylesList.push(n),this.addToAnimatedContents(e,r),r},SVGShapeElement.prototype.createGroupElement=function(e){var t=new ShapeGroupData;return e.ln&&t.gr.setAttribute("id",e.ln),e.cl&&t.gr.setAttribute("class",e.cl),e.bm&&(t.gr.style["mix-blend-mode"]=getBlendMode(e.bm)),t},SVGShapeElement.prototype.createTransformElement=function(e,t){var r=TransformPropertyFactory.getTransformProperty(this,e,this),n=new SVGTransformData(r,r.o,t);return this.addToAnimatedContents(e,n),n},SVGShapeElement.prototype.createShapeElement=function(e,t,r){var n=4;"rc"===e.ty?n=5:"el"===e.ty?n=6:"sr"===e.ty&&(n=7);var i=new SVGShapeData(t,r,ShapePropertyFactory.getShapeProp(this,e,n,this));return this.shapes.push(i),this.addShapeToModifiers(i),this.addToAnimatedContents(e,i),i},SVGShapeElement.prototype.addToAnimatedContents=function(e,t){for(var r=0,n=this.animatedContents.length;r<n;){if(this.animatedContents[r].element===t)return;r+=1}this.animatedContents.push({fn:SVGElementsRenderer.createRenderFunction(e),element:t,data:e})},SVGShapeElement.prototype.setElementStyles=function(e){var t,r=e.styles,n=this.stylesList.length;for(t=0;t<n;t+=1)-1!==r.indexOf(this.stylesList[t])||this.stylesList[t].closed||r.push(this.stylesList[t])},SVGShapeElement.prototype.reloadShapes=function(){var e;this._isFirstFrame=!0;var t=this.itemsData.length;for(e=0;e<t;e+=1)this.prevViewData[e]=this.itemsData[e];for(this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes(),t=this.dynamicProperties.length,e=0;e<t;e+=1)this.dynamicProperties[e].getValue();this.renderModifiers()},SVGShapeElement.prototype.searchShapes=function(e,t,r,n,i,o,a){var s,l,c,u,p,d,h=[].concat(o),f=e.length-1,m=[],g=[];for(s=f;s>=0;s-=1){if((d=this.searchProcessedElement(e[s]))?t[s]=r[d-1]:e[s]._render=a,"fl"===e[s].ty||"st"===e[s].ty||"gf"===e[s].ty||"gs"===e[s].ty||"no"===e[s].ty)d?t[s].style.closed=e[s].hd:t[s]=this.createStyleElement(e[s],i),e[s]._render&&t[s].style.pElem.parentNode!==n&&n.appendChild(t[s].style.pElem),m.push(t[s].style);else if("gr"===e[s].ty){if(d)for(c=t[s].it.length,l=0;l<c;l+=1)t[s].prevViewData[l]=t[s].it[l];else t[s]=this.createGroupElement(e[s]);this.searchShapes(e[s].it,t[s].it,t[s].prevViewData,t[s].gr,i+1,h,a),e[s]._render&&t[s].gr.parentNode!==n&&n.appendChild(t[s].gr)}else"tr"===e[s].ty?(d||(t[s]=this.createTransformElement(e[s],n)),u=t[s].transform,h.push(u)):"sh"===e[s].ty||"rc"===e[s].ty||"el"===e[s].ty||"sr"===e[s].ty?(d||(t[s]=this.createShapeElement(e[s],h,i)),this.setElementStyles(t[s])):"tm"===e[s].ty||"rd"===e[s].ty||"ms"===e[s].ty||"pb"===e[s].ty||"zz"===e[s].ty||"op"===e[s].ty?(d?(p=t[s]).closed=!1:((p=ShapeModifiers.getModifier(e[s].ty)).init(this,e[s]),t[s]=p,this.shapeModifiers.push(p)),g.push(p)):"rp"===e[s].ty&&(d?(p=t[s]).closed=!0:(p=ShapeModifiers.getModifier(e[s].ty),t[s]=p,p.init(this,e,s,t),this.shapeModifiers.push(p),a=!1),g.push(p));this.addProcessedElement(e[s],s+1)}for(f=m.length,s=0;s<f;s+=1)m[s].closed=!0;for(f=g.length,s=0;s<f;s+=1)g[s].closed=!0},SVGShapeElement.prototype.renderInnerContent=function(){var e;this.renderModifiers();var t=this.stylesList.length;for(e=0;e<t;e+=1)this.stylesList[e].reset();for(this.renderShape(),e=0;e<t;e+=1)(this.stylesList[e]._mdf||this._isFirstFrame)&&(this.stylesList[e].msElem&&(this.stylesList[e].msElem.setAttribute("d",this.stylesList[e].d),this.stylesList[e].d="M0 0"+this.stylesList[e].d),this.stylesList[e].pElem.setAttribute("d",this.stylesList[e].d||"M0 0"))},SVGShapeElement.prototype.renderShape=function(){var e,t,r=this.animatedContents.length;for(e=0;e<r;e+=1)t=this.animatedContents[e],(this._isFirstFrame||t.element._isAnimated)&&!0!==t.data&&t.fn(t.data,t.element,this._isFirstFrame)},SVGShapeElement.prototype.destroy=function(){this.destroyBaseElement(),this.shapesData=null,this.itemsData=null},LetterProps.prototype.update=function(e,t,r,n,i,o){this._mdf.o=!1,this._mdf.sw=!1,this._mdf.sc=!1,this._mdf.fc=!1,this._mdf.m=!1,this._mdf.p=!1;var a=!1;return this.o!==e&&(this.o=e,this._mdf.o=!0,a=!0),this.sw!==t&&(this.sw=t,this._mdf.sw=!0,a=!0),this.sc!==r&&(this.sc=r,this._mdf.sc=!0,a=!0),this.fc!==n&&(this.fc=n,this._mdf.fc=!0,a=!0),this.m!==i&&(this.m=i,this._mdf.m=!0,a=!0),!o.length||this.p[0]===o[0]&&this.p[1]===o[1]&&this.p[4]===o[4]&&this.p[5]===o[5]&&this.p[12]===o[12]&&this.p[13]===o[13]||(this.p=o,this._mdf.p=!0,a=!0),a},TextProperty.prototype.defaultBoxWidth=[0,0],TextProperty.prototype.copyData=function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},TextProperty.prototype.setCurrentData=function(e){e.__complete||this.completeTextData(e),this.currentData=e,this.currentData.boxWidth=this.currentData.boxWidth||this.defaultBoxWidth,this._mdf=!0},TextProperty.prototype.searchProperty=function(){return this.searchKeyframes()},TextProperty.prototype.searchKeyframes=function(){return this.kf=this.data.d.k.length>1,this.kf&&this.addEffect(this.getKeyframeValue.bind(this)),this.kf},TextProperty.prototype.addEffect=function(e){this.effectsSequence.push(e),this.elem.addDynamicProperty(this)},TextProperty.prototype.getValue=function(e){if(this.elem.globalData.frameId!==this.frameId&&this.effectsSequence.length||e){this.currentData.t=this.data.d.k[this.keysIndex].s.t;var t=this.currentData,r=this.keysIndex;if(this.lock)this.setCurrentData(this.currentData);else{var n;this.lock=!0,this._mdf=!1;var i=this.effectsSequence.length,o=e||this.data.d.k[this.keysIndex].s;for(n=0;n<i;n+=1)o=r!==this.keysIndex?this.effectsSequence[n](o,o.t):this.effectsSequence[n](this.currentData,o.t);t!==o&&this.setCurrentData(o),this.v=this.currentData,this.pv=this.v,this.lock=!1,this.frameId=this.elem.globalData.frameId}}},TextProperty.prototype.getKeyframeValue=function(){for(var e=this.data.d.k,t=this.elem.comp.renderedFrame,r=0,n=e.length;r<=n-1&&!(r===n-1||e[r+1].t>t);)r+=1;return this.keysIndex!==r&&(this.keysIndex=r),this.data.d.k[this.keysIndex].s},TextProperty.prototype.buildFinalText=function(e){for(var t,r,n=[],i=0,o=e.length,a=!1,s=!1,l="";i<o;)a=s,s=!1,t=e.charCodeAt(i),l=e.charAt(i),FontManager.isCombinedCharacter(t)?a=!0:t>=55296&&t<=56319?FontManager.isRegionalFlag(e,i)?l=e.substr(i,14):(r=e.charCodeAt(i+1))>=56320&&r<=57343&&(FontManager.isModifier(t,r)?(l=e.substr(i,2),a=!0):l=FontManager.isFlagEmoji(e.substr(i,4))?e.substr(i,4):e.substr(i,2)):t>56319?(r=e.charCodeAt(i+1),FontManager.isVariationSelector(t)&&(a=!0)):FontManager.isZeroWidthJoiner(t)&&(a=!0,s=!0),a?(n[n.length-1]+=l,a=!1):n.push(l),i+=l.length;return n},TextProperty.prototype.completeTextData=function(e){e.__complete=!0;var t,r,n,i,o,a,s,l=this.elem.globalData.fontManager,c=this.data,u=[],p=0,d=c.m.g,h=0,f=0,m=0,g=[],y=0,b=0,v=l.getFontByName(e.f),_=0,S=getFontProperties(v);e.fWeight=S.weight,e.fStyle=S.style,e.finalSize=e.s,e.finalText=this.buildFinalText(e.t),r=e.finalText.length,e.finalLineHeight=e.lh;var E,T=e.tr/1e3*e.finalSize;if(e.sz)for(var w,x,O=!0,I=e.sz[0],A=e.sz[1];O;){w=0,y=0,r=(x=this.buildFinalText(e.t)).length,T=e.tr/1e3*e.finalSize;var k=-1;for(t=0;t<r;t+=1)E=x[t].charCodeAt(0),n=!1," "===x[t]?k=t:13!==E&&3!==E||(y=0,n=!0,w+=e.finalLineHeight||1.2*e.finalSize),l.chars?(s=l.getCharData(x[t],v.fStyle,v.fFamily),_=n?0:s.w*e.finalSize/100):_=l.measureText(x[t],e.f,e.finalSize),y+_>I&&" "!==x[t]?(-1===k?r+=1:t=k,w+=e.finalLineHeight||1.2*e.finalSize,x.splice(t,k===t?1:0,"\r"),k=-1,y=0):(y+=_,y+=T);w+=v.ascent*e.finalSize/100,this.canResize&&e.finalSize>this.minimumFontSize&&A<w?(e.finalSize-=1,e.finalLineHeight=e.finalSize*e.lh/e.s):(e.finalText=x,r=e.finalText.length,O=!1)}y=-T,_=0;var R,C=0;for(t=0;t<r;t+=1)if(n=!1,13===(E=(R=e.finalText[t]).charCodeAt(0))||3===E?(C=0,g.push(y),b=y>b?y:b,y=-2*T,i="",n=!0,m+=1):i=R,l.chars?(s=l.getCharData(R,v.fStyle,l.getFontByName(e.f).fFamily),_=n?0:s.w*e.finalSize/100):_=l.measureText(i,e.f,e.finalSize)," "===R?C+=_+T:(y+=_+T+C,C=0),u.push({l:_,an:_,add:h,n,anIndexes:[],val:i,line:m,animatorJustifyOffset:0}),2==d){if(h+=_,""===i||" "===i||t===r-1){for(""!==i&&" "!==i||(h-=_);f<=t;)u[f].an=h,u[f].ind=p,u[f].extra=_,f+=1;p+=1,h=0}}else if(3==d){if(h+=_,""===i||t===r-1){for(""===i&&(h-=_);f<=t;)u[f].an=h,u[f].ind=p,u[f].extra=_,f+=1;h=0,p+=1}}else u[p].ind=p,u[p].extra=0,p+=1;if(e.l=u,b=y>b?y:b,g.push(y),e.sz)e.boxWidth=e.sz[0],e.justifyOffset=0;else switch(e.boxWidth=b,e.j){case 1:e.justifyOffset=-e.boxWidth;break;case 2:e.justifyOffset=-e.boxWidth/2;break;default:e.justifyOffset=0}e.lineWidths=g;var P,D,M,N,L=c.a;a=L.length;var F=[];for(o=0;o<a;o+=1){for((P=L[o]).a.sc&&(e.strokeColorAnim=!0),P.a.sw&&(e.strokeWidthAnim=!0),(P.a.fc||P.a.fh||P.a.fs||P.a.fb)&&(e.fillColorAnim=!0),N=0,M=P.s.b,t=0;t<r;t+=1)(D=u[t]).anIndexes[o]=N,(1==M&&""!==D.val||2==M&&""!==D.val&&" "!==D.val||3==M&&(D.n||" "==D.val||t==r-1)||4==M&&(D.n||t==r-1))&&(1===P.s.rn&&F.push(N),N+=1);c.a[o].s.totalChars=N;var B,U=-1;if(1===P.s.rn)for(t=0;t<r;t+=1)U!=(D=u[t]).anIndexes[o]&&(U=D.anIndexes[o],B=F.splice(Math.floor(Math.random()*F.length),1)[0]),D.anIndexes[o]=B}e.yOffset=e.finalLineHeight||1.2*e.finalSize,e.ls=e.ls||0,e.ascent=v.ascent*e.finalSize/100},TextProperty.prototype.updateDocumentData=function(e,t){t=void 0===t?this.keysIndex:t;var r=this.copyData({},this.data.d.k[t].s);r=this.copyData(r,e),this.data.d.k[t].s=r,this.recalculate(t),this.setCurrentData(r),this.elem.addDynamicProperty(this)},TextProperty.prototype.recalculate=function(e){var t=this.data.d.k[e].s;t.__complete=!1,this.keysIndex=0,this._isFirstFrame=!0,this.getValue(t)},TextProperty.prototype.canResizeFont=function(e){this.canResize=e,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)},TextProperty.prototype.setMinimumFontSize=function(e){this.minimumFontSize=Math.floor(e)||1,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)};var TextSelectorProp=function(){var e=Math.max,t=Math.min,r=Math.floor;function n(e,t){this._currentTextLength=-1,this.k=!1,this.data=t,this.elem=e,this.comp=e.comp,this.finalS=0,this.finalE=0,this.initDynamicPropertyContainer(e),this.s=PropertyFactory.getProp(e,t.s||{k:0},0,0,this),this.e="e"in t?PropertyFactory.getProp(e,t.e,0,0,this):{v:100},this.o=PropertyFactory.getProp(e,t.o||{k:0},0,0,this),this.xe=PropertyFactory.getProp(e,t.xe||{k:0},0,0,this),this.ne=PropertyFactory.getProp(e,t.ne||{k:0},0,0,this),this.sm=PropertyFactory.getProp(e,t.sm||{k:100},0,0,this),this.a=PropertyFactory.getProp(e,t.a,0,.01,this),this.dynamicProperties.length||this.getValue()}return n.prototype={getMult:function(n){this._currentTextLength!==this.elem.textProperty.currentData.l.length&&this.getValue();var i=0,o=0,a=1,s=1;this.ne.v>0?i=this.ne.v/100:o=-this.ne.v/100,this.xe.v>0?a=1-this.xe.v/100:s=1+this.xe.v/100;var l=BezierFactory.getBezierEasing(i,o,a,s).get,c=0,u=this.finalS,p=this.finalE,d=this.data.sh;if(2===d)c=l(c=p===u?n>=p?1:0:e(0,t(.5/(p-u)+(n-u)/(p-u),1)));else if(3===d)c=l(c=p===u?n>=p?0:1:1-e(0,t(.5/(p-u)+(n-u)/(p-u),1)));else if(4===d)p===u?c=0:(c=e(0,t(.5/(p-u)+(n-u)/(p-u),1)))<.5?c*=2:c=1-2*(c-.5),c=l(c);else if(5===d){if(p===u)c=0;else{var h=p-u,f=-h/2+(n=t(e(0,n+.5-u),p-u)),m=h/2;c=Math.sqrt(1-f*f/(m*m))}c=l(c)}else 6===d?(p===u?c=0:(n=t(e(0,n+.5-u),p-u),c=(1+Math.cos(Math.PI+2*Math.PI*n/(p-u)))/2),c=l(c)):(n>=r(u)&&(c=e(0,t(n-u<0?t(p,1)-(u-n):p-n,1))),c=l(c));if(100!==this.sm.v){var g=.01*this.sm.v;0===g&&(g=1e-8);var y=.5-.5*g;c<y?c=0:(c=(c-y)/g)>1&&(c=1)}return c*this.a.v},getValue:function(e){this.iterateDynamicProperties(),this._mdf=e||this._mdf,this._currentTextLength=this.elem.textProperty.currentData.l.length||0,e&&2===this.data.r&&(this.e.v=this._currentTextLength);var t=2===this.data.r?1:100/this.data.totalChars,r=this.o.v/t,n=this.s.v/t+r,i=this.e.v/t+r;if(n>i){var o=n;n=i,i=o}this.finalS=n,this.finalE=i}},extendPrototype([DynamicPropertyContainer],n),{getTextSelectorProp:function(e,t,r){return new n(e,t,r)}}}();function TextAnimatorDataProperty(e,t,r){var n={propType:!1},i=PropertyFactory.getProp,o=t.a;this.a={r:o.r?i(e,o.r,0,degToRads,r):n,rx:o.rx?i(e,o.rx,0,degToRads,r):n,ry:o.ry?i(e,o.ry,0,degToRads,r):n,sk:o.sk?i(e,o.sk,0,degToRads,r):n,sa:o.sa?i(e,o.sa,0,degToRads,r):n,s:o.s?i(e,o.s,1,.01,r):n,a:o.a?i(e,o.a,1,0,r):n,o:o.o?i(e,o.o,0,.01,r):n,p:o.p?i(e,o.p,1,0,r):n,sw:o.sw?i(e,o.sw,0,0,r):n,sc:o.sc?i(e,o.sc,1,0,r):n,fc:o.fc?i(e,o.fc,1,0,r):n,fh:o.fh?i(e,o.fh,0,0,r):n,fs:o.fs?i(e,o.fs,0,.01,r):n,fb:o.fb?i(e,o.fb,0,.01,r):n,t:o.t?i(e,o.t,0,0,r):n},this.s=TextSelectorProp.getTextSelectorProp(e,t.s,r),this.s.t=t.s.t}function TextAnimatorProperty(e,t,r){this._isFirstFrame=!0,this._hasMaskedPath=!1,this._frameId=-1,this._textData=e,this._renderType=t,this._elem=r,this._animatorsData=createSizedArray(this._textData.a.length),this._pathData={},this._moreOptions={alignment:{}},this.renderedLetters=[],this.lettersChangedFlag=!1,this.initDynamicPropertyContainer(r)}function ITextElement(){}TextAnimatorProperty.prototype.searchProperties=function(){var e,t,r=this._textData.a.length,n=PropertyFactory.getProp;for(e=0;e<r;e+=1)t=this._textData.a[e],this._animatorsData[e]=new TextAnimatorDataProperty(this._elem,t,this);this._textData.p&&"m"in this._textData.p?(this._pathData={a:n(this._elem,this._textData.p.a,0,0,this),f:n(this._elem,this._textData.p.f,0,0,this),l:n(this._elem,this._textData.p.l,0,0,this),r:n(this._elem,this._textData.p.r,0,0,this),p:n(this._elem,this._textData.p.p,0,0,this),m:this._elem.maskManager.getMaskProperty(this._textData.p.m)},this._hasMaskedPath=!0):this._hasMaskedPath=!1,this._moreOptions.alignment=n(this._elem,this._textData.m.a,1,0,this)},TextAnimatorProperty.prototype.getMeasures=function(e,t){if(this.lettersChangedFlag=t,this._mdf||this._isFirstFrame||t||this._hasMaskedPath&&this._pathData.m._mdf){this._isFirstFrame=!1;var r,n,i,o,a,s,l,c,u,p,d,h,f,m,g,y,b,v,_,S=this._moreOptions.alignment.v,E=this._animatorsData,T=this._textData,w=this.mHelper,x=this._renderType,O=this.renderedLetters.length,I=e.l;if(this._hasMaskedPath){if(_=this._pathData.m,!this._pathData.n||this._pathData._mdf){var A,k=_.v;for(this._pathData.r.v&&(k=k.reverse()),a={tLength:0,segments:[]},o=k._length-1,y=0,i=0;i<o;i+=1)A=bez.buildBezierData(k.v[i],k.v[i+1],[k.o[i][0]-k.v[i][0],k.o[i][1]-k.v[i][1]],[k.i[i+1][0]-k.v[i+1][0],k.i[i+1][1]-k.v[i+1][1]]),a.tLength+=A.segmentLength,a.segments.push(A),y+=A.segmentLength;i=o,_.v.c&&(A=bez.buildBezierData(k.v[i],k.v[0],[k.o[i][0]-k.v[i][0],k.o[i][1]-k.v[i][1]],[k.i[0][0]-k.v[0][0],k.i[0][1]-k.v[0][1]]),a.tLength+=A.segmentLength,a.segments.push(A),y+=A.segmentLength),this._pathData.pi=a}if(a=this._pathData.pi,s=this._pathData.f.v,d=0,p=1,c=0,u=!0,m=a.segments,s<0&&_.v.c)for(a.tLength<Math.abs(s)&&(s=-Math.abs(s)%a.tLength),p=(f=m[d=m.length-1].points).length-1;s<0;)s+=f[p].partialLength,(p-=1)<0&&(p=(f=m[d-=1].points).length-1);h=(f=m[d].points)[p-1],g=(l=f[p]).partialLength}o=I.length,r=0,n=0;var R,C,P,D,M,N=1.2*e.finalSize*.714,L=!0;P=E.length;var F,B,U,j,H,V,z,G,q,$,W,Y,K=-1,J=s,Q=d,X=p,Z=-1,ee="",te=this.defaultPropsArray;if(2===e.j||1===e.j){var re=0,ne=0,ie=2===e.j?-.5:-1,oe=0,ae=!0;for(i=0;i<o;i+=1)if(I[i].n){for(re&&(re+=ne);oe<i;)I[oe].animatorJustifyOffset=re,oe+=1;re=0,ae=!0}else{for(C=0;C<P;C+=1)(R=E[C].a).t.propType&&(ae&&2===e.j&&(ne+=R.t.v*ie),(M=E[C].s.getMult(I[i].anIndexes[C],T.a[C].s.totalChars)).length?re+=R.t.v*M[0]*ie:re+=R.t.v*M*ie);ae=!1}for(re&&(re+=ne);oe<i;)I[oe].animatorJustifyOffset=re,oe+=1}for(i=0;i<o;i+=1){if(w.reset(),j=1,I[i].n)r=0,n+=e.yOffset,n+=L?1:0,s=J,L=!1,this._hasMaskedPath&&(p=X,h=(f=m[d=Q].points)[p-1],g=(l=f[p]).partialLength,c=0),ee="",W="",q="",Y="",te=this.defaultPropsArray;else{if(this._hasMaskedPath){if(Z!==I[i].line){switch(e.j){case 1:s+=y-e.lineWidths[I[i].line];break;case 2:s+=(y-e.lineWidths[I[i].line])/2}Z=I[i].line}K!==I[i].ind&&(I[K]&&(s+=I[K].extra),s+=I[i].an/2,K=I[i].ind),s+=S[0]*I[i].an*.005;var se=0;for(C=0;C<P;C+=1)(R=E[C].a).p.propType&&((M=E[C].s.getMult(I[i].anIndexes[C],T.a[C].s.totalChars)).length?se+=R.p.v[0]*M[0]:se+=R.p.v[0]*M),R.a.propType&&((M=E[C].s.getMult(I[i].anIndexes[C],T.a[C].s.totalChars)).length?se+=R.a.v[0]*M[0]:se+=R.a.v[0]*M);for(u=!0,this._pathData.a.v&&(s=.5*I[0].an+(y-this._pathData.f.v-.5*I[0].an-.5*I[I.length-1].an)*K/(o-1),s+=this._pathData.f.v);u;)c+g>=s+se||!f?(b=(s+se-c)/l.partialLength,B=h.point[0]+(l.point[0]-h.point[0])*b,U=h.point[1]+(l.point[1]-h.point[1])*b,w.translate(-S[0]*I[i].an*.005,-S[1]*N*.01),u=!1):f&&(c+=l.partialLength,(p+=1)>=f.length&&(p=0,m[d+=1]?f=m[d].points:_.v.c?(p=0,f=m[d=0].points):(c-=l.partialLength,f=null)),f&&(h=l,g=(l=f[p]).partialLength));F=I[i].an/2-I[i].add,w.translate(-F,0,0)}else F=I[i].an/2-I[i].add,w.translate(-F,0,0),w.translate(-S[0]*I[i].an*.005,-S[1]*N*.01,0);for(C=0;C<P;C+=1)(R=E[C].a).t.propType&&(M=E[C].s.getMult(I[i].anIndexes[C],T.a[C].s.totalChars),0===r&&0===e.j||(this._hasMaskedPath?M.length?s+=R.t.v*M[0]:s+=R.t.v*M:M.length?r+=R.t.v*M[0]:r+=R.t.v*M));for(e.strokeWidthAnim&&(V=e.sw||0),e.strokeColorAnim&&(H=e.sc?[e.sc[0],e.sc[1],e.sc[2]]:[0,0,0]),e.fillColorAnim&&e.fc&&(z=[e.fc[0],e.fc[1],e.fc[2]]),C=0;C<P;C+=1)(R=E[C].a).a.propType&&((M=E[C].s.getMult(I[i].anIndexes[C],T.a[C].s.totalChars)).length?w.translate(-R.a.v[0]*M[0],-R.a.v[1]*M[1],R.a.v[2]*M[2]):w.translate(-R.a.v[0]*M,-R.a.v[1]*M,R.a.v[2]*M));for(C=0;C<P;C+=1)(R=E[C].a).s.propType&&((M=E[C].s.getMult(I[i].anIndexes[C],T.a[C].s.totalChars)).length?w.scale(1+(R.s.v[0]-1)*M[0],1+(R.s.v[1]-1)*M[1],1):w.scale(1+(R.s.v[0]-1)*M,1+(R.s.v[1]-1)*M,1));for(C=0;C<P;C+=1){if(R=E[C].a,M=E[C].s.getMult(I[i].anIndexes[C],T.a[C].s.totalChars),R.sk.propType&&(M.length?w.skewFromAxis(-R.sk.v*M[0],R.sa.v*M[1]):w.skewFromAxis(-R.sk.v*M,R.sa.v*M)),R.r.propType&&(M.length?w.rotateZ(-R.r.v*M[2]):w.rotateZ(-R.r.v*M)),R.ry.propType&&(M.length?w.rotateY(R.ry.v*M[1]):w.rotateY(R.ry.v*M)),R.rx.propType&&(M.length?w.rotateX(R.rx.v*M[0]):w.rotateX(R.rx.v*M)),R.o.propType&&(M.length?j+=(R.o.v*M[0]-j)*M[0]:j+=(R.o.v*M-j)*M),e.strokeWidthAnim&&R.sw.propType&&(M.length?V+=R.sw.v*M[0]:V+=R.sw.v*M),e.strokeColorAnim&&R.sc.propType)for(G=0;G<3;G+=1)M.length?H[G]+=(R.sc.v[G]-H[G])*M[0]:H[G]+=(R.sc.v[G]-H[G])*M;if(e.fillColorAnim&&e.fc){if(R.fc.propType)for(G=0;G<3;G+=1)M.length?z[G]+=(R.fc.v[G]-z[G])*M[0]:z[G]+=(R.fc.v[G]-z[G])*M;R.fh.propType&&(z=M.length?addHueToRGB(z,R.fh.v*M[0]):addHueToRGB(z,R.fh.v*M)),R.fs.propType&&(z=M.length?addSaturationToRGB(z,R.fs.v*M[0]):addSaturationToRGB(z,R.fs.v*M)),R.fb.propType&&(z=M.length?addBrightnessToRGB(z,R.fb.v*M[0]):addBrightnessToRGB(z,R.fb.v*M))}}for(C=0;C<P;C+=1)(R=E[C].a).p.propType&&(M=E[C].s.getMult(I[i].anIndexes[C],T.a[C].s.totalChars),this._hasMaskedPath?M.length?w.translate(0,R.p.v[1]*M[0],-R.p.v[2]*M[1]):w.translate(0,R.p.v[1]*M,-R.p.v[2]*M):M.length?w.translate(R.p.v[0]*M[0],R.p.v[1]*M[1],-R.p.v[2]*M[2]):w.translate(R.p.v[0]*M,R.p.v[1]*M,-R.p.v[2]*M));if(e.strokeWidthAnim&&(q=V<0?0:V),e.strokeColorAnim&&($="rgb("+Math.round(255*H[0])+","+Math.round(255*H[1])+","+Math.round(255*H[2])+")"),e.fillColorAnim&&e.fc&&(W="rgb("+Math.round(255*z[0])+","+Math.round(255*z[1])+","+Math.round(255*z[2])+")"),this._hasMaskedPath){if(w.translate(0,-e.ls),w.translate(0,S[1]*N*.01+n,0),this._pathData.p.v){v=(l.point[1]-h.point[1])/(l.point[0]-h.point[0]);var le=180*Math.atan(v)/Math.PI;l.point[0]<h.point[0]&&(le+=180),w.rotate(-le*Math.PI/180)}w.translate(B,U,0),s-=S[0]*I[i].an*.005,I[i+1]&&K!==I[i+1].ind&&(s+=I[i].an/2,s+=.001*e.tr*e.finalSize)}else{switch(w.translate(r,n,0),e.ps&&w.translate(e.ps[0],e.ps[1]+e.ascent,0),e.j){case 1:w.translate(I[i].animatorJustifyOffset+e.justifyOffset+(e.boxWidth-e.lineWidths[I[i].line]),0,0);break;case 2:w.translate(I[i].animatorJustifyOffset+e.justifyOffset+(e.boxWidth-e.lineWidths[I[i].line])/2,0,0)}w.translate(0,-e.ls),w.translate(F,0,0),w.translate(S[0]*I[i].an*.005,S[1]*N*.01,0),r+=I[i].l+.001*e.tr*e.finalSize}"html"===x?ee=w.toCSS():"svg"===x?ee=w.to2dCSS():te=[w.props[0],w.props[1],w.props[2],w.props[3],w.props[4],w.props[5],w.props[6],w.props[7],w.props[8],w.props[9],w.props[10],w.props[11],w.props[12],w.props[13],w.props[14],w.props[15]],Y=j}O<=i?(D=new LetterProps(Y,q,$,W,ee,te),this.renderedLetters.push(D),O+=1,this.lettersChangedFlag=!0):(D=this.renderedLetters[i],this.lettersChangedFlag=D.update(Y,q,$,W,ee,te)||this.lettersChangedFlag)}}},TextAnimatorProperty.prototype.getValue=function(){this._elem.globalData.frameId!==this._frameId&&(this._frameId=this._elem.globalData.frameId,this.iterateDynamicProperties())},TextAnimatorProperty.prototype.mHelper=new Matrix,TextAnimatorProperty.prototype.defaultPropsArray=[],extendPrototype([DynamicPropertyContainer],TextAnimatorProperty),ITextElement.prototype.initElement=function(e,t,r){this.lettersChangedFlag=!0,this.initFrame(),this.initBaseData(e,t,r),this.textProperty=new TextProperty(this,e.t,this.dynamicProperties),this.textAnimator=new TextAnimatorProperty(e.t,this.renderType,this),this.initTransform(e,t,r),this.initHierarchy(),this.initRenderable(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),this.createContent(),this.hide(),this.textAnimator.searchProperties(this.dynamicProperties)},ITextElement.prototype.prepareFrame=function(e){this._mdf=!1,this.prepareRenderableFrame(e),this.prepareProperties(e,this.isInRange)},ITextElement.prototype.createPathShape=function(e,t){var r,n,i=t.length,o="";for(r=0;r<i;r+=1)"sh"===t[r].ty&&(n=t[r].ks.k,o+=buildShapeString(n,n.i.length,!0,e));return o},ITextElement.prototype.updateDocumentData=function(e,t){this.textProperty.updateDocumentData(e,t)},ITextElement.prototype.canResizeFont=function(e){this.textProperty.canResizeFont(e)},ITextElement.prototype.setMinimumFontSize=function(e){this.textProperty.setMinimumFontSize(e)},ITextElement.prototype.applyTextPropertiesToMatrix=function(e,t,r,n,i){switch(e.ps&&t.translate(e.ps[0],e.ps[1]+e.ascent,0),t.translate(0,-e.ls,0),e.j){case 1:t.translate(e.justifyOffset+(e.boxWidth-e.lineWidths[r]),0,0);break;case 2:t.translate(e.justifyOffset+(e.boxWidth-e.lineWidths[r])/2,0,0)}t.translate(n,i,0)},ITextElement.prototype.buildColor=function(e){return"rgb("+Math.round(255*e[0])+","+Math.round(255*e[1])+","+Math.round(255*e[2])+")"},ITextElement.prototype.emptyProp=new LetterProps,ITextElement.prototype.destroy=function(){},ITextElement.prototype.validateText=function(){(this.textProperty._mdf||this.textProperty._isFirstFrame)&&(this.buildNewText(),this.textProperty._isFirstFrame=!1,this.textProperty._mdf=!1)};var emptyShapeData={shapes:[]};function SVGTextLottieElement(e,t,r){this.textSpans=[],this.renderType="svg",this.initElement(e,t,r)}function ISolidElement(e,t,r){this.initElement(e,t,r)}function NullElement(e,t,r){this.initFrame(),this.initBaseData(e,t,r),this.initFrame(),this.initTransform(e,t,r),this.initHierarchy()}function SVGRendererBase(){}function ICompElement(){}function SVGCompElement(e,t,r){this.layers=e.layers,this.supports3d=!0,this.completeLayers=!1,this.pendingElements=[],this.elements=this.layers?createSizedArray(this.layers.length):[],this.initElement(e,t,r),this.tm=e.tm?PropertyFactory.getProp(this,e.tm,0,t.frameRate,this):{_placeholder:!0}}function SVGRenderer(e,t){this.animationItem=e,this.layers=null,this.renderedFrame=-1,this.svgElement=createNS("svg");var r="";if(t&&t.title){var n=createNS("title"),i=createElementID();n.setAttribute("id",i),n.textContent=t.title,this.svgElement.appendChild(n),r+=i}if(t&&t.description){var o=createNS("desc"),a=createElementID();o.setAttribute("id",a),o.textContent=t.description,this.svgElement.appendChild(o),r+=" "+a}r&&this.svgElement.setAttribute("aria-labelledby",r);var s=createNS("defs");this.svgElement.appendChild(s);var l=createNS("g");this.svgElement.appendChild(l),this.layerElement=l,this.renderConfig={preserveAspectRatio:t&&t.preserveAspectRatio||"xMidYMid meet",imagePreserveAspectRatio:t&&t.imagePreserveAspectRatio||"xMidYMid slice",contentVisibility:t&&t.contentVisibility||"visible",progressiveLoad:t&&t.progressiveLoad||!1,hideOnTransparent:!(t&&!1===t.hideOnTransparent),viewBoxOnly:t&&t.viewBoxOnly||!1,viewBoxSize:t&&t.viewBoxSize||!1,className:t&&t.className||"",id:t&&t.id||"",focusable:t&&t.focusable,filterSize:{width:t&&t.filterSize&&t.filterSize.width||"100%",height:t&&t.filterSize&&t.filterSize.height||"100%",x:t&&t.filterSize&&t.filterSize.x||"0%",y:t&&t.filterSize&&t.filterSize.y||"0%"},width:t&&t.width,height:t&&t.height,runExpressions:!t||void 0===t.runExpressions||t.runExpressions},this.globalData={_mdf:!1,frameNum:-1,defs:s,renderConfig:this.renderConfig},this.elements=[],this.pendingElements=[],this.destroyed=!1,this.rendererType="svg"}function ShapeTransformManager(){this.sequences={},this.sequenceList=[],this.transform_key_count=0}extendPrototype([BaseElement,TransformElement,SVGBaseElement,HierarchyElement,FrameElement,RenderableDOMElement,ITextElement],SVGTextLottieElement),SVGTextLottieElement.prototype.createContent=function(){this.data.singleShape&&!this.globalData.fontManager.chars&&(this.textContainer=createNS("text"))},SVGTextLottieElement.prototype.buildTextContents=function(e){for(var t=0,r=e.length,n=[],i="";t<r;)e[t]===String.fromCharCode(13)||e[t]===String.fromCharCode(3)?(n.push(i),i=""):i+=e[t],t+=1;return n.push(i),n},SVGTextLottieElement.prototype.buildShapeData=function(e,t){if(e.shapes&&e.shapes.length){var r=e.shapes[0];if(r.it){var n=r.it[r.it.length-1];n.s&&(n.s.k[0]=t,n.s.k[1]=t)}}return e},SVGTextLottieElement.prototype.buildNewText=function(){var e,t;this.addDynamicProperty(this);var r=this.textProperty.currentData;this.renderedLetters=createSizedArray(r?r.l.length:0),r.fc?this.layerElement.setAttribute("fill",this.buildColor(r.fc)):this.layerElement.setAttribute("fill","rgba(0,0,0,0)"),r.sc&&(this.layerElement.setAttribute("stroke",this.buildColor(r.sc)),this.layerElement.setAttribute("stroke-width",r.sw)),this.layerElement.setAttribute("font-size",r.finalSize);var n=this.globalData.fontManager.getFontByName(r.f);if(n.fClass)this.layerElement.setAttribute("class",n.fClass);else{this.layerElement.setAttribute("font-family",n.fFamily);var i=r.fWeight,o=r.fStyle;this.layerElement.setAttribute("font-style",o),this.layerElement.setAttribute("font-weight",i)}this.layerElement.setAttribute("aria-label",r.t);var a,s=r.l||[],l=!!this.globalData.fontManager.chars;t=s.length;var c=this.mHelper,u=this.data.singleShape,p=0,d=0,h=!0,f=.001*r.tr*r.finalSize;if(!u||l||r.sz){var m,g=this.textSpans.length;for(e=0;e<t;e+=1){if(this.textSpans[e]||(this.textSpans[e]={span:null,childSpan:null,glyph:null}),!l||!u||0===e){if(a=g>e?this.textSpans[e].span:createNS(l?"g":"text"),g<=e){if(a.setAttribute("stroke-linecap","butt"),a.setAttribute("stroke-linejoin","round"),a.setAttribute("stroke-miterlimit","4"),this.textSpans[e].span=a,l){var y=createNS("g");a.appendChild(y),this.textSpans[e].childSpan=y}this.textSpans[e].span=a,this.layerElement.appendChild(a)}a.style.display="inherit"}if(c.reset(),u&&(s[e].n&&(p=-f,d+=r.yOffset,d+=h?1:0,h=!1),this.applyTextPropertiesToMatrix(r,c,s[e].line,p,d),p+=s[e].l||0,p+=f),l){var b;if(1===(m=this.globalData.fontManager.getCharData(r.finalText[e],n.fStyle,this.globalData.fontManager.getFontByName(r.f).fFamily)).t)b=new SVGCompElement(m.data,this.globalData,this);else{var v=emptyShapeData;m.data&&m.data.shapes&&(v=this.buildShapeData(m.data,r.finalSize)),b=new SVGShapeElement(v,this.globalData,this)}if(this.textSpans[e].glyph){var _=this.textSpans[e].glyph;this.textSpans[e].childSpan.removeChild(_.layerElement),_.destroy()}this.textSpans[e].glyph=b,b._debug=!0,b.prepareFrame(0),b.renderFrame(),this.textSpans[e].childSpan.appendChild(b.layerElement),1===m.t&&this.textSpans[e].childSpan.setAttribute("transform","scale("+r.finalSize/100+","+r.finalSize/100+")")}else u&&a.setAttribute("transform","translate("+c.props[12]+","+c.props[13]+")"),a.textContent=s[e].val,a.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve")}u&&a&&a.setAttribute("d","")}else{var S=this.textContainer,E="start";switch(r.j){case 1:E="end";break;case 2:E="middle";break;default:E="start"}S.setAttribute("text-anchor",E),S.setAttribute("letter-spacing",f);var T=this.buildTextContents(r.finalText);for(t=T.length,d=r.ps?r.ps[1]+r.ascent:0,e=0;e<t;e+=1)(a=this.textSpans[e].span||createNS("tspan")).textContent=T[e],a.setAttribute("x",0),a.setAttribute("y",d),a.style.display="inherit",S.appendChild(a),this.textSpans[e]||(this.textSpans[e]={span:null,glyph:null}),this.textSpans[e].span=a,d+=r.finalLineHeight;this.layerElement.appendChild(S)}for(;e<this.textSpans.length;)this.textSpans[e].span.style.display="none",e+=1;this._sizeChanged=!0},SVGTextLottieElement.prototype.sourceRectAtTime=function(){if(this.prepareFrame(this.comp.renderedFrame-this.data.st),this.renderInnerContent(),this._sizeChanged){this._sizeChanged=!1;var e=this.layerElement.getBBox();this.bbox={top:e.y,left:e.x,width:e.width,height:e.height}}return this.bbox},SVGTextLottieElement.prototype.getValue=function(){var e,t,r=this.textSpans.length;for(this.renderedFrame=this.comp.renderedFrame,e=0;e<r;e+=1)(t=this.textSpans[e].glyph)&&(t.prepareFrame(this.comp.renderedFrame-this.data.st),t._mdf&&(this._mdf=!0))},SVGTextLottieElement.prototype.renderInnerContent=function(){if(this.validateText(),(!this.data.singleShape||this._mdf)&&(this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag),this.lettersChangedFlag||this.textAnimator.lettersChangedFlag)){var e,t;this._sizeChanged=!0;var r,n,i,o=this.textAnimator.renderedLetters,a=this.textProperty.currentData.l;for(t=a.length,e=0;e<t;e+=1)a[e].n||(r=o[e],n=this.textSpans[e].span,(i=this.textSpans[e].glyph)&&i.renderFrame(),r._mdf.m&&n.setAttribute("transform",r.m),r._mdf.o&&n.setAttribute("opacity",r.o),r._mdf.sw&&n.setAttribute("stroke-width",r.sw),r._mdf.sc&&n.setAttribute("stroke",r.sc),r._mdf.fc&&n.setAttribute("fill",r.fc))}},extendPrototype([IImageElement],ISolidElement),ISolidElement.prototype.createContent=function(){var e=createNS("rect");e.setAttribute("width",this.data.sw),e.setAttribute("height",this.data.sh),e.setAttribute("fill",this.data.sc),this.layerElement.appendChild(e)},NullElement.prototype.prepareFrame=function(e){this.prepareProperties(e,!0)},NullElement.prototype.renderFrame=function(){},NullElement.prototype.getBaseElement=function(){return null},NullElement.prototype.destroy=function(){},NullElement.prototype.sourceRectAtTime=function(){},NullElement.prototype.hide=function(){},extendPrototype([BaseElement,TransformElement,HierarchyElement,FrameElement],NullElement),extendPrototype([BaseRenderer],SVGRendererBase),SVGRendererBase.prototype.createNull=function(e){return new NullElement(e,this.globalData,this)},SVGRendererBase.prototype.createShape=function(e){return new SVGShapeElement(e,this.globalData,this)},SVGRendererBase.prototype.createText=function(e){return new SVGTextLottieElement(e,this.globalData,this)},SVGRendererBase.prototype.createImage=function(e){return new IImageElement(e,this.globalData,this)},SVGRendererBase.prototype.createSolid=function(e){return new ISolidElement(e,this.globalData,this)},SVGRendererBase.prototype.configAnimation=function(e){this.svgElement.setAttribute("xmlns","http://www.w3.org/2000/svg"),this.svgElement.setAttribute("xmlns:xlink","http://www.w3.org/1999/xlink"),this.renderConfig.viewBoxSize?this.svgElement.setAttribute("viewBox",this.renderConfig.viewBoxSize):this.svgElement.setAttribute("viewBox","0 0 "+e.w+" "+e.h),this.renderConfig.viewBoxOnly||(this.svgElement.setAttribute("width",e.w),this.svgElement.setAttribute("height",e.h),this.svgElement.style.width="100%",this.svgElement.style.height="100%",this.svgElement.style.transform="translate3d(0,0,0)",this.svgElement.style.contentVisibility=this.renderConfig.contentVisibility),this.renderConfig.width&&this.svgElement.setAttribute("width",this.renderConfig.width),this.renderConfig.height&&this.svgElement.setAttribute("height",this.renderConfig.height),this.renderConfig.className&&this.svgElement.setAttribute("class",this.renderConfig.className),this.renderConfig.id&&this.svgElement.setAttribute("id",this.renderConfig.id),void 0!==this.renderConfig.focusable&&this.svgElement.setAttribute("focusable",this.renderConfig.focusable),this.svgElement.setAttribute("preserveAspectRatio",this.renderConfig.preserveAspectRatio),this.animationItem.wrapper.appendChild(this.svgElement);var t=this.globalData.defs;this.setupGlobalData(e,t),this.globalData.progressiveLoad=this.renderConfig.progressiveLoad,this.data=e;var r=createNS("clipPath"),n=createNS("rect");n.setAttribute("width",e.w),n.setAttribute("height",e.h),n.setAttribute("x",0),n.setAttribute("y",0);var i=createElementID();r.setAttribute("id",i),r.appendChild(n),this.layerElement.setAttribute("clip-path","url("+getLocationHref()+"#"+i+")"),t.appendChild(r),this.layers=e.layers,this.elements=createSizedArray(e.layers.length)},SVGRendererBase.prototype.destroy=function(){var e;this.animationItem.wrapper&&(this.animationItem.wrapper.innerText=""),this.layerElement=null,this.globalData.defs=null;var t=this.layers?this.layers.length:0;for(e=0;e<t;e+=1)this.elements[e]&&this.elements[e].destroy&&this.elements[e].destroy();this.elements.length=0,this.destroyed=!0,this.animationItem=null},SVGRendererBase.prototype.updateContainerSize=function(){},SVGRendererBase.prototype.findIndexByInd=function(e){var t=0,r=this.layers.length;for(t=0;t<r;t+=1)if(this.layers[t].ind===e)return t;return-1},SVGRendererBase.prototype.buildItem=function(e){var t=this.elements;if(!t[e]&&99!==this.layers[e].ty){t[e]=!0;var r=this.createItem(this.layers[e]);if(t[e]=r,getExpressionsPlugin()&&(0===this.layers[e].ty&&this.globalData.projectInterface.registerComposition(r),r.initExpressions()),this.appendElementInPos(r,e),this.layers[e].tt){var n="tp"in this.layers[e]?this.findIndexByInd(this.layers[e].tp):e-1;if(-1===n)return;if(this.elements[n]&&!0!==this.elements[n]){var i=t[n].getMatte(this.layers[e].tt);r.setMatte(i)}else this.buildItem(n),this.addPendingElement(r)}}},SVGRendererBase.prototype.checkPendingElements=function(){for(;this.pendingElements.length;){var e=this.pendingElements.pop();if(e.checkParenting(),e.data.tt)for(var t=0,r=this.elements.length;t<r;){if(this.elements[t]===e){var n="tp"in e.data?this.findIndexByInd(e.data.tp):t-1,i=this.elements[n].getMatte(this.layers[t].tt);e.setMatte(i);break}t+=1}}},SVGRendererBase.prototype.renderFrame=function(e){if(this.renderedFrame!==e&&!this.destroyed){var t;null===e?e=this.renderedFrame:this.renderedFrame=e,this.globalData.frameNum=e,this.globalData.frameId+=1,this.globalData.projectInterface.currentFrame=e,this.globalData._mdf=!1;var r=this.layers.length;for(this.completeLayers||this.checkLayers(e),t=r-1;t>=0;t-=1)(this.completeLayers||this.elements[t])&&this.elements[t].prepareFrame(e-this.layers[t].st);if(this.globalData._mdf)for(t=0;t<r;t+=1)(this.completeLayers||this.elements[t])&&this.elements[t].renderFrame()}},SVGRendererBase.prototype.appendElementInPos=function(e,t){var r=e.getBaseElement();if(r){for(var n,i=0;i<t;)this.elements[i]&&!0!==this.elements[i]&&this.elements[i].getBaseElement()&&(n=this.elements[i].getBaseElement()),i+=1;n?this.layerElement.insertBefore(r,n):this.layerElement.appendChild(r)}},SVGRendererBase.prototype.hide=function(){this.layerElement.style.display="none"},SVGRendererBase.prototype.show=function(){this.layerElement.style.display="block"},extendPrototype([BaseElement,TransformElement,HierarchyElement,FrameElement,RenderableDOMElement],ICompElement),ICompElement.prototype.initElement=function(e,t,r){this.initFrame(),this.initBaseData(e,t,r),this.initTransform(e,t,r),this.initRenderable(),this.initHierarchy(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),!this.data.xt&&t.progressiveLoad||this.buildAllItems(),this.hide()},ICompElement.prototype.prepareFrame=function(e){if(this._mdf=!1,this.prepareRenderableFrame(e),this.prepareProperties(e,this.isInRange),this.isInRange||this.data.xt){if(this.tm._placeholder)this.renderedFrame=e/this.data.sr;else{var t=this.tm.v;t===this.data.op&&(t=this.data.op-1),this.renderedFrame=t}var r,n=this.elements.length;for(this.completeLayers||this.checkLayers(this.renderedFrame),r=n-1;r>=0;r-=1)(this.completeLayers||this.elements[r])&&(this.elements[r].prepareFrame(this.renderedFrame-this.layers[r].st),this.elements[r]._mdf&&(this._mdf=!0))}},ICompElement.prototype.renderInnerContent=function(){var e,t=this.layers.length;for(e=0;e<t;e+=1)(this.completeLayers||this.elements[e])&&this.elements[e].renderFrame()},ICompElement.prototype.setElements=function(e){this.elements=e},ICompElement.prototype.getElements=function(){return this.elements},ICompElement.prototype.destroyElements=function(){var e,t=this.layers.length;for(e=0;e<t;e+=1)this.elements[e]&&this.elements[e].destroy()},ICompElement.prototype.destroy=function(){this.destroyElements(),this.destroyBaseElement()},extendPrototype([SVGRendererBase,ICompElement,SVGBaseElement],SVGCompElement),SVGCompElement.prototype.createComp=function(e){return new SVGCompElement(e,this.globalData,this)},extendPrototype([SVGRendererBase],SVGRenderer),SVGRenderer.prototype.createComp=function(e){return new SVGCompElement(e,this.globalData,this)},ShapeTransformManager.prototype={addTransformSequence:function(e){var t,r=e.length,n="_";for(t=0;t<r;t+=1)n+=e[t].transform.key+"_";var i=this.sequences[n];return i||(i={transforms:[].concat(e),finalTransform:new Matrix,_mdf:!1},this.sequences[n]=i,this.sequenceList.push(i)),i},processSequence:function(e,t){for(var r=0,n=e.transforms.length,i=t;r<n&&!t;){if(e.transforms[r].transform.mProps._mdf){i=!0;break}r+=1}if(i)for(e.finalTransform.reset(),r=n-1;r>=0;r-=1)e.finalTransform.multiply(e.transforms[r].transform.mProps.v);e._mdf=i},processSequences:function(e){var t,r=this.sequenceList.length;for(t=0;t<r;t+=1)this.processSequence(this.sequenceList[t],e)},getNewKey:function(){return this.transform_key_count+=1,"_"+this.transform_key_count}};var lumaLoader=function(){var e="__lottie_element_luma_buffer",t=null,r=null,n=null;function i(){var i,o,a;t||(i=createNS("svg"),o=createNS("filter"),a=createNS("feColorMatrix"),o.setAttribute("id",e),a.setAttribute("type","matrix"),a.setAttribute("color-interpolation-filters","sRGB"),a.setAttribute("values","0.3, 0.3, 0.3, 0, 0, 0.3, 0.3, 0.3, 0, 0, 0.3, 0.3, 0.3, 0, 0, 0.3, 0.3, 0.3, 0, 0"),o.appendChild(a),i.appendChild(o),i.setAttribute("id",e+"_svg"),featureSupport.svgLumaHidden&&(i.style.display="none"),n=i,document.body.appendChild(n),t=createTag("canvas"),(r=t.getContext("2d")).filter="url(#"+e+")",r.fillStyle="rgba(0,0,0,0)",r.fillRect(0,0,1,1))}return{load:i,get:function(n){return t||i(),t.width=n.width,t.height=n.height,r.filter="url
31(#"+e+")",t}}};function createCanvas(e,t){if(featureSupport.offscreenCanvas)return new OffscreenCanvas(e,t);var r=createTag("canvas");return r.width=e,r.height=t,r}var assetLoader={loadLumaCanvas:lumaLoader.load,getLumaCanvas:lumaLoader.get,createCanvas},registeredEffects={};function CVEffects(e){var t,r,n=e.data.ef?e.data.ef.length:0;for(this.filters=[],t=0;t<n;t+=1){r=null;var i=e.data.ef[t].ty;registeredEffects[i]&&(r=new(0,registeredEffects[i].effect)(e.effectsManager.effectElements[t],e)),r&&this.filters.push(r)}this.filters.length&&e.addRenderableComponent(this)}function registerEffect(e,t){registeredEffects[e]={effect:t}}function CVMaskElement(e,t){var r;this.data=e,this.element=t,this.masksProperties=this.data.masksProperties||[],this.viewData=createSizedArray(this.masksProperties.length);var n=this.masksProperties.length,i=!1;for(r=0;r<n;r+=1)"n"!==this.masksProperties[r].mode&&(i=!0),this.viewData[r]=ShapePropertyFactory.getShapeProp(this.element,this.masksProperties[r],3);this.hasMasks=i,i&&this.element.addRenderableComponent(this)}function CVBaseElement(){}CVEffects.prototype.renderFrame=function(e){var t,r=this.filters.length;for(t=0;t<r;t+=1)this.filters[t].renderFrame(e)},CVEffects.prototype.getEffects=function(e){var t,r=this.filters.length,n=[];for(t=0;t<r;t+=1)this.filters[t].type===e&&n.push(this.filters[t]);return n},CVMaskElement.prototype.renderFrame=function(){if(this.hasMasks){var e,t,r,n,i=this.element.finalTransform.mat,o=this.element.canvasContext,a=this.masksProperties.length;for(o.beginPath(),e=0;e<a;e+=1)if("n"!==this.masksProperties[e].mode){var s;this.masksProperties[e].inv&&(o.moveTo(0,0),o.lineTo(this.element.globalData.compSize.w,0),o.lineTo(this.element.globalData.compSize.w,this.element.globalData.compSize.h),o.lineTo(0,this.element.globalData.compSize.h),o.lineTo(0,0)),n=this.viewData[e].v,t=i.applyToPointArray(n.v[0][0],n.v[0][1],0),o.moveTo(t[0],t[1]);var l=n._length;for(s=1;s<l;s+=1)r=i.applyToTriplePoints(n.o[s-1],n.i[s],n.v[s]),o.bezierCurveTo(r[0],r[1],r[2],r[3],r[4],r[5]);r=i.applyToTriplePoints(n.o[s-1],n.i[0],n.v[0]),o.bezierCurveTo(r[0],r[1],r[2],r[3],r[4],r[5])}this.element.globalData.renderer.save(!0),o.clip()}},CVMaskElement.prototype.getMaskProperty=MaskElement.prototype.getMaskProperty,CVMaskElement.prototype.destroy=function(){this.element=null};var operationsMap={1:"source-in",2:"source-out",3:"source-in",4:"source-out"};function CVShapeData(e,t,r,n){this.styledShapes=[],this.tr=[0,0,0,0,0,0];var i,o=4;"rc"===t.ty?o=5:"el"===t.ty?o=6:"sr"===t.ty&&(o=7),this.sh=ShapePropertyFactory.getShapeProp(e,t,o,e);var a,s=r.length;for(i=0;i<s;i+=1)r[i].closed||(a={transforms:n.addTransformSequence(r[i].transforms),trNodes:[]},this.styledShapes.push(a),r[i].elements.push(a))}function CVShapeElement(e,t,r){this.shapes=[],this.shapesData=e.shapes,this.stylesList=[],this.itemsData=[],this.prevViewData=[],this.shapeModifiers=[],this.processedElements=[],this.transformsManager=new ShapeTransformManager,this.initElement(e,t,r)}function CVTextElement(e,t,r){this.textSpans=[],this.yOffset=0,this.fillColorAnim=!1,this.strokeColorAnim=!1,this.strokeWidthAnim=!1,this.stroke=!1,this.fill=!1,this.justifyOffset=0,this.currentRender=null,this.renderType="canvas",this.values={fill:"rgba(0,0,0,0)",stroke:"rgba(0,0,0,0)",sWidth:0,fValue:""},this.initElement(e,t,r)}function CVImageElement(e,t,r){this.assetData=t.getAssetData(e.refId),this.img=t.imageLoader.getAsset(this.assetData),this.initElement(e,t,r)}function CVSolidElement(e,t,r){this.initElement(e,t,r)}function CanvasRendererBase(){}function CanvasContext(){this.opacity=-1,this.transform=createTypedArray("float32",16),this.fillStyle="",this.strokeStyle="",this.lineWidth="",this.lineCap="",this.lineJoin="",this.miterLimit="",this.id=Math.random()}function CVContextData(){var e;for(this.stack=[],this.cArrPos=0,this.cTr=new Matrix,e=0;e<15;e+=1){var t=new CanvasContext;this.stack[e]=t}
vendor: 27,180 bytes, line 31
31this._length=15,this.nativeContext=null,this.transformMat=new Matrix,this.currentOpacity=1,this.currentFillStyle="",this.appliedFillStyle="",this.currentStrokeStyle="",this.appliedStrokeStyle="",this.currentLineWidth="",this.appliedLineWidth="",this.currentLineCap="",this.appliedLineCap="",this.currentLineJoin="",this.appliedLineJoin="",this.appliedMiterLimit="",this.currentMiterLimit=""}function CVCompElement(e,t,r){this.completeLayers=!1,this.layers=e.layers,this.pendingElements=[],this.elements=createSizedArray(this.layers.length),this.initElement(e,t,r),this.tm=e.tm?PropertyFactory.getProp(this,e.tm,0,t.frameRate,this):{_placeholder:!0}}function CanvasRenderer(e,t){this.animationItem=e,this.renderConfig={clearCanvas:!t||void 0===t.clearCanvas||t.clearCanvas,context:t&&t.context||null,progressiveLoad:t&&t.progressiveLoad||!1,preserveAspectRatio:t&&t.preserveAspectRatio||"xMidYMid meet",imagePreserveAspectRatio:t&&t.imagePreserveAspectRatio||"xMidYMid slice",contentVisibility:t&&t.contentVisibility||"visible",className:t&&t.className||"",id:t&&t.id||"",runExpressions:!t||void 0===t.runExpressions||t.runExpressions},this.renderConfig.dpr=t&&t.dpr||1,this.animationItem.wrapper&&(this.renderConfig.dpr=t&&t.dpr||window.devicePixelRatio||1),this.renderedFrame=-1,this.globalData={frameNum:-1,_mdf:!1,renderConfig:this.renderConfig,currentGlobalAlpha:-1},this.contextData=new CVContextData,this.elements=[],this.pendingElements=[],this.transformMat=new Matrix,this.completeLayers=!1,this.rendererType="canvas",this.renderConfig.clearCanvas&&(this.ctxTransform=this.contextData.transform.bind(this.contextData),this.ctxOpacity=this.contextData.opacity.bind(this.contextData),this.ctxFillStyle=this.contextData.fillStyle.bind(this.contextData),this.ctxStrokeStyle=this.contextData.strokeStyle.bind(this.contextData),this.ctxLineWidth=this.contextData.lineWidth.bind(this.contextData),this.ctxLineCap=this.contextData.lineCap.bind(this.contextData),this.ctxLineJoin=this.contextData.lineJoin.bind(this.contextData),this.ctxMiterLimit=this.contextData.miterLimit.bind(this.contextData),this.ctxFill=this.contextData.fill.bind(this.contextData),this.ctxFillRect=this.contextData.fillRect.bind(this.contextData),this.ctxStroke=this.contextData.stroke.bind(this.contextData),this.save=this.contextData.save.bind(this.contextData))}function HBaseElement(){}function HSolidElement(e,t,r){this.initElement(e,t,r)}function HShapeElement(e,t,r){this.shapes=[],this.shapesData=e.shapes,this.stylesList=[],this.shapeModifiers=[],this.itemsData=[],this.processedElements=[],this.animatedContents=[],this.shapesContainer=createNS("g"),this.initElement(e,t,r),this.prevViewData=[],this.currentBBox={x:999999,y:-999999,h:0,w:0}}function HTextElement(e,t,r){this.textSpans=[],this.textPaths=[],this.currentBBox={x:999999,y:-999999,h:0,w:0},this.renderType="svg",this.isMasked=!1,this.initElement(e,t,r)}function HCameraElement(e,t,r){this.initFrame(),this.initBaseData(e,t,r),this.initHierarchy();var n=PropertyFactory.getProp;if(this.pe=n(this,e.pe,0,0,this),e.ks.p.s?(this.px=n(this,e.ks.p.x,1,0,this),this.py=n(this,e.ks.p.y,1,0,this),this.pz=n(this,e.ks.p.z,1,0,this)):this.p=n(this,e.ks.p,1,0,this),e.ks.a&&(this.a=n(this,e.ks.a,1,0,this)),e.ks.or.k.length&&e.ks.or.k[0].to){var i,o=e.ks.or.k.length;for(i=0;i<o;i+=1)e.ks.or.k[i].to=null,e.ks.or.k[i].ti=null}this.or=n(this,e.ks.or,1,degToRads,this),this.or.sh=!0,this.rx=n(this,e.ks.rx,0,degToRads,this),this.ry=n(this,e.ks.ry,0,degToRads,this),this.rz=n(this,e.ks.rz,0,degToRads,this),this.mat=new Matrix,this._prevMat=new Matrix,this._isFirstFrame=!0,this.finalTransform={mProp:this}}function HImageElement(e,t,r){this.assetData=t.getAssetData(e.refId),this.initElement(e,t,r)}function HybridRendererBase(e,t){this.animationItem=e,this.layers=null,this.renderedFrame=-1,this.renderConfig={className:t&&t.className||"",imagePreserveAspectRatio:t&&t.imagePreserveAspectRatio||"xMidYMid slice",hideOnTransparent:!(t&&!1===t.hideOnTransparent),filterSize:{width:t&&t.filterSize&&t.filterSize.width||"400%",height:t&&t.filterSize&&t.filterSize.height||"400%",x:t&&t.filterSize&&t.filterSize.x||"-100%",y:t&&t.filterSize&&t.filterSize.y||"-100%"}},this.globalData={_mdf:!1,frameNum:-1,renderConfig:this.renderConfig},this.pendingElements=[],this.elements=[],this.threeDElements=[],this.destroyed=!1,this.camera=null,this.supports3d=!0,this.rendererType="html"}function HCompElement(e,t,r){this.layers=e.layers,this.supports3d=!e.hasMask,this.completeLayers=!1,this.pendingElements=[],this.elements=this.layers?createSizedArray(this.layers.length):[],this.initElement(e,t,r),this.tm=e.tm?PropertyFactory.getProp(this,e.tm,0,t.frameRate,this):{_placeholder:!0}}function HybridRenderer(e,t){this.animationItem=e,this.layers=null,this.renderedFrame=-1,this.renderConfig={className:t&&t.className||"",imagePreserveAspectRatio:t&&t.imagePreserveAspectRatio||"xMidYMid slice",hideOnTransparent:!(t&&!1===t.hideOnTransparent),filterSize:{width:t&&t.filterSize&&t.filterSize.width||"400%",height:t&&t.filterSize&&t.filterSize.height||"400%",x:t&&t.filterSize&&t.filterSize.x||"-100%",y:t&&t.filterSize&&t.filterSize.y||"-100%"},runExpressions:!t||void 0===t.runExpressions||t.runExpressions},this.globalData={_mdf:!1,frameNum:-1,renderConfig:this.renderConfig},this.pendingElements=[],this.elements=[],this.threeDElements=[],this.destroyed=!1,this.camera=null,this.supports3d=!0,this.rendererType="html"}CVBaseElement.prototype={createElements:function(){},initRendererElement:function(){},createContainerElements:function(){if(this.data.tt>=1){this.buffers=[];var e=this.globalData.canvasContext,t=assetLoader.createCanvas(e.canvas.width,e.canvas.height);this.buffers.push(t);var r=assetLoader.createCanvas(e.canvas.width,e.canvas.height);this.buffers.push(r),this.data.tt>=3&&!document._isProxy&&assetLoader.loadLumaCanvas()}this.canvasContext=this.globalData.canvasContext,this.transformCanvas=this.globalData.transformCanvas,this.renderableEffectsManager=new CVEffects(this),this.searchEffectTransforms()},createContent:function(){},setBlendMode:function(){var e=this.globalData;if(e.blendMode!==this.data.bm){e.blendMode=this.data.bm;var t=getBlendMode(this.data.bm);e.canvasContext.globalCompositeOperation=t}},createRenderableComponents:function(){this.maskManager=new CVMaskElement(this.data,this),this.transformEffects=this.renderableEffectsManager.getEffects(effectTypes.TRANSFORM_EFFECT)},hideElement:function(){this.hidden||this.isInRange&&!this.isTransparent||(this.hidden=!0)},showElement:function(){this.isInRange&&!this.isTransparent&&(this.hidden=!1,this._isFirstFrame=!0,this.maskManager._isFirstFrame=!0)},clearCanvas:function(e){e.clearRect(this.transformCanvas.tx,this.transformCanvas.ty,this.transformCanvas.w*this.transformCanvas.sx,this.transformCanvas.h*this.transformCanvas.sy)},prepareLayer:function(){if(this.data.tt>=1){var e=this.buffers[0].getContext("2d");this.clearCanvas(e),e.drawImage(this.canvasContext.canvas,0,0),this.currentTransform=this.canvasContext.getTransform(),this.canvasContext.setTransform(1,0,0,1,0,0),this.clearCanvas(this.canvasContext),this.canvasContext.setTransform(this.currentTransform)}},exitLayer:function(){if(this.data.tt>=1){var e=this.buffers[1],t=e.getContext("2d");if(this.clearCanvas(t),t.drawImage(this.canvasContext.canvas,0,0),this.canvasContext.setTransform(1,0,0,1,0,0),this.clearCanvas(this.canvasContext),this.canvasContext.setTransform(this.currentTransform),this.comp.getElementById("tp"in this.data?this.data.tp:this.data.ind-1).renderFrame(!0),this.canvasContext.setTransform(1,0,0,1,0,0),this.data.tt>=3&&!document._isProxy){var r=assetLoader.getLumaCanvas(this.canvasContext.canvas);r.getContext("2d").drawImage(this.canvasContext.canvas,0,0),this.clearCanvas(this.canvasContext),this.canvasContext.drawImage(r,0,0)}this.canvasContext.globalCompositeOperation=operationsMap[this.data.tt],this.canvasContext.drawImage(e,0,0),this.canvasContext.globalCompositeOperation="destination-over",this.canvasContext.drawImage(this.buffers[0],0,0),this.canvasContext.setTransform(this.currentTransform),this.canvasContext.globalCompositeOperation="source-over"}},renderFrame:function(e){if(!this.hidden&&!this.data.hd&&(1!==this.data.td||e)){this.renderTransform(),this.renderRenderable(),this.renderLocalTransform(),this.setBlendMode();var t=0===this.data.ty;this.prepareLayer(),this.globalData.renderer.save(t),this.globalData.renderer.ctxTransform(this.finalTransform.localMat.props),this.globalData.renderer.ctxOpacity(this.finalTransform.localOpacity),this.renderInnerContent(),this.globalData.renderer.restore(t),this.exitLayer(),this.maskManager.hasMasks&&this.globalData.renderer.restore(!0),this._isFirstFrame&&(this._isFirstFrame=!1)}},destroy:function(){this.canvasContext=null,this.data=null,this.globalData=null,this.maskManager.destroy()},mHelper:new Matrix},CVBaseElement.prototype.hide=CVBaseElement.prototype.hideElement,CVBaseElement.prototype.show=CVBaseElement.prototype.showElement,CVShapeData.prototype.setAsAnimated=SVGShapeData.prototype.setAsAnimated,extendPrototype([BaseElement,TransformElement,CVBaseElement,IShapeElement,HierarchyElement,FrameElement,RenderableElement],CVShapeElement),CVShapeElement.prototype.initElement=RenderableDOMElement.prototype.initElement,CVShapeElement.prototype.transformHelper={opacity:1,_opMdf:!1},CVShapeElement.prototype.dashResetter=[],CVShapeElement.prototype.createContent=function(){this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,!0,[])},CVShapeElement.prototype.createStyleElement=function(e,t){var r={data:e,type:e.ty,preTransforms:this.transformsManager.addTransformSequence(t),transforms:[],elements:[],closed:!0===e.hd},n={};if("fl"===e.ty||"st"===e.ty?(n.c=PropertyFactory.getProp(this,e.c,1,255,this),n.c.k||(r.co="rgb("+bmFloor(n.c.v[0])+","+bmFloor(n.c.v[1])+","+bmFloor(n.c.v[2])+")")):"gf"!==e.ty&&"gs"!==e.ty||(n.s=PropertyFactory.getProp(this,e.s,1,null,this),n.e=PropertyFactory.getProp(this,e.e,1,null,this),n.h=PropertyFactory.getProp(this,e.h||{k:0},0,.01,this),n.a=PropertyFactory.getProp(this,e.a||{k:0},0,degToRads,this),n.g=new GradientProperty(this,e.g,this)),n.o=PropertyFactory.getProp(this,e.o,0,.01,this),"st"===e.ty||"gs"===e.ty){if(r.lc=lineCapEnum[e.lc||2],r.lj=lineJoinEnum[e.lj||2],1==e.lj&&(r.ml=e.ml),n.w=PropertyFactory.getProp(this,e.w,0,null,this),n.w.k||(r.wi=n.w.v),e.d){var i=new DashProperty(this,e.d,"canvas",this);n.d=i,n.d.k||(r.da=n.d.dashArray,r.do=n.d.dashoffset[0])}}else r.r=2===e.r?"evenodd":"nonzero";return this.stylesList.push(r),n.style=r,n},CVShapeElement.prototype.createGroupElement=function(){return{it:[],prevViewData:[]}},CVShapeElement.prototype.createTransformElement=function(e){return{transform:{opacity:1,_opMdf:!1,key:this.transformsManager.getNewKey(),op:PropertyFactory.getProp(this,e.o,0,.01,this),mProps:TransformPropertyFactory.getTransformProperty(this,e,this)}}},CVShapeElement.prototype.createShapeElement=function(e){var t=new CVShapeData(this,e,this.stylesList,this.transformsManager);return this.shapes.push(t),this.addShapeToModifiers(t),t},CVShapeElement.prototype.reloadShapes=function(){var e;this._isFirstFrame=!0;var t=this.itemsData.length;for(e=0;e<t;e+=1)this.prevViewData[e]=this.itemsData[e];for(this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,!0,[]),t=this.dynamicProperties.length,e=0;e<t;e+=1)this.dynamicProperties[e].getValue();this.renderModifiers(),this.transformsManager.processSequences(this._isFirstFrame)},CVShapeElement.prototype.addTransformToStyleList=function(e){var t,r=this.stylesList.length;for(t=0;t<r;t+=1)this.stylesList[t].closed||this.stylesList[t].transforms.push(e)},CVShapeElement.prototype.removeTransformFromStyleList=function(){var e,t=this.stylesList.length;for(e=0;e<t;e+=1)this.stylesList[e].closed||this.stylesList[e].transforms.pop()},CVShapeElement.prototype.closeStyles=function(e){var t,r=e.length;for(t=0;t<r;t+=1)e[t].closed=!0},CVShapeElement.prototype.searchShapes=function(e,t,r,n,i){var o,a,s,l,c,u,p=e.length-1,d=[],h=[],f=[].concat(i);for(o=p;o>=0;o-=1){if((l=this.searchProcessedElement(e[o]))?t[o]=r[l-1]:e[o]._shouldRender=n,"fl"===e[o].ty||"st"===e[o].ty||"gf"===e[o].ty||"gs"===e[o].ty)l?t[o].style.closed=!1:t[o]=this.createStyleElement(e[o],f),d.push(t[o].style);else if("gr"===e[o].ty){if(l)for(s=t[o].it.length,a=0;a<s;a+=1)t[o].prevViewData[a]=t[o].it[a];else t[o]=this.createGroupElement(e[o]);this.searchShapes(e[o].it,t[o].it,t[o].prevViewData,n,f)}else"tr"===e[o].ty?(l||(u=this.createTransformElement(e[o]),t[o]=u),f.push(t[o]),this.addTransformToStyleList(t[o])):"sh"===e[o].ty||"rc"===e[o].ty||"el"===e[o].ty||"sr"===e[o].ty?l||(t[o]=this.createShapeElement(e[o])):"tm"===e[o].ty||"rd"===e[o].ty||"pb"===e[o].ty||"zz"===e[o].ty||"op"===e[o].ty?(l?(c=t[o]).closed=!1:((c=ShapeModifiers.getModifier(e[o].ty)).init(this,e[o]),t[o]=c,this.shapeModifiers.push(c)),h.push(c)):"rp"===e[o].ty&&(l?(c=t[o]).closed=!0:(c=ShapeModifiers.getModifier(e[o].ty),t[o]=c,c.init(this,e,o,t),this.shapeModifiers.push(c),n=!1),h.push(c));this.addProcessedElement(e[o],o+1)}for(this.removeTransformFromStyleList(),this.closeStyles(d),p=h.length,o=0;o<p;o+=1)h[o].closed=!0},CVShapeElement.prototype.renderInnerContent=function(){this.transformHelper.opacity=1,this.transformHelper._opMdf=!1,this.renderModifiers(),this.transformsManager.processSequences(this._isFirstFrame),this.renderShape(this.transformHelper,this.shapesData,this.itemsData,!0)},CVShapeElement.prototype.renderShapeTransform=function(e,t){(e._opMdf||t.op._mdf||this._isFirstFrame)&&(t.opacity=e.opacity,t.opacity*=t.op.v,t._opMdf=!0)},CVShapeElement.prototype.drawLayer=function(){var e,t,r,n,i,o,a,s,l,c=this.stylesList.length,u=this.globalData.renderer,p=this.globalData.canvasContext;for(e=0;e<c;e+=1)if(("st"!==(s=(l=this.stylesList[e]).type)&&"gs"!==s||0!==l.wi)&&l.data._shouldRender&&0!==l.coOp&&0!==this.globalData.currentGlobalAlpha){for(u.save(),o=l.elements,"st"===s||"gs"===s?(u.ctxStrokeStyle("st"===s?l.co:l.grd),u.ctxLineWidth(l.wi),u.ctxLineCap(l.lc),u.ctxLineJoin(l.lj),u.ctxMiterLimit(l.ml||0)):u.ctxFillStyle("fl"===s?l.co:l.grd),u.ctxOpacity(l.coOp),"st"!==s&&"gs"!==s&&p.beginPath(),u.ctxTransform(l.preTransforms.finalTransform.props),r=o.length,t=0;t<r;t+=1){for("st"!==s&&"gs"!==s||(p.beginPath(),l.da&&(p.setLineDash(l.da),p.lineDashOffset=l.do)),i=(a=o[t].trNodes).length,n=0;n<i;n+=1)"m"===a[n].t?p.moveTo(a[n].p[0],a[n].p[1]):"c"===a[n].t?p.bezierCurveTo(a[n].pts[0],a[n].pts[1],a[n].pts[2],a[n].pts[3],a[n].pts[4],a[n].pts[5]):p.closePath();"st"!==s&&"gs"!==s||(u.ctxStroke(),l.da&&p.setLineDash(this.dashResetter))}"st"!==s&&"gs"!==s&&this.globalData.renderer.ctxFill(l.r),u.restore()}},CVShapeElement.prototype.renderShape=function(e,t,r,n){var i,o;for(o=e,i=t.length-1;i>=0;i-=1)"tr"===t[i].ty?(o=r[i].transform,this.renderShapeTransform(e,o)):"sh"===t[i].ty||"el"===t[i].ty||"rc"===t[i].ty||"sr"===t[i].ty?this.renderPath(t[i],r[i]):"fl"===t[i].ty?this.renderFill(t[i],r[i],o):"st"===t[i].ty?this.renderStroke(t[i],r[i],o):"gf"===t[i].ty||"gs"===t[i].ty?this.renderGradientFill(t[i],r[i],o):"gr"===t[i].ty?this.renderShape(o,t[i].it,r[i].it):t[i].ty;n&&this.drawLayer()},CVShapeElement.prototype.renderStyledShape=function(e,t){if(this._isFirstFrame||t._mdf||e.transforms._mdf){var r,n,i,o=e.trNodes,a=t.paths,s=a._length;o.length=0;var l=e.transforms.finalTransform;for(i=0;i<s;i+=1){var c=a.shapes[i];if(c&&c.v){for(n=c._length,r=1;r<n;r+=1)1===r&&o.push({t:"m",p:l.applyToPointArray(c.v[0][0],c.v[0][1],0)}),o.push({t:"c",pts:l.applyToTriplePoints(c.o[r-1],c.i[r],c.v[r])});1===n&&o.push({t:"m",p:l.applyToPointArray(c.v[0][0],c.v[0][1],0)}),c.c&&n&&(o.push({t:"c",pts:l.applyToTriplePoints(c.o[r-1],c.i[0],c.v[0])}),o.push({t:"z"}))}}e.trNodes=o}},CVShapeElement.prototype.renderPath=function(e,t){if(!0!==e.hd&&e._shouldRender){var r,n=t.styledShapes.length;for(r=0;r<n;r+=1)this.renderStyledShape(t.styledShapes[r],t.sh)}},CVShapeElement.prototype.renderFill=function(e,t,r){var n=t.style;(t.c._mdf||this._isFirstFrame)&&(n.co="rgb("+bmFloor(t.c.v[0])+","+bmFloor(t.c.v[1])+","+bmFloor(t.c.v[2])+")"),(t.o._mdf||r._opMdf||this._isFirstFrame)&&(n.coOp=t.o.v*r.opacity)},CVShapeElement.prototype.renderGradientFill=function(e,t,r){var n,i=t.style;if(!i.grd||t.g._mdf||t.s._mdf||t.e._mdf||1!==e.t&&(t.h._mdf||t.a._mdf)){var o,a=this.globalData.canvasContext,s=t.s.v,l=t.e.v;if(1===e.t)n=a.createLinearGradient(s[0],s[1],l[0],l[1]);else{var c=Math.sqrt(Math.pow(s[0]-l[0],2)+Math.pow(s[1]-l[1],2)),u=Math.atan2(l[1]-s[1],l[0]-s[0]),p=t.h.v;p>=1?p=.99:p<=-1&&(p=-.99);var d=c*p,h=Math.cos(u+t.a.v)*d+s[0],f=Math.sin(u+t.a.v)*d+s[1];n=a.createRadialGradient(h,f,0,s[0],s[1],c)}var m=e.g.p,g=t.g.c,y=1;for(o=0;o<m;o+=1)t.g._hasOpacity&&t.g._collapsable&&(y=t.g.o[2*o+1]),n.addColorStop(g[4*o]/100,"rgba("+g[4*o+1]+","+g[4*o+2]+","+g[4*o+3]+","+y+")");i.grd=n}i.coOp=t.o.v*r.opacity},CVShapeElement.prototype.renderStroke=function(e,t,r){var n=t.style,i=t.d;i&&(i._mdf||this._isFirstFrame)&&(n.da=i.dashArray,n.do=i.dashoffset[0]),(t.c._mdf||this._isFirstFrame)&&(n.co="rgb("+bmFloor(t.c.v[0])+","+bmFloor(t.c.v[1])+","+bmFloor(t.c.v[2])+")"),(t.o._mdf||r._opMdf||this._isFirstFrame)&&(n.coOp=t.o.v*r.opacity),(t.w._mdf||this._isFirstFrame)&&(n.wi=t.w.v)},CVShapeElement.prototype.destroy=function(){this.shapesData=null,this.globalData=null,this.canvasContext=null,this.stylesList.length=0,this.itemsData.length=0},extendPrototype([BaseElement,TransformElement,CVBaseElement,HierarchyElement,FrameElement,RenderableElement,ITextElement],CVTextElement),CVTextElement.prototype.tHelper=createTag("canvas").getContext("2d"),CVTextElement.prototype.buildNewText=function(){var e=this.textProperty.currentData;this.renderedLetters=createSizedArray(e.l?e.l.length:0);var t=!1;e.fc?(t=!0,this.values.fill=this.buildColor(e.fc)):this.values.fill="rgba(0,0,0,0)",this.fill=t;var r=!1;e.sc&&(r=!0,this.values.stroke=this.buildColor(e.sc),this.values.sWidth=e.sw);var n,i,o,a,s,l,c,u,p,d,h,f,m=this.globalData.fontManager.getFontByName(e.f),g=e.l,y=this.mHelper;this.stroke=r,this.values.fValue=e.finalSize+"px "+this.globalData.fontManager.getFontByName(e.f).fFamily,i=e.finalText.length;var b=this.data.singleShape,v=.001*e.tr*e.finalSize,_=0,S=0,E=!0,T=0;for(n=0;n<i;n+=1){a=(o=this.globalData.fontManager.getCharData(e.finalText[n],m.fStyle,this.globalData.fontManager.getFontByName(e.f).fFamily))&&o.data||{},y.reset(),b&&g[n].n&&(_=-v,S+=e.yOffset,S+=E?1:0,E=!1),p=(c=a.shapes?a.shapes[0].it:[]).length,y.scale(e.finalSize/100,e.finalSize/100),b&&this.applyTextPropertiesToMatrix(e,y,g[n].line,_,S),h=createSizedArray(p-1);var w=0;for(u=0;u<p;u+=1)if("sh"===c[u].ty){for(l=c[u].ks.k.i.length,d=c[u].ks.k,f=[],s=1;s<l;s+=1)1===s&&f.push(y.applyToX(d.v[0][0],d.v[0][1],0),y.applyToY(d.v[0][0],d.v[0][1],0)),f.push(y.applyToX(d.o[s-1][0],d.o[s-1][1],0),y.applyToY(d.o[s-1][0],d.o[s-1][1],0),y.applyToX(d.i[s][0],d.i[s][1],0),y.applyToY(d.i[s][0],d.i[s][1],0),y.applyToX(d.v[s][0],d.v[s][1],0),y.applyToY(d.v[s][0],d.v[s][1],0));f.push(y.applyToX(d.o[s-1][0],d.o[s-1][1],0),y.applyToY(d.o[s-1][0],d.o[s-1][1],0),y.applyToX(d.i[0][0],d.i[0][1],0),y.applyToY(d.i[0][0],d.i[0][1],0),y.applyToX(d.v[0][0],d.v[0][1],0),y.applyToY(d.v[0][0],d.v[0][1],0)),h[w]=f,w+=1}b&&(_+=g[n].l,_+=v),this.textSpans[T]?this.textSpans[T].elem=h:this.textSpans[T]={elem:h},T+=1}},CVTextElement.prototype.renderInnerContent=function(){var e,t,r,n,i,o;this.validateText(),this.canvasContext.font=this.values.fValue,this.globalData.renderer.ctxLineCap("butt"),this.globalData.renderer.ctxLineJoin("miter"),this.globalData.renderer.ctxMiterLimit(4),this.data.singleShape||this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag);var a,s=this.textAnimator.renderedLetters,l=this.textProperty.currentData.l;t=l.length;var c,u,p=null,d=null,h=null,f=this.globalData.renderer;for(e=0;e<t;e+=1)if(!l[e].n){if((a=s[e])&&(f.save(),f.ctxTransform(a.p),f.ctxOpacity(a.o)),this.fill){for(a&&a.fc?p!==a.fc&&(f.ctxFillStyle(a.fc),p=a.fc):p!==this.values.fill&&(p=this.values.fill,f.ctxFillStyle(this.values.fill)),n=(c=this.textSpans[e].elem).length,this.globalData.canvasContext.beginPath(),r=0;r<n;r+=1)for(o=(u=c[r]).length,this.globalData.canvasContext.moveTo(u[0],u[1]),i=2;i<o;i+=6)this.globalData.canvasContext.bezierCurveTo(u[i],u[i+1],u[i+2],u[i+3],u[i+4],u[i+5]);this.globalData.canvasContext.closePath(),f.ctxFill()}if(this.stroke){for(a&&a.sw?h!==a.sw&&(h=a.sw,f.ctxLineWidth(a.sw)):h!==this.values.sWidth&&(h=this.values.sWidth,f.ctxLineWidth(this.values.sWidth)),a&&a.sc?d!==a.sc&&(d=a.sc,f.ctxStrokeStyle(a.sc)):d!==this.values.stroke&&(d=this.values.stroke,f.ctxStrokeStyle(this.values.stroke)),n=(c=this.textSpans[e].elem).length,this.globalData.canvasContext.beginPath(),r=0;r<n;r+=1)for(o=(u=c[r]).length,this.globalData.canvasContext.moveTo(u[0],u[1]),i=2;i<o;i+=6)this.globalData.canvasContext.bezierCurveTo(u[i],u[i+1],u[i+2],u[i+3],u[i+4],u[i+5]);this.globalData.canvasContext.closePath(),f.ctxStroke()}a&&this.globalData.renderer.restore()}},extendPrototype([BaseElement,TransformElement,CVBaseElement,HierarchyElement,FrameElement,RenderableElement],CVImageElement),CVImageElement.prototype.initElement=SVGShapeElement.prototype.initElement,CVImageElement.prototype.prepareFrame=IImageElement.prototype.prepareFrame,CVImageElement.prototype.createContent=function(){if(this.img.width&&(this.assetData.w!==this.img.width||this.assetData.h!==this.img.height)){var e=createTag("canvas");e.width=this.assetData.w,e.height=this.assetData.h;var t,r,n=e.getContext("2d"),i=this.img.width,o=this.img.height,a=i/o,s=this.assetData.w/this.assetData.h,l=this.assetData.pr||this.globalData.renderConfig.imagePreserveAspectRatio;a>s&&"xMidYMid slice"===l||a<s&&"xMidYMid slice"!==l?t=(r=o)*s:r=(t=i)/s,n.drawImage(this.img,(i-t)/2,(o-r)/2,t,r,0,0,this.assetData.w,this.assetData.h),this.img=e}},CVImageElement.prototype.renderInnerContent=function(){this.canvasContext.drawImage(this.img,0,0)},CVImageElement.prototype.destroy=function(){this.img=null},extendPrototype([BaseElement,TransformElement,CVBaseElement,HierarchyElement,FrameElement,RenderableElement],CVSolidElement),CVSolidElement.prototype.initElement=SVGShapeElement.prototype.initElement,CVSolidElement.prototype.prepareFrame=IImageElement.prototype.prepareFrame,CVSolidElement.prototype.renderInnerContent=function(){this.globalData.renderer.ctxFillStyle(this.data.sc),this.globalData.renderer.ctxFillRect(0,0,this.data.sw,this.data.sh)},extendPrototype([BaseRenderer],CanvasRendererBase),CanvasRendererBase.prototype.createShape=function(e){return new CVShapeElement(e,this.globalData,this)},CanvasRendererBase.prototype.createText=function(e){return new CVTextElement(e,this.globalData,this)},CanvasRendererBase.prototype.createImage=function(e){return new CVImageElement(e,this.globalData,this)},CanvasRendererBase.prototype.createSolid=function(e){return new CVSolidElement(e,this.globalData,this)},CanvasRendererBase.prototype.createNull=SVGRenderer.prototype.createNull,CanvasRendererBase.prototype.ctxTransform=function(e){1===e[0]&&0===e[1]&&0===e[4]&&1===e[5]&&0===e[12]&&0===e[13]||this.canvasContext.transform(e[0],e[1],e[4],e[5],e[12],e[13])},CanvasRendererBase.prototype.ctxOpacity=function(e){this.canvasContext.globalAlpha*=e<0?0:e},CanvasRendererBase.prototype.ctxFillStyle=function(e){this.canvasContext.fillStyle=e},CanvasRendererBase.prototype.ctxStrokeStyle=function(e){this.canvasContext.strokeStyle=e},CanvasRendererBase.prototype.ctxLineWidth=function(e){this.canvasContext.lineWidth=e},CanvasRendererBase.prototype.ctxLineCap=function(e){this.canvasContext.lineCap=e},CanvasRendererBase.prototype.ctxLineJoin=function(e){this.canvasContext.lineJoin=e},CanvasRendererBase.prototype.ctxMiterLimit=function(e){this.canvasContext.miterLimit=e},CanvasRendererBase.prototype.ctxFill=function(e){this.canvasContext.fill(e)},CanvasRendererBase.prototype.ctxFillRect=function(e,t,r,n){this.canvasContext.fillRect(e,t,r,n)},CanvasRendererBase.prototype.ctxStroke=function(){this.canvasContext.stroke()},CanvasRendererBase.prototype.reset=function(){this.renderConfig.clearCanvas?this.contextData.reset():this.canvasContext.restore()},CanvasRendererBase.prototype.save=function(){this.canvasContext.save()},CanvasRendererBase.prototype.restore=function(e){this.renderConfig.clearCanvas?(e&&(this.globalData.blendMode="source-over"),this.contextData.restore(e)):this.canvasContext.restore()},CanvasRendererBase.prototype.configAnimation=function(e){if(this.animationItem.wrapper){this.animationItem.container=createTag("canvas");var t=this.animationItem.container.style;t.width="100%",t.height="100%";var r="0px 0px 0px";t.transformOrigin=r,t.mozTransformOrigin=r,t.webkitTransformOrigin=r,t["-webkit-transform"]=r,t.contentVisibility=this.renderConfig.contentVisibility,this.animationItem.wrapper.appendChild(this.animationItem.container),this.canvasContext=this.animationItem.container.getContext("2d"),this.renderConfig.className&&this.animationItem.container.setAttribute("class",this.renderConfig.className),this.renderConfig.id&&this.animationItem.container.setAttribute("id",this.renderConfig.id)}else this.canvasContext=this.renderConfig.context;this.contextData.setContext(this.canvasContext),this.data=e,this.layers=e.layers,this.transformCanvas={w:e.w,h:e.h,sx:0,sy:0,tx:0,ty:0},this.setupGlobalData(e,document.body),this.globalData.canvasContext=this.canvasContext,this.globalData.renderer=this,this.globalData.isDashed=!1,this.globalData.progressiveLoad=this.renderConfig.progressiveLoad,this.globalData.transformCanvas=this.transformCanvas,this.elements=createSizedArray(e.layers.length),this.updateContainerSize()},CanvasRendererBase.prototype.updateContainerSize=function(e,t){var r,n,i,o;if(this.reset(),e?(r=e,n=t,this.canvasContext.canvas.width=r,this.canvasContext.canvas.height=n):(this.animationItem.wrapper&&this.animationItem.container?(r=this.animationItem.wrapper.offsetWidth,n=this.animationItem.wrapper.offsetHeight):(r=this.canvasContext.canvas.width,n=this.canvasContext.canvas.height),this.canvasContext.canvas.width=r*this.renderConfig.dpr,this.canvasContext.canvas.height=n*this.renderConfig.dpr),-1!==this.renderConfig.preserveAspectRatio.indexOf("meet")||-1!==this.renderConfig.preserveAspectRatio.indexOf("slice")){var a=this.renderConfig.preserveAspectRatio.split(" "),s=a[1]||"meet",l=a[0]||"xMidYMid",c=l.substr(0,4),u=l.substr(4);i=r/n,(o=this.transformCanvas.w/this.transformCanvas.h)>i&&"meet"===s||o<i&&"slice"===s?(this.transformCanvas.sx=r/(this.transformCanvas.w/this.renderConfig.dpr),this.transformCanvas.sy=r/(this.transformCanvas.w/this.renderConfig.dpr)):(this.transformCanvas.sx=n/(this.transformCanvas.h/this.renderConfig.dpr),this.transformCanvas.sy=n/(this.transformCanvas.h/this.renderConfig.dpr)),this.transformCanvas.tx="xMid"===c&&(o<i&&"meet"===s||o>i&&"slice"===s)?(r-this.transformCanvas.w*(n/this.transformCanvas.h))/2*this.renderConfig.dpr:"xMax"===c&&(o<i&&"meet"===s||o>i&&"slice"===s)?(r-this.transformCanvas.w*(n/this.transformCanvas.h))*this.renderConfig.dpr:0,this.transformCanvas.ty="YMid"===u&&(
vendor: 22,886 bytes, line 31
31o>i&&"meet"===s||o<i&&"slice"===s)?(n-this.transformCanvas.h*(r/this.transformCanvas.w))/2*this.renderConfig.dpr:"YMax"===u&&(o>i&&"meet"===s||o<i&&"slice"===s)?(n-this.transformCanvas.h*(r/this.transformCanvas.w))*this.renderConfig.dpr:0}else"none"===this.renderConfig.preserveAspectRatio?(this.transformCanvas.sx=r/(this.transformCanvas.w/this.renderConfig.dpr),this.transformCanvas.sy=n/(this.transformCanvas.h/this.renderConfig.dpr),this.transformCanvas.tx=0,this.transformCanvas.ty=0):(this.transformCanvas.sx=this.renderConfig.dpr,this.transformCanvas.sy=this.renderConfig.dpr,this.transformCanvas.tx=0,this.transformCanvas.ty=0);this.transformCanvas.props=[this.transformCanvas.sx,0,0,0,0,this.transformCanvas.sy,0,0,0,0,1,0,this.transformCanvas.tx,this.transformCanvas.ty,0,1],this.ctxTransform(this.transformCanvas.props),this.canvasContext.beginPath(),this.canvasContext.rect(0,0,this.transformCanvas.w,this.transformCanvas.h),this.canvasContext.closePath(),this.canvasContext.clip(),this.renderFrame(this.renderedFrame,!0)},CanvasRendererBase.prototype.destroy=function(){var e;for(this.renderConfig.clearCanvas&&this.animationItem.wrapper&&(this.animationItem.wrapper.innerText=""),e=(this.layers?this.layers.length:0)-1;e>=0;e-=1)this.elements[e]&&this.elements[e].destroy&&this.elements[e].destroy();this.elements.length=0,this.globalData.canvasContext=null,this.animationItem.container=null,this.destroyed=!0},CanvasRendererBase.prototype.renderFrame=function(e,t){if((this.renderedFrame!==e||!0!==this.renderConfig.clearCanvas||t)&&!this.destroyed&&-1!==e){var r;this.renderedFrame=e,this.globalData.frameNum=e-this.animationItem._isFirstFrame,this.globalData.frameId+=1,this.globalData._mdf=!this.renderConfig.clearCanvas||t,this.globalData.projectInterface.currentFrame=e;var n=this.layers.length;for(this.completeLayers||this.checkLayers(e),r=n-1;r>=0;r-=1)(this.completeLayers||this.elements[r])&&this.elements[r].prepareFrame(e-this.layers[r].st);if(this.globalData._mdf){for(!0===this.renderConfig.clearCanvas?this.canvasContext.clearRect(0,0,this.transformCanvas.w,this.transformCanvas.h):this.save(),r=n-1;r>=0;r-=1)(this.completeLayers||this.elements[r])&&this.elements[r].renderFrame();!0!==this.renderConfig.clearCanvas&&this.restore()}}},CanvasRendererBase.prototype.buildItem=function(e){var t=this.elements;if(!t[e]&&99!==this.layers[e].ty){var r=this.createItem(this.layers[e],this,this.globalData);t[e]=r,r.initExpressions()}},CanvasRendererBase.prototype.checkPendingElements=function(){for(;this.pendingElements.length;)this.pendingElements.pop().checkParenting()},CanvasRendererBase.prototype.hide=function(){this.animationItem.container.style.display="none"},CanvasRendererBase.prototype.show=function(){this.animationItem.container.style.display="block"},CVContextData.prototype.duplicate=function(){var e=2*this._length,t=0;for(t=this._length;t<e;t+=1)this.stack[t]=new CanvasContext;this._length=e},CVContextData.prototype.reset=function(){this.cArrPos=0,this.cTr.reset(),this.stack[this.cArrPos].opacity=1},CVContextData.prototype.restore=function(e){this.cArrPos-=1;var t,r=this.stack[this.cArrPos],n=r.transform,i=this.cTr.props;for(t=0;t<16;t+=1)i[t]=n[t];if(e){this.nativeContext.restore();var o=this.stack[this.cArrPos+1];this.appliedFillStyle=o.fillStyle,this.appliedStrokeStyle=o.strokeStyle,this.appliedLineWidth=o.lineWidth,this.appliedLineCap=o.lineCap,this.appliedLineJoin=o.lineJoin,this.appliedMiterLimit=o.miterLimit}this.nativeContext.setTransform(n[0],n[1],n[4],n[5],n[12],n[13]),(e||-1!==r.opacity&&this.currentOpacity!==r.opacity)&&(this.nativeContext.globalAlpha=r.opacity,this.currentOpacity=r.opacity),this.currentFillStyle=r.fillStyle,this.currentStrokeStyle=r.strokeStyle,this.currentLineWidth=r.lineWidth,this.currentLineCap=r.lineCap,this.currentLineJoin=r.lineJoin,this.currentMiterLimit=r.miterLimit},CVContextData.prototype.save=function(e){e&&this.nativeContext.save();var t=this.cTr.props;this._length<=this.cArrPos&&this.duplicate();var r,n=this.stack[this.cArrPos];for(r=0;r<16;r+=1)n.transform[r]=t[r];this.cArrPos+=1;var i=this.stack[this.cArrPos];i.opacity=n.opacity,i.fillStyle=n.fillStyle,i.strokeStyle=n.strokeStyle,i.lineWidth=n.lineWidth,i.lineCap=n.lineCap,i.lineJoin=n.lineJoin,i.miterLimit=n.miterLimit},CVContextData.prototype.setOpacity=function(e){this.stack[this.cArrPos].opacity=e},CVContextData.prototype.setContext=function(e){this.nativeContext=e},CVContextData.prototype.fillStyle=function(e){this.stack[this.cArrPos].fillStyle!==e&&(this.currentFillStyle=e,this.stack[this.cArrPos].fillStyle=e)},CVContextData.prototype.strokeStyle=function(e){this.stack[this.cArrPos].strokeStyle!==e&&(this.currentStrokeStyle=e,this.stack[this.cArrPos].strokeStyle=e)},CVContextData.prototype.lineWidth=function(e){this.stack[this.cArrPos].lineWidth!==e&&(this.currentLineWidth=e,this.stack[this.cArrPos].lineWidth=e)},CVContextData.prototype.lineCap=function(e){this.stack[this.cArrPos].lineCap!==e&&(this.currentLineCap=e,this.stack[this.cArrPos].lineCap=e)},CVContextData.prototype.lineJoin=function(e){this.stack[this.cArrPos].lineJoin!==e&&(this.currentLineJoin=e,this.stack[this.cArrPos].lineJoin=e)},CVContextData.prototype.miterLimit=function(e){this.stack[this.cArrPos].miterLimit!==e&&(this.currentMiterLimit=e,this.stack[this.cArrPos].miterLimit=e)},CVContextData.prototype.transform=function(e){this.transformMat.cloneFromProps(e);var t=this.cTr;this.transformMat.multiply(t),t.cloneFromProps(this.transformMat.props);var r=t.props;this.nativeContext.setTransform(r[0],r[1],r[4],r[5],r[12],r[13])},CVContextData.prototype.opacity=function(e){var t=this.stack[this.cArrPos].opacity;t*=e<0?0:e,this.stack[this.cArrPos].opacity!==t&&(this.currentOpacity!==e&&(this.nativeContext.globalAlpha=e,this.currentOpacity=e),this.stack[this.cArrPos].opacity=t)},CVContextData.prototype.fill=function(e){this.appliedFillStyle!==this.currentFillStyle&&(this.appliedFillStyle=this.currentFillStyle,this.nativeContext.fillStyle=this.appliedFillStyle),this.nativeContext.fill(e)},CVContextData.prototype.fillRect=function(e,t,r,n){this.appliedFillStyle!==this.currentFillStyle&&(this.appliedFillStyle=this.currentFillStyle,this.nativeContext.fillStyle=this.appliedFillStyle),this.nativeContext.fillRect(e,t,r,n)},CVContextData.prototype.stroke=function(){this.appliedStrokeStyle!==this.currentStrokeStyle&&(this.appliedStrokeStyle=this.currentStrokeStyle,this.nativeContext.strokeStyle=this.appliedStrokeStyle),this.appliedLineWidth!==this.currentLineWidth&&(this.appliedLineWidth=this.currentLineWidth,this.nativeContext.lineWidth=this.appliedLineWidth),this.appliedLineCap!==this.currentLineCap&&(this.appliedLineCap=this.currentLineCap,this.nativeContext.lineCap=this.appliedLineCap),this.appliedLineJoin!==this.currentLineJoin&&(this.appliedLineJoin=this.currentLineJoin,this.nativeContext.lineJoin=this.appliedLineJoin),this.appliedMiterLimit!==this.currentMiterLimit&&(this.appliedMiterLimit=this.currentMiterLimit,this.nativeContext.miterLimit=this.appliedMiterLimit),this.nativeContext.stroke()},extendPrototype([CanvasRendererBase,ICompElement,CVBaseElement],CVCompElement),CVCompElement.prototype.renderInnerContent=function(){var e,t=this.canvasContext;for(t.beginPath(),t.moveTo(0,0),t.lineTo(this.data.w,0),t.lineTo(this.data.w,this.data.h),t.lineTo(0,this.data.h),t.lineTo(0,0),t.clip(),e=this.layers.length-1;e>=0;e-=1)(this.completeLayers||this.elements[e])&&this.elements[e].renderFrame()},CVCompElement.prototype.destroy=function(){var e;for(e=this.layers.length-1;e>=0;e-=1)this.elements[e]&&this.elements[e].destroy();this.layers=null,this.elements=null},CVCompElement.prototype.createComp=function(e){return new CVCompElement(e,this.globalData,this)},extendPrototype([CanvasRendererBase],CanvasRenderer),CanvasRenderer.prototype.createComp=function(e){return new CVCompElement(e,this.globalData,this)},HBaseElement.prototype={checkBlendMode:function(){},initRendererElement:function(){this.baseElement=createTag(this.data.tg||"div"),this.data.hasMask?(this.svgElement=createNS("svg"),this.layerElement=createNS("g"),this.maskedElement=this.layerElement,this.svgElement.appendChild(this.layerElement),this.baseElement.appendChild(this.svgElement)):this.layerElement=this.baseElement,styleDiv(this.baseElement)},createContainerElements:function(){this.renderableEffectsManager=new CVEffects(this),this.transformedElement=this.baseElement,this.maskedElement=this.layerElement,this.data.ln&&this.layerElement.setAttribute("id",this.data.ln),this.data.cl&&this.layerElement.setAttribute("class",this.data.cl),0!==this.data.bm&&this.setBlendMode()},renderElement:function(){var e=this.transformedElement?this.transformedElement.style:{};if(this.finalTransform._matMdf){var t=this.finalTransform.mat.toCSS();e.transform=t,e.webkitTransform=t}this.finalTransform._opMdf&&(e.opacity=this.finalTransform.mProp.o.v)},renderFrame:function(){this.data.hd||this.hidden||(this.renderTransform(),this.renderRenderable(),this.renderElement(),this.renderInnerContent(),this._isFirstFrame&&(this._isFirstFrame=!1))},destroy:function(){this.layerElement=null,this.transformedElement=null,this.matteElement&&(this.matteElement=null),this.maskManager&&(this.maskManager.destroy(),this.maskManager=null)},createRenderableComponents:function(){this.maskManager=new MaskElement(this.data,this,this.globalData)},addEffects:function(){},setMatte:function(){}},HBaseElement.prototype.getBaseElement=SVGBaseElement.prototype.getBaseElement,HBaseElement.prototype.destroyBaseElement=HBaseElement.prototype.destroy,HBaseElement.prototype.buildElementParenting=BaseRenderer.prototype.buildElementParenting,extendPrototype([BaseElement,TransformElement,HBaseElement,HierarchyElement,FrameElement,RenderableDOMElement],HSolidElement),HSolidElement.prototype.createContent=function(){var e;this.data.hasMask?((e=createNS("rect")).setAttribute("width",this.data.sw),e.setAttribute("height",this.data.sh),e.setAttribute("fill",this.data.sc),this.svgElement.setAttribute("width",this.data.sw),this.svgElement.setAttribute("height",this.data.sh)):((e=createTag("div")).style.width=this.data.sw+"px",e.style.height=this.data.sh+"px",e.style.backgroundColor=this.data.sc),this.layerElement.appendChild(e)},extendPrototype([BaseElement,TransformElement,HSolidElement,SVGShapeElement,HBaseElement,HierarchyElement,FrameElement,RenderableElement],HShapeElement),HShapeElement.prototype._renderShapeFrame=HShapeElement.prototype.renderInnerContent,HShapeElement.prototype.createContent=function(){var e;if(this.baseElement.style.fontSize=0,this.data.hasMask)this.layerElement.appendChild(this.shapesContainer),e=this.svgElement;else{e=createNS("svg");var t=this.comp.data?this.comp.data:this.globalData.compSize;e.setAttribute("width",t.w),e.setAttribute("height",t.h),e.appendChild(this.shapesContainer),this.layerElement.appendChild(e)}this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.shapesContainer,0,[],!0),this.filterUniqueShapes(),this.shapeCont=e},HShapeElement.prototype.getTransformedPoint=function(e,t){var r,n=e.length;for(r=0;r<n;r+=1)t=e[r].mProps.v.applyToPointArray(t[0],t[1],0);return t},HShapeElement.prototype.calculateShapeBoundingBox=function(e,t){var r,n,i,o,a,s=e.sh.v,l=e.transformers,c=s._length;if(!(c<=1)){for(r=0;r<c-1;r+=1)n=this.getTransformedPoint(l,s.v[r]),i=this.getTransformedPoint(l,s.o[r]),o=this.getTransformedPoint(l,s.i[r+1]),a=this.getTransformedPoint(l,s.v[r+1]),this.checkBounds(n,i,o,a,t);s.c&&(n=this.getTransformedPoint(l,s.v[r]),i=this.getTransformedPoint(l,s.o[r]),o=this.getTransformedPoint(l,s.i[0]),a=this.getTransformedPoint(l,s.v[0]),this.checkBounds(n,i,o,a,t))}},HShapeElement.prototype.checkBounds=function(e,t,r,n,i){this.getBoundsOfCurve(e,t,r,n);var o=this.shapeBoundingBox;i.x=bmMin(o.left,i.x),i.xMax=bmMax(o.right,i.xMax),i.y=bmMin(o.top,i.y),i.yMax=bmMax(o.bottom,i.yMax)},HShapeElement.prototype.shapeBoundingBox={left:0,right:0,top:0,bottom:0},HShapeElement.prototype.tempBoundingBox={x:0,xMax:0,y:0,yMax:0,width:0,height:0},HShapeElement.prototype.getBoundsOfCurve=function(e,t,r,n){for(var i,o,a,s,l,c,u,p=[[e[0],n[0]],[e[1],n[1]]],d=0;d<2;++d)o=6*e[d]-12*t[d]+6*r[d],i=-3*e[d]+9*t[d]-9*r[d]+3*n[d],a=3*t[d]-3*e[d],o|=0,a|=0,0==(i|=0)&&0===o||(0===i?(s=-a/o)>0&&s<1&&p[d].push(this.calculateF(s,e,t,r,n,d)):(l=o*o-4*a*i)>=0&&((c=(-o+bmSqrt(l))/(2*i))>0&&c<1&&p[d].push(this.calculateF(c,e,t,r,n,d)),(u=(-o-bmSqrt(l))/(2*i))>0&&u<1&&p[d].push(this.calculateF(u,e,t,r,n,d))));this.shapeBoundingBox.left=bmMin.apply(null,p[0]),this.shapeBoundingBox.top=bmMin.apply(null,p[1]),this.shapeBoundingBox.right=bmMax.apply(null,p[0]),this.shapeBoundingBox.bottom=bmMax.apply(null,p[1])},HShapeElement.prototype.calculateF=function(e,t,r,n,i,o){return bmPow(1-e,3)*t[o]+3*bmPow(1-e,2)*e*r[o]+3*(1-e)*bmPow(e,2)*n[o]+bmPow(e,3)*i[o]},HShapeElement.prototype.calculateBoundingBox=function(e,t){var r,n=e.length;for(r=0;r<n;r+=1)e[r]&&e[r].sh?this.calculateShapeBoundingBox(e[r],t):e[r]&&e[r].it?this.calculateBoundingBox(e[r].it,t):e[r]&&e[r].style&&e[r].w&&this.expandStrokeBoundingBox(e[r].w,t)},HShapeElement.prototype.expandStrokeBoundingBox=function(e,t){var r=0;if(e.keyframes){for(var n=0;n<e.keyframes.length;n+=1){var i=e.keyframes[n].s;i>r&&(r=i)}r*=e.mult}else r=e.v*e.mult;t.x-=r,t.xMax+=r,t.y-=r,t.yMax+=r},HShapeElement.prototype.currentBoxContains=function(e){return this.currentBBox.x<=e.x&&this.currentBBox.y<=e.y&&this.currentBBox.width+this.currentBBox.x>=e.x+e.width&&this.currentBBox.height+this.currentBBox.y>=e.y+e.height},HShapeElement.prototype.renderInnerContent=function(){if(this._renderShapeFrame(),!this.hidden&&(this._isFirstFrame||this._mdf)){var e=this.tempBoundingBox,t=999999;if(e.x=t,e.xMax=-t,e.y=t,e.yMax=-t,this.calculateBoundingBox(this.itemsData,e),e.width=e.xMax<e.x?0:e.xMax-e.x,e.height=e.yMax<e.y?0:e.yMax-e.y,this.currentBoxContains(e))return;var r=!1;if(this.currentBBox.w!==e.width&&(this.currentBBox.w=e.width,this.shapeCont.setAttribute("width",e.width),r=!0),this.currentBBox.h!==e.height&&(this.currentBBox.h=e.height,this.shapeCont.setAttribute("height",e.height),r=!0),r||this.currentBBox.x!==e.x||this.currentBBox.y!==e.y){this.currentBBox.w=e.width,this.currentBBox.h=e.height,this.currentBBox.x=e.x,this.currentBBox.y=e.y,this.shapeCont.setAttribute("viewBox",this.currentBBox.x+" "+this.currentBBox.y+" "+this.currentBBox.w+" "+this.currentBBox.h);var n=this.shapeCont.style,i="translate("+this.currentBBox.x+"px,"+this.currentBBox.y+"px)";n.transform=i,n.webkitTransform=i}}},extendPrototype([BaseElement,TransformElement,HBaseElement,HierarchyElement,FrameElement,RenderableDOMElement,ITextElement],HTextElement),HTextElement.prototype.createContent=function(){if(this.isMasked=this.checkMasks(),this.isMasked){this.renderType="svg",this.compW=this.comp.data.w,this.compH=this.comp.data.h,this.svgElement.setAttribute("width",this.compW),this.svgElement.setAttribute("height",this.compH);var e=createNS("g");this.maskedElement.appendChild(e),this.innerElem=e}else this.renderType="html",this.innerElem=this.layerElement;this.checkParenting()},HTextElement.prototype.buildNewText=function(){var e=this.textProperty.currentData;this.renderedLetters=createSizedArray(e.l?e.l.length:0);var t=this.innerElem.style,r=e.fc?this.buildColor(e.fc):"rgba(0,0,0,0)";t.fill=r,t.color=r,e.sc&&(t.stroke=this.buildColor(e.sc),t.strokeWidth=e.sw+"px");var n,i,o=this.globalData.fontManager.getFontByName(e.f);if(!this.globalData.fontManager.chars)if(t.fontSize=e.finalSize+"px",t.lineHeight=e.finalSize+"px",o.fClass)this.innerElem.className=o.fClass;else{t.fontFamily=o.fFamily;var a=e.fWeight,s=e.fStyle;t.fontStyle=s,t.fontWeight=a}var l,c,u,p=e.l;i=p.length;var d,h=this.mHelper,f="",m=0;for(n=0;n<i;n+=1){if(this.globalData.fontManager.chars?(this.textPaths[m]?l=this.textPaths[m]:((l=createNS("path")).setAttribute("stroke-linecap",lineCapEnum[1]),l.setAttribute("stroke-linejoin",lineJoinEnum[2]),l.setAttribute("stroke-miterlimit","4")),this.isMasked||(this.textSpans[m]?u=(c=this.textSpans[m]).children[0]:((c=createTag("div")).style.lineHeight=0,(u=createNS("svg")).appendChild(l),styleDiv(c)))):this.isMasked?l=this.textPaths[m]?this.textPaths[m]:createNS("text"):this.textSpans[m]?(c=this.textSpans[m],l=this.textPaths[m]):(styleDiv(c=createTag("span")),styleDiv(l=createTag("span")),c.appendChild(l)),this.globalData.fontManager.chars){var g,y=this.globalData.fontManager.getCharData(e.finalText[n],o.fStyle,this.globalData.fontManager.getFontByName(e.f).fFamily);if(g=y?y.data:null,h.reset(),g&&g.shapes&&g.shapes.length&&(d=g.shapes[0].it,h.scale(e.finalSize/100,e.finalSize/100),f=this.createPathShape(h,d),l.setAttribute("d",f)),this.isMasked)this.innerElem.appendChild(l);else{if(this.innerElem.appendChild(c),g&&g.shapes){document.body.appendChild(u);var b=u.getBBox();u.setAttribute("width",b.width+2),u.setAttribute("height",b.height+2),u.setAttribute("viewBox",b.x-1+" "+(b.y-1)+" "+(b.width+2)+" "+(b.height+2));var v=u.style,_="translate("+(b.x-1)+"px,"+(b.y-1)+"px)";v.transform=_,v.webkitTransform=_,p[n].yOffset=b.y-1}else u.setAttribute("width",1),u.setAttribute("height",1);c.appendChild(u)}}else if(l.textContent=p[n].val,l.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),this.isMasked)this.innerElem.appendChild(l);else{this.innerElem.appendChild(c);var S=l.style,E="translate3d(0,"+-e.finalSize/1.2+"px,0)";S.transform=E,S.webkitTransform=E}this.isMasked?this.textSpans[m]=l:this.textSpans[m]=c,this.textSpans[m].style.display="block",this.textPaths[m]=l,m+=1}for(;m<this.textSpans.length;)this.textSpans[m].style.display="none",m+=1},HTextElement.prototype.renderInnerContent=function(){var e;if(this.validateText(),this.data.singleShape){if(!this._isFirstFrame&&!this.lettersChangedFlag)return;if(this.isMasked&&this.finalTransform._matMdf){this.svgElement.setAttribute("viewBox",-this.finalTransform.mProp.p.v[0]+" "+-this.finalTransform.mProp.p.v[1]+" "+this.compW+" "+this.compH),e=this.svgElement.style;var t="translate("+-this.finalTransform.mProp.p.v[0]+"px,"+-this.finalTransform.mProp.p.v[1]+"px)";e.transform=t,e.webkitTransform=t}}if(this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag),this.lettersChangedFlag||this.textAnimator.lettersChangedFlag){var r,n,i,o,a,s=0,l=this.textAnimator.renderedLetters,c=this.textProperty.currentData.l;for(n=c.length,r=0;r<n;r+=1)c[r].n?s+=1:(o=this.textSpans[r],a=this.textPaths[r],i=l[s],s+=1,i._mdf.m&&(this.isMasked?o.setAttribute("transform",i.m):(o.style.webkitTransform=i.m,o.style.transform=i.m)),o.style.opacity=i.o,i.sw&&i._mdf.sw&&a.setAttribute("stroke-width",i.sw),i.sc&&i._mdf.sc&&a.setAttribute("stroke",i.sc),i.fc&&i._mdf.fc&&(a.setAttribute("fill",i.fc),a.style.color=i.fc));if(this.innerElem.getBBox&&!this.hidden&&(this._isFirstFrame||this._mdf)){var u=this.innerElem.getBBox();if(this.currentBBox.w!==u.width&&(this.currentBBox.w=u.width,this.svgElement.setAttribute("width",u.width)),this.currentBBox.h!==u.height&&(this.currentBBox.h=u.height,this.svgElement.setAttribute("height",u.height)),this.currentBBox.w!==u.width+2||this.currentBBox.h!==u.height+2||this.currentBBox.x!==u.x-1||this.currentBBox.y!==u.y-1){this.currentBBox.w=u.width+2,this.currentBBox.h=u.height+2,this.currentBBox.x=u.x-1,this.currentBBox.y=u.y-1,this.svgElement.setAttribute("viewBox",this.currentBBox.x+" "+this.currentBBox.y+" "+this.currentBBox.w+" "+this.currentBBox.h),e=this.svgElement.style;var p="translate("+this.currentBBox.x+"px,"+this.currentBBox.y+"px)";e.transform=p,e.webkitTransform=p}}}},extendPrototype([BaseElement,FrameElement,HierarchyElement],HCameraElement),HCameraElement.prototype.setup=function(){var e,t,r,n,i=this.comp.threeDElements.length;for(e=0;e<i;e+=1)if("3d"===(t=this.comp.threeDElements[e]).type){r=t.perspectiveElem.style,n=t.container.style;var o=this.pe.v+"px",a="0px 0px 0px",s="matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1)";r.perspective=o,r.webkitPerspective=o,n.transformOrigin=a,n.mozTransformOrigin=a,n.webkitTransformOrigin=a,r.transform=s,r.webkitTransform=s}},HCameraElement.prototype.createElements=function(){},HCameraElement.prototype.hide=function(){},HCameraElement.prototype.renderFrame=function(){var e,t,r=this._isFirstFrame;if(this.hierarchy)for(t=this.hierarchy.length,e=0;e<t;e+=1)r=this.hierarchy[e].finalTransform.mProp._mdf||r;if(r||this.pe._mdf||this.p&&this.p._mdf||this.px&&(this.px._mdf||this.py._mdf||this.pz._mdf)||this.rx._mdf||this.ry._mdf||this.rz._mdf||this.or._mdf||this.a&&this.a._mdf){if(this.mat.reset(),this.hierarchy)for(e=t=this.hierarchy.length-1;e>=0;e-=1){var n=this.hierarchy[e].finalTransform.mProp;this.mat.translate(-n.p.v[0],-n.p.v[1],n.p.v[2]),this.mat.rotateX(-n.or.v[0]).rotateY(-n.or.v[1]).rotateZ(n.or.v[2]),this.mat.rotateX(-n.rx.v).rotateY(-n.ry.v).rotateZ(n.rz.v),this.mat.scale(1/n.s.v[0],1/n.s.v[1],1/n.s.v[2]),this.mat.translate(n.a.v[0],n.a.v[1],n.a.v[2])}if(this.p?this.mat.translate(-this.p.v[0],-this.p.v[1],this.p.v[2]):this.mat.translate(-this.px.v,-this.py.v,this.pz.v),this.a){var i;i=this.p?[this.p.v[0]-this.a.v[0],this.p.v[1]-this.a.v[1],this.p.v[2]-this.a.v[2]]:[this.px.v-this.a.v[0],this.py.v-this.a.v[1],this.pz.v-this.a.v[2]];var o=Math.sqrt(Math.pow(i[0],2)+Math.pow(i[1],2)+Math.pow(i[2],2)),a=[i[0]/o,i[1]/o,i[2]/o],s=Math.sqrt(a[2]*a[2]+a[0]*a[0]),l=Math.atan2(a[1],s),c=Math.atan2(a[0],-a[2]);this.mat.rotateY(c).rotateX(-l)}this.mat.rotateX(-this.rx.v).rotateY(-this.ry.v).rotateZ(this.rz.v),this.mat.rotateX(-this.or.v[0]).rotateY(-this.or.v[1]).rotateZ(this.or.v[2]),this.mat.translate(this.globalData.compSize.w/2,this.globalData.compSize.h/2,0),this.mat.translate(0,0,this.pe.v);var u=!this._prevMat.equals(this.mat);if((u||this.pe._mdf)&&this.comp.threeDElements){var p,d,h;for(t=this.comp.threeDElements.length,e=0;e<t;e+=1)if("3d"===(p=this.comp.threeDElements[e]).type){if(u){var f=this.mat.toCSS();(h=p.container.style).transform=f,h.webkitTransform=f}this.pe._mdf&&((d=p.perspectiveElem.style).perspective=this.pe.v+"px",d.webkitPerspective=this.pe.v+"px")}this.mat.clone(this._prevMat)}}this._isFirstFrame=!1},HCameraElement.prototype.prepareFrame=function(e){this.prepareProperties(e,!0)},HCameraElement.prototype.destroy=function(){},HCameraElement.prototype.getBaseElement=function(){return null},extendPrototype([BaseElement,TransformElement,HBaseElement,HSolidElement,HierarchyElement,FrameElement,RenderableElement],HImageElement),HImageElement.prototype.createContent=function(){var e=this.globalData.getAssetsPath(this.assetData),t=new Image;this.data.hasMask?(this.imageElem=createNS("image"),this.imageElem.setAttribute("width",this.assetData.w+"px"),this.imageElem.setAttribute("height",this.assetData.h+"px"),this.imageElem.setAttributeNS("http://www.w3.org/1999/xlink","href",e),this.layerElement.appendChild(this.imageElem),this.baseE
vendor: 9,795 bytes, line 31
31lement.setAttribute("width",this.assetData.w),this.baseElement.setAttribute("height",this.assetData.h)):this.layerElement.appendChild(t),t.crossOrigin="anonymous",t.src=e,this.data.ln&&this.baseElement.setAttribute("id",this.data.ln)},extendPrototype([BaseRenderer],HybridRendererBase),HybridRendererBase.prototype.buildItem=SVGRenderer.prototype.buildItem,HybridRendererBase.prototype.checkPendingElements=function(){for(;this.pendingElements.length;)this.pendingElements.pop().checkParenting()},HybridRendererBase.prototype.appendElementInPos=function(e,t){var r=e.getBaseElement();if(r){var n=this.layers[t];if(n.ddd&&this.supports3d)this.addTo3dContainer(r,t);else if(this.threeDElements)this.addTo3dContainer(r,t);else{for(var i,o,a=0;a<t;)this.elements[a]&&!0!==this.elements[a]&&this.elements[a].getBaseElement&&(o=this.elements[a],i=(this.layers[a].ddd?this.getThreeDContainerByPos(a):o.getBaseElement())||i),a+=1;i?n.ddd&&this.supports3d||this.layerElement.insertBefore(r,i):n.ddd&&this.supports3d||this.layerElement.appendChild(r)}}},HybridRendererBase.prototype.createShape=function(e){return this.supports3d?new HShapeElement(e,this.globalData,this):new SVGShapeElement(e,this.globalData,this)},HybridRendererBase.prototype.createText=function(e){return this.supports3d?new HTextElement(e,this.globalData,this):new SVGTextLottieElement(e,this.globalData,this)},HybridRendererBase.prototype.createCamera=function(e){return this.camera=new HCameraElement(e,this.globalData,this),this.camera},HybridRendererBase.prototype.createImage=function(e){return this.supports3d?new HImageElement(e,this.globalData,this):new IImageElement(e,this.globalData,this)},HybridRendererBase.prototype.createSolid=function(e){return this.supports3d?new HSolidElement(e,this.globalData,this):new ISolidElement(e,this.globalData,this)},HybridRendererBase.prototype.createNull=SVGRenderer.prototype.createNull,HybridRendererBase.prototype.getThreeDContainerByPos=function(e){for(var t=0,r=this.threeDElements.length;t<r;){if(this.threeDElements[t].startPos<=e&&this.threeDElements[t].endPos>=e)return this.threeDElements[t].perspectiveElem;t+=1}return null},HybridRendererBase.prototype.createThreeDContainer=function(e,t){var r,n,i=createTag("div");styleDiv(i);var o=createTag("div");if(styleDiv(o),"3d"===t){(r=i.style).width=this.globalData.compSize.w+"px",r.height=this.globalData.compSize.h+"px";var a="50% 50%";r.webkitTransformOrigin=a,r.mozTransformOrigin=a,r.transformOrigin=a;var s="matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1)";(n=o.style).transform=s,n.webkitTransform=s}i.appendChild(o);var l={container:o,perspectiveElem:i,startPos:e,endPos:e,type:t};return this.threeDElements.push(l),l},HybridRendererBase.prototype.build3dContainers=function(){var e,t,r=this.layers.length,n="";for(e=0;e<r;e+=1)this.layers[e].ddd&&3!==this.layers[e].ty?("3d"!==n&&(n="3d",t=this.createThreeDContainer(e,"3d")),t.endPos=Math.max(t.endPos,e)):("2d"!==n&&(n="2d",t=this.createThreeDContainer(e,"2d")),t.endPos=Math.max(t.endPos,e));for(e=(r=this.threeDElements.length)-1;e>=0;e-=1)this.resizerElem.appendChild(this.threeDElements[e].perspectiveElem)},HybridRendererBase.prototype.addTo3dContainer=function(e,t){for(var r=0,n=this.threeDElements.length;r<n;){if(t<=this.threeDElements[r].endPos){for(var i,o=this.threeDElements[r].startPos;o<t;)this.elements[o]&&this.elements[o].getBaseElement&&(i=this.elements[o].getBaseElement()),o+=1;i?this.threeDElements[r].container.insertBefore(e,i):this.threeDElements[r].container.appendChild(e);break}r+=1}},HybridRendererBase.prototype.configAnimation=function(e){var t=createTag("div"),r=this.animationItem.wrapper,n=t.style;n.width=e.w+"px",n.height=e.h+"px",this.resizerElem=t,styleDiv(t),n.transformStyle="flat",n.mozTransformStyle="flat",n.webkitTransformStyle="flat",this.renderConfig.className&&t.setAttribute("class",this.renderConfig.className),r.appendChild(t),n.overflow="hidden";var i=createNS("svg");i.setAttribute("width","1"),i.setAttribute("height","1"),styleDiv(i),this.resizerElem.appendChild(i);var o=createNS("defs");i.appendChild(o),this.data=e,this.setupGlobalData(e,i),this.globalData.defs=o,this.layers=e.layers,this.layerElement=this.resizerElem,this.build3dContainers(),this.updateContainerSize()},HybridRendererBase.prototype.destroy=function(){var e;this.animationItem.wrapper&&(this.animationItem.wrapper.innerText=""),this.animationItem.container=null,this.globalData.defs=null;var t=this.layers?this.layers.length:0;for(e=0;e<t;e+=1)this.elements[e]&&this.elements[e].destroy&&this.elements[e].destroy();this.elements.length=0,this.destroyed=!0,this.animationItem=null},HybridRendererBase.prototype.updateContainerSize=function(){var e,t,r,n,i=this.animationItem.wrapper.offsetWidth,o=this.animationItem.wrapper.offsetHeight,a=i/o;this.globalData.compSize.w/this.globalData.compSize.h>a?(e=i/this.globalData.compSize.w,t=i/this.globalData.compSize.w,r=0,n=(o-this.globalData.compSize.h*(i/this.globalData.compSize.w))/2):(e=o/this.globalData.compSize.h,t=o/this.globalData.compSize.h,r=(i-this.globalData.compSize.w*(o/this.globalData.compSize.h))/2,n=0);var s=this.resizerElem.style;s.webkitTransform="matrix3d("+e+",0,0,0,0,"+t+",0,0,0,0,1,0,"+r+","+n+",0,1)",s.transform=s.webkitTransform},HybridRendererBase.prototype.renderFrame=SVGRenderer.prototype.renderFrame,HybridRendererBase.prototype.hide=function(){this.resizerElem.style.display="none"},HybridRendererBase.prototype.show=function(){this.resizerElem.style.display="block"},HybridRendererBase.prototype.initItems=function(){if(this.buildAllItems(),this.camera)this.camera.setup();else{var e,t=this.globalData.compSize.w,r=this.globalData.compSize.h,n=this.threeDElements.length;for(e=0;e<n;e+=1){var i=this.threeDElements[e].perspectiveElem.style;i.webkitPerspective=Math.sqrt(Math.pow(t,2)+Math.pow(r,2))+"px",i.perspective=i.webkitPerspective}}},HybridRendererBase.prototype.searchExtraCompositions=function(e){var t,r=e.length,n=createTag("div");for(t=0;t<r;t+=1)if(e[t].xt){var i=this.createComp(e[t],n,this.globalData.comp,null);i.initExpressions(),this.globalData.projectInterface.registerComposition(i)}},extendPrototype([HybridRendererBase,ICompElement,HBaseElement],HCompElement),HCompElement.prototype._createBaseContainerElements=HCompElement.prototype.createContainerElements,HCompElement.prototype.createContainerElements=function(){this._createBaseContainerElements(),this.data.hasMask?(this.svgElement.setAttribute("width",this.data.w),this.svgElement.setAttribute("height",this.data.h),this.transformedElement=this.baseElement):this.transformedElement=this.layerElement},HCompElement.prototype.addTo3dContainer=function(e,t){for(var r,n=0;n<t;)this.elements[n]&&this.elements[n].getBaseElement&&(r=this.elements[n].getBaseElement()),n+=1;r?this.layerElement.insertBefore(e,r):this.layerElement.appendChild(e)},HCompElement.prototype.createComp=function(e){return this.supports3d?new HCompElement(e,this.globalData,this):new SVGCompElement(e,this.globalData,this)},extendPrototype([HybridRendererBase],HybridRenderer),HybridRenderer.prototype.createComp=function(e){return this.supports3d?new HCompElement(e,this.globalData,this):new SVGCompElement(e,this.globalData,this)};var CompExpressionInterface=function(e){function t(t){for(var r=0,n=e.layers.length;r<n;){if(e.layers[r].nm===t||e.layers[r].ind===t)return e.elements[r].layerInterface;r+=1}return null}return Object.defineProperty(t,"_name",{value:e.data.nm}),t.layer=t,t.pixelAspect=1,t.height=e.data.h||e.globalData.compSize.h,t.width=e.data.w||e.globalData.compSize.w,t.pixelAspect=1,t.frameDuration=1/e.globalData.frameRate,t.displayStartTime=0,t.numLayers=e.layers.length,t};function _typeof$2(e){return _typeof$2="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},_typeof$2(e)}function seedRandom(e,t){var r=this,n=256,i="random",o=t.pow(n,6),a=t.pow(2,52),s=2*a,l=255;function c(e){var t,r=e.length,i=this,o=0,a=i.i=i.j=0,s=i.S=[];for(r||(e=[r++]);o<n;)s[o]=o++;for(o=0;o<n;o++)s[o]=s[a=l&a+e[o%r]+(t=s[o])],s[a]=t;i.g=function(e){for(var t,r=0,o=i.i,a=i.j,s=i.S;e--;)t=s[o=l&o+1],r=r*n+s[l&(s[o]=s[a=l&a+t])+(s[a]=t)];return i.i=o,i.j=a,r}}function u(e,t){return t.i=e.i,t.j=e.j,t.S=e.S.slice(),t}function p(e,t){var r,n=[],i=_typeof$2(e);if(t&&"object"==i)for(r in e)try{n.push(p(e[r],t-1))}catch(e){}return n.length?n:"string"==i?e:e+"\0"}function d(e,t){for(var r,n=e+"",i=0;i<n.length;)t[l&i]=l&(r^=19*t[l&i])+n.charCodeAt(i++);return h(t)}function h(e){return String.fromCharCode.apply(0,e)}t["seed"+i]=function(l,f,m){var g=[],y=d(p((f=!0===f?{entropy:!0}:f||{}).entropy?[l,h(e)]:null===l?function(){try{var t=new Uint8Array(n);return(r.crypto||r.msCrypto).getRandomValues(t),h(t)}catch(t){var i=r.navigator,o=i&&i.plugins;return[+new Date,r,o,r.screen,h(e)]}}():l,3),g),b=new c(g),v=function(){for(var e=b.g(6),t=o,r=0;e<a;)e=(e+r)*n,t*=n,r=b.g(1);for(;e>=s;)e/=2,t/=2,r>>>=1;return(e+r)/t};return v.int32=function(){return 0|b.g(4)},v.quick=function(){return b.g(4)/4294967296},v.double=v,d(h(b.S),e),(f.pass||m||function(e,r,n,o){return o&&(o.S&&u(o,b),e.state=function(){return u(b,{})}),n?(t[i]=e,r):e})(v,y,"global"in f?f.global:this==t,f.state)},d(t.random(),e)}function initialize$2(e){seedRandom([],e)}var propTypes={SHAPE:"shape"};function _typeof$1(e){return _typeof$1="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},_typeof$1(e)}var ExpressionManager=function(){var ob={},Math=BMMath,window=null,document=null,XMLHttpRequest=null,fetch=null,frames=null,_lottieGlobal={};
vendor: 18,387 bytes, line 31
31function resetFrame(){_lottieGlobal={}}function $bm_isInstanceOfArray(e){return e.constructor===Array||e.constructor===Float32Array}function isNumerable(e,t){return"number"===e||t instanceof Number||"boolean"===e||"string"===e}function $bm_neg(e){var t=_typeof$1(e);if("number"===t||e instanceof Number||"boolean"===t)return-e;if($bm_isInstanceOfArray(e)){var r,n=e.length,i=[];for(r=0;r<n;r+=1)i[r]=-e[r];return i}return e.propType?e.v:-e}initialize$2(BMMath);var easeInBez=BezierFactory.getBezierEasing(.333,0,.833,.833,"easeIn").get,easeOutBez=BezierFactory.getBezierEasing(.167,.167,.667,1,"easeOut").get,easeInOutBez=BezierFactory.getBezierEasing(.33,0,.667,1,"easeInOut").get;function sum(e,t){var r=_typeof$1(e),n=_typeof$1(t);if(isNumerable(r,e)&&isNumerable(n,t)||"string"===r||"string"===n)return e+t;if($bm_isInstanceOfArray(e)&&isNumerable(n,t))return(e=e.slice(0))[0]+=t,e;if(isNumerable(r,e)&&$bm_isInstanceOfArray(t))return(t=t.slice(0))[0]=e+t[0],t;if($bm_isInstanceOfArray(e)&&$bm_isInstanceOfArray(t)){for(var i=0,o=e.length,a=t.length,s=[];i<o||i<a;)("number"==typeof e[i]||e[i]instanceof Number)&&("number"==typeof t[i]||t[i]instanceof Number)?s[i]=e[i]+t[i]:s[i]=void 0===t[i]?e[i]:e[i]||t[i],i+=1;return s}return 0}var add=sum;function sub(e,t){var r=_typeof$1(e),n=_typeof$1(t);if(isNumerable(r,e)&&isNumerable(n,t))return"string"===r&&(e=parseInt(e,10)),"string"===n&&(t=parseInt(t,10)),e-t;if($bm_isInstanceOfArray(e)&&isNumerable(n,t))return(e=e.slice(0))[0]-=t,e;if(isNumerable(r,e)&&$bm_isInstanceOfArray(t))return(t=t.slice(0))[0]=e-t[0],t;if($bm_isInstanceOfArray(e)&&$bm_isInstanceOfArray(t)){for(var i=0,o=e.length,a=t.length,s=[];i<o||i<a;)("number"==typeof e[i]||e[i]instanceof Number)&&("number"==typeof t[i]||t[i]instanceof Number)?s[i]=e[i]-t[i]:s[i]=void 0===t[i]?e[i]:e[i]||t[i],i+=1;return s}return 0}function mul(e,t){var r,n,i,o=_typeof$1(e),a=_typeof$1(t);if(isNumerable(o,e)&&isNumerable(a,t))return e*t;if($bm_isInstanceOfArray(e)&&isNumerable(a,t)){for(i=e.length,r=createTypedArray("float32",i),n=0;n<i;n+=1)r[n]=e[n]*t;return r}if(isNumerable(o,e)&&$bm_isInstanceOfArray(t)){for(i=t.length,r=createTypedArray("float32",i),n=0;n<i;n+=1)r[n]=e*t[n];return r}return 0}function div(e,t){var r,n,i,o=_typeof$1(e),a=_typeof$1(t);if(isNumerable(o,e)&&isNumerable(a,t))return e/t;if($bm_isInstanceOfArray(e)&&isNumerable(a,t)){for(i=e.length,r=createTypedArray("float32",i),n=0;n<i;n+=1)r[n]=e[n]/t;return r}if(isNumerable(o,e)&&$bm_isInstanceOfArray(t)){for(i=t.length,r=createTypedArray("float32",i),n=0;n<i;n+=1)r[n]=e/t[n];return r}return 0}function mod(e,t){return"string"==typeof e&&(e=parseInt(e,10)),"string"==typeof t&&(t=parseInt(t,10)),e%t}var $bm_sum=sum,$bm_sub=sub,$bm_mul=mul,$bm_div=div,$bm_mod=mod;function clamp(e,t,r){if(t>r){var n=r;r=t,t=n}return Math.min(Math.max(e,t),r)}function radiansToDegrees(e){return e/degToRads}var radians_to_degrees=radiansToDegrees;function degreesToRadians(e){return e*degToRads}var degrees_to_radians=radiansToDegrees,helperLengthArray=[0,0,0,0,0,0];function length(e,t){if("number"==typeof e||e instanceof Number)return t=t||0,Math.abs(e-t);var r;t||(t=helperLengthArray);var n=Math.min(e.length,t.length),i=0;for(r=0;r<n;r+=1)i+=Math.pow(t[r]-e[r],2);return Math.sqrt(i)}function normalize(e){return div(e,length(e))}function rgbToHsl(e){var t,r,n=e[0],i=e[1],o=e[2],a=Math.max(n,i,o),s=Math.min(n,i,o),l=(a+s)/2;if(a===s)t=0,r=0;else{var c=a-s;switch(r=l>.5?c/(2-a-s):c/(a+s),a){case n:t=(i-o)/c+(i<o?6:0);break;case i:t=(o-n)/c+2;break;case o:t=(n-i)/c+4}t/=6}return[t,r,l,e[3]]}function hue2rgb(e,t,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?e+6*(t-e)*r:r<.5?t:r<2/3?e+(t-e)*(2/3-r)*6:e}function hslToRgb(e){var t,r,n,i=e[0],o=e[1],a=e[2];if(0===o)t=a,n=a,r=a;else{var s=a<.5?a*(1+o):a+o-a*o,l=2*a-s;t=hue2rgb(l,s,i+1/3),r=hue2rgb(l,s,i),n=hue2rgb(l,s,i-1/3)}return[t,r,n,e[3]]}function linear(e,t,r,n,i){if(void 0!==n&&void 0!==i||(n=t,i=r,t=0,r=1),r<t){var o=r;r=t,t=o}if(e<=t)return n;if(e>=r)return i;var a,s=r===t?0:(e-t)/(r-t);if(!n.length)return n+(i-n)*s;var l=n.length,c=createTypedArray("float32",l);for(a=0;a<l;a+=1)c[a]=n[a]+(i[a]-n[a])*s;return c}function random(e,t){if(void 0===t&&(void 0===e?(e=0,t=1):(t=e,e=void 0)),t.length){var r,n=t.length;e||(e=createTypedArray("float32",n));var i=createTypedArray("float32",n),o=BMMath.random();for(r=0;r<n;r+=1)i[r]=e[r]+o*(t[r]-e[r]);return i}return void 0===e&&(e=0),e+BMMath.random()*(t-e)}function createPath(e,t,r,n){var i,o=e.length,a=shapePool.newElement();a.setPathData(!!n,o);var s,l,c=[0,0];for(i=0;i<o;i+=1)s=t&&t[i]?t[i]:c,l=r&&r[i]?r[i]:c,a.setTripleAt(e[i][0],e[i][1],l[0]+e[i][0],l[1]+e[i][1],s[0]+e[i][0],s[1]+e[i][1],i,!0);return a}function initiateExpression(elem,data,property){function noOp(e){return e}if(!elem.globalData.renderConfig.runExpressions)return noOp;var val=data.x,needsVelocity=/velocity(?![\w\d])/.test(val),_needsRandom=-1!==val.indexOf("random"),elemType=elem.data.ty,transform,$bm_transform,content,effect,thisProperty=property;thisProperty._name=elem.data.nm,thisProperty.valueAtTime=thisProperty.getValueAtTime,Object.defineProperty(thisProperty,"value",{get:function(){return thisProperty.v}}),elem.comp.frameDuration=1/elem.comp.globalData.frameRate,elem.comp.displayStartTime=0;var inPoint=elem.data.ip/elem.comp.globalData.frameRate,outPoint=elem.data.op/elem.comp.globalData.frameRate,width=elem.data.sw?elem.data.sw:0,height=elem.data.sh?elem.data.sh:0,name=elem.data.nm,loopIn,loop_in,loopOut,loop_out,smooth,toWorld,fromWorld,fromComp,toComp,fromCompToSurface,position,rotation,anchorPoint,scale,thisLayer,thisComp,mask,valueAtTime,velocityAtTime,scoped_bm_rt,expression_function=eval("[function _expression_function(){"+val+";scoped_bm_rt=$bm_rt}]")[0],numKeys=property.kf?data.k.length:0,active=!this.data||!0!==this.data.hd,wiggle=function(e,t){var r,n,i=this.pv.length?this.pv.length:1,o=createTypedArray("float32",i),a=Math.floor(5*time);for(r=0,n=0;r<a;){for(n=0;n<i;n+=1)o[n]+=-t+2*t*BMMath.random();r+=1}var s=5*time,l=s-Math.floor(s),c=createTypedArray("float32",i);if(i>1){for(n=0;n<i;n+=1)c[n]=this.pv[n]+o[n]+(-t+2*t*BMMath.random())*l;return c}return this.pv+o[0]+(-t+2*t*BMMath.random())*l}.bind(this);function loopInDuration(e,t){return loopIn(e,t,!0)}function loopOutDuration(e,t){return loopOut(e,t,!0)}thisProperty.loopIn&&(loopIn=thisProperty.loopIn.bind(thisProperty),loop_in=loopIn),thisProperty.loopOut&&(loopOut=thisProperty.loopOut.bind(thisProperty),loop_out=loopOut),thisProperty.smooth&&(smooth=thisProperty.smooth.bind(thisProperty)),this.getValueAtTime&&(valueAtTime=this.getValueAtTime.bind(this)),this.getVelocityAtTime&&(velocityAtTime=this.getVelocityAtTime.bind(this));var comp=elem.comp.globalData.projectInterface.bind(elem.comp.globalData.projectInterface),time,velocity,value,text,textIndex,textTotal,selectorValue;function lookAt(e,t){var r=[t[0]-e[0],t[1]-e[1],t[2]-e[2]],n=Math.atan2(r[0],Math.sqrt(r[1]*r[1]+r[2]*r[2]))/degToRads;return[-Math.atan2(r[1],r[2])/degToRads,n,0]}function easeOut(e,t,r,n,i){return applyEase(easeOutBez,e,t,r,n,i)}function easeIn(e,t,r,n,i){return applyEase(easeInBez,e,t,r,n,i)}function ease(e,t,r,n,i){return applyEase(easeInOutBez,e,t,r,n,i)}function applyEase(e,t,r,n,i,o){void 0===i?(i=r,o=n):t=(t-r)/(n-r),t>1?t=1:t<0&&(t=0);var a=e(t);if($bm_isInstanceOfArray(i)){var s,l=i.length,c=createTypedArray("float32",l);for(s=0;s<l;s+=1)c[s]=(o[s]-i[s])*a+i[s];return c}return(o-i)*a+i}function nearestKey(e){var t,r,n,i=data.k.length;if(data.k.length&&"number"!=typeof data.k[0])if(r=-1,(e*=elem.comp.globalData.frameRate)<data.k[0].t)r=1,n=data.k[0].t;else{for(t=0;t<i-1;t+=1){if(e===data.k[t].t){r=t+1,n=data.k[t].t;break}if(e>data.k[t].t&&e<data.k[t+1].t){e-data.k[t].t>data.k[t+1].t-e?(r=t+2,n=data.k[t+1].t):(r=t+1,n=data.k[t].t);break}}-1===r&&(r=t+1,n=data.k[t].t)}else r=0,n=0;var o={};return o.index=r,o.time=n/elem.comp.globalData.frameRate,o}function key(e){var t,r,n;if(!data.k.length||"number"==typeof data.k[0])throw new Error("The property has no keyframe at index "+e);e-=1,t={time:data.k[e].t/elem.comp.globalData.frameRate,value:[]};var i=Object.prototype.hasOwnProperty.call(data.k[e],"s")?data.k[e].s:data.k[e-1].e;for(n=i.length,r=0;r<n;r+=1)t[r]=i[r],t.value[r]=i[r];return t}function framesToTime(e,t){return t||(t=elem.comp.globalData.frameRate),e/t}function timeToFrames(e,t){return e||0===e||(e=time),t||(t=elem.comp.globalData.frameRate),e*t}function seedRandom(e){BMMath.seedrandom(randSeed+e)}function sourceRectAtTime(){return elem.sourceRectAtTime()}function substring(e,t){return"string"==typeof value?void 0===t?value.substring(e):value.substring(e,t):""}function substr(e,t){return"string"==typeof value?void 0===t?value.substr(e):value.substr(e,t):""}function posterizeTime(e){time=0===e?0:Math.floor(time*e)/e,value=valueAtTime(time)}var index=elem.data.ind,hasParent=!(!elem.hierarchy||!elem.hierarchy.length),parent,randSeed=Math.floor(1e6*Math.random()),globalData=elem.globalData;function executeExpression(e){return value=e,this.frameExpressionId===elem.globalData.frameId&&"textSelector"!==this.propType?value:("textSelector"===this.propType&&(textIndex=this.textIndex,textTotal=this.textTotal,selectorValue=this.selectorValue),thisLayer||(text=elem.layerInterface.text,thisLayer=elem.layerInterface,thisComp=elem.comp.compInterface,toWorld=thisLayer.toWorld.bind(thisLayer),fromWorld=thisLayer.fromWorld.bind(thisLayer),fromComp=thisLayer.fromComp.bind(thisLayer),toComp=thisLayer.toComp.bind(thisLayer),mask=thisLayer.mask?thisLayer.mask.bind(thisLayer):null,fromCompToSurface=fromComp),transform||(transform=elem.layerInterface("ADBE Transform Group"),$bm_transform=transform,transform&&(anchorPoint=transform.anchorPoint)),4!==elemType||content||(content=thisLayer("ADBE Root Vectors Group")),effect||(effect=thisLayer(4)),(hasParent=!(!elem.hierarchy||!elem.hierarchy.length))&&!parent&&(parent=elem.hierarchy[0].layerInterface),time=this.comp.renderedFrame/this.comp.globalData.frameRate,_needsRandom&&seedRandom(randSeed+time),needsVelocity&&(velocity=velocityAtTime(time)),expression_function(),this.frameExpressionId=elem.globalData.frameId,scoped_bm_rt=scoped_bm_rt.propType===propTypes.SHAPE?scoped_bm_rt.v:scoped_bm_rt)}return executeExpression.__preventDeadCodeRemoval=[$bm_transform,anchorPoint,time,velocity,inPoint,outPoint,width,height,name,loop_in,loop_out,smooth,toComp,fromCompToSurface,toWorld,fromWorld,mask,position,rotation,scale,thisComp,numKeys,active,wiggle,loopInDuration,loopOutDuration,comp,lookAt,easeOut,easeIn,ease,nearestKey,key,text,textIndex,textTotal,selectorValue,framesToTime,timeToFrames,sourceRectAtTime,substring,substr,posterizeTime,index,globalData],executeExpression}return ob.initiateExpression=initiateExpression,ob.__preventDeadCodeRemoval=[window,document,XMLHttpRequest,fetch,frames,$bm_neg,add,$bm_sum,$bm_sub,$bm_mul,$bm_div,$bm_mod,clamp,radians_to_degrees,degreesToRadians,degrees_to_radians,normalize,rgbToHsl,hslToRgb,linear,random,createPath,_lottieGlobal],ob.resetFrame=resetFrame,ob}(),Expressions=function(){var e={initExpressions:function(e){var t=0,r=[];e.renderer.compInterface=CompExpressionInterface(e.renderer),e.renderer.globalData.projectInterface.registerComposition(e.renderer),e.renderer.globalData.pushExpression=function(){t+=1},e.renderer.globalData.popExpression=function(){0==(t-=1)&&function(){var e,t=r.length;for(e=0;e<t;e+=1)r[e].release();r.length=0}()},e.renderer.globalData.registerExpressionProperty=function(e){-1===r.indexOf(e)&&r.push(e)}}};return e.resetFrame=ExpressionManager.resetFrame,e}(),MaskManagerInterface=function(){function e(e,t){this._mask=e,this._data=t}return Object.defineProperty(e.prototype,"maskPath",{get:function(){return this._mask.prop.k&&this._mask.prop.getValue(),this._mask.prop}}),Object.defineProperty(e.prototype,"maskOpacity",{get:function(){return this._mask.op.k&&this._mask.op.getValue(),100*this._mask.op.v}}),function(t){var r,n=createSizedArray(t.viewData.length),i=t.viewData.length;for(r=0;r<i;r+=1)n[r]=new e(t.viewData[r],t.masksProperties[r]);return function(e){for(r=0;r<i;){if(t.masksProperties[r].nm===e)return n[r];r+=1}return null}}}(),ExpressionPropertyInterface=function(){var e={pv:0,v:0,mult:1},t={pv:[0,0,0],v:[0,0,0],mult:1};function r(e,t,r){Object.defineProperty(e,"velocity",{get:function(){return t.getVelocityAtTime(t.comp.currentFrame)}}),e.numKeys=t.keyframes?t.keyframes.length:0,e.key=function(n){if(!e.numKeys)return 0;var i="";i="s"in t.keyframes[n-1]?t.keyframes[n-1].s:"e"in t.keyframes[n-2]?t.keyframes[n-2].e:t.keyframes[n-2].s;var o="unidimensional"===r?new Number(i):Object.assign({},i);return o.time=t.keyframes[n-1].t/t.elem.comp.globalData.frameRate,o.value="unidimensional"===r?i[0]:i,o},e.valueAtTime=t.getValueAtTime,e.speedAtTime=t.getSpeedAtTime,e.velocityAtTime=t.getVelocityAtTime,e.propertyGroup=t.propertyGroup}function n(){return e}return function(i){return i?"unidimensional"===i.propType?function(t){t&&"pv"in t||(t=e);var n=1/t.mult,i=t.pv*n,o=new Number(i);return o.value=i,r(o,t,"unidimensional"),function(){return t.k&&t.getValue(),i=t.v*n,o.value!==i&&((o=new Number(i)).value=i,o[0]=i,r(o,t,"unidimensional")),o}}(i):function(e){e&&"pv"in e||(e=t);var n=1/e.mult,i=e.data&&e.data.l||e.pv.length,o=createTypedArray("float32",i),a=createTypedArray("float32",i);return o.value=a,r(o,e,"multidimensional"),function(){e.k&&e.getValue();for(var t=0;t<i;t+=1)a[t]=e.v[t]*n,o[t]=a[t];return o}}(i):n}}(),TransformExpressionInterface=function(e){function t(e){switch(e){case"scale":case"Scale":case"ADBE Scale":case 6:return t.scale;case"rotation":case"Rotation":case"ADBE Rotation":case"ADBE Rotate Z":case 10:return t.rotation;case"ADBE Rotate X":return t.xRotation;case"ADBE Rotate Y":return t.yRotation;case"position":case"Position":case"ADBE Position":case 2:return t.position;case"ADBE Position_0":return t.xPosition;case"ADBE Position_1":return t.yPosition;case"ADBE Position_2":return t.zPosition;case"anchorPoint":case"AnchorPoint":case"Anchor Point":case"ADBE AnchorPoint":case 1:return t.anchorPoint;case"opacity":case"Opacity":case 11:return t.opacity;default:return null}}var r,n,i,o;return Object.defineProperty(t,"rotation",{get:ExpressionPropertyInterface(e.r||e.rz)}),Object.defineProperty(t,"zRotation",{get:ExpressionPropertyInterface(e.rz||e.r)}),Object.defineProperty(t,"xRotation",{get:ExpressionPropertyInterface(e.rx)}),Object.defineProperty(t,"yRotation",{get:ExpressionPropertyInterface(e.ry)}),Object.defineProperty(t,"scale",{get:ExpressionPropertyInterface(e.s)}),e.p?o=ExpressionPropertyInterface(e.p):(r=ExpressionPropertyInterface(e.px),n=ExpressionPropertyInterface(e.py),e.pz&&(i=ExpressionPropertyInterface(e.pz))),Object.defineProperty(t,"position",{get:function(){return e.p?o():[r(),n(),i?i():0]}}),Object.defineProperty(t,"xPosition",{get:ExpressionPropertyInterface(e.px)}),Object.defineProperty(t,"yPosition",{get:ExpressionPropertyInterface(e.py)}),Object.defineProperty(t,"zPosition",{get:ExpressionPropertyInterface(e.pz)}),Object.defineProperty(t,"anchorPoint",{get:ExpressionPropertyInterface(e.a)}),Object.defineProperty(t,"opacity",{get:ExpressionPropertyInterface(e.o)}),Object.defineProperty(t,"skew",{get:ExpressionPropertyInterface(e.sk)}),Object.defineProperty(t,"skewAxis",{get:ExpressionPropertyInterface(e.sa)}),Object.defineProperty(t,"orientation",{get:ExpressionPropertyInterface(e.or)}),t},LayerExpressionInterface=function(){function e(e){var t=new Matrix;return void 0!==e?this._elem.finalTransform.mProp.getValueAtTime(e).clone(t):this._elem.finalTransform.mProp.applyToMatrix(t),t}function t(e,t){var r=this.getMatrix(t);return r.props[12]=0,r.props[13]=0,r.props[14]=0,this.applyPoint(r,e)}function r(e,t){var r=this.getMatrix(t);return this.applyPoint(r,e)}function n(e,t){var r=this.getMatrix(t);return r.props[12]=0,r.props[13]=0,r.props[14]=0,this.invertPoint(r,e)}function i(e,t){var r=this.getMatrix(t);return this.invertPoint(r,e)}function o(e,t){if(this._elem.hierarchy&&this._elem.hierarchy.length){var r,n=this._elem.hierarchy.length;for(r=0;r<n;r+=1)this._elem.hierarchy[r].finalTransform.mProp.applyToMatrix(e)}return e.applyToPointArray(t[0],t[1],t[2]||0)}function a(e,t){if(this._elem.hierarchy&&this._elem.hierarchy.length){var r,n=this._elem.hierarchy.length;for(r=0;r<n;r+=1)this._elem.hierarchy[r].finalTransform.mProp.applyToMatrix(e)}return e.inversePoint(t)}function s(e){var t=new Matrix;if(t.reset(),this._elem.finalTransform.mProp.applyToMatrix(t),this._elem.hierarchy&&this._elem.hierarchy.length){var r,n=this._elem.hierarchy.length;for(r=0;r<n;r+=1)this._elem.hierarchy[r].finalTransform.mProp.applyToMatrix(t);return t.inversePoint(e)}return t.inversePoint(e)}function l(){return[1,1,1,1]}return function(c){var u;function p(e){switch(e){case"ADBE Root Vectors Group":case"Contents":case 2:return p.shapeInterface;case 1:case 6:case"Transform":case"transform":case"ADBE Transform Group":return u;case 4:case"ADBE Effect Parade":case"effects":case"Effects":return p.effect;case"ADBE Text Properties":return p.textInterface;default:return null}}p.getMatrix=e,p.invertPoint=a,p.applyPoint=o,p.toWorld=r,p.toWorldVec=t,p.fromWorld=i,p.fromWorldVec=n,p.toComp=r,p.fromComp=s,p.sampleImage=l,p.sourceRectAtTime=c.sourceRectAtTime.bind(c),p._elem=c;var d=getDescriptor(u=TransformExpressionInterface(c.finalTransform.mProp),"anchorPoint");return Object.defineProperties(p,{hasParent:{get:function(){return c.hierarchy.length}},parent:{get:function(){return c.hierarchy[0].layerInterface}},rotation:getDescriptor(u,"rotation"),scale:getDescriptor(u,"scale"),position:getDescriptor(u,"position"),opacity:getDescriptor(u,"opacity"),anchorPoint:d,anchor_point:d,transform:{get:function(){return u}},active:{get:function(){return c.isInRange}}}),p.startTime=c.data.st,p.index=c.data.ind,p.source=c.data.refId,p.height=0===c.data.ty?c.data.h:100,p.width=0===c.data.ty?c.data.w:100,p.inPoint=c.data.ip/c.comp.globalData.frameRate,p.outPoint=c.data.op/c.comp.globalData.frameRate,p._name=c.data.nm,p.registerMaskInterface=function(e){p.mask=new MaskManagerInterface(e,c)},p.registerEffectsInterface=function(e){p.effect=e},p}}(),propertyGroupFactory=function(e,t){return function(r){return(r=void 0===r?1:r)<=0?e:t(r-1)}},PropertyInterface=function(e,t){var r={_name:e};return function(e){return(e=void 0===e?1:e)<=0?r:t(e-1)}}
vendor: 23,031 bytes, line 31
31,EffectsExpressionInterface=function(){function e(r,n,i,o){function a(e){for(var t=r.ef,n=0,i=t.length;n<i;){if(e===t[n].nm||e===t[n].mn||e===t[n].ix)return 5===t[n].ty?c[n]:c[n]();n+=1}throw new Error}var s,l=propertyGroupFactory(a,i),c=[],u=r.ef.length;for(s=0;s<u;s+=1)5===r.ef[s].ty?c.push(e(r.ef[s],n.effectElements[s],n.effectElements[s].propertyGroup,o)):c.push(t(n.effectElements[s],r.ef[s].ty,o,l));return"ADBE Color Control"===r.mn&&Object.defineProperty(a,"color",{get:function(){return c[0]()}}),Object.defineProperties(a,{numProperties:{get:function(){return r.np}},_name:{value:r.nm},propertyGroup:{value:l}}),a.enabled=0!==r.en,a.active=a.enabled,a}function t(e,t,r,n){var i=ExpressionPropertyInterface(e.p);return e.p.setGroupProperty&&e.p.setGroupProperty(PropertyInterface("",n)),function(){return 10===t?r.comp.compInterface(e.p.v):i()}}return{createEffectsInterface:function(t,r){if(t.effectsManager){var n,i=[],o=t.data.ef,a=t.effectsManager.effectElements.length;for(n=0;n<a;n+=1)i.push(e(o[n],t.effectsManager.effectElements[n],r,t));var s=t.data.ef||[],l=function(e){for(n=0,a=s.length;n<a;){if(e===s[n].nm||e===s[n].mn||e===s[n].ix)return i[n];n+=1}return null};return Object.defineProperty(l,"numProperties",{get:function(){return s.length}}),l}return null}}}(),ShapePathInterface=function(e,t,r){var n=t.sh;function i(e){return"Shape"===e||"shape"===e||"Path"===e||"path"===e||"ADBE Vector Shape"===e||2===e?i.path:null}var o=propertyGroupFactory(i,r);return n.setGroupProperty(PropertyInterface("Path",o)),Object.defineProperties(i,{path:{get:function(){return n.k&&n.getValue(),n}},shape:{get:function(){return n.k&&n.getValue(),n}},_name:{value:e.nm},ix:{value:e.ix},propertyIndex:{value:e.ix},mn:{value:e.mn},propertyGroup:{value:r}}),i},ShapeExpressionInterface=function(){function e(e,s,h){var f,m=[],g=e?e.length:0;for(f=0;f<g;f+=1)"gr"===e[f].ty?m.push(t(e[f],s[f],h)):"fl"===e[f].ty?m.push(r(e[f],s[f],h)):"st"===e[f].ty?m.push(o(e[f],s[f],h)):"tm"===e[f].ty?m.push(a(e[f],s[f],h)):"tr"===e[f].ty||("el"===e[f].ty?m.push(l(e[f],s[f],h)):"sr"===e[f].ty?m.push(c(e[f],s[f],h)):"sh"===e[f].ty?m.push(ShapePathInterface(e[f],s[f],h)):"rc"===e[f].ty?m.push(u(e[f],s[f],h)):"rd"===e[f].ty?m.push(p(e[f],s[f],h)):"rp"===e[f].ty?m.push(d(e[f],s[f],h)):"gf"===e[f].ty?m.push(n(e[f],s[f],h)):m.push(i(e[f],s[f])));return m}function t(t,r,n){var i=function(e){switch(e){case"ADBE Vectors Group":case"Contents":case 2:return i.content;default:return i.transform}};i.propertyGroup=propertyGroupFactory(i,n);var o=function(t,r,n){var i,o=function(e){for(var t=0,r=i.length;t<r;){if(i[t]._name===e||i[t].mn===e||i[t].propertyIndex===e||i[t].ix===e||i[t].ind===e)return i[t];t+=1}return"number"==typeof e?i[e-1]:null};o.propertyGroup=propertyGroupFactory(o,n),i=e(t.it,r.it,o.propertyGroup),o.numProperties=i.length;var a=s(t.it[t.it.length-1],r.it[r.it.length-1],o.propertyGroup);return o.transform=a,o.propertyIndex=t.cix,o._name=t.nm,o}(t,r,i.propertyGroup),a=s(t.it[t.it.length-1],r.it[r.it.length-1],i.propertyGroup);return i.content=o,i.transform=a,Object.defineProperty(i,"_name",{get:function(){return t.nm}}),i.numProperties=t.np,i.propertyIndex=t.ix,i.nm=t.nm,i.mn=t.mn,i}function r(e,t,r){function n(e){return"Color"===e||"color"===e?n.color:"Opacity"===e||"opacity"===e?n.opacity:null}return Object.defineProperties(n,{color:{get:ExpressionPropertyInterface(t.c)},opacity:{get:ExpressionPropertyInterface(t.o)},_name:{value:e.nm},mn:{value:e.mn}}),t.c.setGroupProperty(PropertyInterface("Color",r)),t.o.setGroupProperty(PropertyInterface("Opacity",r)),n}function n(e,t,r){function n(e){return"Start Point"===e||"start point"===e?n.startPoint:"End Point"===e||"end point"===e?n.endPoint:"Opacity"===e||"opacity"===e?n.opacity:null}return Object.defineProperties(n,{startPoint:{get:ExpressionPropertyInterface(t.s)},endPoint:{get:ExpressionPropertyInterface(t.e)},opacity:{get:ExpressionPropertyInterface(t.o)},type:{get:function(){return"a"}},_name:{value:e.nm},mn:{value:e.mn}}),t.s.setGroupProperty(PropertyInterface("Start Point",r)),t.e.setGroupProperty(PropertyInterface("End Point",r)),t.o.setGroupProperty(PropertyInterface("Opacity",r)),n}function i(){return function(){return null}}function o(e,t,r){var n,i=propertyGroupFactory(c,r),o=propertyGroupFactory(l,i);function a(r){Object.defineProperty(l,e.d[r].nm,{get:ExpressionPropertyInterface(t.d.dataProps[r].p)})}var s=e.d?e.d.length:0,l={};for(n=0;n<s;n+=1)a(n),t.d.dataProps[n].p.setGroupProperty(o);function c(e){return"Color"===e||"color"===e?c.color:"Opacity"===e||"opacity"===e?c.opacity:"Stroke Width"===e||"stroke width"===e?c.strokeWidth:null}return Object.defineProperties(c,{color:{get:ExpressionPropertyInterface(t.c)},opacity:{get:ExpressionPropertyInterface(t.o)},strokeWidth:{get:ExpressionPropertyInterface(t.w)},dash:{get:function(){return l}},_name:{value:e.nm},mn:{value:e.mn}}),t.c.setGroupProperty(PropertyInterface("Color",i)),t.o.setGroupProperty(PropertyInterface("Opacity",i)),t.w.setGroupProperty(PropertyInterface("Stroke Width",i)),c}function a(e,t,r){function n(t){return t===e.e.ix||"End"===t||"end"===t?n.end:t===e.s.ix?n.start:t===e.o.ix?n.offset:null}var i=propertyGroupFactory(n,r);return n.propertyIndex=e.ix,t.s.setGroupProperty(PropertyInterface("Start",i)),t.e.setGroupProperty(PropertyInterface("End",i)),t.o.setGroupProperty(PropertyInterface("Offset",i)),n.propertyIndex=e.ix,n.propertyGroup=r,Object.defineProperties(n,{start:{get:ExpressionPropertyInterface(t.s)},end:{get:ExpressionPropertyInterface(t.e)},offset:{get:ExpressionPropertyInterface(t.o)},_name:{value:e.nm}}),n.mn=e.mn,n}function s(e,t,r){function n(t){return e.a.ix===t||"Anchor Point"===t?n.anchorPoint:e.o.ix===t||"Opacity"===t?n.opacity:e.p.ix===t||"Position"===t?n.position:e.r.ix===t||"Rotation"===t||"ADBE Vector Rotation"===t?n.rotation:e.s.ix===t||"Scale"===t?n.scale:e.sk&&e.sk.ix===t||"Skew"===t?n.skew:e.sa&&e.sa.ix===t||"Skew Axis"===t?n.skewAxis:null}var i=propertyGroupFactory(n,r);return t.transform.mProps.o.setGroupProperty(PropertyInterface("Opacity",i)),t.transform.mProps.p.setGroupProperty(PropertyInterface("Position",i)),t.transform.mProps.a.setGroupProperty(PropertyInterface("Anchor Point",i)),t.transform.mProps.s.setGroupProperty(PropertyInterface("Scale",i)),t.transform.mProps.r.setGroupProperty(PropertyInterface("Rotation",i)),t.transform.mProps.sk&&(t.transform.mProps.sk.setGroupProperty(PropertyInterface("Skew",i)),t.transform.mProps.sa.setGroupProperty(PropertyInterface("Skew Angle",i))),t.transform.op.setGroupProperty(PropertyInterface("Opacity",i)),Object.defineProperties(n,{opacity:{get:ExpressionPropertyInterface(t.transform.mProps.o)},position:{get:ExpressionPropertyInterface(t.transform.mProps.p)},anchorPoint:{get:ExpressionPropertyInterface(t.transform.mProps.a)},scale:{get:ExpressionPropertyInterface(t.transform.mProps.s)},rotation:{get:ExpressionPropertyInterface(t.transform.mProps.r)},skew:{get:ExpressionPropertyInterface(t.transform.mProps.sk)},skewAxis:{get:ExpressionPropertyInterface(t.transform.mProps.sa)},_name:{value:e.nm}}),n.ty="tr",n.mn=e.mn,n.propertyGroup=r,n}function l(e,t,r){function n(t){return e.p.ix===t?n.position:e.s.ix===t?n.size:null}var i=propertyGroupFactory(n,r);n.propertyIndex=e.ix;var o="tm"===t.sh.ty?t.sh.prop:t.sh;return o.s.setGroupProperty(PropertyInterface("Size",i)),o.p.setGroupProperty(PropertyInterface("Position",i)),Object.defineProperties(n,{size:{get:ExpressionPropertyInterface(o.s)},position:{get:ExpressionPropertyInterface(o.p)},_name:{value:e.nm}}),n.mn=e.mn,n}function c(e,t,r){function n(t){return e.p.ix===t?n.position:e.r.ix===t?n.rotation:e.pt.ix===t?n.points:e.or.ix===t||"ADBE Vector Star Outer Radius"===t?n.outerRadius:e.os.ix===t?n.outerRoundness:!e.ir||e.ir.ix!==t&&"ADBE Vector Star Inner Radius"!==t?e.is&&e.is.ix===t?n.innerRoundness:null:n.innerRadius}var i=propertyGroupFactory(n,r),o="tm"===t.sh.ty?t.sh.prop:t.sh;return n.propertyIndex=e.ix,o.or.setGroupProperty(PropertyInterface("Outer Radius",i)),o.os.setGroupProperty(PropertyInterface("Outer Roundness",i)),o.pt.setGroupProperty(PropertyInterface("Points",i)),o.p.setGroupProperty(PropertyInterface("Position",i)),o.r.setGroupProperty(PropertyInterface("Rotation",i)),e.ir&&(o.ir.setGroupProperty(PropertyInterface("Inner Radius",i)),o.is.setGroupProperty(PropertyInterface("Inner Roundness",i))),Object.defineProperties(n,{position:{get:ExpressionPropertyInterface(o.p)},rotation:{get:ExpressionPropertyInterface(o.r)},points:{get:ExpressionPropertyInterface(o.pt)},outerRadius:{get:ExpressionPropertyInterface(o.or)},outerRoundness:{get:ExpressionPropertyInterface(o.os)},innerRadius:{get:ExpressionPropertyInterface(o.ir)},innerRoundness:{get:ExpressionPropertyInterface(o.is)},_name:{value:e.nm}}),n.mn=e.mn,n}function u(e,t,r){function n(t){return e.p.ix===t?n.position:e.r.ix===t?n.roundness:e.s.ix===t||"Size"===t||"ADBE Vector Rect Size"===t?n.size:null}var i=propertyGroupFactory(n,r),o="tm"===t.sh.ty?t.sh.prop:t.sh;return n.propertyIndex=e.ix,o.p.setGroupProperty(PropertyInterface("Position",i)),o.s.setGroupProperty(PropertyInterface("Size",i)),o.r.setGroupProperty(PropertyInterface("Rotation",i)),Object.defineProperties(n,{position:{get:ExpressionPropertyInterface(o.p)},roundness:{get:ExpressionPropertyInterface(o.r)},size:{get:ExpressionPropertyInterface(o.s)},_name:{value:e.nm}}),n.mn=e.mn,n}function p(e,t,r){function n(t){return e.r.ix===t||"Round Corners 1"===t?n.radius:null}var i=propertyGroupFactory(n,r),o=t;return n.propertyIndex=e.ix,o.rd.setGroupProperty(PropertyInterface("Radius",i)),Object.defineProperties(n,{radius:{get:ExpressionPropertyInterface(o.rd)},_name:{value:e.nm}}),n.mn=e.mn,n}function d(e,t,r){function n(t){return e.c.ix===t||"Copies"===t?n.copies:e.o.ix===t||"Offset"===t?n.offset:null}var i=propertyGroupFactory(n,r),o=t;return n.propertyIndex=e.ix,o.c.setGroupProperty(PropertyInterface("Copies",i)),o.o.setGroupProperty(PropertyInterface("Offset",i)),Object.defineProperties(n,{copies:{get:ExpressionPropertyInterface(o.c)},offset:{get:ExpressionPropertyInterface(o.o)},_name:{value:e.nm}}),n.mn=e.mn,n}return function(t,r,n){var i;function o(e){if("number"==typeof e)return 0===(e=void 0===e?1:e)?n:i[e-1];for(var t=0,r=i.length;t<r;){if(i[t]._name===e)return i[t];t+=1}return null}return o.propertyGroup=propertyGroupFactory(o,function(){return n}),i=e(t,r,o.propertyGroup),o.numProperties=i.length,o._name="Contents",o}}(),TextExpressionInterface=function(e){var t;function r(e){return"ADBE Text Document"===e?r.sourceText:null}return Object.defineProperty(r,"sourceText",{get:function(){e.textProperty.getValue();var r=e.textProperty.currentData.t;return t&&r===t.value||((t=new String(r)).value=r||new String(r),Object.defineProperty(t,"style",{get:function(){return{fillColor:e.textProperty.currentData.fc}}})),t}}),r};function _typeof(e){return _typeof="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},_typeof(e)}var FootageInterface=(dataInterfaceFactory=function(e){function t(e){return"Outline"===e?t.outlineInterface():null}return t._name="Outline",t.outlineInterface=function(e){var t="",r=e.getFootageData();function n(e){if(r[e])return t=e,"object"===_typeof(r=r[e])?n:r;var i=e.indexOf(t);if(-1!==i){var o=parseInt(e.substr(i+t.length),10);return"object"===_typeof(r=r[o])?n:r}return""}return function(){return t="",r=e.getFootageData(),n}}(e),t},function(e){function t(e){return"Data"===e?t.dataInterface:null}return t._name="Data",t.dataInterface=dataInterfaceFactory(e),t}),dataInterfaceFactory,interfaces={layer:LayerExpressionInterface,effects:EffectsExpressionInterface,comp:CompExpressionInterface,shape:ShapeExpressionInterface,text:TextExpressionInterface,footage:FootageInterface};function getInterface(e){return interfaces[e]||null}var expressionHelpers={searchExpressions:function(e,t,r){t.x&&(r.k=!0,r.x=!0,r.initiateExpression=ExpressionManager.initiateExpression,r.effectsSequence.push(r.initiateExpression(e,t,r).bind(r)))},getSpeedAtTime:function(e){var t=this.getValueAtTime(e),r=this.getValueAtTime(e+-.01),n=0;if(t.length){var i;for(i=0;i<t.length;i+=1)n+=Math.pow(r[i]-t[i],2);n=100*Math.sqrt(n)}else n=0;return n},getVelocityAtTime:function(e){if(void 0!==this.vel)return this.vel;var t,r,n=-.001,i=this.getValueAtTime(e),o=this.getValueAtTime(e+n);if(i.length)for(t=createTypedArray("float32",i.length),r=0;r<i.length;r+=1)t[r]=(o[r]-i[r])/n;else t=(o-i)/n;return t},getValueAtTime:function(e){return e*=this.elem.globalData.frameRate,(e-=this.offsetTime)!==this._cachingAtTime.lastFrame&&(this._cachingAtTime.lastIndex=this._cachingAtTime.lastFrame<e?this._cachingAtTime.lastIndex:0,this._cachingAtTime.value=this.interpolateValue(e,this._cachingAtTime),this._cachingAtTime.lastFrame=e),this._cachingAtTime.value},getStaticValueAtTime:function(){return this.pv},setGroupProperty:function(e){this.propertyGroup=e}};function addPropertyDecorator(){function e(e,t,r){if(!this.k||!this.keyframes)return this.pv;e=e?e.toLowerCase():"";var n,i,o,a,s,l=this.comp.renderedFrame,c=this.keyframes,u=c[c.length-1].t;if(l<=u)return this.pv;if(r?i=u-(n=t?Math.abs(u-this.elem.comp.globalData.frameRate*t):Math.max(0,u-this.elem.data.ip)):((!t||t>c.length-1)&&(t=c.length-1),n=u-(i=c[c.length-1-t].t)),"pingpong"===e){if(Math.floor((l-i)/n)%2!=0)return this.getValueAtTime((n-(l-i)%n+i)/this.comp.globalData.frameRate,0)}else{if("offset"===e){var p=this.getValueAtTime(i/this.comp.globalData.frameRate,0),d=this.getValueAtTime(u/this.comp.globalData.frameRate,0),h=this.getValueAtTime(((l-i)%n+i)/this.comp.globalData.frameRate,0),f=Math.floor((l-i)/n);if(this.pv.length){for(a=(s=new Array(p.length)).length,o=0;o<a;o+=1)s[o]=(d[o]-p[o])*f+h[o];return s}return(d-p)*f+h}if("continue"===e){var m=this.getValueAtTime(u/this.comp.globalData.frameRate,0),g=this.getValueAtTime((u-.001)/this.comp.globalData.frameRate,0);if(this.pv.length){for(a=(s=new Array(m.length)).length,o=0;o<a;o+=1)s[o]=m[o]+(m[o]-g[o])*((l-u)/this.comp.globalData.frameRate)/5e-4;return s}return m+(l-u)/.001*(m-g)}}return this.getValueAtTime(((l-i)%n+i)/this.comp.globalData.frameRate,0)}function t(e,t,r){if(!this.k)return this.pv;e=e?e.toLowerCase():"";var n,i,o,a,s,l=this.comp.renderedFrame,c=this.keyframes,u=c[0].t;if(l>=u)return this.pv;if(r?i=u+(n=t?Math.abs(this.elem.comp.globalData.frameRate*t):Math.max(0,this.elem.data.op-u)):((!t||t>c.length-1)&&(t=c.length-1),n=(i=c[t].t)-u),"pingpong"===e){if(Math.floor((u-l)/n)%2==0)return this.getValueAtTime(((u-l)%n+u)/this.comp.globalData.frameRate,0)}else{if("offset"===e){var p=this.getValueAtTime(u/this.comp.globalData.frameRate,0),d=this.getValueAtTime(i/this.comp.globalData.frameRate,0),h=this.getValueAtTime((n-(u-l)%n+u)/this.comp.globalData.frameRate,0),f=Math.floor((u-l)/n)+1;if(this.pv.length){for(a=(s=new Array(p.length)).length,o=0;o<a;o+=1)s[o]=h[o]-(d[o]-p[o])*f;return s}return h-(d-p)*f}if("continue"===e){var m=this.getValueAtTime(u/this.comp.globalData.frameRate,0),g=this.getValueAtTime((u+.001)/this.comp.globalData.frameRate,0);if(this.pv.length){for(a=(s=new Array(m.length)).length,o=0;o<a;o+=1)s[o]=m[o]+(m[o]-g[o])*(u-l)/.001;return s}return m+(m-g)*(u-l)/.001}}return this.getValueAtTime((n-((u-l)%n+u))/this.comp.globalData.frameRate,0)}function r(e,t){if(!this.k)return this.pv;if(e=.5*(e||.4),(t=Math.floor(t||5))<=1)return this.pv;var r,n,i=this.comp.renderedFrame/this.comp.globalData.frameRate,o=i-e,a=t>1?(i+e-o)/(t-1):1,s=0,l=0;for(r=this.pv.length?createTypedArray("float32",this.pv.length):0;s<t;){if(n=this.getValueAtTime(o+s*a),this.pv.length)for(l=0;l<this.pv.length;l+=1)r[l]+=n[l];else r+=n;s+=1}if(this.pv.length)for(l=0;l<this.pv.length;l+=1)r[l]/=t;else r/=t;return r}function n(e){this._transformCachingAtTime||(this._transformCachingAtTime={v:new Matrix});var t=this._transformCachingAtTime.v;if(t.cloneFromProps(this.pre.props),this.appliedTransformations<1){var r=this.a.getValueAtTime(e);t.translate(-r[0]*this.a.mult,-r[1]*this.a.mult,r[2]*this.a.mult)}if(this.appliedTransformations<2){var n=this.s.getValueAtTime(e);t.scale(n[0]*this.s.mult,n[1]*this.s.mult,n[2]*this.s.mult)}if(this.sk&&this.appliedTransformations<3){var i=this.sk.getValueAtTime(e),o=this.sa.getValueAtTime(e);t.skewFromAxis(-i*this.sk.mult,o*this.sa.mult)}if(this.r&&this.appliedTransformations<4){var a=this.r.getValueAtTime(e);t.rotate(-a*this.r.mult)}else if(!this.r&&this.appliedTransformations<4){var s=this.rz.getValueAtTime(e),l=this.ry.getValueAtTime(e),c=this.rx.getValueAtTime(e),u=this.or.getValueAtTime(e);t.rotateZ(-s*this.rz.mult).rotateY(l*this.ry.mult).rotateX(c*this.rx.mult).rotateZ(-u[2]*this.or.mult).rotateY(u[1]*this.or.mult).rotateX(u[0]*this.or.mult)}if(this.data.p&&this.data.p.s){var p=this.px.getValueAtTime(e),d=this.py.getValueAtTime(e);if(this.data.p.z){var h=this.pz.getValueAtTime(e);t.translate(p*this.px.mult,d*this.py.mult,-h*this.pz.mult)}else t.translate(p*this.px.mult,d*this.py.mult,0)}else{var f=this.p.getValueAtTime(e);t.translate(f[0]*this.p.mult,f[1]*this.p.mult,-f[2]*this.p.mult)}return t}function i(){return this.v.clone(new Matrix)}var o=TransformPropertyFactory.getTransformProperty;TransformPropertyFactory.getTransformProperty=function(e,t,r){var a=o(e,t,r);return a.dynamicProperties.length?a.getValueAtTime=n.bind(a):a.getValueAtTime=i.bind(a),a.setGroupProperty=expressionHelpers.setGroupProperty,a};var a=PropertyFactory.getProp;PropertyFactory.getProp=function(n,i,o,s,l){var c=a(n,i,o,s,l);c.kf?c.getValueAtTime=expressionHelpers.getValueAtTime.bind(c):c.getValueAtTime=expressionHelpers.getStaticValueAtTime.bind(c),c.setGroupProperty=expressionHelpers.setGroupProperty,c.loopOut=e,c.loopIn=t,c.smooth=r,c.getVelocityAtTime=expressionHelpers.getVelocityAtTime.bind(c),c.getSpeedAtTime=expressionHelpers.getSpeedAtTime.bind(c),c.numKeys=1===i.a?i.k.length:0,c.propertyIndex=i.ix;var u=0;return 0!==o&&(u=createTypedArray("float32",1===i.a?i.k[0].s.length:i.k.length)),c._cachingAtTime={lastFrame:initialDefaultFrame,lastIndex:0,value:u},expressionHelpers.searchExpressions(n,i,c),c.k&&l.addDynamicProperty(c),c};var s=ShapePropertyFactory.getConstructorFunction(),l=ShapePropertyFactory.getKeyframedConstructorFunction();function c(){}c.prototype={vertices:function(e,t){this.k&&this.getValue();var r,n=this.v;void 0!==t&&(n=this.getValueAtTime(t,0));var i=n._length,o=n[e],a=n.v,s=createSizedArray(i);for(r=0;r<i;r+=1)s[r]="i"===e||"o"===e?[o[r][0]-a[r][0],o[r][1]-a[r][1]]:[o[r][0],o[r][1]];return s},points:function(e){return this.vertices("v",e)},inTangents:function(e){return this.vertices("i",e)},outTangents:function(e){return this.vertices("o",e)},isClosed:function(){return this.v.c},pointOnPath:function(e,t){var r=this.v;void 0!==t&&(r=this.getValueAtTime(t,0)),this._segmentsLength||(this._segmentsLength=bez.getSegmentsLength(r));for(var n,i=this._segmentsLength,o=i.lengths,a=i.totalLength*e,s=0,l=o.length,c=0;s<l;){if(c+o[s].addedLength>a){var u=s,p=r.c&&s===l-1?0:s+1,d=(a-c)/o[s].addedLength;n=bez.getPointInSegment(r.v[u],r.v[p],r.o[u],r.i[p],d,o[s]);break}c+=o[s].addedLength,s+=1}return n||(n=r.c?[r.v[0][0],r.v[0][1]]:[r.v[r._length-1][0],r.v[r._length-1][1]]),n},vectorOnPath:function(e,t,r){1==e?e=this.v.c:0==e&&(e=.999);var n=this.pointOnPath(e,t),i=this.pointOnPath(e+.001,t),o=i[0]-n[0],a=i[1]-n[1],s=Math.sqrt(Math.pow(o,2)+Math.pow(a,2));return 0===s?[0,0]:"tangent"===r?[o/s,a/s]:[-a/s,o/s]},tangentOnPath:function(e,t){return this.vectorOnPath(e,t,"tangent")},normalOnPath:function(e,t){return this.vectorOnPath(e,t,"normal")},setGroupProperty:expressionHelpers.setGroupProperty,getValueAtTime:expressionHelpers.getStaticValueAtTime},extendPrototype([c],s),extendPrototype([c],l),l.prototype.getValueAtTime=function(e){return this._cachingAtTime||(this._cachingAtTime={shapeValue:shapePool.clone(this.pv),lastIndex:0,lastTime:initialDefaultFrame}),e*=this.elem.globalData.frameRate,(e-=this.offsetTime)!==this._cachingAtTime.lastTime&&(this._cachingAtTime.lastIndex=this._cachingAtTime.lastTime<e?this._caching.lastIndex:0,this._cachingAtTime.lastTime=e,this.interpolateShape(e,this._cachingAtTime.shapeValue,this._cachingAtTime)),this._cachingAtTime.shapeValue},l.prototype.initiateExpression=ExpressionManager.initiateExpression;var u=ShapePropertyFactory.getShapeProp;ShapePropertyFactory.getShapeProp=function(e,t,r,n,i){var o=u(e,t,r,n,i);return o.propertyIndex=t.ix,o.lock=!1,3===r?expressionHelpers.searchExpressions(e,t.pt,o):4===r&&expressionHelpers.searchExpressions(e,t.ks,o),o.k&&e.addDynamicProperty(o),o}}function initialize$1(){addPropertyDecorator()}function addDecorator(){TextProperty.prototype.getExpressionValue=function(e,t){var r=this.calculateExpression(t);if(e.t!==r){var n={};return this.copyData(n,e),n.t=r.toString(),n.__complete=!1,n}return e},TextProperty.prototype.searchProperty=function(){var e=this.searchKeyframes(),t=this.searchExpressions();return this.kf=e||t,this.kf},TextProperty.prototype.searchExpressions=function(){return this.data.d.x?(this.calculateExpression=ExpressionManager.initiateExpression.bind(this)(this.elem,this.data.d,this),this.addEffect(this.getExpressionValue.bind(this)),!0):null}}function initialize(){addDecorator()}function SVGComposableEffect(){}SVGComposableEffect.prototype={createMergeNode:function(e,t){var r,n,i=createNS("feMerge");for(i.setAttribute("result",e),n=0;n<t.length;n+=1)(r=createNS("feMergeNode")).setAttribute("in",t[n]),i.appendChild(r),i.appendChild(r);return i}};var linearFilterValue="0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0";function SVGTintFilter(e,t,r,n,i){this.filterManager=t;var o=createNS("feColorMatrix");o.setAttribute("type","matrix"),o.setAttribute("color-interpolation-filters","linearRGB"),o.setAttribute("values",linearFilterValue+" 1 0"),this.linearFilter=o,o.setAttribute("result",n+"_tint_1"),e.appendChild(o),(o=createNS("feColorMatrix")).setAttribute("type","matrix"),o.setAttribute("color-interpolation-filters","sRGB"),o.setAttribute("values","1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"),o.setAttribute("result",n+"_tint_2"),e.appendChild(o),this.matrixFilter=o;var a=this.createMergeNode(n,[i,n+"_tint_1",n+"_tint_2"]);e.appendChild(a)}function SVGFillFilter(e,t,r,n){this.filterManager=t;var i=createNS("feColorMatrix");i.setAttribute("type","matrix"),i.setAttribute("color-interpolation-filters","sRGB"),i.setAttribute("values","1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"),i.setAttribute("result",n),e.appendChild(i),this.matrixFilter=i}function SVGStrokeEffect(e,t,r){this.initialized=!1,this.filterManager=t,this.elem=r,this.paths=[]}function SVGTritoneFilter(e,t,r,n){this.filterManager=t;var i=createNS("feColorMatrix");i.setAttribute("type","matrix"),i.setAttribute("color-interpolation-filters","linearRGB"),i.setAttribute("values","0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0 1 0"),e.a
vendor: 5,131 bytes, line 31
31ppendChild(i);var o=createNS("feComponentTransfer");o.setAttribute("color-interpolation-filters","sRGB"),o.setAttribute("result",n),this.matrixFilter=o;var a=createNS("feFuncR");a.setAttribute("type","table"),o.appendChild(a),this.feFuncR=a;var s=createNS("feFuncG");s.setAttribute("type","table"),o.appendChild(s),this.feFuncG=s;var l=createNS("feFuncB");l.setAttribute("type","table"),o.appendChild(l),this.feFuncB=l,e.appendChild(o)}function SVGProLevelsFilter(e,t,r,n){this.filterManager=t;var i=this.filterManager.effectElements,o=createNS("feComponentTransfer");(i[10].p.k||0!==i[10].p.v||i[11].p.k||1!==i[11].p.v||i[12].p.k||1!==i[12].p.v||i[13].p.k||0!==i[13].p.v||i[14].p.k||1!==i[14].p.v)&&(this.feFuncR=this.createFeFunc("feFuncR",o)),(i[17].p.k||0!==i[17].p.v||i[18].p.k||1!==i[18].p.v||i[19].p.k||1!==i[19].p.v||i[20].p.k||0!==i[20].p.v||i[21].p.k||1!==i[21].p.v)&&(this.feFuncG=this.createFeFunc("feFuncG",o)),(i[24].p.k||0!==i[24].p.v||i[25].p.k||1!==i[25].p.v||i[26].p.k||1!==i[26].p.v||i[27].p.k||0!==i[27].p.v||i[28].p.k||1!==i[28].p.v)&&(this.feFuncB=this.createFeFunc("feFuncB",o)),(i[31].p.k||0!==i[31].p.v||i[32].p.k||1!==i[32].p.v||i[33].p.k||1!==i[33].p.v||i[34].p.k||0!==i[34].p.v||i[35].p.k||1!==i[35].p.v)&&(this.feFuncA=this.createFeFunc("feFuncA",o)),(this.feFuncR||this.feFuncG||this.feFuncB||this.feFuncA)&&(o.setAttribute("color-interpolation-filters","sRGB"),e.appendChild(o)),(i[3].p.k||0!==i[3].p.v||i[4].p.k||1!==i[4].p.v||i[5].p.k||1!==i[5].p.v||i[6].p.k||0!==i[6].p.v||i[7].p.k||1!==i[7].p.v)&&((o=createNS("feComponentTransfer")).setAttribute("color-interpolation-filters","sRGB"),o.setAttribute("result",n),e.appendChild(o),this.feFuncRComposed=this.createFeFunc("feFuncR",o),this.feFuncGComposed=this.createFeFunc("feFuncG",o),this.feFuncBComposed=this.createFeFunc("feFuncB",o))}function SVGDropShadowEffect(e,t,r,n,i){var o=t.container.globalData.renderConfig.filterSize,a=t.data.fs||o;e.setAttribute("x",a.x||o.x),e.setAttribute("y",a.y||o.y),e.setAttribute("width",a.width||o.width),e.setAttribute("height",a.height||o.height),this.filterManager=t;var s=createNS("feGaussianBlur");s.setAttribute("in","SourceAlpha"),s.setAttribute("result",n+"_drop_shadow_1"),s.setAttribute("stdDeviation","0"),this.feGaussianBlur=s,e.appendChild(s);var l=createNS("feOffset");l.setAttribute("dx","25"),l.setAttribute("dy","0"),l.setAttribute("in",n+"_drop_shadow_1"),l.setAttribute("result",n+"_drop_shadow_2"),this.feOffset=l,e.appendChild(l);var c=createNS("feFlood");c.setAttribute("flood-color","#00ff00"),c.setAttribute("flood-opacity","1"),c.setAttribute("result",n+"_drop_shadow_3"),this.feFlood=c,e.appendChild(c);var u=createNS("feComposite");u.setAttribute("in",n+"_drop_shadow_3"),u.setAttribute("in2",n+"_drop_shadow_2"),u.setAttribute("operator","in"),u.setAttribute("result",n+"_drop_shadow_4"),e.appendChild(u);var p=this.createMergeNode(n,[n+"_drop_shadow_4",i]);e.appendChild(p)}extendPrototype([SVGComposableEffect],SVGTintFilter),SVGTintFilter.prototype.renderFrame=function(e){if(e||this.filterManager._mdf){var t=this.filterManager.effectElements[0].p.v,r=this.filterManager.effectElements[1].p.v,n=this.filterManager.effectElements[2].p.v/100;this.linearFilter.setAttribute("values",linearFilterValue+" "+n+" 0"),this.matrixFilter.setAttribute("values",r[0]-t[0]+" 0 0 0 "+t[0]+" "+(r[1]-t[1])+" 0 0 0 "+t[1]+" "+(r[2]-t[2])+" 0 0 0 "+t[2]+" 0 0 0 1 0")}},SVGFillFilter.prototype.renderFrame=function(e){if(e||this.filterManager._mdf){var t=this.filterManager.effectElements[2].p.v,r=this.filterManager.effectElements[6].p.v;this.matrixFilter.setAttribute("values","0 0 0 0 "+t[0]+" 0 0 0 0 "+t[1]+" 0 0 0 0 "+t[2]+" 0 0 0 "+r+" 0")}},SVGStrokeEffect.prototype.initialize=function(){var e,t,r,n,i=this.elem.layerElement.children||this.elem.layerElement.childNodes;for(1===this.filterManager.effectElements[1].p.v?(n=this.elem.maskManager.masksProperties.length,r=0):n=1+(r=this.filterManager.effectElements[0].p.v-1),(t=createNS("g")).setAttribute("fill","none"),t.setAttribute("stroke-linecap","round"),t.setAttribute("stroke-dashoffset",1);r<n;r+=1)e=createNS("path"),t.appendChild(e),this.paths.push({p:e,m:r});if(3===this.filterManager.effectElements[10].p.v){var o=createNS("mask"),a=createElementID();o.setAttribute("id",a),o.setAttribute("mask-type","alpha"),o.appendChild(t),this.elem.globalData.defs.appendChild(o);var s=createNS("g");for(s.setAttribute("mask","url("+getLocationHref()+"#"+a+")");i[0];)s.appendChild(i[0]);this.elem.layerElement.appendChild(s),this.masker=o,t.setAttribute("stroke","#fff")}else if(1===this.filterManager.effectElements[10].p.v||2===this.filterManager.effectElements[10].p.v){if(2===this.filterManager.effectElements[10].p.v)for(i=this.elem.layerElement.children||this.elem.layerElement.childNodes;i.length;)this.elem.layerElement.removeChild(i[0]);this.elem.layerElement.appendChild(t),this.elem.layerElement.removeAttribute("mask"),t.setAttribute("stroke","#fff")}this.initialized=!0,this.pathMasker=t},SVGStrokeEffect.prototype.renderFrame=function(e){var t;this.initialized||this.initialize();var r,n,i=this.paths.length;for(t=0;t<i;
vendor: 4,562 bytes, line 31
31t+=1)if(-1!==this.paths[t].m&&(r=this.elem.maskManager.viewData[this.paths[t].m],n=this.paths[t].p,(e||this.filterManager._mdf||r.prop._mdf)&&n.setAttribute("d",r.lastPath),e||this.filterManager.effectElements[9].p._mdf||this.filterManager.effectElements[4].p._mdf||this.filterManager.effectElements[7].p._mdf||this.filterManager.effectElements[8].p._mdf||r.prop._mdf)){var o;if(0!==this.filterManager.effectElements[7].p.v||100!==this.filterManager.effectElements[8].p.v){var a=.01*Math.min(this.filterManager.effectElements[7].p.v,this.filterManager.effectElements[8].p.v),s=.01*Math.max(this.filterManager.effectElements[7].p.v,this.filterManager.effectElements[8].p.v),l=n.getTotalLength();o="0 0 0 "+l*a+" ";var c,u=l*(s-a),p=1+2*this.filterManager.effectElements[4].p.v*this.filterManager.effectElements[9].p.v*.01,d=Math.floor(u/p);for(c=0;c<d;c+=1)o+="1 "+2*this.filterManager.effectElements[4].p.v*this.filterManager.effectElements[9].p.v*.01+" ";o+="0 "+10*l+" 0 0"}else o="1 "+2*this.filterManager.effectElements[4].p.v*this.filterManager.effectElements[9].p.v*.01;n.setAttribute("stroke-dasharray",o)}if((e||this.filterManager.effectElements[4].p._mdf)&&this.pathMasker.setAttribute("stroke-width",2*this.filterManager.effectElements[4].p.v),(e||this.filterManager.effectElements[6].p._mdf)&&this.pathMasker.setAttribute("opacity",this.filterManager.effectElements[6].p.v),(1===this.filterManager.effectElements[10].p.v||2===this.filterManager.effectElements[10].p.v)&&(e||this.filterManager.effectElements[3].p._mdf)){var h=this.filterManager.effectElements[3].p.v;this.pathMasker.setAttribute("stroke","rgb("+bmFloor(255*h[0])+","+bmFloor(255*h[1])+","+bmFloor(255*h[2])+")")}},SVGTritoneFilter.prototype.renderFrame=function(e){if(e||this.filterManager._mdf){var t=this.filterManager.effectElements[0].p.v,r=this.filterManager.effectElements[1].p.v,n=this.filterManager.effectElements[2].p.v,i=n[0]+" "+r[0]+" "+t[0],o=n[1]+" "+r[1]+" "+t[1],a=n[2]+" "+r[2]+" "+t[2];this.feFuncR.setAttribute("tableValues",i),this.feFuncG.setAttribute("tableValues",o),this.feFuncB.setAttribute("tableValues",a)}},SVGProLevelsFilter.prototype.createFeFunc=function(e,t){var r=createNS(e);return r.setAttribute("type","table"),t.appendChild(r),r},SVGProLevelsFilter.prototype.getTableValue=function(e,t,r,n,i){for(var o,a,s=0,l=Math.min(e,t),c=Math.max(e,t),u=Array.call(null,{length:256}),p=0,d=i-n,h=t-e;s<=256;)a=(o=s/256)<=l?h<0?i:n:o>=c?h<0?n:i:n+d*Math.pow((o-e)/h,1/r),u[p]=a,p+=1,s+=256/255;return u.join(" ")},SVGProLevelsFilter.prototype.renderFrame=function(e){if(e||this.filterManager._mdf){var t,r=this.filterManager.effectElements;this.feFuncRComposed&&(e||r[3].p._mdf||r[4].p._mdf||r[5].p._mdf||r[6].p._mdf||r[7].p._mdf)&&(t=this.getTableValue(r[3].p.v,r[4].p.v,r[5].p.v,r[6].p.v,r[7].p.v),this.feFuncRComposed.setAttribute("tableValues",t),this.feFuncGComposed.setAttribute("tableValues",t),this.feFuncBComposed.setAttribute("tableValues",t)),this.feFuncR&&(e||r[10].p._mdf||r[11].p._mdf||r[12].p._mdf||r[13].p._mdf||r[14].p._mdf)&&(t=this.getTableValue(r[10].p.v,r[11].p.v,r[12].p.v,r[13].p.v,r[14].p.v),this.feFuncR.setAttribute("tableValues",t)),this.feFuncG&&(e||r[17].p._mdf||r[18].p._mdf||r[19].p._mdf||r[20].p._mdf||r[21].p._mdf)&&(t=this.getTableValue(r[17].p.v,r[18].p.v,r[19].p.v,r[20].p.v,r[21].p.v),this.feFuncG.setAttribute("tableValues",t)),this.feFuncB&&(e||r[24].p._mdf||r[25].p._mdf||r[26].p._mdf||r[27].p._mdf||r[28].p._mdf)&&(t=this.getTableValue(r[24].p.v,r[25].p.v,r[26].p.v,r[27].p.v,r[28].p.v),this.feFuncB.setAttribute("tableValues",t)),this.feFuncA&&(e||r[31].p._mdf||r[32].p._mdf||r[33].p._mdf||r[34].p._mdf||r[35].p._mdf)&&(t=this.getTableValue(r[31].p.v,r[32].p.v,r[33].p.v,r[34].p.v,r[35].p.v),this.feFuncA.setAttribute("tableValues",t))}},extendPrototype([SVGComposableEffect],SVGDropShadowEffect),SVGDropShadowEffect.prototype.renderFrame=function(e){if(e||this.filterManager._mdf){if((e||this.filterManager.effectElements[4].p._mdf)&&this.feGaussianBlur.setAttribute("stdDeviation",this.filterManager.effectElements[4].p.v/4),e||this.filterManager.effectElements[0].p._mdf){var t=this.filterManager.effectElements[0].p.v;this.feFlood.setAttribute("flood-color",rgbToHex(Math.round(255*t[0]),Math.round(255*t[1]),Math.round(255*t[2])))}if((e||this.filterManager.effectElements[1].p._mdf)&&this.feFlood.setAttribute("flood-opacity",this.filterManager.effectElements[1].p.v/255),e||this.filterManager.effectElements[2].p._mdf||this.filterManager.effectElements[3].p._mdf){var r=this.filterManager.effectElements[3].p.v,
vendor: 5,524 bytes, line 31
31n=(this.filterManager.effectElements[2].p.v-90)*degToRads,i=r*Math.cos(n),o=r*Math.sin(n);this.feOffset.setAttribute("dx",i),this.feOffset.setAttribute("dy",o)}}};var _svgMatteSymbols=[];function SVGMatte3Effect(e,t,r){this.initialized=!1,this.filterManager=t,this.filterElem=e,this.elem=r,r.matteElement=createNS("g"),r.matteElement.appendChild(r.layerElement),r.matteElement.appendChild(r.transformedElement),r.baseElement=r.matteElement}function SVGGaussianBlurEffect(e,t,r,n){e.setAttribute("x","-100%"),e.setAttribute("y","-100%"),e.setAttribute("width","300%"),e.setAttribute("height","300%"),this.filterManager=t;var i=createNS("feGaussianBlur");i.setAttribute("result",n),e.appendChild(i),this.feGaussianBlur=i}function TransformEffect(){}function SVGTransformEffect(e,t){this.init(t)}function CVTransformEffect(e){this.init(e)}return SVGMatte3Effect.prototype.findSymbol=function(e){for(var t=0,r=_svgMatteSymbols.length;t<r;){if(_svgMatteSymbols[t]===e)return _svgMatteSymbols[t];t+=1}return null},SVGMatte3Effect.prototype.replaceInParent=function(e,t){var r=e.layerElement.parentNode;if(r){for(var n,i=r.children,o=0,a=i.length;o<a&&i[o]!==e.layerElement;)o+=1;o<=a-2&&(n=i[o+1]);var s=createNS("use");s.setAttribute("href","#"+t),n?r.insertBefore(s,n):r.appendChild(s)}},SVGMatte3Effect.prototype.setElementAsMask=function(e,t){if(!this.findSymbol(t)){var r=createElementID(),n=createNS("mask");n.setAttribute("id",t.layerId),n.setAttribute("mask-type","alpha"),_svgMatteSymbols.push(t);var i=e.globalData.defs;i.appendChild(n);var o=createNS("symbol");o.setAttribute("id",r),this.replaceInParent(t,r),o.appendChild(t.layerElement),i.appendChild(o);var a=createNS("use");a.setAttribute("href","#"+r),n.appendChild(a),t.data.hd=!1,t.show()}e.setMatte(t.layerId)},SVGMatte3Effect.prototype.initialize=function(){for(var e=this.filterManager.effectElements[0].p.v,t=this.elem.comp.elements,r=0,n=t.length;r<n;)t[r]&&t[r].data.ind===e&&this.setElementAsMask(this.elem,t[r]),r+=1;this.initialized=!0},SVGMatte3Effect.prototype.renderFrame=function(){this.initialized||this.initialize()},SVGGaussianBlurEffect.prototype.renderFrame=function(e){if(e||this.filterManager._mdf){var t=.3*this.filterManager.effectElements[0].p.v,r=this.filterManager.effectElements[1].p.v,n=3==r?0:t,i=2==r?0:t;this.feGaussianBlur.setAttribute("stdDeviation",n+" "+i);var o=1==this.filterManager.effectElements[2].p.v?"wrap":"duplicate";this.feGaussianBlur.setAttribute("edgeMode",o)}},TransformEffect.prototype.init=function(e){this.effectsManager=e,this.type=effectTypes.TRANSFORM_EFFECT,this.matrix=new Matrix,this.opacity=-1,this._mdf=!1,this._opMdf=!1},TransformEffect.prototype.renderFrame=function(e){if(this._opMdf=!1,this._mdf=!1,e||this.effectsManager._mdf){var t=this.effectsManager.effectElements,r=t[0].p.v,n=t[1].p.v,i=1===t[2].p.v,o=t[3].p.v,a=i?o:t[4].p.v,s=t[5].p.v,l=t[6].p.v,c=t[7].p.v;this.matrix.reset(),this.matrix.translate(-r[0],-r[1],r[2]),this.matrix.scale(.01*a,.01*o,1),this.matrix.rotate(-c*degToRads),this.matrix.skewFromAxis(-s*degToRads,(l+90)*degToRads),this.matrix.translate(n[0],n[1],0),this._mdf=!0,this.opacity!==t[8].p.v&&(this.opacity=t[8].p.v,this._opMdf=!0)}},extendPrototype([TransformEffect],SVGTransformEffect),extendPrototype([TransformEffect],CVTransformEffect),registerRenderer("canvas",CanvasRenderer),registerRenderer("html",HybridRenderer),registerRenderer("svg",SVGRenderer),ShapeModifiers.registerModifier("tm",TrimModifier),ShapeModifiers.registerModifier("pb",PuckerAndBloatModifier),ShapeModifiers.registerModifier("rp",RepeaterModifier),ShapeModifiers.registerModifier("rd",RoundCornersModifier),ShapeModifiers.registerModifier("zz",ZigZagModifier),ShapeModifiers.registerModifier("op",OffsetPathModifier),setExpressionsPlugin(Expressions),setExpressionInterfaces(getInterface),initialize$1(),initialize(),registerEffect$1(20,SVGTintFilter,!0),registerEffect$1(21,SVGFillFilter,!0),registerEffect$1(22,SVGStrokeEffect,!1),registerEffect$1(23,SVGTritoneFilter,!0),registerEffect$1(24,SVGProLevelsFilter,!0),registerEffect$1(25,SVGDropShadowEffect,!0),registerEffect$1(28,SVGMatte3Effect,!1),registerEffect$1(29,SVGGaussianBlurEffect,!0),registerEffect$1(35,SVGTransformEffect,!1),registerEffect(35,CVTransformEffect),lottie},module.exports=factory())},e=>{e.exports=function(){function e(t,r,n){function i(a,s){if(!r[a]){if(!t[a]){if(o)return o(a,!0);var l=new Error("Cannot find module '"+a+"'");throw l.code="MODULE_NOT_FOUND",l}var c=r[a]={exports:{}};t[a][0].call(c.exports,function(e){return i(t[a][1][e]||e)},c,c.exports,e,t,r,n)}return r[a].exports}for(var o=void 0,a=0;a<n.length;a++)i(n[a]);return i}return e}()({1:[function(e,t,r){"use strict";var n=e("../renderer/Renderer"),i=e("../helpers/layerAPIBuilder");function o(e){var t={animation:e,elements:e.renderer.elements.map(function(t){return i(t,e)}),boundingRect:null,scaleData:null};function r(){return e.currentFrame}function o(){return e.currentFrame/e.frameRate}function a(e,t){var r,n=e.length;for(r=0;r<n;r+=1)e.getPropertyAtIndex(r).setValue(t)}function s(e,t){var r,n=e.length,i=[];for(r=0;r<n;r+=1)i.push(e.getPropertyAtIndex(r).toKeypathLayerPoint(t));return 1===i.length?i[0]:i}function l(e,t){var r,n=e.length,i=[];for(r=0;r<n;r+=1)i.push(e.getPropertyAtIndex(r).fromKeypathLayerPoint(t));return 1===i.length?i[0]:i}function c(t){var r,n,i,o=e.animationData.w,a=e.animationData.h,s=o/a,l=t.width,c=t.height,u=l/c,p=e.renderer.renderConfig.preserveAspectRatio.split(" ");return r="meet"===p[1]?u>s?c/a:l/o:u>
31s?l/o:c/a,n=p[0].substr(0,4),{scaleYOffset:"YMin"===(i=p[0].substr(4))?0:"YMid"===i?(c-a*r)/2:c-a*r,scaleXOffset:"xMin"===n?0:"xMid"===n?(l-o*r)/2:l-o*r,scale:r}}function u(r){r=e.wrapper,t.boundingRect=r.getBoundingClientRect(),t.scaleData=c(t.boundingRect)}function p(r){if(!e.wrapper||!e.wrapper.getBoundingClientRect)return r;t.boundingRect||u();var n=t.boundingRect,i=[r[0]-n.left,r[1]-n.top],o=t.scaleData;return i[0]=(i[0]-o.scaleXOffset)/o.scale,i[1]=(i[1]-o.scaleYOffset)/o.scale,i}function d(r){if(!e.wrapper||!e.wrapper.getBoundingClientRect)return r;t.boundingRect||u();var n,i=t.boundingRect,o=t.scaleData;return n=[(n=[r[0]*o.scale+o.scaleXOffset,r[1]*o.scale+o.scaleYOffset])[0]+i.left,n[1]+i.top]}function h(){return t.scaleData}var f={recalculateSize:u,getScaleData:h,toContainerPoint:p,fromContainerPoint:d,getCurrentFrame:r,getCurrentTime:o,addValueCallback:a,toKeypathLayerPoint:s,fromKeypathLayerPoint:l};return Object.assign({},n(t),f)}t.exports=o},{"../helpers/layerAPIBuilder":6,"../renderer/Renderer":42}],2:[function(e,t,r){"use strict";t.exports=","},{}],3:[function(e,t,r){"use strict";t.exports={0:0,1:1,2:2,3:3,4:4,5:5,13:13,comp:0,composition:0,solid:1,image:2,null:3,shape:4,text:5,camera:13}},{}],4:[function(e,t,r){"use strict";t.exports={LAYER_TRANSFORM:"transform"}},{}],5:[function(e,t,r){"use strict";var n=e("../enums/key_path_separator"),i=e("./stringSanitizer");t.exports=function(e){var t=e.split(n),r=t.shift();return{selector:i(r),propertyPath:t.join(n)}}},{"../enums/key_path_separator":2,"./stringSanitizer":7}],6:[function(e,t,r){"use strict";var n=e("../layer/text/TextElement"),i=e("../layer/shape/Shape"),o=e("../layer/null_element/NullElement"),a=e("../layer/solid/SolidElement"),s=e("../layer/image/ImageElement"),l=e("../layer/camera/Camera"),c=e("../layer/LayerBase");t.exports=function(t,r){var u=t.data.ty,p=e("../layer/composition/Composition");switch(u){case 0:return p(t,r);case 1:return a(t,r);case 2:return s(t,r);case 3:return o(t,r);case 4:return i(t,r,t.data.shapes,t.itemsData);case 5:return n(t,r);case 13:return l(t,r);default:return c(t,r)}}},{"../layer/LayerBase":13,"../layer/camera/Camera":15,"../layer/composition/Composition":16,"../layer/image/ImageElement":20,"../layer/null_element/NullElement":21,"../layer/shape/Shape":22,"../layer/solid/SolidElement":35,"../layer/text/TextElement":38}],7:[function(e,t,r){"use strict";function n(e){return e.trim()}t.exports=n},{}],8:[function(e,t,r){"use strict";var n=e("./typedArrays"),i=function(){var e=Math.cos,t=Math.sin,r=Math.tan,i=Math.round;function o(){return this.props[0]=1,this.props[1]=0,this.props[2]=0,this.props[3]=0,this.props[4]=0,this.props[5]=1,this.props[6]=0,this.props[7]=0,this.props[8]=0,this.props[9]=0,this.props[10]=1,this.props[11]=0,this.props[12]=0,this.props[13]=0,this.props[14]=0,this.props[15]=1,this}function a(r){if(0===r)return this;var n=e(r),i=t(r);return this._t(n,-i,0,0,i,n,0,0,0,0,1,0,0,0,0,1)}function s(r){if(0===r)return this;var n=e(r),i=t(r);return this._t(1,0,0,0,0,n,-i,0,0,i,n,0,0,0,0,1)}function l(r){if(0===r)return this;var n=e(r),i=t(r);return this._t(n,0,i,0,0,1,0,0,-i,0,n,0,0,0,0,1)}function c(r){if(0===r)return this;var n=e(r),i=t(r);return this._t(n,-i,0,0,i,n,0,0,0,0,1,0,0,0,0,1)}function u(e,t){return this._t(1,t,e,1,0,0)}function p(e,t){return this.shear(r(e),r(t))}function d(n,i){var o=e(i),a=t(i);return this._t(o,a,0,0,-a,o,0,0,0,0,1,0,0,0,0,1)._t(1,0,0,0,r(n),1,0,0,0,0,1,0,0,0,0,1)._t(o,-a,0,0,a,o,0,0,0,0,1,0,0,0,0,1)}function h(e,t,r){return r=isNaN(r)?1:r,1==e&&1==t&&1==r?this:this._t(e,0,0,0,0,t,0,0,0,0,r,0,0,0,0,1)}function f(e,t,r,n,i,o,a,s,l,c,u,p,d,h,f,m){return this.props[0]=e,this.props[1]=t,this.props[2]=r,this.props[3]=n,this.props[4]=i,this.props[5]=o,this.props[6]=a,this.props[7]=s,this.props[8]=l,this.props[9]=c,this.props[10]=u,this.props[11]=p,this.props[12]=d,this.props[13]=h,this.props[14]=f,this.props[15]=m,this}function m(e,t,r){return r=r||0,0!==e||0!==t||0!==r?this._t(1,0,0,0,0,1,0,0,0,0,1,0,e,t,r,1):this}function g(e,t,r,n,i,o,a,s,l,c,u,p,d,h,f,m){var g=this.props;if(1===e&&0===t&&0===r&&0===n&&0===i&&1===o&&0===a&&0===s&&0===l&&0===c&&1===u&&0===p)return g[12]=g[12]*e+g[15]*d,g[13]=g[13]*o+g[15]*h,g[14]=g[14]*u+g[15]*f,g[15]=g[15]*m,this._identityCalculated=!1,this;var y=g[0],b=g[1],v=g[2],_=g[3],S=g[4],E=g[5],T=g[6],w=g[7],x=g[8],O=g[9],I=g[10],A=g[11],k=g[12],R=g[13],C=g[14],P=g[15];return g[0]=y*e+b*i+v*l+_*d,g[1]=y*t+b*o+v*c+_*h,g[2]=y*r+b*a+v*u+_*f,g[3]=y*n+b*s+v*p+_*m,g[4]=S*e+E*i+T*l+w*d,g[5]=S*t+E*o+T*c+w*h,g[6]=S*r+E*a+T*u+w*f,g[7]=S*n+E*s+T*p+w*m,g[8]=x*e+O*i+I*l+A*d,g[9]=x*t+O*o+I*c+A*h,g[10]=x*r+O*a+I*u+A*f,g[11]=x*n+O*s+I*p+A*m,g[12]=k*e+R*i+C*l+P*d,g[13]=k*t+R*o+C*c+P*h,g[14]=k*r+R*a+C*u+P*f,g[15]=k*n+R*s+C*p+P*m,this._identityCalculated=!1,this}function y(){return this._identityCalculated||(this._identity=!(1!==this.props[0]||0!==this.props[1]||0!==this.props[2]||0!==this.props[3]||0!==this.props[4]||1!==this.props[5]||0!==this.props[6]||0!==this.props[7]||0!==this.props[8]||
310!==this.props[9]||1!==this.props[10]||0!==this.props[11]||0!==this.props[12]||0!==this.props[13]||0!==this.props[14]||1!==this.props[15]),this._identityCalculated=!0),this._identity}function b(e){for(var t=0;t<16;){if(e.props[t]!==this.props[t])return!1;t+=1}return!0}function v(e){var t;for(t=0;t<16;t+=1)e.props[t]=this.props[t]}function _(e){var t;for(t=0;t<16;t+=1)this.props[t]=e[t]}function S(e,t,r){return{x:e*this.props[0]+t*this.props[4]+r*this.props[8]+this.props[12],y:e*this.props[1]+t*this.props[5]+r*this.props[9]+this.props[13],z:e*this.props[2]+t*this.props[6]+r*this.props[10]+this.props[14]}}function E(e,t,r){return e*this.props[0]+t*this.props[4]+r*this.props[8]+this.props[12]}function T(e,t,r){return e*this.props[1]+t*this.props[5]+r*this.props[9]+this.props[13]}function w(e,t,r){return e*this.props[2]+t*this.props[6]+r*this.props[10]+this.props[14]}function x(e){var t=this.props[0]*this.props[5]-this.props[1]*this.props[4],r=this.props[5]/t,n=-this.props[1]/t,i=-this.props[4]/t,o=this.props[0]/t,a=(this.props[4]*this.props[13]-this.props[5]*this.props[12])/t,s=-(this.props[0]*this.props[13]-this.props[1]*this.props[12])/t;return[e[0]*r+e[1]*i+a,e[0]*n+e[1]*o+s,0]}function O(e){var t,r=e.length,n=[];for(t=0;t<r;t+=1)n[t]=x(e[t]);return n}function I(e,t,r){var i=n("float32",6);if(this.isIdentity())i[0]=e[0],i[1]=e[1],i[2]=t[0],i[3]=t[1],i[4]=r[0],i[5]=r[1];else{var o=this.props[0],a=this.props[1],s=this.props[4],l=this.props[5],c=this.props[12],u=this.props[13];i[0]=e[0]*o+e[1]*s+c,i[1]=e[0]*a+e[1]*l+u,i[2]=t[0]*o+t[1]*s+c,i[3]=t[0]*a+t[1]*l+u,i[4]=r[0]*o+r[1]*s+c,i[5]=r[0]*a+r[1]*l+u}return i}function A(e,t,r){return this.isIdentity()?[e,t,r]:[e*this.props[0]+t*this.props[4]+r*this.props[8]+this.props[12],e*this.props[1]+t*this.props[5]+r*this.props[9]+this.props[13],e*this.props[2]+t*this.props[6]+r*this.props[10]+this.props[14]]}function k(e,t){return this.isIdentity()?e+","+t:e*this.props[0]+t*this.props[4]+this.props[12]+","+(e*this.props[1]+t*this.props[5]+this.props[13])}function R(){for(var e=0,t=this.props,r="matrix3d(",n=1e4;e<16;)r+=i(t[e]*n)/n,r+=15===e?")":",",e+=1;return r}function C(){var e=1e4,t=this.props;return"matrix("+i(t[0]*e)/e+","+i(t[1]*e)/e+","+i(t[4]*e)/e+","+i(t[5]*e)/e+","+i(t[12]*e)/e+","+i(t[13]*e)/e+")"}function P(){this.reset=o,this.rotate=a,this.rotateX=s,this.rotateY=l,this.rotateZ=c,this.skew=p,this.skewFromAxis=d,this.shear=u,this.scale=h,this.setTransform=f,this.translate=m,this.transform=g,this.applyToPoint=S,this.applyToX=E,this.applyToY=T,this.applyToZ=w,this.applyToPointArray=A,this.applyToTriplePoints=I,this.applyToPointStringified=k,this.toCSS=R,this.to2dCSS=C,this.clone=v,this.cloneFromProps=_,this.equals=b,this.inversePoints=O,this.inversePoint=x,this._t=this.transform,this.isIdentity=y,this._identity=!0,this._identityCalculated=!1,this.props=n("float32",16),this.reset()}return function(){return new P}}();
32/*!
33 Transformation Matrix v2.0
34 (c) Epistemex 2014-2015
35 www.epistemex.com
36 By Ken Fyrstenberg
37 Contributions by leeoniya.
38 License: MIT, header required.
39 */t.exports=i},{"./typedArrays":9}],9:[function(e,t,r){"use strict";var n=function(){function e(e,t){var r,n=0,i=[];switch(e){case"int16":case"uint8c":r=1;break;default:r=1.1}for(n=0;n<t;n+=1)i.push(r);return i}function t(e,t){return"float32"===e?new Float32Array(t):"int16"===e?new Int16Array(t):"uint8c"===e?new Uint8ClampedArray(t):void 0}return"function"==typeof Uint8ClampedArray&&"function"==typeof Float32Array?t:e}();t.exports=n},{}],10:[function(e,t,r){"use strict";var n=e("./animation/AnimationItem");function i(e){return Object.assign({},n(e))}t.exports={createAnimationApi:i}},{"./animation/AnimationItem":1}],11:[function(e,t,r){"use strict";var n=e("../helpers/keyPathBuilder"),i=e("../enums/layer_types");function o(e,t){function r(){return e.length}function a(e,t){return e.filter(function(e){return e.getTargetLayer().data.ty===i[t]})}function s(e,t){return e.filter(function(e){return e.getTargetLayer().data.nm===t})}function l(e,t){return e.filter(function(e){return!!e.hasProperty(t)&&e.getProperty(t)})}function c(t){return o(a(e,t),"layer")}function u(t){return o(s(e,t),"layer")}function p(t){return o(e.filter(function(e){return e.hasProperty(t)}).map(function(e){return e.getProperty(t)}),"property")}function d(t){return o(l(e,t).map(function(e){return e.getProperty(t)}),"property")}function h(e){var r,i,o,a=n(e),s=a.selector;return"renderer"===t||"layer"===t?(r=u(s),i=c(s),o=0===r.length&&0===i.length?d(s):r.concat(i),a.propertyPath?o.getKeyPath(a.propertyPath):o):"property"===t?(o=p(s),a.propertyPath?o.getKeyPath(a.propertyPath):o):void 0}function f(r){var n=r.getElements();return o(e.concat(n),t)}function m(){return e}function g(t){return e[t]}var y={getKeyPath:h,concat:f,getElements:m,getPropertyAtIndex:g};return Object.defineProperty(y,"length",{get:r}),y}t.exports=o},{"../enums/layer_types":3,"../helpers/keyPathBuilder":5}],12:[function(e,t,r){"use strict";function n(e){function t(t,r){for(var n=e.properties||[],i=0,o=n.length;i<o;){if(n[i].name===t)return n[i].value;i+=1}return null}function r(e){return!!t(e)}function n(e){return t(e)}function i(t){return e.parent.fromKeypathLayerPoint(t)}function o(t){return e.parent.toKeypathLayerPoint(t)}return{hasProperty:r,getProperty:n,fromKeypathLayerPoint:i,toKeypathLayerPoint:o}}e("../enums/key_path_separator"),e("../enums/property_names"),t.exp
39orts=n},{"../enums/key_path_separator":2,"../enums/property_names":4}],13:[function(e,t,r){"use strict";var n=e("../key_path/KeyPathNode"),i=e("./transform/Transform"),o=e("./effects/Effects"),a=e("../helpers/transformationMatrix");function s(e){var t=i(e.element.finalTransform.mProp,e),r=o(e.element.effectsManager.effectElements||[],e);function s(){e.properties.push({name:"transform",value:t},{name:"Transform",value:t},{name:"Effects",value:r},{name:"effects",value:r})}function l(t){var r=e.element;e.parent.toKeypathLayerPoint&&(t=e.parent.toKeypathLayerPoint(t));var n=a();if(e.getProperty("Transform").getTargetTransform().applyToMatrix(n),r.hierarchy&&r.hierarchy.length){var i,o=r.hierarchy.length;for(i=0;i<o;i+=1)r.hierarchy[i].finalTransform.mProp.applyToMatrix(n)}return n.inversePoint(t)}function c(t){var r=e.element,n=a();if(e.getProperty("Transform").getTargetTransform().applyToMatrix(n),r.hierarchy&&r.hierarchy.length){var i,o=r.hierarchy.length;for(i=0;i<o;i+=1)r.hierarchy[i].finalTransform.mProp.applyToMatrix(n)}return t=n.applyToPointArray(t[0],t[1],t[2]||0),e.parent.fromKeypathLayerPoint?e.parent.fromKeypathLayerPoint(t):t}function u(){return e.element}var p={getTargetLayer:u,toKeypathLayerPoint:l,fromKeypathLayerPoint:c};return s(),Object.assign(e,n(e),p)}t.exports=s},{"../helpers/transformationMatrix":8,"../key_path/KeyPathNode":12,"./effects/Effects":19,"./transform/Transform":39}],14:[function(e,t,r){"use strict";var n=e("../enums/layer_types"),i=e("../helpers/layerAPIBuilder");function o(e){function t(){return e.length}function r(e,t){return e.filter(function(e){return e.data.ty===n[t]})}function a(e,t){return e.filter(function(e){return e.data.nm===t})}function s(){return o(e)}function l(t){return o(r(e,t))}function c(t){return o(a(e,t))}function u(t){return t>=e.length?[]:i(e[parseInt(t)])}function p(t,r){t.reduce(function(t,r){var n=r;return t[r]=function(){var t=arguments;return e.map(function(e){var r=i(e);return r[n]?r[n].apply(null,t):null})},t},f)}function d(){return e}function h(t){return e.concat(t.getTargetElements())}var f={getLayers:s,getLayersByType:l,getLayersByName:c,layer:u,concat:h,getTargetElements:d};return p(["setTranslate","getType","getDuration"]),p(["setText","getText","setDocumentData","canResizeFont","setMinimumFontSize"]),Object.defineProperty(f,"length",{get:t}),f}t.exports=o},{"../enums/layer_types":3,"../helpers/layerAPIBuilder":6}],15:[function(e,t,r){"use strict";var n=e("../../key_path/KeyPathNode"),i=e("../../property/Property");function o(e,t){var r={},o={element:e,parent:t,properties:a()};function a(){return[{name:"Point of Interest",value:i(e.a,t)},{name:"Zoom",value:i(e.pe,t)},{name:"Position",value:i(e.p,t)},{name:"X Rotation",value:i(e.rx,t)},{name:"Y Rotation",value:i(e.ry,t)},{name:"Z Rotation",value:i(e.rz,t)},{name:"Orientation",value:i(e.or,t)}]}function s(){return o.element}var l={getTargetLayer:s};return Object.assign(r,n(o),l)}t.exports=o},{"../../key_path/KeyPathNode":12,"../../property/Property":40}],16:[function(e,t,r){"use strict";var n=e("../../key_path/KeyPathList"),i=e("../LayerBase"),o=e("../../helpers/layerAPIBuilder"),a=(e("../../property/Property"),e("./TimeRemap"));function s(e,t){var r={},s={element:e,parent:t,properties:c()};function l(t,r){var n=null,i={name:t.nm};function a(){return n||(n=o(e.elements[r],s)),n}return Object.defineProperty(i,"value",{get:a}),i}function c(){var t=e.layers.map(l);return[{name:"Time Remap",value:a(e.tm)}].concat(t)}var u={};return Object.assign(r,i(s),n(s.elements,"layer"),u)}t.exports=s},{"../../helpers/layerAPIBuilder":6,"../../key_path/KeyPathList":11,"../../property/Property":40,"../LayerBase":13,"./TimeRemap":17}],17:[function(e,t,r){"use strict";var n=e("../../key_path/KeyPathNode"),i=e("../../property/ValueProperty");function o(e,t){var r,o={property:e,parent:t},a=!1,s=0,l=0,c=0,u=0,p=!0,d=1,h=!1,f=!1,m=[],g={time:-1};function y(e,t,r){h=!1,r&&(_(),u=e),f&&console.log(e,t),c=Date.now(),s=e,l=t,E()}function b(){var e=m.shift();y(e[0],e[1])}function v(e,t){m.push([e,t])}function _(){m.length=0}function S(e){if(s===l)u=s;else if(!h){var t=Date.now(),r=d*(t-c)/1e3;c=t,s<l?(u+=r)>l&&(m.length?b():p?u%=l-s:u=l):(u-=r)<l&&(m.length?b():u=p?s-(l-u):l),f&&console.log(u)}
39return C.onEnterFrame&&g.time!==u&&(g.time=u,C.onEnterFrame(g)),u}function E(){a||(a=!0,r=C.setValue(S,f))}function T(e,t){h=!1,t&&_(),E(),l=e}function w(){return a?u:e.v/e.mult}function x(e){p=e}function O(e){d=e}function I(e){f=e}function A(){h=!0}function k(){r&&(r(),o.property=null,o.parent=null)}var R={playSegment:y,playTo:T,queueSegment:v,clearQueue:_,setLoop:x,setSpeed:O,pause:A,setDebugging:I,getCurrentTime:w,onEnterFrame:null,destroy:k},C={};return Object.assign(C,R,i(o),n(o))}t.exports=o},{"../../key_path/KeyPathNode":12,"../../property/ValueProperty":41}],18:[function(e,t,r){"use strict";var n=e("../../property/Property");function i(e,t){return n(e.p,t)}t.exports=i},{"../../property/Property":40}],19:[function(e,t,r){"use strict";var n=e("../../key_path/KeyPathNode"),i=e("../../property/Property");function o(e,t){var r={parent:t,properties:s()};function a(e,r){return{name:e.data?e.data.nm:r.toString(),value:e.data?o(e.effectElements,t):i(e.p,t)}}function s(){var t,r=e.length,n=[];for(t=0;t<r;t+=1)n.push(a(e[t],t));return n}var l={};return Object.assign(l,n(r))}e("./EffectElement"),t.exports=o},{"../../key_path/KeyPathNode":12,"../../property/Property":40,"./EffectElement":18}],20:[function(e,t,r){"use strict";var n=e("../LayerBase");function i(e){var t={element:e,parent,properties:r()};function r(){return[]}var i={};return Object.assign({},n(t),i)}t.exports=i},{"../LayerBase":13}],21:[function(e,t,r){"use strict";var n=e("../LayerBase");function i(e,t){var r={},i={element:e,parent:t,properties:o()};function o(){return[]}var a={};return Object.assign(r,n(i),a)}t.exports=i},{"../LayerBase":13}],22:[function(e,t,r){"use strict";var n=e("../LayerBase"),i=e("./ShapeContents");function o(e,t){var r={properties:[],parent:t,element:e},o=i(e.data.shapes,e.itemsData,r);function a(){r.properties.push({name:"Contents",value:o})}var s={};return a(),Object.assign(r,n(r),s)}t.exports=o},{"../LayerBase":13,"./ShapeContents":23}],23:[function(e,t,r){"use strict";var n=e("../../key_path/KeyPathNode"),i=(e("../../property/Property"),e("./ShapeRectangle")),o=e("./ShapeFill"),a=e("./ShapeStroke"),s=e("./ShapeEllipse"),l=e("./ShapeGradientFill"),c=e("./ShapeGradientStroke"),u=e("./ShapeTrimPaths"),p=e("./ShapeRepeater"),d=e("./ShapePolystar"),h=e("./ShapeRoundCorners"),f=e("./ShapePath"),m=e("../transform/Transform"),g=e("../../helpers/transformationMatrix");function y(e,t,r){var b={properties:S(),parent:r},v=[];function _(r,n){var g={name:r.nm};return Object.defineProperty(g,"value",{get:function(){return v[n]?v[n]:("gr"===r.ty?g=y(e[n].it,t[n].it,b):"rc"===r.ty?g=i(t[n],b):"el"===r.ty?g=s(t[n],b):"fl"===r.ty?g=o(t[n],b):"st"===r.ty?g=a(t[n],b):"gf"===r.ty?g=l(t[n],b):"gs"===r.ty?g=c(t[n],b):"tm"===r.ty?g=u(t[n],b):"rp"===r.ty?g=p(t[n],b):"sr"===r.ty?g=d(t[n],b):"rd"===r.ty?g=h(t[n],b):"sh"===r.ty?g=f(t[n],b):"tr"===r.ty?g=m(t[n].transform.mProps,b):console.log(r.ty),v[n]=g,g);var g}}),g}function S(){return e.map(function(e,t){return _(e,t)})}function E(e){if(b.hasProperty("Transform")){var t=g();b.getProperty("Transform").getTargetTransform().applyToMatrix(t),e=t.applyToPointArray(e[0],e[1],e[2]||0)}return b.parent.fromKeypathLayerPoint(e)}function T(e){if(e=b.parent.toKeypathLayerPoint(e),b.hasProperty("Transform")){var t=g();b.getProperty("Transform").getTargetTransform().applyToMatrix(t),e=t.inversePoint(e)}return e}var w={fromKeypathLayerPoint:E,toKeypathLayerPoint:T};return Object.assign(b,n(b),w)}t.exports=y},{"../../helpers/transformationMatrix":8,"../../key_path/KeyPathNode":12,"../../property/Property":40,"../transform/Transform":39,"./ShapeEllipse":24,"./ShapeFill":25,"./ShapeGradientFill":26,"./ShapeGradientStroke":27,"./ShapePath":28,"./ShapePolystar":29,"./ShapeRectangle":30,"./ShapeRepeater":31,"./ShapeRoundCorners":32,"./ShapeStroke":33,"./ShapeTrimPaths":34}],24:[function(e,t,r){"use strict";var n=e("../../key_path/KeyPathNode"),i=e("../../property/Property");function o(e,t){var r={parent:t,properties:o()};function o(){return[{name:"Size",value:i(e.sh.s,t)},{name:"Position",value:i(e.sh.p,t)}]}var a={};return Object.assign(a,n(r))}t.exports=o},{"../../key_path/KeyPathNode":12,"../../property/Property":40}],25:[function(e,t,r){"use strict";var n=e("../../key_path/KeyPathNode"),i=e("../../property/Property");function o(e,t){var r={parent:t,properties:o()};function o(){return[{name:"Color",value:i(e.c,t)},{name:"Opacity",value:{setValue:i(e.o,t)}}]}var a={};return Object.assign(a,n(r))}t.exports=o},{"../../key_path/KeyPathNode":12,"../../property/Property":40}],26:[function(e,t,r){"use strict";var n=e("../../key_path/KeyPathNode"),i=e("../../property/Property");function o(e,t){var r={parent:t,properties:o()};function o(){return[{name:"Start Point",value:i(e.s,t)},{name:"End Point",value:i(e.s,t)},{name:"Opacity",value:i(e.o,t)},{name:"Highlight Length",value:i(e.h,t)},{name:"Highlight Angle",value:i(e.a,t)},{name:"Colors",value:i(e.g.prop,t)}]}var a={};return Object.assign(a,n(r))}t.exports=o},{"../../key_path/KeyPathNode":12,"../../property/Property":40}],27:[function(e,t,r){"use strict";var n=e("../../key_path/KeyPathNode"),i=e("../../property/Property");function o(e,t){var r={parent:t,properties:o()};function o(){return[{name:"Start Point",value:i(e.s,t)},{name:"End Point",value:i(e.e,t)},{name:"Opacity",value:i(e.o,t)},{name:"Highlight Length",value:i(e.h,t)},{name:"Highlight Angle",value:i(e.a,t)},{name:"Colors",value:i(e.g.prop,t)},{name:"Stroke Width",value:i(e.w,t)}]}var a={};return Object.assign(a,n(r))}t.exports=o},{"../../key_path/KeyPathNode":12,"../../property/Property":40}],28:[function(e,t,r){"use strict";var n=e("../../key_path/KeyPathNode"),i=e("../../property/Property");function o(e,t){var r={parent:t,properties:o()};function o(){return[{name:"path",value:i(e.sh,t)}]}var a={};return Object.assign(a,n(r))}t.exports=o},{"../../key_path/KeyPathNode":12,"../../property/Property":40}],29:[function(e,t,r){"use strict";var n=e("../../key_path/KeyPathNode"),i=e("../../property/Property");function o(e,t){var r={parent:t,properties:o()};function o(){return[{name:"Points",value:i(e.sh.pt,t)},{name:"Position",value:i(e.sh.p,t)},{name:"Rotation",value:i(e.sh.r,t)},{name:"Inner Radius",value:i(e.sh.ir,t)},{name:"Outer Radius",value:i(e.sh.or,t)},{name:"Inner Roundness",value:i(e.sh.is,t)},{name:"Outer Roundness",value:i(e.sh.os,t)}]}var a={};return Object.assign(a,n(r))}t.exports=o},{"../../key_path/KeyPathNode":12,"../../property/Property":40}],30:[function(e,t,r){"use strict";var n=e("../../key_path/KeyPathNode"),i=e("../../property/Property");function o(e,t){var r={parent:t,properties:o()};function o(){return[{name:"Size",value:i(e.sh.s,t)},{name:"Position",value:i(e.sh.p,t)},{name:"Roundness",value:i(e.sh.r,t)}]}var a={};return Object.assign(a,n(r))}t.exports=o},{"../../key_path/KeyPathNode":12,"../../property/Property":40}],31:[function(e,t,r){"use strict";var n=e("../../key_path/KeyPathNode"),i=e("../../property/Property"),o=e("../transform/Transform");function a(e,t){var r={parent:t,properties:a()};function a(){return[{name:"Copies",value:i(e.c,t)}
39,{name:"Offset",value:i(e.o,t)},{name:"Transform",value:o(e.tr,t)}]}var s={};return Object.assign(s,n(r))}t.exports=a},{"../../key_path/KeyPathNode":12,"../../property/Property":40,"../transform/Transform":39}],32:[function(e,t,r){"use strict";var n=e("../../key_path/KeyPathNode"),i=e("../../property/Property");function o(e,t){var r={parent:t,properties:o()};function o(){return[{name:"Radius",value:i(e.rd,t)}]}var a={};return Object.assign(a,n(r))}t.exports=o},{"../../key_path/KeyPathNode":12,"../../property/Property":40}],33:[function(e,t,r){"use strict";var n=e("../../key_path/KeyPathNode"),i=e("../../property/Property");function o(e,t){var r={parent:t,properties:o()};function o(){return[{name:"Color",value:i(e.c,t)},{name:"Stroke Width",value:i(e.w,t)},{name:"Opacity",value:i(e.o,t)}]}var a={};return Object.assign(a,n(r))}t.exports=o},{"../../key_path/KeyPathNode":12,"../../property/Property":40}],34:[function(e,t,r){"use strict";var n=e("../../key_path/KeyPathNode"),i=e("../../property/Property");function o(e,t){var r={parent:t,properties:o()};function o(){return[{name:"Start",value:i(e.s,t)},{name:"End",value:i(e.e,t)},{name:"Offset",value:i(e.o,t)}]}var a={};return Object.assign(a,n(r))}t.exports=o},{"../../key_path/KeyPathNode":12,"../../property/Property":40}],35:[function(e,t,r){"use strict";var n=e("../LayerBase");function i(e,t){var r={element:e,parent:t,properties:i()};function i(){return[]}var o={};return Object.assign({},n(r),o)}t.exports=i},{"../LayerBase":13}],36:[function(e,t,r){"use strict";var n=e("../../key_path/KeyPathNode"),i=(e("../../property/Property"),e("./TextAnimator"));function o(e,t){var r={},o={element:e,parent:t,properties:l()};function a(t){var r,n=function(n){var i=t(e.textProperty.currentData);return r!==i?(r=i,Object.assign({},n,i,{__complete:!1})):n};e.textProperty.addEffect(n)}
39function s(){var t,r,n=[],o=e.textAnimator._animatorsData,a=o.length;for(t=0;t<a;t+=1)r=i(o[t]),n.push({name:e.textAnimator._textData.a[t].nm||"Animator "+(t+1),value:r});return n}function l(){return[{name:"Source",value:{setValue:a}}].concat(s())}var c={};return Object.assign(r,c,n(o))}t.exports=o},{"../../key_path/KeyPathNode":12,"../../property/Property":40,"./TextAnimator":37}],37:[function(e,t,r){"use strict";var n=e("../../key_path/KeyPathNode"),i=e("../../property/Property");function o(e){var t={},r={properties:x()};function o(t){i(e.a.a).setValue(t)}function a(t){i(e.a.fb).setValue(t)}function s(t){i(e.a.fc).setValue(t)}function l(t){i(e.a.fh).setValue(t)}function c(t){i(e.a.fs).setValue(t)}function u(t){i(e.a.fo).setValue(t)}function p(t){i(e.a.o).setValue(t)}function d(t){i(e.a.p).setValue(t)}function h(t){i(e.a.rx).setValue(t)}function f(t){i(e.a.ry).setValue(t)}function m(t){i(e.a.s).setValue(t)}function g(t){i(e.a.sa).setValue(t)}function y(t){i(e.a.sc).setValue(t)}function b(t){i(e.a.sk).setValue(t)}function v(t){i(e.a.so).setValue(t)}function _(t){i(e.a.sw).setValue(t)}function S(t){i(e.a.sb).setValue(t)}function E(t){i(e.a.sh).setValue(t)}function T(t){i(e.a.ss).setValue(t)}function w(t){i(e.a.t).setValue(t)}function x(){return[{name:"Anchor Point",value:{setValue:o}},{name:"Fill Brightness",value:{setValue:a}},{name:"Fill Color",value:{setValue:s}},{name:"Fill Hue",value:{setValue:l}},{name:"Fill Saturation",value:{setValue:c}},{name:"Fill Opacity",value:{setValue:u}},{name:"Opacity",value:{setValue:p}},{name:"Position",value:{setValue:d}},{name:"Rotation X",value:{setValue:h}},{name:"Rotation Y",value:{setValue:f}},{name:"Scale",value:{setValue:m}},{name:"Skew Axis",value:{setValue:g}},{name:"Stroke Color",value:{setValue:y}},{name:"Skew",value:{setValue:b}},{name:"Stroke Width",value:{setValue:_}},{name:"Tracking Amount",value:{setValue:w}},{name:"Stroke Opacity",value:{setValue:v}},{name:"Stroke Brightness",value:{setValue:S}},{name:"Stroke Saturation",value:{setValue:T}},{name:"Stroke Hue",value:{setValue:E}}]}var O={};return Object.assign(t,O,n(r))}t.exports=o},{"../../key_path/KeyPathNode":12,"../../property/Property":40}],38:[function(e,t,r){"use strict";var n=e("../LayerBase"),i=e("./Text");function o(e){var t={},r=i(e),o={element:e,properties:a()};function a(){return[{name:"text",value:r},{name:"Text",value:r}]}function s(){return e.textProperty.currentData.t}function l(e,t){c({t:e},t)}function c(t,r){return e.updateDocumentData(t,r)}function u(t){return e.canResizeFont(t)}function p(t){return e.setMinimumFontSize(t)}var d={getText:s,setText:l,canResizeFont:u,setDocumentData:c,setMinimumFontSize:p};return Object.assign(t,n(o),d)}t.exports=o},{"../LayerBase":13,"./Text":36}],39:[function(e,t,r){"use strict";var n=e("../../key_path/KeyPathNode"),i=e("../../property/Property");function o(e,t){var r={properties:o()};function o(){return[{name:"Anchor Point",value:i(e.a,t)},{name:"Point of Interest",value:i(e.a,t)},{name:"Position",value:i(e.p,t)},{name:"Scale",value:i(e.s,t)},{name:"Rotation",value:i(e.r,t)},{name:"X Position",value:i(e.px,t)},{name:"Y Position",value:i(e.py,t)},{name:"Z Position",value:i(e.pz,t)},{name:"X Rotation",value:i(e.rx,t)},{name:"Y Rotation",value:i(e.ry,t)},{name:"Z Rotation",value:i(e.rz,t)},{name:"Opacity",value:i(e.o,t)}]}function a(){return e}var s={getTargetTransform:a};return Object.assign(s,n(r))}t.exports=o},{"../../key_path/KeyPathNode":12,"../../property/Property":40}],40:[function(e,t,r){"use strict";var n=e("../key_path/KeyPathNode"),i=e("./ValueProperty");function o(e,t){var r={property:e,parent:t};function o(){r.property=null,r.parent=null}var a={destroy:o};return Object.assign({},a,i(r),n(r))}t.exports=o},{"../key_path/KeyPathNode":12,"./ValueProperty":41}],41:[function(e,t,r){"use strict";var n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};function i(e){function t(t){var r=e.property;if(r&&r.addEffect)return"function"==typeof t?r.addEffect(t):"multidimensional"===r.propType&&"object"===(void 0===t?"undefined":n(t))&&2===t.length||"unidimensional"===r.propType&&"number"==typeof t?r.addEffect(function(){return t}):void 0}function r(){return e.property.v}return{setValue:t,getValue:r}}t.exports=i},{}],42:[function(e,t,r){"use strict";var n=e("../layer/LayerList"),i=e("../key_path/KeyPathList");function o(e){function t(){return e.animation.animType}return e._type="renderer",Object.assign({getRendererType:t},n(e.elements),i(e.elements,"renderer"))}t.exports=o},{"../key_path/KeyPathList":11,"../layer/LayerList":14}]},{},[10])(10)},,,,(e,t,r)=>{"use strict";r.r(t),r.d(t,{ENTERED:()=>d,ENTERING:()=>p,EXITED:()=>u,EXITING:()=>h,UNMOUNTED:()=>c,default:()=>g});var n=r(1239),i=r(1240),o=r(341),a=r(1242),s=r(1243),l=r(1244),c="unmounted",u="exited",p="entering",d="entered",h="exiting",f=function(e){function t(t,r){var n;n=e.call(this,t,r)||this;var i,o=r&&!r.isMounting?t.enter:t.appear;return n.appearStatus=null,t.in?o?(i=u,n.appearStatus=p):i=d:i=t.unmountOnExit||t.mountOnEnter?c:u,n.state={status:i},n.nextCallback=null,n}(0,i.default)(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===c?{status:u}:null};var r=t.prototype;return r.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},r.componentDidUpdate=function(e){var t=null;if(e!==this.props){var r=this.state.status;this.props.in?r!==p&&r!==d&&(t=p):r!==p&&r!==d||(t=h)}this.updateStatus(!1,t)},r.componentWillUnmount=function(){this.cancelNextCallback()},r.getTimeouts=function(){var e,t,r,n=this.props.timeout;return e=t=r=n,null!=n&&"number"!=typeof n&&(e=n.exit,t=n.enter,r=void 0!==n.appear?n.appear:t),{exit:e,enter:t,a
vendor: 12,685 bytes, line 39
39ppear:r}},r.updateStatus=function(e,t){if(void 0===e&&(e=!1),null!==t)if(this.cancelNextCallback(),t===p){if(this.props.unmountOnExit||this.props.mountOnEnter){var r=this.props.nodeRef?this.props.nodeRef.current:o.default.findDOMNode(this);r&&(0,l.forceReflow)(r)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===u&&this.setState({status:c})},r.performEnter=function(e){var t=this,r=this.props.enter,n=this.context?this.context.isMounting:e,i=this.props.nodeRef?[n]:[o.default.findDOMNode(this),n],s=i[0],l=i[1],c=this.getTimeouts(),u=n?c.appear:c.enter;!e&&!r||a.default.disabled?this.safeSetState({status:d},function(){t.props.onEntered(s)}):(this.props.onEnter(s,l),this.safeSetState({status:p},function(){t.props.onEntering(s,l),t.onTransitionEnd(u,function(){t.safeSetState({status:d},function(){t.props.onEntered(s,l)})})}))},r.performExit=function(){var e=this,t=this.props.exit,r=this.getTimeouts(),n=this.props.nodeRef?void 0:o.default.findDOMNode(this);t&&!a.default.disabled?(this.props.onExit(n),this.safeSetState({status:h},function(){e.props.onExiting(n),e.onTransitionEnd(r.exit,function(){e.safeSetState({status:u},function(){e.props.onExited(n)})})})):this.safeSetState({status:u},function(){e.props.onExited(n)})},r.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},r.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},r.setNextCallback=function(e){var t=this,r=!0;return this.nextCallback=function(n){r&&(r=!1,t.nextCallback=null,e(n))},this.nextCallback.cancel=function(){r=!1},this.nextCallback},r.onTransitionEnd=function(e,t){this.setNextCallback(t);var r=this.props.nodeRef?this.props.nodeRef.current:o.default.findDOMNode(this),n=null==e&&!this.props.addEndListener;if(r&&!n){if(this.props.addEndListener){var i=this.props.nodeRef?[this.nextCallback]:[r,this.nextCallback],a=i[0],s=i[1];this.props.addEndListener(a,s)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},r.render=function(){var e=this.state.status;if(e===c)return null;var t=this.props,r=t.children,i=(t.in,t.mountOnEnter,t.unmountOnExit,t.appear,t.enter,t.exit,t.timeout,t.addEndListener,t.onEnter,t.onEntering,t.onEntered,t.onExit,t.onExiting,t.onExited,t.nodeRef,(0,n.default)(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]));return o.default.createElement(s.default.Provider,{value:null},"function"==typeof r?r(e,i):o.default.cloneElement(o.default.Children.only(r),i))},t}(o.default.Component);function m(){}f.contextType=s.default,f.propTypes={},f.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:m,onEntering:m,onEntered:m,onExit:m,onExiting:m,onExited:m},f.UNMOUNTED=c,f.EXITED=u,f.ENTERING=p,f.ENTERED=d,f.EXITING=h;const g=f},(e,t,r)=>{"use strict";function n(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r}r.r(t),r.d(t,{default:()=>n})},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>i});var n=r(1241);function i(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,(0,n.default)(e,t)}},(e,t,r)=>{"use strict";function n(e,t){return n=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},n(e,t)}r.r(t),r.d(t,{default:()=>n})},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});const n={disabled:!1}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});const n=r(341).default.createContext(null)},(e,t,r)=>{"use strict";r.r(t),r.d(t,{forceReflow:()=>n});var n=function(e){return e.scrollTop}},,,,,,,,,,,(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>h});var n=r(1256),i=r(1239),o=r(1240),a=r(1257),s=r(1259),l=r(341),c=r(1238),u=r(1244),p=function(e,t){return e&&t&&t.split(" ").forEach(function(t){return(0,s.default)(e,t)})},d=function(e){function t(){for(var t,r=arguments.length,n=new Array(r),i=0;i<r;i++)n[i]=arguments[i];return(t=e.call.apply(e,[this].concat(n))||this).appliedClasses={appear:{},enter:{},exit:{}},t.onEnter=function(e,r){var n=t.resolveArguments(e,r),i=n[0],o=n[1];t.removeClasses(i,"exit"),t.addClass(i,o?"appear":"enter","base"),t.props.onEnter&&t.props.onEnter(e,r)},t.onEntering=function(e,r){var n=t.resolveArguments(e,r),i=n[0],o=n[1]?"appear":"enter";t.addClass(i,o,"active"),t.props.onEntering&&t.props.onEntering(e,r)},t.onEntered=function(e,r){var n=t.resolveArguments(e,r),i=n[0],o=n[1]?"appear":"enter";t.removeClasses(i,o),t.addClass(i,o,"done"),t.props.onEntered&&t.props.onEntered(e,r)},t.onExit=function(e){var r=t.resolveArguments(e)[0];t.removeClasses(r,"appear"),t.removeClasses(r,"enter"),t.addClass(r,"exit","base"),t.props.onExit&&t.props.onExit(e)},t.onExiting=function(e){var r=t.resolveArguments(e)[0];t.addClass(r,"exit","active"),t.props.onExiting&&t.props.onExiting(e)},t.onExited=function(e){var r=t.resolveArguments(e)[0];t.removeClasses(r,"exit"),t.addClass(r,"exit","done"),t.props.onExited&&t.props.onExited(e)},t.resolveArguments=function(e,r){return t.props.nodeRef?[t.props.nodeRef.current,e]:[e,r]},t.getClassNames=function(e){var r=t.props.classNames,n="string"==typeof r,i=n?""+(n&&r?r+"-":"")+e:r[e];return{baseClassName:i,activeClassName:n?i+"-active":r[e+"Active"],doneClassName:n?i+"-done":r[e+"Done"]}},t}(0,o.default)(t,e);var r=t.prototype;return r.addClass=function(e,t,r){var n=this.getClassNames(t)[r+"ClassName"],i=this.getClassNames("enter").doneClassName;"appear"===t&&"done"===r&&i&&(n+=" "+i),"active"===r&&e&&(0,u.forceReflow)(e),n&&(this.appliedClasses[t][r]=n,function(e,t){e&&t&&t.split(" ").forEach(function(t){return(0,a.default)(e,t)})}(e,n))},r.removeClasses=function(e,t){var r=this.appliedClasses[t],n=r.base,i=r.active,o=r.done;this.appliedClasses[t]={},n&&p(e,n),i&&p(e,i),o&&p(e,o)},r.render=function(){var e=this.props,t=(e.classNames,(0,i.default)(e,["classNames"]));return l.default.createElement(c.default,(0,n.default)({},t,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},t}(l.default.Component);d.defaultProps={classNames:""},d.propTypes={};const h=d},(e,t,r)=>{"use strict";function n(){return n=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},n.apply(null,arguments)}r.r(t),r.d(t,{default:()=>n})},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>i});var n=r(1258);function i(e,t){e.classList?e.classList.add(t):(0,n.default)(e,t)||("string"==typeof e.className?e.className=e.className+" "+t:e.setAttribute("class",(e.className&&e.className.baseVal||"")+" "+t))}},(e,t,r)=>{"use strict";function n(e,t){return e.classList?!!t&&e.classList.contains(t):-1!==(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")}r.r(t),r.d(t,{default:()=>n})},(e,t,r)=>{"use strict";function n(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}function i(e,t){e.classList?e.classList.remove(t):"string"==typeof e.className?e.className=n(e.className,t):e.setAttribute("class",n(e.className&&e.className.baseVal||"",t))}r.r(t),r.d(t,{default:()=>i})},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>d});var n=r(1239),i=r(1256),o=r(1261),a=r(1240),s=r(341),l=r(1243),c=r(1262),u=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},p=function(e){function t(t,r){var n,i=(n=e.call(this,t,r)||this).handleExited.bind((0,o.default)(n));return n.state={contextValue:{isMounting:!0},handleExited:i,firstRender:!0},n}(0,a.default)(t,e);var r=t.prototype;return r.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},r.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(e,t){var r=t.children,n=t.handleExited;return{children:t.firstRender?(0,c.getInitialChildMapping)(e,n):(0,c.getNextChildMapping)(e,r,n),firstRender:!1}},r.handleExited=function(e,t){var r=(0,c.getChildMapping)(this.props.children);e.key in r||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState(function(t){var r=(0,i.default)({},t.children);return delete r[e.key],{children:r}}))},r.render=function(){var e=this.props,t=e.component,r=e.childFactory,i=(0,n.default)(e,["component","childFactory"]),o=this.state.contextValue,a=u(this.state.children).map(r);return delete i.appear,delete i.enter,delete i.exit,null===t?s.default.createElement(l.default.Provider,{value:o},a):s.default.createElement(l.default.Provider,{value:o},s.default.createElement(t,i,a))},t}(s.default.Component);p.propTypes={},p.defaultProps={component:"div",childFactory:function(e){return e}};const d=p},(e,t,r)=>{"use strict";function n(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}r.r(t),r.d(t,{default:()=>n})},(e,t,r)=>{"use strict";r.r(t),r.d(t,{getChildMapping:()=>i,getInitialChildMapping:()=>s,getNextChildMapping:()=>l,mergeChildMappings:()=>o});var n=r(341);function i(e,t){var r=Object.create(null);return e&&n.Children.map(e,function(e){return e}).forEach(function(e){r[e.key]=function(e){return t&&(0,n.isValidElement)(e)?t(e):e}(e)}),r}function o(e,t){function r(r){return r in t?t[r]:e[r]}e=e||{},t=t||{};var n,i=Object.create(null),o=[];for(var a in e)a in t?o.length&&(i[a]=o,o=[]):o.push(a);var s={};for(var l in t){if(i[l])for(n=0;n<i[l].length;n++){var c=i[l][n];s[i[l][n]]=r(c)}s[l]=r(l)}for(n=0;n<o.length;n++)s[o[n]]=r(o[n]);return s}function a(e,t,r){return null!=r[t]?r[t]:e.props[t]}function s(e,t){return i(e.children,function(r){return(0,n.cloneElement)(r,{onExited:t.bind(null,r),in:!0,appear:a(r,"appear",e),enter:a(r,"enter",e),exit:a(r,"exit",e)})})}function l(e,t,r){var s=i(e.children),l=o(t,s);return Object.keys(l).forEach(function(i){var o=l[i];if((0,n.isValidElement)(o)){var c=i in t,u=i in s,p=t[i],d=(0,n.isValidElement)(p)&&!p.props.in;!u||c&&!d?u||!c||d?u&&c&&(0,n.isValidElement)(p)&&(l[i]=(0,n.cloneElement)(o,{onExited:r.bind(null,o),in:p.props.in,exit:a(o,"exit",e),enter:a(o,"enter",e)})):l[i]=(0,n.cloneElement)(o,{in:!1}):l[i]=(0,n.cloneElement)(o,{onExited:r.bind(null,o),in:!0,exit:a(o,"exit",e),enter:a(o,"enter",e)})}}),l}},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,(e,t,r)=>{"use strict";r.r(t),r.d(t,{forceLoad:()=>x,getDefaultIntegrations:()=>T,init:()=>w,onLoad:()=>O});var n=r(1467),i=r(1468),o=r(1469),a=r(1470),s=r(1472),l=r(1473),c=r(362),u=r(364),p=r(1474),d=r(1504),h=r(1519),f=r(1520),m=r(1524),g=r(1527),y=r(1530),b=r(1531),v=r(1533),_=r(1534),S=r(1537),E=r(1539);function T(e){return[(0,a.inboundFiltersIntegration)(),(0,o.functionToStringIntegration)(),(0,l.conversationIdIntegration)(),(0,h.browserApiErrorsIntegration)(),(0,d.breadcrumbsIntegration)(),(0,g.globalHandlersIntegration)(),(0,b.linkedErrorsIntegration)(),(0,s.dedupeIntegration)(),(0,y.httpContextIntegration)(),(0,m.cultureContextIntegration)(),(0,f.browserSessionIntegration)()]}function w(e={}){const t=!e.skipBrowserExtensionCheck&&(0,E.checkAndWarnIfIsEmbeddedBrowserExtension)();let r=null==e.defaultIntegrations?T():e.defaultIntegrations;const o={...e,enabled:!t&&e.enabled,stackParser:(0,u.stackParserFromStackParserOptions)(e.stackParser||v.defaultStackParser),integrations:(0,i.getIntegrationsToSetup)({integrations:e.integrations,defaultIntegrations:r}),transport:e.transport||_.makeFetchTransport};return(0,c.setNormalizeStringifier)(S.normalizeStringifyValue),(0,n.initAndBind)(p.BrowserClient,o)}function x(){}function O(e){e()}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{initAndBind:()=>a,setCurrentClient:()=>s});var n=r(346),i=r(354),o=r(358);function a(e,t){!0===t.debug&&(i.DEBUG_BUILD?o.debug.enable():(0,o.consoleSandbox)(()=>{console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle.")}));(0,n.getCurrentScope)().update(t.initialScope);const r=new e(t);return s(r),r.init(),r}function s(e){(0,n.getCurrentScope)().setClient(e)}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{addIntegration:()=>p,afterSetupIntegrations:()=>c,defineIntegration:()=>d,extendIntegration:()=>h,getIntegrationsToSetup:()=>s,installedIntegrations:()=>a,setupIntegration:()=>u,setupIntegrations:()=>l});var n=r(346),i=r(354),o=r(358);const a=[];function s(e){const t=e.defaultIntegrations||[],r=e.integrations;let n;
39if(t.forEach(e=>{e.isDefaultInstance=!0}),Array.isArray(r))n=[...t,...r];else if("function"==typeof r){const e=r(t);n=Array.isArray(e)?e:[e]}else n=t;return function(e){const t={};return e.forEach(e=>{const{name:r}=e,n=t[r];n&&!n.isDefaultInstance&&e.isDefaultInstance||(t[r]=e)}),Object.values(t)}(n)}function l(e,t){const r={};return t.forEach(t=>{t?.beforeSetup&&t.beforeSetup(e)}),t.forEach(t=>{t&&u(e,t,r)}),r}function c(e,t){for(const r of t)r?.afterAllSetup&&r.afterAllSetup(e)}function u(e,t,r){if(r[t.name])i.DEBUG_BUILD&&o.debug.log(`Integration skipped because it was already installed: ${t.name}`);else{if(r[t.name]=t,a.includes(t.name)||"function"!=typeof t.setupOnce||(t.setupOnce(),a.push(t.name)),t.setup&&"function"==typeof t.setup&&t.setup(e),"function"==typeof t.preprocessEvent){const r=t.preprocessEvent.bind(t);e.on("preprocessEvent",(t,n)=>r(t,n,e))}if("function"==typeof t.processEvent){const r=t.processEvent.bind(t),n=Object.assign((t,n)=>r(t,n,e),{id:t.name});e.addEventProcessor(n)}["processSpan","processSegmentSpan"].forEach(r=>{const n=t[r];"function"==typeof n&&e.on(r,r=>n.call(t,r,e))}),i.DEBUG_BUILD&&o.debug.log(`Integration installed: ${t.name}`)}}function p(e){const t=(0,n.getClient)();t?t.addIntegration(e):i.DEBUG_BUILD&&o.debug.warn(`Cannot add integration "${e.name}" because no SDK Client is available.`)}function d(e){return e}function h(e,t){const r={...e,...t};for(const n in t){const i=e[n],o=t[n];if("function"==typeof i&&"function"==typeof o){const e=new Proxy(i,{apply:(e,t,r)=>(Reflect.apply(e,t,r),Reflect.apply(o,t,r))});r[n]=e}}return r}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{functionToStringIntegration:()=>s});var n=r(346),i=r(1468),o=r(357);const a=new WeakMap,s=(0,i.defineIntegration)(()=>({name:"FunctionToString",setupOnce(){const e=Function.prototype.toString;try{Function.prototype.toString=function(...t){const r=(0,o.getOriginalFunction)(this);let i;try{a.has((0,n.getClient)())&&void 0!==r&&(i=r)}catch{}return e.apply(i??this,t)}}catch{}},setup(e){a.set(e,!0)}}))},(e,t,r)=>{"use strict";r.r(t),r.d(t,{eventFiltersIntegration:()=>u,inboundFiltersIntegration:()=>p});var n=r(354),i=r(1468),o=r(358),a=r(1471),s=r(356),l=r(361);const c=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/,/^ResizeObserver loop completed with undelivered notifications.$/,/^Cannot redefine property: googletag$/,/^Can't find variable: gmo$/,/^undefined is not an object \(evaluating 'a\.[A-Z]'\)$/,/can't redefine non-configurable property "solana"/,/vv\(\)\.getRestrictions is not a function/,/Can't find variable: _AutofillCallbackHandler/,/Object Not Found Matching Id:\d+, MethodName:simulateEvent/,/^Java exception was raised during method invocation$/],u=(0,i.defineIntegration)((e={})=>{let t;return{name:"EventFilters",setup(r){const n=r.getOptions();t=d(e,n)},processEvent(r,i,c){if(!t){const r=c.getOptions();t=d(e,r)}return function(e,t){if(e.type){if("transaction"===e.type&&function(e,t){if(!t?.length)return!1;const r=e.transaction;return!!r&&(0,l.stringMatchesSomePattern)(r,t)}(e,t.ignoreTransactions))return n.DEBUG_BUILD&&o.debug.warn(`Event dropped due to being matched by \`ignoreTransactions\` option.\nEvent: ${(0,s.getEventDescription)(e)}`),!0}else{if(function(e,t){if(!t?.length)return!1;return(0,a.getPossibleEventMessages)(e).some(e=>(0,l.stringMatchesSomePattern)(e,t))}(e,t.ignoreErrors))return n.DEBUG_BUILD&&o.debug.warn(`Event dropped due to being matched by \`ignoreErrors\` option.\nEvent: ${(0,s.getEventDescription)(e)}`),!0;if(function(e){if(!e.exception?.values?.length)return!1;return!e.message&&!e.exception.values.some(e=>e.stacktrace||e.type&&"Error"!==e.type||e.value)}(e))return n.DEBUG_BUILD&&o.debug.warn(`Event dropped due to not having an error message, error type or stacktrace.\nEvent: ${(0,s.getEventDescription)(e)}`),!0;if(function(e,t){if(!t?.length)return!1;const r=h(e);return!!r&&(0,l.stringMatchesSomePattern)(r,t)}(e,t.denyUrls))return n.DEBUG_BUILD&&o.debug.warn(`Event dropped due to being matched by \`denyUrls\` option.\nEvent: ${(0,s.getEventDescription)(e)}.\nUrl: ${h(e)}`),!0;if(!function(e,t){if(!t?.length)return!0;const r=h(e);return!r||(0,l.stringMatchesSomePattern)(r,t)}(e,t.allowUrls))return n.DEBUG_BUILD&&o.debug.warn(`Event dropped due to not being matched by \`allowUrls\` option.\nEvent: ${(0,s.getEventDescription)(e)}.\nUrl: ${h(e)}`),!0}return!1}(r,t)?null:r}}}),p=(0,i.defineIntegration)((e={})=>({...u(e),name:"InboundFilters"}));function d(e={},t={}){return{allowUrls:[...e.allowUrls||[],...t.allowUrls||[]],denyUrls:[...e.denyUrls||[],...t.denyUrls||[]],ignoreErrors:[...e.ignoreErrors||[],...t.ignoreErrors||[],...e.disableErrorDefaults?[]:c],ignoreTransactions:[...e.ignoreTransactions||[],...t.ignoreTransactions||[]]}}function h(e){try{const t=[...e.exception?.values??[]].reverse().find(e=>void 0===e.mechanism?.parent_id&&e.stacktrace?.frames?.length),r=t?.stacktrace?.frames;return r?function(e=[]){for(let t=e.length-1;t>=0;t--){const r=e[t];if(r&&"<anonymous>"!==r.filename&&"[native code]"!==r.filename)return r.filename||null}return null}(r):null}catch{return n.DEBUG_BUILD&&o.debug.error(`Cannot extract url for event ${(0,s.getEventDescription)(e)}`),null}}},(e,t,r)=>{"use strict";function n(e){const t=[];e.message&&t.push(e.message);try{const r=e.exception.values[e.exception.values.length-1];r?.value&&(t.push(r.value),r.type&&t.push(`${r.type}: ${r.value}`))}catch{}return t}r.r(t),r.d(t,{getPossibleEventMessages:()=>n})},(e,t,r)=>{"use strict";r.r(t),r.d(t,{_shouldDropEvent:()=>l,dedupeIntegration:()=>s});var n=r(354),i=r(1468),o=r(358),a=r(364);const s=(0,i.defineIntegration)(()=>{let e;return{name:"Dedupe",processEvent(t){if(t.type)return t;try{if(l(t,e))return n.DEBUG_BUILD&&o.debug.warn("Event dropped due to being a duplicate of previously captured event."),null}catch{}return e=t}}});function l(e,t){return!!t&&(!!function(e,t){const r=e.message,n=t.message;if(!r&&!n)return!1;if(r&&!n||!r&&n)return!1;if(r!==n)return!1;if(!u(e,t))return!1;if(!c(e,t))return!1;return!0}(e,t)||!!function(e,t){const r=p(t),n=p(e);if(!r||!n)return!1;if(r.type!==n.type||r.value!==n.value)return!1;if(!u(e,t))return!1;if(!c(e,t))return!1;return!0}(e,t))}function c(e,t){let r=(0,a.getFramesFromEvent)(e),n=(0,a.getFramesFromEvent)(t);
39if(!r&&!n)return!0;if(r&&!n||!r&&n)return!1;if(n.length!==r.length)return!1;for(let e=0;e<n.length;e++){const t=n[e],i=r[e];if(t.filename!==i.filename||t.lineno!==i.lineno||t.colno!==i.colno||t.function!==i.function)return!1}return!0}function u(e,t){let r=e.fingerprint,n=t.fingerprint;if(!r&&!n)return!0;if(r&&!n||!r&&n)return!1;try{return!(r.join("")!==n.join(""))}catch{return!1}}function p(e){return e.exception?.values?.[0]}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{conversationIdIntegration:()=>s});var n=r(346),i=r(1468),o=r(372),a=r(379);const s=(0,i.defineIntegration)(()=>({name:"ConversationId",setup(e){e.on("spanStart",e=>{const t=(0,n.getCurrentScope)().getScopeData(),r=(0,n.getIsolationScope)().getScopeData(),i=t.conversationId||r.conversationId;if(i){const{op:t,data:r,description:n}=(0,a.spanToJSON)(e);if(!t?.startsWith("gen_ai.")&&!r["ai.operationId"]&&!n?.startsWith("ai."))return;e.setAttribute(o.GEN_AI_CONVERSATION_ID_ATTRIBUTE,i)}})}}))},(e,t,r)=>{"use strict";r.r(t),r.d(t,{BrowserClient:()=>c,applyDefaultOptions:()=>u});var n=r(1475),i=r(1498),o=r(1499),a=r(1484),s=r(1500),l=r(1502);class c extends n.Client{constructor(e){const t=u(e),r=l.WINDOW.SENTRY_SDK_SOURCE||(0,a.getSDKSource)();(0,o.applySdkMetadata)(t,"browser",["browser"],r),super(t);const{userInfo:n}=this.getDataCollectionOptions();t._metadata?.sdk&&(t._metadata.sdk.settings={infer_ip:n?"auto":"never",...t._metadata.sdk.settings});const{sendClientReports:s}=this._options;l.WINDOW.document&&l.WINDOW.document.addEventListener("visibilitychange",()=>{"hidden"===l.WINDOW.document.visibilityState&&(s&&this._flushOutcomes(),queueMicrotask(()=>{this.flush()}))}),n&&this.on("beforeSendSession",i.addAutoIpAddressToSession)}eventFromException(e,t){return(0,s.eventFromException)(this._options.stackParser,e,t,this._options.attachStacktrace)}eventFromMessage(e,t="info",r){return(0,s.eventFromMessage)(this._options.stackParser,e,t,r,this._options.attachStacktrace)}_prepareEvent(e,t,r,n){return e.platform=e.platform||"javascript",super._prepareEvent(e,t,r,n)}}function u(e){return{release:"string"==typeof __SENTRY_RELEASE__?__SENTRY_RELEASE__:l.WINDOW.SENTRY_RELEASE?.id,sendClientReports:!0,parentSpanIsAlwaysRootSpan:!0,...e}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{Client:()=>V});var n=r(1476),i=r(386),o=r(346),a=r(354),s=r(391),l=r(1468),c=r(1477),u=r(1485),p=r(355),d=r(385),h=r(392),f=r(1487),m=r(1489),g=r(1493),y=r(358),b=r(384),v=r(393),_=r(1471),S=r(359),E=r(366),T=r(356),w=r(378),x=r(396),O=r(1490),I=r(360),A=r(376),k=r(379),R=r(1491),C=r(1494),P=r(1495);const D="Not capturing exception because it's already been captured.",M="Discarded session because of missing or non-string release",N=Symbol.for("SentryInternalError"),L=Symbol.for("SentryDoNotSendEventError");function F(e){return{message:e,[N]:!0}}function B(e){return{message:e,[L]:!0}}function U(e){return(0,S.isObjectLike)(e)&&N in e}function j(e){return(0,S.isObjectLike)(e)&&L in e}function H(e,t,r,n,i){let o,a=0,s=!1;e.on(r,()=>{a=0,clearTimeout(o),s=!1}),e.on(t,t=>{if(a+=n(t),a>=8e5)i(e);else if(!s){const t=e.getOptions()._flushInterval??5e3;t>0&&(s=!0,o=(0,R.safeUnref)(setTimeout(()=>{i(e)},t)))}}),e.on("flush",()=>{i(e)})}class V{constructor(e){if(this._options=e,this._integrations={},this._numProcessing=0,this._outcomes={},this._hooks={},this._eventProcessors=[],this._promiseBuffer=(0,O.makePromiseBuffer)(e.transportOptions?.bufferSize??m.DEFAULT_TRANSPORT_BUFFER_SIZE),this._dataCollection=(0,P.resolveDataCollectionOptions)(e),e.dsn?this._dsn=(0,b.makeDsn)(e.dsn):a.DEBUG_BUILD&&y.debug.warn("No DSN provided, client will not send events."),this._dsn){const t=(0,n.getEnvelopeEndpointWithUrlEncodedAuth)(this._dsn,e.tunnel,e._metadata?e._metadata.sdk:void 0);this._transport=e.transport({tunnel:this._options.tunnel,recordDroppedEvent:this.recordDroppedEvent.bind(this),...e.transportOptions,url:t})}this._options.enableLogs=this._options.enableLogs??this._options._experiments?.enableLogs??!0,this._options.enableLogs&&H(this,"afterCaptureLog","flushLogs",W,c._INTERNAL_flushLogsBuffer);(this._options.enableMetrics??this._options._experiments?.enableMetrics??!0)&&H(this,"afterCaptureMetric","flushMetrics",$,u._INT
39ERNAL_flushMetricsBuffer)}captureException(e,t,r){const n=(0,T.uuid4)();if((0,T.checkOrSetAlreadyCaught)(e))return a.DEBUG_BUILD&&y.debug.log(D),n;const i={event_id:n,...t};return this._process(()=>this.eventFromException(e,i).then(e=>this._captureEvent(e,i,r)).then(e=>e),"error"),i.event_id}captureMessage(e,t,r,n){const i={event_id:(0,T.uuid4)(),...r},o=(0,S.isParameterizedString)(e)?e:String(e),a=(0,S.isPrimitive)(e),s=a?this.eventFromMessage(o,t,i):this.eventFromException(e,i);return this._process(()=>s.then(e=>this._captureEvent(e,i,n)),a?"unknown":"error"),i.event_id}captureEvent(e,t,r){const n=(0,T.uuid4)();if(t?.originalException&&(0,T.checkOrSetAlreadyCaught)(t.originalException))return a.DEBUG_BUILD&&y.debug.log(D),n;const i={event_id:n,...t},o=e.sdkProcessingMetadata||{},s=o.capturedSpanScope,l=o.capturedSpanIsolationScope,c=z(e.type);return this._process(()=>this._captureEvent(e,i,s||r,l),c),i.event_id}captureSession(e){this.sendSession(e),(0,p.updateSession)(e,{init:!1})}getDsn(){return this._dsn}getOptions(){return this._options}getDataCollectionOptions(){return this._dataCollection}getSdkMetadata(){return this._options._metadata}getTransport(){return this._transport}async flush(e){const t=this._transport;if(this.emit("flush"),!t)return!0;const r=await this._isClientDoneProcessing(e),n=await t.flush(e);return r&&n}async close(e){const t=await this.flush(e);return this.getOptions().enabled=!1,this.emit("close"),t}getEventProcessors(){return this._eventProcessors}addEventProcessor(e){this._eventProcessors.push(e)}init(){(this._isEnabled()||this._options.integrations.some(({name:e})=>e.startsWith("Spotlight")))&&this._setupIntegrations()}getIntegrationByName(e){return this._integrations[e]}getIntegrationNames(){return Object.keys(this._integrations)}addIntegration(e){const t=this._integrations[e.name];!t&&e.beforeSetup&&e.beforeSetup(this),(0,l.setupIntegration)(this,e,this._integrations),t||(0,l.afterSetupIntegrations)(this,[e])}sendEvent(e,t={}){this.emit("beforeSendEvent",e,t);const r=(0,f.extractGenAiSpansFromEvent)(e,this);let n=(0,s.createEventEnvelope)(e,this._dsn,this._options._metadata,this._options.tunnel);for(const e of t.attachments||[])n=(0,v.addItemToEnvelope)(n,(0,v.createAttachmentEnvelopeItem)(e));r&&(n=(0,v.addItemToEnvelope)(n,r)),this.sendEnvelope(n).then(t=>this.emit("afterSendEvent",e,t))}sendSession(e){const{release:t,environment:r=i.DEFAULT_ENVIRONMENT}=this._options;if("aggregates"in e){const n=e.attrs||{};if(!n.release&&!t)return void(a.DEBUG_BUILD&&y.debug.warn(M));n.release=n.release||t,n.environment=n.environment||r,e.attrs=n}else{if(!e.release&&!t)return void(a.DEBUG_BUILD&&y.debug.warn(M));e.release=e.release||t,e.environment=e.environment||r}this.emit("beforeSendSession",e);const n=(0,s.createSessionEnvelope)(e,this._dsn,this._options._metadata,this._options.tunnel);this.sendEnvelope(n)}recordDroppedEvent(e,t,r=1){if(this._options.sendClientReports){const n=`${e}:${t}`;a.DEBUG_BUILD&&y.debug.log(`Recording outcome: "${n}"${r>1?` (${r} times)`:""}`),this._outcomes[n]=(this._outcomes[n]||0)+r}}on(e,t){const r=this._hooks[e]=this._hooks[e]||new Set,n=(...e)=>t(...e);return r.add(n),()=>{r.delete(n)}}emit(e,...t){const r=this._hooks[e];r&&r.forEach(e=>e(...t))}async sendEnvelope(e){if(this.emit("beforeEnvelope",e),this._isEnabled()&&this._transport)try{return await this._transport.send(e)}catch(e){return a.DEBUG_BUILD&&y.debug.error("Error while sending envelope:",e),{}}return a.DEBUG_BUILD&&y.debug.error("Transport disabled"),{}}registerCleanup(e){}dispose(){}_setupIntegrations(){const{integrations:e}=this._options;this._integrations=(0,l.setupIntegrations)(this,e),(0,l.afterSetupIntegrations)(this,e)}_updateSessionFromEvent(e,t){let r="fatal"===t.level,n=!1;const i=t.exception?.values;if(i){n=!0,r=!1;for(const e of i)if(!1===e.mechanism?.handled){r=!0;break}}const o="ok"===e.status;(o&&0===e.errors||o&&r)&&((0,p.updateSession)(e,{...r&&{status:"crashed"},errors:e.errors||Number(n||r)}),this.captureSession(e))}async _isClientDoneProcessing(e){let t=0;for(;!e||t<e;){if(await new Promise(e=>setTimeout(e,1)),!this._numProcessing)return!0;t++}return!1}_isEnabled(){return!1!==this.getOptions().enabled&&void 0!==this._transport}_prepareEvent(e,t,r,n){const i=this.getOptions(),a=this.getIntegrationNames();
39return!t.integrations&&a.length&&(t.integrations=a),this.emit("preprocessEvent",e,t),e.type||n.setLastEventId(e.event_id||t.event_id),(0,x.prepareEvent)(i,e,t,r,this,n).then(e=>{if(null===e)return e;this.emit("postprocessEvent",e,t),e.contexts={trace:{...e.contexts?.trace,...(0,o.getTraceContextFromScope)(r)},...e.contexts};const n=(0,d.getDynamicSamplingContextFromScope)(this,r);return e.sdkProcessingMetadata={dynamicSamplingContext:n,...e.sdkProcessingMetadata},e})}_captureEvent(e,t={},r=(0,o.getCurrentScope)(),n=(0,o.getIsolationScope)()){return a.DEBUG_BUILD&&G(e)&&y.debug.log(`Captured error event \`${(0,_.getPossibleEventMessages)(e)[0]||"<unknown>"}\``),this._processEvent(e,t,r,n).then(e=>e.event_id,e=>{a.DEBUG_BUILD&&(j(e)?y.debug.log(e.message):U(e)?y.debug.warn(e.message):y.debug.warn(e))})}_processEvent(e,t,r,n){const i=this.getOptions(),{sampleRate:o}=i,a=q(e),s=G(e),l=`before send for type \`${e.type||"error"}\``,c=void 0===o?void 0:(0,w.parseSampleRate)(o),u=z(e.type);return this._prepareEvent(e,t,r,n).then(e=>{if(null===e)throw this.recordDroppedEvent("event_processor",u),B("An event processor returned `null`, will not send event.");if(!0===t.data?.__sentry__)return e;const r=function(e,t,r,n){const{beforeSend:i,beforeSendTransaction:o,ignoreSpans:a}=t,s=!(0,h.isStreamedBeforeSendSpanCallback)(t.beforeSendSpan)&&t.beforeSendSpan;let l=r;if(G(l)&&i)return i(l,n);if(q(l)){if(s||a){const t=(0,C.convertTransactionEventToSpanJson)(l);if(a?.length&&(0,A.shouldIgnoreSpan)({description:t.description,op:t.op,attributes:t.data},a))return null;if(s){const e=s(t);e?l=(0,E.merge)(r,(0,C.convertSpanJsonToTransactionEvent)(e)):(0,k.showSpanDropWarning)()}if(l.spans){const t=[],r=l.spans;for(const e of r)if(a?.length&&(0,A.shouldIgnoreSpan)({description:e.description,op:e.op,attributes:e.data},a))(0,A.reparentChildSpans)(r,e);else if(s){const r=s(e);r?t.push(r):((0,k.showSpanDropWarning)(),t.push(e))}else t.push(e);const n=l.spans.length-t.length;n&&e.recordDroppedEvent("before_send","span",n),l.spans=t}}if(o){if(l.spans){const e=l.spans.length;l.sdkProcessingMetadata={...r.sdkProcessingMetadata,spanCountBeforeProcessing:e}}return o(l,n)}}return l}(this,i,e,t);return function(e,t){const r=`${t} must return \`null\` or a valid event.`;if((0,S.isThenable)(e))return e.then(e=>{if(!(0,S.isPlainObject)(e)&&null!==e)throw F(r);return e},e=>{throw F(`${t} rejected with ${e}`)});if(!(0,S.isPlainObject)(e)&&null!==e)throw F(r);return e}(r,l)}).then(i=>{if(null===i){if(this.recordDroppedEvent("before_send",u),a){const t=1+(e.spans||[]).length;this.recordDroppedEvent("before_send","span",t)}throw B(`${l} returned \`null\`, will not send event.`)}const p=r.getSession()||n.getSession();if(s&&p&&this._updateSessionFromEvent(p,i),s&&"number"==typeof c&&(0,I.safeMathRandom)()>c)throw this.recordDroppedEvent("sample_rate","error"),B(`Discarding event because it's not included in the random sample (sampling rate = ${o})`);if(a){const e=(i.sdkProcessingMetadata?.spanCountBeforeProcessing||0)-(i.spans?i.spans.length:0);e>0&&this.recordDroppedEvent("before_send","span",e)}const d=i.transaction_info;if(a&&d&&i.transaction!==e.transaction){const e="custom";i.transaction_info={...d,source:e}}return this.sendEvent(i,t),i}).then(null,e=>{if(j(e)||U(e))throw e;throw this.captureException(e,{mechanism:{handled:!1,type:"internal"},data:{__sentry__:!0},originalException:e}),F(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.\nReason: ${e}`)})}_process(e,t){this._numProcessing++,this._promiseBuffer.add(e).then(e=>(this._numProcessing--,e),e=>(this._numProcessing--,e===O.SENTRY_BUFFER_FULL_ERROR&&this.recordDroppedEvent("queue_overflow",t),e))}_clearOutcomes(){const e=this._outcomes;return this._outcomes={},Object.entries(e).map(([e,t])=>{const[r,n]=e.split(":");return{reason:r,category:n,quantity:t}})}_flushOutcomes(){a.DEBUG_BUILD&&y.debug.log("Flushing outcomes...");const e=this._clearOutcomes();if(0===e.length)return void(a.DEBUG_BUILD&&y.debug.log("No outcomes to send"));if(!this._dsn)return void(a.DEBUG_BUILD&&y.debug.log("No dsn provided, will not send outcomes"));a.DEBUG_BUILD&&y.debug.log("Sending outcomes:",e);const t=(0,g.createClientReportEnvelope)(e,this._options.tunnel&&(0,b.dsnToString)(this._dsn));this.sendEnvelope(t)}}function z(e){return"replay_event"===e?"replay":e||"error"}function G(e){return void 0===e.type}function q(e){return"transaction"===e.type}function $(e){let t=0;return e.name&&(t+=2*e.name.length),t+=8,t+Y(e.attributes)}function W(e){let t=0;return e.message&&(t+=2*e.message.length),t+Y(e.attributes)}function Y(e){if(!e)return 0;let t=0;
39return Object.values(e).forEach(e=>{Array.isArray(e)?t+=e.length*K(e[0]):(0,S.isPrimitive)(e)?t+=K(e):t+=100}),t}function K(e){return"string"==typeof e?2*e.length:"number"==typeof e?8:"boolean"==typeof e?4:0}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{SENTRY_API_VERSION:()=>i,getEnvelopeEndpointWithUrlEncodedAuth:()=>a,getReportDialogEndpoint:()=>s});var n=r(384);const i="7";function o(e){const t=e.protocol?`${e.protocol}:`:"",r=e.port?`:${e.port}`:"";return`${t}//${e.host}${r}${e.path?`/${e.path}`:""}/api/`}function a(e,t,r){return t||`${function(e){return`${o(e)}${e.projectId}/envelope/`}(e)}?${function(e,t){const r={sentry_version:i};return e.publicKey&&(r.sentry_key=e.publicKey),t&&(r.sentry_client=`${t.name}/${t.version}`),new URLSearchParams(r).toString()}(e,r)}`}function s(e,t){const r=(0,n.makeDsn)(e);if(!r)return"";const i=`${o(r)}embed/error-page/`;let a=`dsn=${(0,n.dsnToString)(r)}`;for(const e in t)if("dsn"!==e&&"onClose"!==e)if("user"===e){const e=t.user;if(!e)continue;e.name&&(a+=`&name=${encodeURIComponent(e.name)}`),e.email&&(a+=`&email=${encodeURIComponent(e.email)}`)}else a+=`&${encodeURIComponent(e)}=${encodeURIComponent(t[e])}`;return`${i}?${a}`}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{_INTERNAL_captureLog:()=>v,_INTERNAL_captureSerializedLog:()=>b,_INTERNAL_flushLogsBuffer:()=>_,_INTERNAL_getLogBuffer:()=>S,_removeLoneSurrogates:()=>w});var n=r(380),i=r(348),o=r(346),a=r(354),s=r(358),l=r(359),c=r(400),u=r(368),p=r(365),d=r(1478),h=r(1479),f=r(1480),m=r(1481);const g=100;function y(e,t,r,n=!0){!r||e[t]&&!n||(e[t]=r)}function b(e,t){const r=E(),n=S(e);void 0===n?r.set(e,[t]):n.length>=g?(_(e,n),r.set(e,[t])):r.set(e,[...n,t])}function v(e,t=(0,o.getCurrentScope)(),r=b){const i=t?.getClient()??(0,o.getClient)();if(!i)return void(a.DEBUG_BUILD&&s.debug.warn("No client available to capture log."));const{release:m,environment:g,enableLogs:v=!0,beforeSendLog:_}=i.getOptions();if(!v)return void(a.DEBUG_BUILD&&s.debug.warn("logging option not enabled, log will not be captured."));const[,S]=(0,h._getTraceInfoFromScope)(i,t),E={...e.attributes},{user:{id:x,email:O,username:I},attributes:A={}}=(0,c.getCombinedScopeData)((0,o.getIsolationScope)(),t);y(E,"user.id",x,!1),y(E,"user.email",O,!1),y(E,"user.name",I,!1),y(E,"sentry.release",m),y(E,"sentry.environment",g);const{name:k,version:R}=i.getSdkMetadata()?.sdk??{};y(E,"sentry.sdk.name",k),y(E,"sentry.sdk.version",R);const C=i.getIntegrationByName("Replay"),P=C?.getReplayId(!0);y(E,"sentry.replay_id",P),P&&"buffer"===C?.getRecordingMode()&&y(E,"sentry._internal.replay_is_buffering",!0);const D=e.message;if((0,l.isParameterizedString)(D)){const{__sentry_template_string__:e,__sentry_template_values__:t=[]}=D;t?.length&&(E["sentry.message.template"]=e),t.forEach((e,t)=>{E[`sentry.message.parameter.${t}`]=e})}const M=(0,u._getSpanForScope)(t);y(E,"sentry.trace.parent_span_id",M?.spanContext().spanId);const N={...e,attributes:E};i.emit("beforeCaptureLog",N);const L=_?(0,s.consoleSandbox)(()=>_(N)):N;if(!L)return i.recordDroppedEvent("before_send","log_item",1),void(a.DEBUG_BUILD&&s.debug.warn("beforeSendLog returned null, log will not be captured."));const{level:F,message:B,attributes:U={},severityNumber:j}=L,H=(0,p.timestampInSeconds)(),V=(0,d.getSequenceAttribute)(H);r(i,{timestamp:H,level:F,body:w(String(B)),trace_id:S?.trace_id,severity_number:j??f.SEVERITY_TEXT_TO_SEVERITY_NUMBER[F],attributes:T({...(0,n.serializeAttributes)(A),...(0,n.serializeAttributes)(U,!0),[V.key]:V.value})}),i.emit("afterCaptureLog",L)}function _(e,t){const r=t??S(e)??[];if(0===r.length)return;const n=e.getOptions(),i=(0,m.createLogEnvelope)(r,n._metadata,n.tunnel,e.getDsn(),e.getDataCollectionOptions().userInfo);E().set(e,[]),e.emit("flushLogs"),e.sendEnvelope(i)}function S(e){return E().get(e)}function E(){return(0,i.getGlobalSingleton)("clientToLogBufferMap",()=>new WeakMap)}function T(e){const t={};for(const[r,n]of Object.entries(e)){const e=w(r);"string"===n.type?t[e]={...n,value:w(n.value)}:t[e]=n}return t}function w(e){const t=Object(e),r=t.isWellFormed,n=t.toWellFormed;return"function"==typeof r&&"function"==typeof n?r.call(e)?e:n.call(e):e}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{getSequenceAttribute:()=>a});const n="sentry.timestamp.sequence";let i,o=0;function a(e){const t=Math.floor(1e3*e);void 0!==i&&t!==i&&(o=0);const r=o;return o++,i=t,{key:n,value:{value:r,type:"integer"}}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{_getTraceInfoFromScope:()=>a});var n=r(346),i=r(385),o=r(379);function a(e,t){return t?(0,n.withScope)(t,()=>{const r=(0,o.getActiveSpan)(),a=r?(0,o.spanToTraceContext)(r):(0,n.getTraceContextFromScope)(t);return[r?(0,i.getDynamicSamplingContextFromSpan)(r):(0,i.getDynamicSamplingContextFromScope)(e,t),a]}):[void 0,void 0]}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{SEVERITY_TEXT_TO_SEVERITY_NUMBER:()=>n});const n={trace:1,debug:5,info:9,warn:13,error:17,fatal:21}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{createLogContainerEnvelopeItem:()=>a,createLogEnvelope:()=>s});
39var n=r(384),i=r(393),o=r(1482);function a(e,t){const r=t?"auto":"never";return[{type:"log",item_count:e.length,content_type:"application/vnd.sentry.items.log+json"},{version:2,...(0,o.isBrowser)()&&{ingest_settings:{infer_ip:r,infer_user_agent:r}},items:e}]}function s(e,t,r,o,s){const l={};return t?.sdk&&(l.sdk={name:t.sdk.name,version:t.sdk.version}),r&&o&&(l.dsn=(0,n.dsnToString)(o)),(0,i.createEnvelope)(l,[a(e,s)])}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{isBrowser:()=>o});var n=r(1483),i=r(350);function o(){return"undefined"!=typeof window&&(!(0,n.isNodeEnv)()||function(){const e=i.GLOBAL_OBJ.process;return"renderer"===e?.type}())}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{isNodeEnv:()=>i,loadModule:()=>a});var n=r(1484);function i(){return!(0,n.isBrowserBundle)()&&"[object process]"===Object.prototype.toString.call("undefined"!=typeof process?process:0)}function o(e,t){return e.require(t)}function a(e,t=module){let r;try{r=o(t,e)}catch{}if(!r)try{const{cwd:n}=o(t,"process");r=o(t,`${n()}/node_modules/${e}`)}catch{}return r}},(e,t,r)=>{"use strict";function n(){return"undefined"!=typeof __SENTRY_BROWSER_BUNDLE__&&!!__SENTRY_BROWSER_BUNDLE__}function i(){
40/*! __SENTRY_SDK_SOURCE__ */
41return"npm"}r.r(t),r.d(t,{getSDKSource:()=>i,isBrowserBundle:()=>n})},(e,t,r)=>{"use strict";r.r(t),r.d(t,{_INTERNAL_captureMetric:()=>y,_INTERNAL_captureSerializedMetric:()=>g,_INTERNAL_flushMetricsBuffer:()=>b,_INTERNAL_getMetricBuffer:()=>v});var n=r(380),i=r(348),o=r(346),a=r(354),s=r(358),l=r(400),c=r(368),u=r(365),p=r(1478),d=r(1479),h=r(1486);const f=1e3;function m(e,t,r,n=!0){!r||!n&&t in e||(e[t]=r)}function g(e,t){const r=_(),n=v(e);void 0===n?r.set(e,[t]):n.length>=f?(b(e,n),r.set(e,[t])):r.set(e,[...n,t])}function y(e,t){const r=t?.scope??(0,o.getCurrentScope)(),i=t?.captureSerializedMetric??g,h=r?.getClient()??(0,o.getClient)();if(!h)return void(a.DEBUG_BUILD&&s.debug.warn("No client available to capture metric."));const{_experiments:f,enableMetrics:y,beforeSendMetric:b}=h.getOptions();if(!(y??f?.enableMetrics??!0))return void(a.DEBUG_BUILD&&s.debug.warn("metrics option not enabled, metric will not be captured."));const{user:v,attributes:_}=(0,l.getCombinedScopeData)((0,o.getIsolationScope)(),r),S=function(e,t,r){const{release:n,environment:i}=t.getOptions(),o={...e.attributes};m(o,"user.id",r.id,!1),m(o,"user.email",r.email,!1),m(o,"user.name",r.username,!1),m(o,"sentry.release",n),m(o,"sentry.environment",i);const{name:a,version:s}=t.getSdkMetadata()?.sdk??{};m(o,"sentry.sdk.name",a),m(o,"sentry.sdk.version",s);const l=t.getIntegrationByName("Replay"),c=l?.getReplayId(!0);return m(o,"sentry.replay_id",c),c&&"buffer"===l?.getRecordingMode()&&m(o,"sentry._internal.replay_is_buffering",!0),{...e,attributes:o}}(e,h,v);h.emit("processMetric",S);const E=b||f?.beforeSendMetric,T=E?E(S):S;if(!T)return void(a.DEBUG_BUILD&&s.debug.log("`beforeSendMetric` returned `null`, will not send metric."));const w=function(e,t,r,i){const[,o]=(0,d._getTraceInfoFromScope)(t,r),a=(0,c._getSpanForScope)(r),s=a?a.spanContext().traceId:o?.trace_id,l=a?a.spanContext().spanId:void 0,h=(0,u.timestampInSeconds)(),f=(0,p.getSequenceAttribute)(h);return{timestamp:h,trace_id:s??"",span_id:l,name:e.name,type:e.type,unit:e.unit,value:e.value,attributes:{...(0,n.serializeAttributes)(i),...(0,n.serializeAttributes)(e.attributes,"skip-undefined"),[f.key]:f.value}}}(T,h,r,_);a.DEBUG_BUILD&&s.debug.log("[Metric]",w),i(h,w),h.emit("afterCaptureMetric",T)}function b(e,t){const r=t??v(e)??[];if(0===r.length)return;const n=e.getOptions(),i=(0,h.createMetricEnvelope)(r,n._metadata,n.tunnel,e.getDsn(),e.getDataCollectionOptions().userInfo);_().set(e,[]),e.emit("flushMetrics"),e.sendEnvelope(i)}function v(e){return _().get(e)}function _(){return(0,i.getGlobalSingleton)("clientToMetricBufferMap",()=>new WeakMap)}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{createMetricContainerEnvelopeItem:()=>a,createMetricEnvelope:()=>s});var n=r(384),i=r(393),o=r(1482);function a(e,t){const r=t?"auto":"never";return[{type:"trace_metric",item_count:e.length,content_type:"application/vnd.sentry.items.trace-metric+json"},{version:2,...(0,o.isBrowser)()&&{ingest_settings:{infer_ip:r,infer_user_agent:r}},items:e}]}function s(e,t,r,o,s){const l={};return t?.sdk&&(l.sdk={name:t.sdk.name,version:t.sdk.version}),r&&o&&(l.dsn=(0,n.dsnToString)(o)),(0,i.createEnvelope)(l,[a(e,s)])}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{extractGenAiSpansFromEvent:()=>a});var n=r(1482),i=r(377),o=r(1488);function a(e,t){if("transaction"!==e.type||!e.spans?.length||!e.sdkProcessingMetadata?.hasGenAiSpans||!1===t.getOptions().streamGenAiSpans||(0,i.hasSpanStreamingEnabled)(t))return;const r=[],a=[];for(const t of e.spans)t.op?.startsWith("gen_ai.")?r.push((0,o.spanJsonToSerializedStreamedSpan)(t)):a.push(t);if(0===r.length)return;e.spans=a;const s=t.getDataCollectionOptions().userInfo?"auto":"never";return[{type:"span",item_count:r.length,content_type:"application/vnd.sentry.items.span.v2+json"},{version:2,...(0,n.isBrowser)()&&{ingest_settings:{infer_ip:s,infer_user_agent:s}},items:r}]}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{spanJsonToSerializedStreamedSpan:()=>i});var n=r(379);function i(e){const t={trace_id:e.trace_id,span_id:e.span_id,parent_span_id:e.parent_span_id,name:e.description||"",start_timestamp:e.start_timestamp,end_timestamp:e.timestamp||e.start_timestamp,status:e.status&&"ok"!==e.status&&"cancelled"!==e.status?"error":"ok",is_segment:!1,attributes:{...e.data},links:e.links};return(0,n.streamedSpanJsonToSerializedSpan)(t)}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{DEFAULT_TRANSPORT_BUFFER_SIZE:()=>l,createTransport:()=>c});var n=r(354),i=r(358),o=r(393),a=r(1490),s=r(1492);const l=64;function c(e,t,r=(0,a.makePromiseBuffer)(e.bufferSize||l)){let c={};return{send:function(l){const u=[];
41if((0,o.forEachEnvelopeItem)(l,(t,r)=>{const n=(0,o.envelopeItemTypeToDataCategory)(r);(0,s.isRateLimited)(c,n)?e.recordDroppedEvent("ratelimit_backoff",n):u.push(t)}),0===u.length)return Promise.resolve({});const p=(0,o.createEnvelope)(l[0],u),d=t=>{(0,o.envelopeContainsItemType)(p,["client_report"])?n.DEBUG_BUILD&&i.debug.warn(`Dropping client report. Will not send outcomes (reason: ${t}).`):(0,o.forEachEnvelopeItem)(p,(r,n)=>{e.recordDroppedEvent(t,(0,o.envelopeItemTypeToDataCategory)(n))})};return r.add(()=>t({body:(0,o.serializeEnvelope)(p)}).then(e=>413===e.statusCode?(n.DEBUG_BUILD&&i.debug.error("Sentry responded with status code 413. Envelope was discarded due to exceeding size limits."),d("send_error"),e):(n.DEBUG_BUILD&&void 0!==e.statusCode&&(e.statusCode<200||e.statusCode>=300)&&i.debug.warn(`Sentry responded with status code ${e.statusCode} to sent event.`),c=(0,s.updateRateLimits)(c,e),e),e=>{throw d("network_error"),n.DEBUG_BUILD&&i.debug.error("Encountered error running transport request:",e),e})).then(e=>e,e=>{if(e===a.SENTRY_BUFFER_FULL_ERROR)return n.DEBUG_BUILD&&i.debug.error("Skipped sending event because buffer is full."),d("queue_overflow"),Promise.resolve({});throw e})},flush:e=>r.drain(e)}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{SENTRY_BUFFER_FULL_ERROR:()=>o,makePromiseBuffer:()=>a});var n=r(398),i=r(1491);const o=Symbol.for("SentryBufferFullError");function a(e=100){const t=new Set;function r(e){t.delete(e)}return{get $(){return Array.from(t)},add:function(i){if(!(t.size<e))return(0,n.rejectedSyncPromise)(o);const a=i();return t.add(a),a.then(()=>r(a),()=>r(a)),a},drain:function(e){if(!t.size)return(0,n.resolvedSyncPromise)(!0);const r=Promise.allSettled(Array.from(t)).then(()=>!0);if(!e)return r;const o=[r,new Promise(t=>(0,i.safeUnref)(setTimeout(()=>t(!1),e)))];return Promise.race(o)}}}},(e,t,r)=>{"use strict";function n(e){return"object"==typeof e&&"function"==typeof e.unref&&e.unref(),e}r.r(t),r.d(t,{safeUnref:()=>n})},(e,t,r)=>{"use strict";r.r(t),r.d(t,{DEFAULT_RETRY_AFTER:()=>i,disabledUntil:()=>a,isRateLimited:()=>s,parseRetryAfterHeader:()=>o,updateRateLimits:()=>l});var n=r(360);const i=6e4;function o(e,t=(0,n.safeDateNow)()){const r=parseInt(`${e}`,10);if(!isNaN(r))return 1e3*r;const o=Date.parse(`${e}`);return isNaN(o)?i:o-t}function a(e,t){return e[t]||e.all||0}function s(e,t,r=(0,n.safeDateNow)()){return a(e,t)>r}function l(e,{statusCode:t,headers:r},i=(0,n.safeDateNow)()){const a={...e},s=r?.["x-sentry-rate-limits"],l=r?.["retry-after"];if(s)for(const e of s.trim().split(",")){const[t,r,,,n]=e.split(":",5),o=parseInt(t,10),s=1e3*(isNaN(o)?60:o);if(r)for(const e of r.split(";"))"metric_bucket"===e&&n&&!n.split(";").includes("custom")||(a[e]=i+s);else a.all=i+s}else l?a.all=i+o(l,i):429===t&&(a.all=i+6e4);return a}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{createClientReportEnvelope:()=>o});var n=r(393),i=r(365);function o(e,t,r){const o=[{type:"client_report"},{timestamp:r||(0,i.dateTimestampInSeconds)(),discarded_events:e}];return(0,n.createEnvelope)(t?{dsn:t}:{},[o])}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{convertSpanJsonToTransactionEvent:()=>o,convertTransactionEventToSpanJson:()=>i});var n=r(372);function i(e){const{trace_id:t,parent_span_id:r,span_id:i,status:o,origin:a,data:s,op:l}=e.contexts?.trace??{};return{data:s??{},description:e.transaction,op:l,parent_span_id:r,span_id:i??"",start_timestamp:e.start_timestamp??0,status:o,timestamp:e.timestamp,trace_id:t??"",origin:a,profile_id:s?.[n.SEMANTIC_ATTRIBUTE_PROFILE_ID],exclusive_time:s?.[n.SEMANTIC_ATTRIBUTE_EXCLUSIVE_TIME],measurements:e.measurements,is_segment:!0}}function o(e){return{type:"transaction",timestamp:e.timestamp,start_timestamp:e.start_timestamp,transaction:e.description,contexts:{trace:{trace_id:e.trace_id,span_id:e.span_id,parent_span_id:e.parent_span_id,op:e.op,status:e.status,origin:e.origin,data:{...e.data,...e.profile_id&&{[n.SEMANTIC_ATTRIBUTE_PROFILE_ID]:e.profile_id},...e.exclusive_time&&{[n.SEMANTIC_ATTRIBUTE_EXCLUSIVE_TIME]:e.exclusive_time}}}},measurements:e.measurements}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{resolveDataCollectionOptions:()=>o});var n=r(1496);const i={userInfo:!0,cookies:!0,httpHeaders:{request:!0,response:!0},httpBodies:["incomingRequest","outgoingRequest","incomingResponse","outgoingResponse"],urlQueryParams:!0,graphQL:{document:!0,variables:!0},genAI:{inputs:!0,outputs:!0}
41,databaseQueryData:!0,stackFrameVariables:!0,frameContextLines:5};function o(e){const t=null!=e.dataCollection?i:(0,n.defaultPiiToCollectionOptions)(e.sendDefaultPii),r=e.dataCollection??{};return{userInfo:r.userInfo??t.userInfo,cookies:r.cookies??t.cookies,httpHeaders:{request:r.httpHeaders?.request??t.httpHeaders.request,response:r.httpHeaders?.response??t.httpHeaders.response},httpBodies:r.httpBodies??t.httpBodies,urlQueryParams:r.urlQueryParams??r.queryParams??t.urlQueryParams,graphQL:{document:r.graphQL?.document??t.graphQL.document,variables:r.graphQL?.variables??t.graphQL.variables},genAI:{inputs:r.genAI?.inputs??t.genAI.inputs,outputs:r.genAI?.outputs??t.genAI.outputs},databaseQueryData:r.databaseQueryData??t.databaseQueryData,stackFrameVariables:r.stackFrameVariables??t.stackFrameVariables,frameContextLines:r.frameContextLines??t.frameContextLines}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{defaultPiiToCollectionOptions:()=>i});var n=r(1497);function i(e){return!0===e?{userInfo:!0,cookies:!0,httpHeaders:{request:!0,response:!0},httpBodies:["incomingRequest","outgoingRequest","incomingResponse","outgoingResponse"],urlQueryParams:!0,graphQL:{document:!0,variables:!0},genAI:{inputs:!0,outputs:!0},databaseQueryData:!0,stackFrameVariables:!0,frameContextLines:7}:{userInfo:!1,cookies:{deny:n.PII_HEADER_SNIPPETS},httpHeaders:{request:{deny:n.PII_HEADER_SNIPPETS},response:{deny:n.PII_HEADER_SNIPPETS}},httpBodies:[],urlQueryParams:{deny:n.PII_HEADER_SNIPPETS},graphQL:{document:!0,variables:!0},genAI:{inputs:!1,outputs:!1},databaseQueryData:!1,stackFrameVariables:!0,frameContextLines:7}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{FILTERED_VALUE:()=>n,PII_HEADER_SNIPPETS:()=>i,SENSITIVE_COOKIE_NAME_SNIPPETS:()=>a,SENSITIVE_KEY_SNIPPETS:()=>o});const n="[Filtered]",i=["forwarded","-ip","remote-","via","-user"],o=["auth","token","secret","session","password","passwd","pwd","key","jwt","bearer","sso","saml","csrf","xsrf","credentials","sid","identity","set-cookie","cookie"],a=[".sid","sessid","remember","oidc","pkce","nonce","__secure-","__host-","awsalb","awselb","akamai","__stripe","cognito","firebase","supabase","sb-","mfa","2fa"]},(e,t,r)=>{"use strict";function n(e){void 0===e.user?.ip_address&&(e.user={...e.user,ip_address:"{{auto}}"})}function i(e){"aggregates"in e?void 0===e.attrs?.ip_address&&(e.attrs={...e.attrs,ip_address:"{{auto}}"}):void 0===e.ipAddress&&(e.ipAddress="{{auto}}")}r.r(t),r.d(t,{addAutoIpAddressToSession:()=>i,addAutoIpAddressToUser:()=>n})},(e,t,r)=>{"use strict";r.r(t),r.d(t,{applySdkMetadata:()=>i});var n=r(349);function i(e,t,r=[t],i="npm"){const o=(e._metadata=e._metadata||{}).sdk=e._metadata.sdk||{};o.name||(o.name=`sentry.javascript.${t}`,o.packages=r.map(e=>({name:`${i}:@sentry/${e}`,version:n.SDK_VERSION})),o.version=n.SDK_VERSION)}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{eventFromException:()=>b,eventFromMessage:()=>v,eventFromUnknownInput:()=>_,exceptionFromError:()=>u,extractMessage:()=>y,extractType:()=>g});var n=r(346),i=r(359),o=r(356),a=r(362),s=r(357),l=r(398),c=r(1501);function u(e,t){const r=h(e,t),n={type:g(t),value:y(t)};return r.length&&(n.stacktrace={frames:r}),void 0===n.type&&""===n.value&&(n.value="Unrecoverable error caught"),n}function p(e,t,r,o){const s=(0,n.getClient)(),l=s?.getOptions().normalizeDepth,c=(p=t,Object.values(p).find(i.isError));var p;const d={__serialized__:(0,a.normalizeToSize)(t,l)};if(c)return{exception:{values:[u(e,c)]},extra:d};const f={exception:{values:[{type:(0,i.isEvent)(t)?t.constructor.name:o?"UnhandledRejection":"Error",value:E(t,{isUnhandledRejection:o})}]},extra:d};if(r){const t=h(e,r);t.length&&(f.exception.values[0].stacktrace={frames:t})}return f}function d(e,t){return{exception:{values:[u(e,t)]}}}function h(e,t){const r=t.stacktrace||t.stack||"",n=function(e){if(e&&f.test(e.message))return 1;return 0}(t),i=function(e){if("number"==typeof e.framesToPop)return e.framesToPop;return 0}(t);try{return e(r,n,i)}catch{}return[]}const f=/Minified React error #\d+;/i;function m(e){return"undefined"!=typeof WebAssembly&&void 0!==WebAssembly.Exception&&e instanceof WebAssembly.Exception}function g(e){const t=e?.name;if(!t&&m(e)){return e.message&&Array.isArray(e.message)&&2==e.message.length?e.message[0]:"WebAssembly.Exception"}return t}function y(e){const t=e?.message;return m(e)?Array.isArray(e.message)&&2==e.message.length?e.message[1]:"wasm exception":t?t.error&&"string"==typeof t.error.message?(0,c._enhanceErrorWithSentryInfo)(t.error):(0,c._enhanceErrorWithSentryInfo)(e):"No error message"}function b(e,t,r,n){const i=_(e,t,r?.syntheticException||void 0,n);return(0,o.addExceptionMechanism)(i),i.level="error",r?.event_id&&(i.event_id=r.event_id),(0,l.resolvedSyncPromise)(i)}function v(e,t,r="info",n,i){const o=S(e,t,n?.syntheticException||void 0,i);return o.level=r,n?.event_id&&(o.event_id=n.event_id),(0,l.resolvedSyncPromise)(o)}function _(e,t,r,n,a){let s;if((0,i.isErrorEvent)(t)&&t.error){return d(e,t.error)}if((0,i.isDOMError)(t)||(0,i.isDOMException)(t)){const a=t;if("stack"in t){s=d(e,t);const i=s.exception?.values?.[0];if(n&&r&&i&&!i.stacktrace){const t=h(e,r);t.length&&(i.stacktrace={frames:t},(0,o.addExceptionMechanism)(s,{synthetic:!0}))}}else{const t=a.name||((0,i.isDOMError)(a)?"DOMError":"DOMException"),l=a.message?`${t}: ${a.message}`:t;s=S(e,l,r,n),(0,o.addExceptionTypeValue)(s,l)}return"code"in a&&(s.tags={...s.tags,"DOMException.code":`${a.code}`}),s}if((0,i.isError)(t))return d(e,t);if((0,i.isPlainObject)(t)||(0,i.isEvent)(t)){return s=p(e,t,r,a),(0,o.addExceptionMechanism)(s,{synthetic:!0}),s}return s=S(e,t,r,n),(0,o.addExceptionTypeValue)(s,`${t}`,void 0),(0,o.addExceptionMechanism)(s,{synthetic:!0}),s}function S(e,t,r,n){const a={};if(n&&r){const n=h(e,r);n.length&&(a.exception={values:[{value:t,stacktrace:{frames:n}}]}),(0,o.addExceptionMechanism)(a,{synthetic:!0})}
41if((0,i.isParameterizedString)(t)){const{__sentry_template_string__:e,__sentry_template_values__:r}=t;return a.logentry={message:e,params:r},a}return a.message=t,a}function E(e,{isUnhandledRejection:t}){const r=(0,s.extractExceptionKeysForMessage)(e),n=t?"promise rejection":"exception";if((0,i.isErrorEvent)(e))return`Event \`ErrorEvent\` captured as ${n} with message \`${e.message}\``;if((0,i.isEvent)(e)){return`Event \`${function(e){try{const t=Object.getPrototypeOf(e);return t?t.constructor.name:void 0}catch{}}(e)}\` (type=${e.type}) captured as ${n}`}return`Object captured as ${n} with keys: ${r}`}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{_enhanceErrorWithSentryInfo:()=>l,eventFromMessage:()=>h,eventFromUnknownInput:()=>d,exceptionFromError:()=>c,parseStackFrames:()=>s});var n=r(359),i=r(356),o=r(362),a=r(357);function s(e,t){return e(t.stack||"",1)}function l(e){return function(e){return(0,n.isError)(e)&&"__sentry_fetch_url_host__"in e&&"string"==typeof e.__sentry_fetch_url_host__}(e)?`${e.message} (${e.__sentry_fetch_url_host__})`:e.message}function c(e,t){const r={type:t.name||t.constructor.name,value:l(t)},n=s(e,t);return n.length&&(r.stacktrace={frames:n}),r}function u(e){if("name"in e&&"string"==typeof e.name){let t=`'${e.name}' captured as exception`;return"message"in e&&"string"==typeof e.message&&(t+=` with message '${e.message}'`),t}if("message"in e&&"string"==typeof e.message)return e.message;const t=(0,a.extractExceptionKeysForMessage)(e);if((0,n.isErrorEvent)(e))return`Event \`ErrorEvent\` captured as exception with message \`${e.message}\``;const r=function(e){try{const t=Object.getPrototypeOf(e);return t?t.constructor.name:void 0}catch{}}(e);return`${r&&"Object"!==r?`'${r}'`:"Object"} captured as exception with keys: ${t}`}function p(e,t,r,i){if((0,n.isError)(r))return[r,void 0];if(t.synthetic=!0,(0,n.isPlainObject)(r)){const t=e?.getOptions().normalizeDepth,a={__serialized__:(0,o.normalizeToSize)(r,t)},s=function(e){for(const t in e)if(Object.prototype.hasOwnProperty.call(e,t)){const r=e[t];if((0,n.isError)(r))return r}}(r);if(s)return[s,a];const l=u(r),c=i?.syntheticException||new Error(l);return c.message=l,[c,a]}const a=i?.syntheticException||new Error(r);return a.message=`${r}`,[a,void 0]}function d(e,t,r,n){const o=n?.data&&n.data.mechanism||{handled:!0,type:"generic"},[a,s]=p(e,o,r,n),l={exception:{values:[c(t,a)]}};return s&&(l.extra=s),(0,i.addExceptionTypeValue)(l,void 0,void 0),(0,i.addExceptionMechanism)(l,o),{...l,event_id:n?.event_id}}function h(e,t,r="info",o,a){const l={event_id:o?.event_id,level:r};if(a&&o?.syntheticException){const r=s(e,o.syntheticException);r.length&&(l.exception={values:[{value:t,stacktrace:{frames:r}}]},(0,i.addExceptionMechanism)(l,{synthetic:!0}))}if((0,n.isParameterizedString)(t)){const{__sentry_template_string__:e,__sentry_template_values__:r}=t;return l.logentry={message:e,params:r},l}return l.message=t,l}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{WINDOW:()=>c,getHttpRequestData:()=>f,ignoreNextOnError:()=>d,shouldIgnoreOnError:()=>p,wrap:()=>h});var n=r(345),i=r(346),o=r(350),a=r(356),s=r(357),l=r(1503);const c=o.GLOBAL_OBJ;let u=0;function p(){return u>0}function d(){u++,setTimeout(()=>{u--})}function h(e,t={}){if("function"!=typeof e)return e;try{if(Object.prototype.hasOwnProperty.call(e,"__sentry_wrapped__")){const t=e.__sentry_wrapped__;return"function"==typeof t?t:e}if((0,s.getOriginalFunction)(e))return e}catch{return e}const r=function(...r){o.GLOBAL_OBJ._sentryWrappedDepth=(o.GLOBAL_OBJ._sentryWrappedDepth||0)+1;try{const n=r.map(e=>h(e,t));return e.apply(this,n)}catch(e){throw d(),(0,i.withScope)(i=>{i.addEventProcessor(e=>(t.mechanism&&((0,a.addExceptionTypeValue)(e,void 0,void 0),(0,a.addExceptionMechanism)(e,t.mechanism)),e.extra={...e.extra,arguments:r},e)),(0,n.captureException)(e)}),e}finally{o.GLOBAL_OBJ._sentryWrappedDepth=(o.GLOBAL_OBJ._sentryWrappedDepth||0)-1}};try{for(const t in e)Object.prototype.hasOwnProperty.call(e,t)&&(r[t]=e[t])}catch{}(0,s.markFunctionWrapped)(r,e),(0,s.addNonEnumerableProperty)(e,"__sentry_wrapped__",r);try{Object.getOwnPropertyDescriptor(r,"name").configurable&&Object.defineProperty(r,"name",{get:()=>e.name})}catch{}return r}function f(){const e=(0,l.getLocationHref)(),{referrer:t}=c.document||{},{userAgent:r}=c.navigator||{};return{url:e,headers:{...t&&{Referer:t},...r&&{"User-Agent":r}}}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{getComponentName:()=>c,getLocationHref:()=>l,htmlTreeAsString:()=>a});var n=r(359);const i=r(350).GLOBAL_OBJ,o=80;function a(e,t={}){if(!e)return"<unknown>";try{let r=e;const n=5,i=[];let a=0,l=0;const c=" > ",u=c.length;let p;const d=Array.isArray(t)?t:t.keyAttrs,h=!Array.isArray(t)&&t.maxStringLength||o;for(;r&&a++<n&&(p=s(r,d),!("html"===p||a>1&&l+i.length*u+p.length>=h));)i.push(p),l+=p.length,r=r.parentNode;return i.reverse().join(c)}catch{return"<unknown>"}}function s(e,t){const r=e,o=[];if(!r?.tagName)return"";if(i.HTMLElement&&r instanceof HTMLElement&&r.dataset){if(r.dataset.sentryComponent)return r.dataset.sentryComponent;if(r.dataset.sentryElement)return r.dataset.sentryElement}o.push(r.tagName.toLowerCase());const a=t?.length?t.filter(e=>r.getAttribute(e)).map(e=>[e,r.getAttribute(e)]):null;
41if(a?.length)a.forEach(e=>{o.push(`[${e[0]}="${e[1]}"]`)});else{r.id&&o.push(`#${r.id}`);const e=r.className;if(e&&(0,n.isString)(e)){const t=e.split(/\s+/);for(const e of t)o.push(`.${e}`)}}for(const e of["aria-label","type","name","title","alt"]){const t=r.getAttribute(e);t&&o.push(`[${e}="${t}"]`)}return o.join("")}function l(){try{return i.document.location.href}catch{return""}}function c(e,t=5){if(!i.HTMLElement)return null;let r=e;for(let e=0;e<t;e++){if(!r)return null;if(r instanceof HTMLElement){if(r.dataset.sentryComponent)return r.dataset.sentryComponent;if(r.dataset.sentryElement)return r.dataset.sentryElement}r=r.parentNode}return null}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{breadcrumbsIntegration:()=>E});var n=r(346),i=r(1468),o=r(697),a=r(1505),s=r(1506),l=r(1508),c=r(358),u=r(356),p=r(1510),d=r(361),h=r(1511),f=r(1503),m=r(1513),g=r(1515),y=r(1516),b=r(1517),v=r(1518),_=r(1502);const S=1024,E=(0,i.defineIntegration)((e={})=>{const t={console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0,...e};return{name:"Breadcrumbs",setup(e){t.console&&(0,s.addConsoleInstrumentationHandler)(function(e){return function(t){if((0,n.getClient)()!==e)return;const r={category:"console",data:{arguments:t.args,logger:"console"},level:(0,p.severityLevelFromString)(t.level),message:(0,d.safeJoin)(t.args," ")};if("assert"===t.level){if(!1!==t.args[0])return;r.message=`Assertion failed: ${(0,d.safeJoin)(t.args.slice(1)," ")||"console.assert"}`,r.data.arguments=t.args.slice(1)}(0,o.addBreadcrumb)(r,{input:t.args,level:t.level})}}(e)),t.dom&&(0,m.addClickKeypressInstrumentationHandler)(function(e,t){return function(r){if((0,n.getClient)()!==e)return;let i,a,s="object"==typeof t?t.serializeAttribute:void 0,l="object"==typeof t&&"number"==typeof t.maxStringLength?t.maxStringLength:void 0;l&&l>S&&(v.DEBUG_BUILD&&c.debug.warn(`\`dom.maxStringLength\` cannot exceed 1024, but a value of ${l} was configured. Sentry will use 1024 instead.`),l=S),"string"==typeof s&&(s=[s]);try{const e=r.event,t=function(e){return!!e&&!!e.target}(e)?e.target:e;i=(0,b.htmlTreeAsString)(t,{keyAttrs:s,maxStringLength:l}),a=(0,f.getComponentName)(t)}catch{i="<unknown>"}if(0===i.length)return;const u={category:`ui.${r.name}`,message:i};a&&(u.data={"ui.component_name":a}),(0,o.addBreadcrumb)(u,{event:r.event,name:r.name,global:r.global})}}(e,t.dom)),t.xhr&&(0,y.addXhrInstrumentationHandler)(function(e){return function(t){if((0,n.getClient)()!==e)return;const{startTimestamp:r,endTimestamp:i}=t,s=t.xhr[y.SENTRY_XHR_DATA_KEY];if(!r||!i||!s)return;const{method:l,url:c,status_code:u,body:p}=s,d={method:l,url:c,status_code:u},h={xhr:t.xhr,input:p,startTimestamp:r,endTimestamp:i},f={category:"xhr",data:d,type:"http",level:(0,a.getBreadcrumbLogLevelFromHttpStatusCode)(u)};e.emit("beforeOutgoingRequestBreadcrumb",f,h),(0,o.addBreadcrumb)(f,h)}}(e)),t.fetch&&(0,l.addFetchInstrumentationHandler)(function(e){return function(t){if((0,n.getClient)()!==e)return;const{startTimestamp:r,endTimestamp:i}=t;if(i&&(!t.fetchData.url.match(/sentry_key/)||"POST"!==t.fetchData.method))if(t.error){const n={data:t.error,input:t.args,startTimestamp:r,endTimestamp:i},a={category:"fetch",data:t.fetchData,level:"error",type:"http"};e.emit("beforeOutgoingRequestBreadcrumb",a,n),(0,o.addBreadcrumb)(a,n)}else{const n=t.response,s={...t.fetchData,status_code:n?.status},l={input:t.args,response:n,startTimestamp:r,endTimestamp:i},c={category:"fetch",data:s,type:"http",level:(0,a.getBreadcrumbLogLevelFromHttpStatusCode)(s.status_code)};e.emit("beforeOutgoingRequestBreadcrumb",c,l),(0,o.addBreadcrumb)(c,l)}}}(e)),t.history&&(0,g.addHistoryInstrumentationHandler)(function(e){return function(t){if((0,n.getClient)()!==e)return;let r=t.from,i=t.to;const a=(0,h.parseUrl)(_.WINDOW.location.href);let s=r?(0,h.parseUrl)(r):void 0;const l=(0,h.parseUrl)(i);s?.path||(s=a),a.protocol===l.protocol&&a.host===l.host&&(i=l.relative),a.protocol===s.protocol&&a.host===s.host&&(r=s.relative),(0,o.addBreadcrumb)({category:"navigation",data:{from:r,to:i}})}}(e)),t.sentry&&e.on("beforeSendEvent",function(e){return function(t){(0,n.getClient)()===e&&(0,o.addBreadcrumb)({category:"sentry."+("transaction"===t.type?"transaction":"event"),event_id:t.event_id,level:t.level,message:(0,u.getEventDescription)(t)},{event:t})}}(e))}}})},(e,t,r)=>{"use strict";function n(e){return void 0===e?void 0:e>=400&&e<500?"warning":e>=500?"error":void 0}r.r(t),r.d(t,{getBreadcrumbLogLevelFromHttpStatusCode:()=>n})},(e,t,r)=>{"use strict";r.r(t),r.d(t,{addConsoleInstrumentationFilter:()=>p,addConsoleInstrumentationHandler:()=>u,instrumentConsole:()=>h});var n=r(354),i=r(358),o=r(357),a=r(361),s=r(350),l=r(1507);const c=new Set([]);function u(e){const t="console",r=(0,l.addHandler)(t,e);return(0,l.maybeInstrument)(t,h),r}function p(e){for(const t of e)c.add(t);return()=>{for(const t of e)c.delete(t)}}const d=new Set;function h(){"console"in s.GLOBAL_OBJ&&i.CONSOLE_LEVELS.forEach(function(e){!d.has(e)&&e in s.GLOBAL_OBJ.console&&(d.add(e),(0,o.fill)(s.GLOBAL_OBJ.console,e,function(t){return i.originalConsoleMethods[e]=t,function(...t){const r=t[0],o=i.originalConsoleMethods[e],u=c.size&&"string"==typeof r&&(0,a.stringMatchesSomePattern)(r,c);u||(0,l.triggerHandlers)("console",{args:t,level:e}),(!u||n.DEBUG_BUILD&&i.debug.isEnabled())&&o?.apply(s.GLOBAL_OBJ.console,t)}}))})}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{addHandler:()=>l,maybeInstrument:()=>u,resetInstrumentationHandlers:()=>c,triggerHandlers:()=>p});var n=r(354),i=r(358),o=r(364);const a={},s={};function l(e,t){return a[e]=a[e]||[],a[e].push(t),()=>{const r=a[e];if(r){const e=r.indexOf(t);-1!==e&&r.splice(e,1)}}}
41function c(){Object.keys(a).forEach(e=>{a[e]=void 0})}function u(e,t){if(!s[e]){s[e]=!0;try{t()}catch(t){n.DEBUG_BUILD&&i.debug.error(`Error while instrumenting ${e}`,t)}}}function p(e,t){const r=e&&a[e];if(r)for(const a of r)try{a(t)}catch(t){n.DEBUG_BUILD&&i.debug.error(`Error while triggering instrumentation handler.\nType: ${e}\nName: ${(0,o.getFunctionName)(a)}\nError:`,t)}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{addFetchEndInstrumentationHandler:()=>p,addFetchInstrumentationHandler:()=>u,parseFetchArgs:()=>g});var n=r(346),i=r(359),o=r(357),a=r(1509),s=r(365),l=r(350),c=r(1507);function u(e,t){const r="fetch",n=(0,c.addHandler)(r,e);return(0,c.maybeInstrument)(r,()=>d(void 0,t)),n}function p(e){const t="fetch-body-resolved",r=(0,c.addHandler)(t,e);return(0,c.maybeInstrument)(t,()=>d(h)),r}function d(e,t=!1){t&&!(0,a.supportsNativeFetch)()||(0,o.fill)(l.GLOBAL_OBJ,"fetch",function(t){return function(...r){const a=new Error,{method:u,url:p}=g(r),d={args:r,fetchData:{method:u,url:p},startTimestamp:1e3*(0,s.timestampInSeconds)(),virtualError:a,headers:y(r)};return e||(0,c.triggerHandlers)("fetch",{...d}),t.apply(l.GLOBAL_OBJ,r).then(async t=>(e?e(t):(0,c.triggerHandlers)("fetch",{...d,endTimestamp:1e3*(0,s.timestampInSeconds)(),response:t}),t),e=>{(0,c.triggerHandlers)("fetch",{...d,endTimestamp:1e3*(0,s.timestampInSeconds)(),error:e}),(0,i.isError)(e)&&void 0===e.stack&&(e.stack=a.stack,(0,o.addNonEnumerableProperty)(e,"framesToPop",1));const t=(0,n.getClient)(),r=t?.getOptions().enhanceFetchErrorMessages??"always";if(!1!==r&&(0,i.isError)(e)&&"TypeError"===e.name&&("Failed to fetch"===e.message||"Load failed"===e.message||"NetworkError when attempting to fetch resource."===e.message))try{const t=new URL(d.fetchData.url).host;"always"===r?e.message=`${e.message} (${t})`:(0,o.addNonEnumerableProperty)(e,"__sentry_fetch_url_host__",t)}catch{}throw e})}})}function h(e){let t;try{t=e.clone()}catch{return}!async function(e,t){if(e?.body){const r=e.body,n=r.getReader(),i=setTimeout(()=>{r.cancel().then(null,()=>{})},9e4);let o=!0;for(;o;){let e;try{e=setTimeout(()=>{r.cancel().then(null,()=>{})},5e3);const{done:i}=await n.read();clearTimeout(e),i&&(t(),o=!1)}catch{o=!1}finally{clearTimeout(e)}}clearTimeout(i),n.releaseLock(),r.cancel().then(null,()=>{})}}(t,()=>{(0,c.triggerHandlers)("fetch-body-resolved",{endTimestamp:1e3*(0,s.timestampInSeconds)(),response:e})})}function f(e,t){return(0,i.isObjectLike)(e)&&!!e[t]}function m(e){return"string"==typeof e?e:e?f(e,"url")?e.url:e.toString?e.toString():"":""}function g(e){if(0===e.length)return{method:"GET",url:""};if(2===e.length){const[t,r]=e;return{url:m(t),method:f(r,"method")?String(r.method).toUpperCase():(0,i.isRequest)(t)&&f(t,"method")?String(t.method).toUpperCase():"GET"}}const t=e[0];return{url:m(t),method:f(t,"method")?String(t.method).toUpperCase():"GET"}}function y(e){const[t,r]=e;try{if("object"==typeof r&&null!==r&&"headers"in r&&r.headers)return new Headers(r.headers);if((0,i.isRequest)(t))return new Headers(t.headers)}catch{}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{isNativeFunction:()=>d,supportsDOMError:()=>s,supportsDOMException:()=>l,supportsErrorEvent:()=>a,supportsFetch:()=>u,supportsHistory:()=>c,supportsNativeFetch:()=>h,supportsReferrerPolicy:()=>m,supportsReportingObserver:()=>f});var n=r(354),i=r(358);const o=r(350).GLOBAL_OBJ;function a(){try{return new ErrorEvent(""),!0}catch{return!1}}function s(){try{return new DOMError(""),!0}catch{return!1}}function l(){try{return new DOMException(""),!0}catch{return!1}}function c(){return"history"in o&&!!o.history}const u=p;function p(){if(!("fetch"in o))return!1;try{return new Headers,new Request("data:,"),new Response,!0}catch{return!1}}function d(e){return e&&/^function\s+\w+\(\)\s+\{\s+\[native code\]\s+\}$/.test(e.toString())}function h(){if("string"==typeof EdgeRuntime)return!0;if(!p())return!1;if(d(o.fetch))return!0;let e=!1;const t=o.document;if(t&&"function"==typeof t.createElement)try{const r=t.createElement("iframe");r.hidden=!0,t.head.appendChild(r),r.contentWindow?.fetch&&(e=d(r.contentWindow.fetch)),t.head.removeChild(r)}catch(e){n.DEBUG_BUILD&&i.debug.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",e)}return e}function f(){return"ReportingObserver"in o}function m(){if(!p())return!1;
41try{return new Request("_",{referrerPolicy:"origin"}),!0}catch{return!1}}},(e,t,r)=>{"use strict";function n(e){return"warn"===e?"warning":["fatal","error","warning","log","info","debug"].includes(e)?e:"log"}r.r(t),r.d(t,{severityLevelFromString:()=>n})},(e,t,r)=>{"use strict";r.r(t),r.d(t,{getHttpSpanDetailsFromUrlObject:()=>u,getSanitizedUrlString:()=>h,getSanitizedUrlStringFromUrlObject:()=>l,isURLObjectRelative:()=>a,parseStringToURLObject:()=>s,parseUrl:()=>p,stripDataUrlContent:()=>f,stripUrlQueryAndFragment:()=>d});var n=r(1512),i=r(372);const o="thismessage:/";function a(e){return"isRelative"in e}function s(e,t){const r=e.indexOf("://")<=0&&0!==e.indexOf("//"),n=t??(r?o:void 0);try{if("canParse"in URL&&!URL.canParse(e,n))return;const t=new URL(e,n);return r?{isRelative:r,pathname:t.pathname,search:t.search,hash:t.hash}:t}catch{}}function l(e){if(a(e))return e.pathname;const t=new URL(e);return t.search="",t.hash="",["80","443"].includes(t.port)&&(t.port=""),t.password&&(t.password="%filtered%"),t.username&&(t.username="%filtered%"),t.toString()}function c(e,t,r,n){return`${r?.method?.toUpperCase()??"GET"} ${n||(e?"client"===t?l(e):e.pathname:"/")}`}function u(e,t,r,o,s){const l={[i.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:r,[i.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]:"url"};return s&&(l["server"===t?"http.route":"url.template"]=s,l[i.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]="route"),o?.method&&(l[i.SEMANTIC_ATTRIBUTE_HTTP_REQUEST_METHOD]=o.method.toUpperCase()),e&&(e.search&&(l["url.query"]=e.search),e.hash&&(l["url.fragment"]=e.hash),e.pathname&&(l["url.path"]=e.pathname,"/"===e.pathname&&(l[i.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]="route")),a(e)||(l[n.URL_FULL]=e.href,e.port&&(l["url.port"]=e.port),e.protocol&&(l["url.scheme"]=e.protocol),e.hostname&&(l["server"===t?"server.address":"url.domain"]=e.hostname))),[c(e,t,o,s),l]}function p(e){if(!e)return{};const t=e.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!t)return{};const r=t[6]||"",n=t[8]||"";return{host:t[4],path:t[5],protocol:t[2],search:r,hash:n,relative:t[5]+r+n}}function d(e){return e.split(/[?#]/,1)[0]}function h(e){const{protocol:t,host:r,path:n}=e;return`${t?`${t}://`:""}${r?.replace(/^.*@/,"[filtered]:[filtered]@").replace(/(:80)$/,"").replace(/(:443)$/,"")||""}${n}`}function f(e,t=!0){if(e.startsWith("data:")){const r=e.match(/^data:([^;,]+)/),n=r?r[1]:"text/plain",i=e.includes(";base64,"),o=e.indexOf(",");let a="";if(t&&-1!==o){const t=e.slice(o+1);a=t.length>10?`${t.slice(0,10)}... [truncated]`:t}return`data:${n}${i?",base64":""}${a?`,${a}`:""}`}return e}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{AI_CITATIONS:()=>n,AI_COMPLETION_TOKENS_USED:()=>i,AI_DOCUMENTS:()=>o,AI_FINISH_REASON:()=>
41a,AI_FREQUENCY_PENALTY:()=>s,AI_FUNCTION_CALL:()=>l,AI_GENERATION_ID:()=>c,AI_INPUT_MESSAGES:()=>u,AI_IS_SEARCH_REQUIRED:()=>p,AI_METADATA:()=>d,AI_MODEL_ID:()=>h,AI_MODEL_PROVIDER:()=>f,AI_PIPELINE_NAME:()=>m,AI_PREAMBLE:()=>g,AI_PRESENCE_PENALTY:()=>y,AI_PROMPT_TOKENS_USED:()=>b,AI_RAW_PROMPTING:()=>v,AI_RESPONSES:()=>_,AI_RESPONSE_FORMAT:()=>S,AI_SEARCH_QUERIES:()=>E,AI_SEARCH_RESULTS:()=>T,AI_SEED:()=>w,AI_STREAMING:()=>x,AI_TAGS:()=>O,AI_TEMPERATURE:()=>I,AI_TEXTS:()=>A,AI_TOOLS:()=>k,AI_TOOL_CALLS:()=>R,AI_TOP_K:()=>C,AI_TOP_P:()=>P,AI_TOTAL_COST:()=>D,AI_TOTAL_TOKENS_USED:()=>M,AI_WARNINGS:()=>N,ANGULAR_VERSION:()=>L,APP_APP_BUILD:()=>F,APP_APP_IDENTIFIER:()=>B,APP_APP_NAME:()=>U,APP_APP_START_TIME:()=>j,APP_APP_VERSION:()=>H,APP_BUILD:()=>V,APP_IDENTIFIER:()=>z,APP_IN_FOREGROUND:()=>G,APP_NAME:()=>q,APP_START_COLD:()=>$,APP_START_TIME:()=>W,APP_START_TYPE:()=>Y,APP_START_WARM:()=>K,APP_VERSION:()=>J,APP_VITALS_FRAMES_DELAY_VALUE:()=>Q,APP_VITALS_FRAMES_FROZEN_COUNT:()=>X,APP_VITALS_FRAMES_SLOW_COUNT:()=>Z,APP_VITALS_FRAMES_TOTAL_COUNT:()=>ee,APP_VITALS_START_COLD_VALUE:()=>te,APP_VITALS_START_PREWARMED:()=>re,APP_VITALS_START_REASON:()=>ne,APP_VITALS_START_SCREEN:()=>ie,APP_VITALS_START_TYPE:()=>oe,APP_VITALS_START_WARM_VALUE:()=>ae,APP_VITALS_TTFD_VALUE:()=>se,APP_VITALS_TTID_VALUE:()=>le,ART_GC_BLOCKING_COUNT:()=>ce,ART_GC_BLOCKING_TIME:()=>ue,ART_GC_PRE_OOME_COUNT:()=>pe,ART_GC_TOTAL_COUNT:()=>de,ART_GC_TOTAL_TIME:()=>he,ART_GC_WAITING_TIME:()=>fe,ART_MEMORY_FREE:()=>me,ART_MEMORY_FREE_UNTIL_GC:()=>ge,ART_MEMORY_FREE_UNTIL_OOME:()=>ye,ART_MEMORY_MAX:()=>be,ART_MEMORY_TOTAL:()=>ve,ATTRIBUTE_METADATA:()=>Wd,ATTRIBUTE_TYPE:()=>$d,AWS_CLOUDWATCH_LOGS_LOG_GROUP:()=>_e,AWS_CLOUDWATCH_LOGS_LOG_STREAM:()=>Se,AWS_CLOUDWATCH_LOGS_URL:()=>Ee,AWS_DYNAMODB_ATTRIBUTE_DEFINITIONS:()=>Te,AWS_DYNAMODB_CONSISTENT_READ:()=>we,AWS_DYNAMODB_CONSUMED_CAPACITY:()=>xe,AWS_DYNAMODB_COUNT:()=>Oe,AWS_DYNAMODB_EXCLUSIVE_START_TABLE:()=>Ie,AWS_DYNAMODB_GLOBAL_SECONDARY_INDEXES:()=>Ae,AWS_DYNAMODB_GLOBAL_SECONDARY_INDEX_UPDATES:()=>ke,AWS_DYNAMODB_INDEX_NAME:()=>Re,AWS_DYNAMODB_ITEM_COLLECTION_METRICS:()=>Ce,AWS_DYNAMODB_LIMIT:()=>Pe,AWS_DYNAMODB_LOCAL_SECONDARY_INDEXES:()=>De,AWS_DYNAMODB_PROJECTION:()=>Me,AWS_DYNAMODB_PROVISIONED_READ_CAPACITY:()=>Ne,AWS_DYNAMODB_PROVISIONED_WRITE_CAPACITY:()=>Le,AWS_DYNAMODB_SCANNED_COUNT:()=>Fe,AWS_DYNAMODB_SCAN_FORWARD:()=>Be,AWS_DYNAMODB_SEGMENT:()=>Ue,AWS_DYNAMODB_SELECT:()=>je,AWS_DYNAMODB_TABLE_COUNT:()=>He,AWS_DYNAMODB_TABLE_NAMES:()=>Ve,AWS_DYNAMODB_TOTAL_SEGMENTS:()=>ze,AWS_EXTENDED_REQUEST_ID:()=>Ge,AWS_KINESIS_STREAM_NAME:()=>qe,AWS_LAMBDA_AWS_REQUEST_ID:()=>We,AWS_LAMBDA_EXECUTION_DURATION_IN_MILLIS:()=>Ye,AWS_LAMBDA_FUNCTION_NAME:()=>Ke,AWS_LAMBDA_FUNCTION_VERSION:()=>Je,AWS_LAMBDA_INVOKED_ARN:()=>Qe,AWS_LAMBDA_INVOKED_FUNCTION_ARN:()=>Xe,AWS_LAMBDA_REMAINING_TIME_IN_MILLIS:()=>Ze,AWS_LOG_GROUP_NAMES:()=>et,AWS_LOG_STREAM_NAMES:()=>tt,AWS_REQUEST_EXTENDED_ID:()=>rt,AWS_REQUEST_ID:()=>nt,AWS_S3_BUCKET:()=>ot,AWS_SECRETSMANAGER_SECRET_ARN:()=>at,AWS_SNS_TOPIC_ARN:()=>st,AWS_STEP_FUNCTIONS_ACTIVITY_ARN:()=>lt,AWS_STEP_FUNCTIONS_STATE_MACHINE_ARN:()=>ct,BLOCKED_MAIN_THREAD:()=>ut,BROWSER_NAME:()=>pt,BROWSER_PERFORMANCE_NAVIGATION_ACTIVATION_START:()=>dt,BROWSER_PERFORMANCE_TIME_ORIGIN:()=>ht,BROWSER_REPORT_TYPE:()=>ft,BROWSER_SCRIPT_INVOKER:()=>mt,BROWSER_SCRIPT_INVOKER_TYPE:()=>gt,BROWSER_SCRIPT_SOURCE_CHAR_POSITION:()=>yt,BROWSER_VERSION:()=>bt,BROWSER_WEB_VITAL_CLS_REPORT_EVENT:()=>vt,BROWSER_WEB_VITAL_CLS_SOURCE_KEY:()=>_t,BROWSER_WEB_VITAL_CLS_SOURCE_KEY_BASE:()=>St,BROWSER_WEB_VITAL_CLS_VALUE:()=>Et,BROWSER_WEB_VITAL_FCP_VALUE:()=>Tt,BROWSER_WEB_VITAL_FP_VALUE:()=>wt,BROWSER_WEB_VITAL_INP_VALUE:()=>xt,BROWSER_WEB_VITAL_LCP_ELEMENT:()=>Ot,BROWSER_WEB_VITAL_LCP_ID:()=>It,BROWSER_WEB_VITAL_LCP_LOAD_TIME:()=>At,BROWSER_WEB_VITAL_LCP_RENDER_TIME:()=>kt,BROWSER_WEB_VITAL_LCP_REPORT_EVENT:()=>Rt,BROWSER_WEB_VITAL_LCP_SIZE:()=>Ct,BROWSER_WEB_VITAL_LCP_URL:()=>Pt,BROWSER_WEB_VITAL_LCP_VALUE:()=>Dt,BROWSER_WEB_VITAL_TTFB_REQUEST_TIME:()=>Mt,BROWSER_WEB_VITAL_TTFB_VALUE:()=>Nt,CACHE_HIT:()=>Lt,CACHE_ITEM_SIZE:()=>Ft,CACHE_KEY:()=>Bt,CACHE_OPERATION:()=>Ut,CACHE_TTL:()=>jt,CACHE_WRITE:()=>Ht,CHANNEL:()=>Vt,CLIENT_ADDRESS:()=>zt,CLIENT_PORT:()=>Gt,CLOUDFLARE_D1_DURATION:()=>qt,CLOUDFLARE_D1_QUERY_TYPE:()=>$t,CLOUDFLARE_D1_ROWS_READ:()=>Wt,CLOUDFLARE_D1_ROWS_WRITTEN:()=>Yt,CLOUDFLARE_DURABLE_OBJECT_QUERY_BINDINGS:()=>Kt,CLOUDFLARE_DURABLE_OBJECT_RESPONSE_ROWS_READ:()=>Jt,CLOUDFLARE_DURABLE_OBJECT_RESPONSE_ROWS_WRITTEN:()=>Qt,CLOUDFLARE_R2_BUCKET:()=>Xt,CLOUDFLARE_R2_OPERATION:()=>Zt,CLOUDFLARE_R2_REQUEST_DELIMITER:()=>er,CLOUDFLARE_R2_REQUEST_KEY:()=>tr,CLOUDFLARE_R2_REQUEST_PART_NUMBER:()=>rr,CLOUDFLARE_R2_REQUEST_PREFIX:()=>nr,CLOUDFLARE_WORKFLOW_ATTEMPT:()=>ir,CLOUDFLARE_WORKFLOW_RETRIES_BACKOFF:()=>or,CLOUDFLARE_WORKFLOW_RETRIES_DELAY:()=>ar,CLOUDFLARE_WORKFLOW_RETRIES_LIMIT:()=>sr,CLOUDFLARE_WORKFLOW_TIMEOUT:()=>lr,CLOUD_ACCOUNT_ID:()=>cr,CLOUD_AVAILABILITY_ZONE:()=>ur,CLOUD_PLATFORM:()=>pr,CLOUD_PROVIDER:()=>dr,CLOUD_REGION:()=>hr,CLOUD_RESOURCE_ID:()=>fr,CLS:()=>mr,CLS_SOURCE_KEY:()=>gr,CLS_SOURCE_KEY_BASE:()=>yr,CODE_FILEPATH:()=>br,CODE_FILE_PATH:()=>vr,CODE_FUNCTION:()=>_r,CODE_FUNCTION_NAME:()=>Sr,CODE_LINENO:()=>Er,CODE_LINE_NUMBER:()=>Tr,CODE_NAMESPACE:()=>wr,CONNECTIONTYPE:()=>xr,CONNECTION_RTT:()=>Or,CULTURE_CALENDAR:()=>Ir,CULTURE_DISPLAY_NAME:()=>Ar,CULTURE_IS_24_HOUR_FORMAT:()=>kr,CULTURE_LOCALE:()=>Rr,CULTURE_TIMEZONE:()=>Cr,DB_COLLECTION_NAME:()=>Pr,DB_DRIVER_NAME:()=>Dr,DB_NAME:()=>Mr,DB_NAMESPACE:()=>Nr,DB_OPERATION:()=>Lr,DB_OPERATION_BATCH_SIZE:()=>Fr,DB_OPERATION_NAME:()=>Br,DB_QUERY_PARAMETER_KEY:()=>Ur,DB_QUERY_PARAMETER_KEY_BASE:()=>jr,DB_QUERY_SUMMARY:()=>Hr,DB_QUERY_TEXT:()=>Vr,DB_REDIS_CONNECTION:()=>zr,DB_REDIS_KEY:()=>Gr,DB_REDIS_PARAMETERS:()=>qr,DB_RESPONSE_STATUS_CODE:()=>$r,DB_SQL_BINDINGS:()=>
41Wr,DB_STATEMENT:()=>Yr,DB_STORED_PROCEDURE_NAME:()=>Kr,DB_SYSTEM:()=>Jr,DB_SYSTEM_NAME:()=>Qr,DB_USER:()=>Xr,DEVICEMEMORY:()=>Zr,DEVICE_ARCHS:()=>en,DEVICE_BATTERY_LEVEL:()=>tn,DEVICE_BATTERY_TEMPERATURE:()=>rn,DEVICE_BOOT_TIME:()=>nn,DEVICE_BRAND:()=>on,DEVICE_CHARGING:()=>an,DEVICE_CHIPSET:()=>sn,DEVICE_CLASS:()=>ln,DEVICE_CONNECTION_TYPE:()=>cn,DEVICE_CPU_DESCRIPTION:()=>un,DEVICE_EXTERNAL_FREE_STORAGE:()=>pn,DEVICE_EXTERNAL_STORAGE_SIZE:()=>dn,DEVICE_FAMILY:()=>hn,DEVICE_FREE_MEMORY:()=>fn,DEVICE_FREE_STORAGE:()=>mn,DEVICE_ID:()=>gn,DEVICE_LOCALE:()=>yn,DEVICE_LOW_MEMORY:()=>bn,DEVICE_LOW_POWER_MODE:()=>vn,DEVICE_MANUFACTURER:()=>_n,DEVICE_MEMORY_ESTIMATED_CAPACITY:()=>Sn,DEVICE_MEMORY_SIZE:()=>En,DEVICE_MODEL:()=>Tn,DEVICE_MODEL_ID:()=>wn,DEVICE_NAME:()=>xn,DEVICE_ONLINE:()=>On,DEVICE_ORIENTATION:()=>In,DEVICE_PROCESSOR_COUNT:()=>An,DEVICE_PROCESSOR_FREQUENCY:()=>kn,DEVICE_SCREEN_DENSITY:()=>Rn,DEVICE_SCREEN_DPI:()=>Cn,DEVICE_SCREEN_HEIGHT_PIXELS:()=>Pn,DEVICE_SCREEN_WIDTH_PIXELS:()=>Dn,DEVICE_SIMULATOR:()=>Mn,DEVICE_STORAGE_SIZE:()=>Nn,DEVICE_THERMAL_STATE:()=>Ln,DEVICE_TIMEZONE:()=>Fn,DEVICE_USABLE_MEMORY:()=>Bn,DIST:()=>Un,EFFECTIVECONNECTIONTYPE:()=>jn,ENVIRONMENT:()=>Hn,ERROR_TYPE:()=>Vn,EVENT_ID:()=>zn,EVENT_NAME:()=>Gn,EXCEPTION_ESCAPED:()=>qn,EXCEPTION_MESSAGE:()=>$n,EXCEPTION_STACKTRACE:()=>Wn,EXCEPTION_TYPE:()=>Yn,FAAS_COLDSTART:()=>Kn,FAAS_CRON:()=>Jn,FAAS_DURATION_IN_MS:()=>Qn,FAAS_ENTRY_POINT:()=>Xn,FAAS_EXECUTION:()=>Zn,FAAS_ID:()=>ei,FAAS_IDENTITY:()=>ti,FAAS_INVOCATION_ID:()=>ri,FAAS_INVOKED_NAME:()=>ni,FAAS_INVOKED_PROVIDER:()=>ii,FAAS_INVOKED_REGION:()=>oi,FAAS_NAME:()=>ai,FAAS_TIME:()=>si,FAAS_TRIGGER:()=>li,FAAS_VERSION:()=>ci,FCP:()=>ui,FLAG_EVALUATION_KEY:()=>pi,FLAG_EVALUATION_KEY_BASE:()=>di,FP:()=>hi,FRAMES_DELAY:()=>fi,FRAMES_FROZEN:()=>mi,FRAMES_FROZEN_RATE:()=>gi,FRAMES_SLOW:()=>yi,FRAMES_SLOW_RATE:()=>bi,FRAMES_TOTAL:()=>vi,FS_ERROR:()=>_i,GCP_FUNCTION_CONTEXT_EVENT_ID:()=>Si,GCP_FUNCTION_CONTEXT_EVENT_TYPE:()=>Ei,GCP_FUNCTION_CONTEXT_ID:()=>Ti,GCP_FUNCTION_CONTEXT_RESOURCE:()=>wi,GCP_FUNCTION_CONTEXT_SOURCE:()=>xi,GCP_FUNCTION_CONTEXT_SPECVERSION:()=>Oi,GCP_FUNCTION_CONTEXT_TIME:()=>Ii,GCP_FUNCTION_CONTEXT_TIMESTAMP:()=>Ai,GCP_FUNCTION_CONTEXT_TYPE:()=>ki,GCP_PROJECT_ID:()=>Ri,GEN_AI_AGENT_NAME:()=>Ci,GEN_AI_CONTEXT_UTILIZATION:()=>Pi,GEN_AI_CONTEXT_WINDOW_SIZE:()=>Di,GEN_AI_CONVERSATION_ID:()=>Mi,GEN_AI_COST_CACHE_CREATION_INPUT_TOKENS:()=>Ni,GEN_AI_COST_CACHE_READ_INPUT_TOKENS:()=>Li,GEN_AI_COST_INPUT_TOKENS:()=>Fi,GEN_AI_COST_OUTPUT_TOKENS:()=>Bi,GEN_AI_COST_REASONING_OUTPUT_TOKENS:()=>Ui,GEN_AI_COST_TOTAL_TOKENS:()=>ji,GEN_AI_EMBEDDINGS_INPUT:()=>Hi,GEN_AI_FUNCTION_ID:()=>Vi,GEN_AI_INPUT_MESSAGES:()=>zi,GEN_AI_OPERATION_NAME:()=>Gi,GEN_AI_OPERATION_TYPE:()=>qi,GEN_AI_OUTPUT_MESSAGES:()=>$i,GEN_AI_PIPELINE_NAME:()=>Wi,GEN_AI_PROMPT:()=>Yi,GEN_AI_PROMPT_NAME:()=>Ki,GEN_AI_PROVIDER_NAME:()=>Ji,GEN_AI_REQUEST_AVAILABLE_TOOLS:()=>
41Qi,GEN_AI_REQUEST_FREQUENCY_PENALTY:()=>Xi,GEN_AI_REQUEST_MAX_TOKENS:()=>Zi,GEN_AI_REQUEST_MESSAGES:()=>eo,GEN_AI_REQUEST_MODEL:()=>to,GEN_AI_REQUEST_PRESENCE_PENALTY:()=>ro,GEN_AI_REQUEST_REASONING_EFFORT:()=>no,GEN_AI_REQUEST_SEED:()=>io,GEN_AI_REQUEST_STOP_SEQUENCES:()=>oo,GEN_AI_REQUEST_TEMPERATURE:()=>ao,GEN_AI_REQUEST_TOP_K:()=>so,GEN_AI_REQUEST_TOP_P:()=>lo,GEN_AI_RESPONSE_FINISH_REASONS:()=>co,GEN_AI_RESPONSE_ID:()=>uo,GEN_AI_RESPONSE_MODEL:()=>po,GEN_AI_RESPONSE_STREAMING:()=>ho,GEN_AI_RESPONSE_TEXT:()=>fo,GEN_AI_RESPONSE_TIME_TO_FIRST_CHUNK:()=>mo,GEN_AI_RESPONSE_TIME_TO_FIRST_TOKEN:()=>go,GEN_AI_RESPONSE_TOKENS_PER_SECOND:()=>yo,GEN_AI_RESPONSE_TOOL_CALLS:()=>bo,GEN_AI_SYSTEM:()=>vo,GEN_AI_SYSTEM_INSTRUCTIONS:()=>_o,GEN_AI_SYSTEM_MESSAGE:()=>So,GEN_AI_TOOL_CALL_ARGUMENTS:()=>Eo,GEN_AI_TOOL_CALL_RESULT:()=>To,GEN_AI_TOOL_DEFINITIONS:()=>wo,GEN_AI_TOOL_DESCRIPTION:()=>xo,GEN_AI_TOOL_INPUT:()=>Oo,GEN_AI_TOOL_MESSAGE:()=>Io,GEN_AI_TOOL_NAME:()=>Ao,GEN_AI_TOOL_OUTPUT:()=>ko,GEN_AI_TOOL_TYPE:()=>Ro,GEN_AI_USAGE_CACHE_CREATION_INPUT_TOKENS:()=>Co,GEN_AI_USAGE_CACHE_READ_INPUT_TOKENS:()=>Po,GEN_AI_USAGE_COMPLETION_TOKENS:()=>Do,GEN_AI_USAGE_INPUT_TOKENS:()=>Mo,GEN_AI_USAGE_INPUT_TOKENS_CACHED:()=>No,GEN_AI_USAGE_INPUT_TOKENS_CACHE_WRITE:()=>Lo,GEN_AI_USAGE_OUTPUT_TOKENS:()=>Fo,GEN_AI_USAGE_OUTPUT_TOKENS_REASONING:()=>Bo,GEN_AI_USAGE_PROMPT_TOKENS:()=>Uo,GEN_AI_USAGE_REASONING_OUTPUT_TOKENS:()=>jo,GEN_AI_USAGE_TOTAL_TOKENS:()=>Ho,GRAPHQL_DOCUMENT:()=>Vo,GRAPHQL_OPERATION_NAME:()=>zo,GRAPHQL_OPERATION_TYPE:()=>Go,HARDWARECONCURRENCY:()=>qo,HTTP_CLIENT_IP:()=>$o,HTTP_DECODED_RESPONSE_CONTENT_LENGTH:()=>Wo,HTTP_FLAVOR:()=>Yo,HTTP_FRAGMENT:()=>Ko,HTTP_HOST:()=>Jo,HTTP_METHOD:()=>Qo,HTTP_QUERY:()=>Xo,HTTP_REQUEST_BODY_DATA:()=>Zo,HTTP_REQUEST_CONNECTION_END:()=>ea,HTTP_REQUEST_CONNECT_START:()=>ta,HTTP_REQUEST_DOMAIN_LOOKUP_END:()=>ra,HTTP_REQUEST_DOMAIN_LOOKUP_START:()=>na,HTTP_REQUEST_FETCH_START:()=>ia,HTTP_REQUEST_HEADER_KEY:()=>oa,HTTP_REQUEST_HEADER_KEY_BASE:()=>aa,HTTP_REQUEST_METHOD:()=>sa,HTTP_REQUEST_REDIRECT_END:()=>ca,HTTP_REQUEST_REDIRECT_START:()=>ua,HTTP_REQUEST_REQUEST_START:()=>pa,HTTP_REQUEST_RESEND_COUNT:()=>da,HTTP_REQUEST_RESPONSE_END:()=>ha,HTTP_REQUEST_RESPONSE_START:()=>fa,HTTP_REQUEST_SAME_ORIGIN:()=>ma,HTTP_REQUEST_SECURE_CONNECTION_START:()=>ga,HTTP_REQUEST_TIME_TO_FIRST_BYTE:()=>ya,HTTP_REQUEST_WORKER_START:()=>ba,HTTP_RESPONSE_BODY_SIZE:()=>va,HTTP_RESPONSE_CONTENT_LENGTH:()=>_a,HTTP_RESPONSE_HEADER_CONTENT_LENGTH:()=>Sa,HTTP_RESPONSE_HEADER_KEY:()=>Ea,HTTP_RESPONSE_HEADER_KEY_BASE:()=>Ta,HTTP_RESPONSE_SIZE:()=>wa,HTTP_RESPONSE_STATUS_CODE:()=>xa,HTTP_RESPONSE_TRANSFER_SIZE:()=>Oa,HTTP_ROUTE:()=>Ia,HTTP_SCHEME:()=>Aa,HTTP_SERVER_NAME:()=>ka,HTTP_SERVER_REQUEST_TIME_IN_QUEUE:()=>Ra,HTTP_STATUS_CODE:()=>Ca,HTTP_TARGET:()=>Pa,HTTP_URL:()=>Da,HTTP_USER_AGENT:()=>Ma,ID:()=>Na,INP:()=>La,JSONRPC_PROTOCOL_VERSION:()=>Fa,JSONRPC_REQUEST_ID:()=>Ba,JVM_GC_ACTION:()=>Ua,JVM_GC_NAME:()=>ja,JVM_MEMORY_POOL_NAME:()=>Ha,JVM_MEMORY_TYPE:()=>Va,JVM_THREAD_DAEMON:()=>za,JVM_THREAD_STATE:()=>Ga,KOA_NAME:()=>qa,KOA_TYPE:()=>$a,LCP:()=>Wa,LCP_ELEMENT:()=>Ya,LCP_ID:()=>Ka,LCP_LOADTIME:()=>Ja,LCP_RENDERTIME:()=>Qa,LCP_SIZE:()=>Xa,LCP_URL:()=>Za,LOGGER_NAME:()=>es,MCP_CANCELLED_REASON:()=>ts,MCP_CANCELLED_REQUEST_ID:()=>rs,MCP_CLIENT_NAME:()=>ns,MCP_CLIENT_TITLE:()=>is,MCP_CLIENT_VERSION:()=>os,MCP_LIFECYCLE_PHASE:()=>as,MCP_LOGGING_DATA_TYPE:()=>ss,MCP_LOGGING_LEVEL:()=>
41ls,MCP_LOGGING_LOGGER:()=>cs,MCP_LOGGING_MESSAGE:()=>us,MCP_METHOD_NAME:()=>ps,MCP_PROGRESS_CURRENT:()=>ds,MCP_PROGRESS_MESSAGE:()=>hs,MCP_PROGRESS_PERCENTAGE:()=>fs,MCP_PROGRESS_TOKEN:()=>ms,MCP_PROGRESS_TOTAL:()=>gs,MCP_PROMPT_NAME:()=>ys,MCP_PROMPT_RESULT_DESCRIPTION:()=>bs,MCP_PROMPT_RESULT_MESSAGE_CONTENT:()=>vs,MCP_PROMPT_RESULT_MESSAGE_COUNT:()=>_s,MCP_PROMPT_RESULT_MESSAGE_ROLE:()=>Ss,MCP_PROTOCOL_READY:()=>Es,MCP_PROTOCOL_VERSION:()=>Ts,MCP_REQUEST_ARGUMENT_KEY:()=>ws,MCP_REQUEST_ARGUMENT_KEY_BASE:()=>xs,MCP_REQUEST_ARGUMENT_NAME:()=>Os,MCP_REQUEST_ARGUMENT_URI:()=>Is,MCP_REQUEST_ID:()=>As,MCP_RESOURCE_PROTOCOL:()=>ks,MCP_RESOURCE_URI:()=>Rs,MCP_SERVER_NAME:()=>Cs,MCP_SERVER_TITLE:()=>Ps,MCP_SERVER_VERSION:()=>Ds,MCP_SESSION_ID:()=>Ms,MCP_TOOL_NAME:()=>Ns,MCP_TOOL_RESULT_CONTENT:()=>Ls,MCP_TOOL_RESULT_CONTENT_COUNT:()=>Fs,MCP_TOOL_RESULT_IS_ERROR:()=>Bs,MCP_TRANSPORT:()=>Us,MDC_KEY:()=>js,MDC_KEY_BASE:()=>Hs,MESSAGING_BATCH_MESSAGE_COUNT:()=>Vs,MESSAGING_DESTINATION:()=>zs,MESSAGING_DESTINATION_CONNECTION:()=>Gs,MESSAGING_DESTINATION_NAME:()=>qs,MESSAGING_MESSAGE_BODY_SIZE:()=>$s,MESSAGING_MESSAGE_CONVERSATION_ID:()=>Ws,MESSAGING_MESSAGE_ENVELOPE_SIZE:()=>Ys,MESSAGING_MESSAGE_ID:()=>Ks,MESSAGING_MESSAGE_RECEIVE_LATENCY:()=>Js,MESSAGING_MESSAGE_RETRY_COUNT:()=>Qs,MESSAGING_OPERATION_NAME:()=>Xs,MESSAGING_OPERATION_TYPE:()=>Zs,MESSAGING_RABBITMQ_DESTINATION_ROUTING_KEY:()=>el,MESSAGING_SYSTEM:()=>tl,METHOD:()=>rl,MIDDLEWARE_NAME:()=>nl,NAVIGATION_ORIGIN:()=>il,NAVIGATION_ROUTE_ID:()=>ol,NAVIGATION_TYPE:()=>al,NEL_ELAPSED_TIME:()=>sl,NEL_PHASE:()=>ll,NEL_REFERRER:()=>cl,NEL_SAMPLING_FUNCTION:()=>ul,NEL_TYPE:()=>pl,NETWORK_CONNECTION_EFFECTIVE_TYPE:()=>dl,NETWORK_CONNECTION_RTT:()=>hl,NETWORK_CONNECTION_TYPE:()=>fl,NETWORK_LOCAL_ADDRESS:()=>ml,NETWORK_LOCAL_PORT:()=>gl,NETWORK_PEER_ADDRESS:()=>yl,NETWORK_PEER_PORT:()=>bl,NETWORK_PROTOCOL_NAME:()=>vl,NETWORK_PROTOCOL_VERSION:()=>_l,NETWORK_TRANSPORT:()=>Sl,NETWORK_TYPE:()=>El,NET_HOST_IP:()=>Tl,NET_HOST_NAME:()=>wl,NET_HOST_PORT:()=>xl,NET_PEER_IP:()=>Ol,NET_PEER_NAME:()=>Il,NET_PEER_PORT:()=>Al,NET_PROTOCOL_NAME:()=>kl,NET_PROTOCOL_VERSION:()=>Rl,NET_SOCK_FAMILY:()=>Cl,NET_SOCK_HOST_ADDR:()=>Pl,NET_SOCK_HOST_PORT:()=>Dl,NET_SOCK_PEER_ADDR:()=>Ml,NET_SOCK_PEER_NAME:()=>Nl,NET_SOCK_PEER_PORT:()=>Ll,NET_TRANSPORT:()=>Fl,OS_BUILD:()=>Bl,OS_BUILD_ID:()=>Ul,OS_DESCRIPTION:()=>jl,OS_KERNEL_VERSION:()=>Hl,OS_NAME:()=>Vl,OS_RAW_DESCRIPTION:()=>zl,OS_ROOTED:()=>Gl,OS_THEME:()=>ql,OS_TYPE:()=>$l,OS_VERSION:()=>Wl,OTEL_KIND:()=>Yl,OTEL_SCOPE_NAME:()=>Kl,OTEL_SCOPE_VERSION:()=>Jl,OTEL_STATUS_CODE:()=>Ql,OTEL_STATUS_DESCRIPTION:()=>Xl,PARAMS_KEY:()=>Zl,PARAMS_KEY_BASE:()=>ec,PERFORMANCE_ACTIVATIONSTART:()=>tc,PERFORMANCE_TIMEORIGIN:()=>rc,PREVIOUS_ROUTE:()=>nc,PROCESS_COMMAND_ARGS:()=>ic,PROCESS_EXECUTABLE_NAME:()=>oc,PROCESS_PID:()=>ac,PROCESS_RUNTIME_DESCRIPTION:()=>sc,PROCESS_RUNTIME_ENGINE_NAME:()=>lc,PROCESS_RUNTIME_ENGINE_VERSION:()=>cc,PROCESS_RUNTIME_NAME:()=>uc,PROCESS_RUNTIME_VERSION:()=>pc,QUERY_KEY:()=>dc,QUERY_KEY_BASE:()=>hc,REACT_VERSION:()=>fc,RELEASE:()=>mc,REMIX_ACTION_FORM_DATA_KEY:()=>gc,REMIX_ACTION_FORM_DATA_KEY_BASE:()=>yc,REPLAY_ID:()=>bc,RESOURCE_DEPLOYMENT_ENVIRONMENT:()=>vc,RESOURCE_DEPLOYMENT_ENVIRONMENT_NAME:()=>_c,RESOURCE_RENDER_BLOCKING_STATUS:()=>Sc,ROUTE:()=>Ec,RPC_GRPC_STATUS_CODE:()=>Tc,RPC_METHOD:()=>wc,RPC_RESPONSE_STATUS_CODE:()=>xc,RPC_SERVICE:()=>Oc,RPC_SYSTEM:()=>Ic,RPC_SYSTEM_NAME:()=>Ac,RUNTIME_BUILD:()=>kc,RUNTIME_NAME:()=>Rc,RUNTIME_RAW_DESCRIPTION:()=>Cc,RUNTIME_VERSION:()=>Pc,SCORE_KEY:()=>Dc,SCORE_KEY_BASE:()=>Mc,SCORE_RATIO_KEY:()=>Nc,SCORE_RATIO_KEY_BASE:()=>Lc,SCORE_TOTAL:()=>Fc,SCORE_WEIGHT_KEY:()=>Bc,SCORE_WEIGHT_KEY_BASE:()=>Uc,SENTRY_ACTION:()=>jc,SENTRY_BROWSER_NAME:()=>Hc,SENTRY_BROWSER_VERSION:()=>Vc,SENTRY_CANCELLATION_REASON:()=>zc,SENTRY_CATEGORY:()=>Gc,SENTRY_CLIENT_SAMPLE_RATE:()=>qc,SENTRY_DESCRIPTION:()=>$c,SENTRY_DIST:()=>Wc,SENTRY_DOMAIN:()=>Yc,SENTRY_DSC_ENVIRONMENT:()=>Kc,SENTRY_DSC_PROJECT_ID:()=>Jc,SENTRY_DSC_PUBLIC_KEY:()=>Qc,SENTRY_DSC_RELEASE:()=>Xc,SENTRY_DSC_SAMPLED:()=>Zc,SENTRY_DSC_SAMPLE_RATE:()=>eu,SENTRY_DSC_TRACE_ID:()=>tu,SENTRY_DSC_TRANSACTION:()=>ru,SENTRY_ENVIRONMENT:()=>nu,SENTRY_EXCLUSIVE_TIME:()=>iu,SENTRY_GRAPHQL_OPERATION:()=>ou,SENTRY_GROUP:()=>au,SENTRY_HTTP_PREFETCH:()=>su,SENTRY_IDLE_SPAN_FINISH_REASON:()=>lu,SENTRY_IS_REMOTE:()=>cu,SENTRY_KIND:()=>uu,SENTRY_MAIN_THREAD:()=>pu,SENTRY_MESSAGE_PARAMETER_KEY:()=>du,SENTRY_MESSAGE_TEMPLATE:()=>hu,SENTRY_METRIC_SOURCE:()=>fu,SENTRY_MOBILE:()=>mu,SENTRY_MODULE_KEY:()=>gu,SENTRY_MODULE_KEY_BASE:()=>yu,SENTRY_NEXTJS_SSR_FUNCTION_ROUTE:()=>bu,SENTRY_NEXTJS_SSR_FUNCTION_TYPE:()=>vu,SENTRY_NORMALIZED_DB_QUERY:()=>_u,SENTRY_NORMALIZED_DB_QUERY_HASH:()=>Su,SENTRY_NORMALIZED_DESCRIPTION:()=>Eu,SENTRY_OBSERVED_TIMESTAMP_NANOS:()=>Tu,SENTRY_OP:()=>wu,SENTRY_ORIGIN:()=>xu,SENTRY_PLATFORM:()=>Ou,SENTRY_PROFILER_ID:()=>Iu,SENTRY_PROFILE_ID:()=>Au,SENTRY_RELEASE:()=>ku,SENTRY_REPLAY_ID:()=>Ru,SENTRY_REPLAY_IS_BUFFERING:()=>Cu,SENTRY_REPORT_EVENT:()=>Pu,SENTRY_SDK_INTEGRATIONS:()=>Du,SENTRY_SDK_NAME:()=>Mu,SENTRY_SDK_VERSION:()=>Nu,SENTRY_SEGMENT_ID:()=>Lu,SENTRY_SEGMENT_NAME:()=>Bu,SENTRY_SERVER_SAMPLE_RATE:()=>Uu,SENTRY_SOURCE:()=>ju,SENTRY_SPAN_SOURCE:()=>Hu,SENTRY_STATUS:()=>Vu,SENTRY_STATUS_CODE:()=>zu,SENTRY_STATUS_MESSAGE:()=>Gu,SENTRY_SVELTEKIT_NAVIGATION_FROM:()=>qu,SENTRY_SVELTEKIT_NAVIGATION_TO:()=>$u,SENTRY_SVELTEKIT_NAVIGATION_TYPE:()=>Wu,SENTRY_THREAD_ID:()=>Yu,SENTRY_TIMESTAMP_SEQUENCE:()=>Ku,SENTRY_TRACE_LIFECYCLE:()=>Ju,SENTRY_TRACE_PARENT_SPAN_ID:()=>Qu,SENTRY_TRACE_STATUS:()=>Xu,SENTRY_TRANSACTION:()=>Zu,SENTRY_USER_EMAIL:()=>ep,SENTRY_USER_GEO_CITY:()=>tp,SENTRY_USER_GEO_COUNTRY_CODE:()=>rp,SENTRY_USER_GEO_REGION:()=>np,SENTRY_USER_GEO_SUBDIVISION:()=>ip,SENTRY_USER_ID:()=>op,SENTRY_USER_IP:()=>ap,SENTRY_USER_USERNAME:()=>sp,SERVER_ADDRESS:()=>lp,SERVER_NAME:()=>cp,SERVER_PORT:()=>up,SERVICE_NAME:()=>pp,SERVICE_VERSION:()=>dp,SESSION_ID:()=>hp,STALL_PERCENTAGE:()=>fp,STALL_TOTAL_TIME:()=>mp,STATE_TYPE:()=>gp,THREAD_ID:()=>yp,THREAD_NAME:()=>
41bp,TIMBER_TAG:()=>vp,TIME_TO_FULL_DISPLAY:()=>_p,TIME_TO_INITIAL_DISPLAY:()=>Sp,TRANSACTION:()=>Ep,TRPC_PROCEDURE_PATH:()=>Tp,TRPC_PROCEDURE_TYPE:()=>wp,TTFB:()=>xp,TTFB_REQUESTTIME:()=>Op,TYPE:()=>Ip,UI_COMPONENT_NAME:()=>Ap,UI_CONTRIBUTES_TO_TTFD:()=>kp,UI_CONTRIBUTES_TO_TTID:()=>Rp,UI_ELEMENT_HEIGHT:()=>Cp,UI_ELEMENT_ID:()=>Pp,UI_ELEMENT_IDENTIFIER:()=>Dp,UI_ELEMENT_LOAD_TIME:()=>Mp,UI_ELEMENT_PAINT_TYPE:()=>Np,UI_ELEMENT_RENDER_TIME:()=>Lp,UI_ELEMENT_TYPE:()=>Fp,UI_ELEMENT_URL:()=>Bp,UI_ELEMENT_WIDTH:()=>Up,URL:()=>jp,URL_DOMAIN:()=>Hp,URL_FRAGMENT:()=>Vp,URL_FULL:()=>zp,URL_PATH:()=>Gp,URL_PATH_PARAMETER_KEY:()=>qp,URL_PATH_PARAMETER_KEY_BASE:()=>$p,URL_PORT:()=>Wp,URL_QUERY:()=>Yp,URL_SAME_ORIGIN:()=>Kp,URL_SCHEME:()=>Jp,URL_TEMPLATE:()=>Qp,USER_AGENT_ORIGINAL:()=>Xp,USER_EMAIL:()=>Zp,USER_FULL_NAME:()=>ed,USER_GEO_CITY:()=>td,USER_GEO_COUNTRY_CODE:()=>rd,USER_GEO_REGION:()=>nd,USER_GEO_SUBDIVISION:()=>id,USER_HASH:()=>od,USER_ID:()=>ad,USER_IP_ADDRESS:()=>sd,USER_NAME:()=>ld,USER_ROLES:()=>cd,VERCEL_BRANCH:()=>ud,VERCEL_BUILD_ID:()=>pd,VERCEL_DEPLOYMENT_ID:()=>dd,VERCEL_DESTINATION:()=>hd,VERCEL_EDGE_TYPE:()=>fd,VERCEL_ENTRYPOINT:()=>md,VERCEL_EXECUTION_REGION:()=>gd,VERCEL_ID:()=>yd,VERCEL_JA3_DIGEST:()=>bd,VERCEL_JA4_DIGEST:()=>vd,VERCEL_LOG_TYPE:()=>_d,VERCEL_PATH:()=>Sd,VERCEL_PROJECT_ID:()=>Ed,VERCEL_PROJECT_NAME:()=>Td,VERCEL_PROXY_CACHE_ID:()=>wd,VERCEL_PROXY_CLIENT_IP:()=>xd,VERCEL_PROXY_HOST:()=>Od,VERCEL_PROXY_LAMBDA_REGION:()=>Id,VERCEL_PROXY_METHOD:()=>Ad,VERCEL_PROXY_PATH:()=>kd,VERCEL_PROXY_PATH_TYPE:()=>Rd,VERCEL_PROXY_PATH_TYPE_VARIANT:()=>Cd,VERCEL_PROXY_REFERER:()=>Pd,VERCEL_PROXY_REGION:()=>Dd,VERCEL_PROXY_RESPONSE_BYTE_SIZE:()=>Md,VERCEL_PROXY_SCHEME:()=>Nd,VERCEL_PROXY_STATUS_CODE:()=>Ld,VERCEL_PROXY_TIMESTAMP:()=>Fd,VERCEL_PROXY_USER_AGENT:()=>Bd,VERCEL_PROXY_VERCEL_CACHE:()=>Ud,VERCEL_PROXY_VERCEL_ID:()=>jd,VERCEL_PROXY_WAF_ACTION:()=>Hd,VERCEL_PROXY_WAF_RULE_ID:()=>Vd,VERCEL_REQUEST_ID:()=>zd,VERCEL_SOURCE:()=>Gd,VERCEL_STATUS_CODE:()=>qd,_AWS_KINESIS_STREAM_NAME:()=>$e,_AWS_REQUEST_ID:()=>it,_HTTP_REQUEST_METHOD:()=>la,_SENTRY_SEGMENT_ID:()=>Fu});const n="ai.citations",i="ai.completion_tokens.used",o="ai.documents",a="ai.finish_reason",s="ai.frequency_penalty",l="ai.function_call",c="ai.generation_id",u="ai.input_messages",p="ai.is_search_required",d="ai.metadata",h="ai.model_id",f="ai.model.provider",m="ai.pipeline.name",g="ai.preamble",y="ai.presence_penalty",b="ai.prompt_tokens.used",v="ai.raw_prompting",_="ai.responses",S="ai.response_format",E="ai.search_queries",T="ai.search_results",w="ai.seed",x="ai.streaming",O="ai.tags",I="ai.temperature",A="ai.texts",k="ai.tools",R="ai.tool_calls",C="ai.top_k",P="ai.top_p",D="ai.total_cost",M="ai.total_tokens.used",N="ai.warnings",L="angular.version",F="app.app_build",B="app.app_identifier",U="app.app_name",j="app.app_start_time",H="app.app_version",V="app.build",z="app.identifier",G="app.in_foreground",q="app.name",$="app_start_cold",W="app.start_time",Y="app_start_type",K="app_start_warm",J="app.version",Q="app.vitals.frames.delay.value",X="app.vitals.frames.frozen.count",Z="app.vitals.frames.slow.count",ee="app.vitals.frames.total.count",te="app.vitals.start.cold.value",re="app.vitals.start.prewarmed",ne="app.vitals.start.reason",ie="app.vitals.start.screen",oe="app.vitals.start.type",ae="app.vitals.start.warm.value",se="app.vitals.ttfd.value",le="app.vitals.ttid.value",ce="art.gc.blocking_count",ue="art.gc.blocking_time",pe="art.gc.pre_oome_count",de="art.gc.total_count",he="art.gc.total_time",fe="art.gc.waiting_time",me="art.memory.free",ge="art.memory.free_until_gc",ye="art.memory.free_until_oome",be="art.memory.max",ve="art.memory.total",_e="aws.cloudwatch.logs.log_group",Se="aws.cloudwatch.logs.log_stream",Ee="aws.cloudwatch.logs.url",Te="aws.dynamodb.attribute_definitions",we="aws.dynamodb.consistent_read",xe="aws.dynamodb.consumed_capacity",Oe="aws.dynamodb.count",Ie="aws.dynamodb.exclusive_start_table",Ae="aws.dynamodb.global_secondary_indexes",ke="aws.dynamodb.global_secondary_index_updates",Re="aws.dynamodb.index_name",Ce="aws.dynamodb.item_collection_metrics",Pe="aws.dynamodb.limit",De="aws.dynamodb.local_secondary_indexes",Me="aws.dynamodb.projection",Ne="aws.dynamodb.provisioned_read_capacity",Le="aws.dynamodb.provisioned_write_capacity",Fe="aws.dynamodb.scanned_count",Be="aws.dynamodb.scan_forward",Ue="aws.dynamodb.segment",je="aws.dynamodb.select",He="aws.dynamodb.table_count",Ve="aws.dynamodb.table_names",ze="aws.dynamodb.total_segments",Ge="aws.extended_request_id",qe="aws.kinesis.stream_name",$e="aws.kinesis.stream.name",We="aws.lambda.aws_request_id",Ye="aws.lambda.execution_duration_in_millis",Ke="aws.lambda.function_name",Je="aws.lambda.function_version",Qe="aws.lambda.invoked_arn",Xe="aws.lambda.invoked_function_arn",Ze="aws.lambda.remaining_time_in_millis",et="aws.log.group.names",tt="aws.log.stream.names",rt="aws.request.extended_id",nt="aws.request_id",it="aws.request.id",ot="aws.s3.bucket",at="aws.secretsmanager.secret.arn",st="aws.sns.topic.arn",lt="aws.step_functions.activity.arn",ct="aws.step_functions.state_machine.arn",ut="blocked_main_thread",pt="browser.name",dt="browser.performance.navigation.activation_start",ht="browser.performance.time_origin",ft="browser.report.type",mt="browser.script.invoker",gt="browser.script.invoker_type",yt="browser.script.source_char_position",bt="browser.version",vt="browser.web_vital.cls.report_event",_t="browser.web_vital.cls.source.<key>",St="browser.web_vital.cls.source",Et="browser.web_vital.cls.value",Tt="browser.web_vital.fcp.value",wt="browser.web_vital.fp.value",xt="browser.web_vital.inp.value",Ot="browser.web_vital.lcp.element",It="browser.web_vital.lcp.id",At="browser.web_vital.lcp.load_time",kt="browser.web_vital.lcp.render_time",Rt="browser.web_vital.lcp.report_event",Ct="browser.web_vital.lcp.size",Pt="browser.web_vital.lcp.url",Dt="browser.web_vital.lcp.value",Mt="browser.web_vital.ttfb.request_time",Nt="browser.web_vital.ttfb.value",Lt="cache.hit",Ft="cache.item_size",Bt="cache.key",Ut="cache.operation",jt="cache.ttl",Ht="cache.write",Vt="channel",zt="client.address",Gt="client.port",qt="cloudflare.d1.duration",$t="cloudflare.d1.query_type",Wt="cloudflare.d1.rows_read",Yt="cloudflare.d1.rows_written",Kt="cloudflare.durable_object.query.bindings",Jt="cloudflare.durable_object.response.rows_read",Qt="cloudflare.durable_object.response.rows_written",Xt="cloudflare.r2.bucket",Zt="cloudflare.r2.operation",er="cloudflare.r2.request.delimiter",tr="cloudflare.r2.request.key",rr="cloudflare.r2.request.part_number",nr="cloudflare.r2.request.prefix",ir="cloudflare.workflow.attempt",or="cloudflare.workflow.retries.backoff",ar="cloudflare.workflow.retries.delay",sr="cloudflare.workflow.retries.limit",lr="cloudflare.workflow.timeout",cr="cloud.account.id",ur="cloud.availability_zone",pr="cloud.platform",dr="cloud.provider",hr="cloud.region",fr="cloud.resource_id",mr="cls",gr="cls.source.<key>",yr="cls.source",br="code.filepath",vr="code.file.path",_r="code.function",Sr="code.function.name",Er="code.lineno",Tr="code.line.number",wr="code.namespace",xr="connectionType",Or="connection.rtt",Ir="culture.calendar",Ar="culture.display_name",kr="culture.is_24_hour_format",Rr="culture.locale",Cr="culture.timezone",Pr="db.collection.name",Dr="db.driver.name",Mr="db.name",Nr="db.namespace",Lr="db.operation",Fr="db.operation.batch.size",Br="db.operation.name",Ur="db.query.parameter.<key>",jr="db.query.parameter",Hr="db.query.summary",Vr="db.query.text",zr="db.redis.connection",Gr="db.redis.key",qr="db.redis.parameters",$r="db.response.status_code",Wr="db.sql.bindings",Yr="db.statement",Kr="db.stored_procedure.name",Jr="db.system",Qr="db.system.name",Xr="db.user",Zr="deviceMemory",en="device.archs",tn="device.battery_level",rn="device.battery_temperature",nn="device.boot_time",on="device.brand",an="device.charging",sn="device.chipset",ln="device.class",cn="device.connection_type",un="device.cpu_description",pn="device.external_free_storage",dn="device.external_storage_size",hn="device.family",fn="device.free_memory",mn="device.free_storage",gn="device.id",yn="device.locale",bn="device.low_memory",vn="device.low_power_mode",_n="device.manufacturer",Sn="device.memory.estimated_capacity",En="device.memory_size",Tn="device.model",wn="device.model_id",xn="device.name",On="device.online",In="device.orientation",An="device.processor_count",kn="device.processor_frequency",Rn="device.screen_density",Cn="device.screen_dpi",Pn="device.screen_height_pixels",Dn="device.screen_width_pixels",Mn="device.simulator",Nn="device.storage_size",Ln="device.thermal_state",Fn="device.timezone",Bn="device.usable_memory",Un="dist",jn="effectiveConnectionType",Hn="environment",Vn="error.type",zn="event.id",Gn="event.name",qn="exception.escaped",$n="exception.message",Wn="exception.stacktrace",Yn="exception.type",Kn="faas.coldstart",Jn="faas.cron",Qn="faas.duration_in_ms",Xn="faas.entry_point",Zn="faas.execution",ei="faas.id",ti="faas.identity",ri="faas.invocation_id",ni="faas.invoked_name",ii="faas.invoked_provider",oi="faas.invoked_region",ai="faas.name",si="faas.time",li="faas.trigger",ci="faas.version",ui="fcp",pi="flag.evaluation.<key>",di="flag.evaluation",hi="fp",fi="frames.delay",mi="frames.frozen",gi="frames_frozen_rate",yi="frames.slow",bi="frames_slow_rate",vi="frames.total",_i="fs_error",Si="gcp.function.context.event_id",Ei="gcp.function.context.event_type",Ti="gcp.function.context.
41id",wi="gcp.function.context.resource",xi="gcp.function.context.source",Oi="gcp.function.context.specversion",Ii="gcp.function.context.time",Ai="gcp.function.context.timestamp",ki="gcp.function.context.type",Ri="gcp.project.id",Ci="gen_ai.agent.name",Pi="gen_ai.context.utilization",Di="gen_ai.context.window_size",Mi="gen_ai.conversation.id",Ni="gen_ai.cost.cache_creation.input_tokens",Li="gen_ai.cost.cache_read.input_tokens",Fi="gen_ai.cost.input_tokens",Bi="gen_ai.cost.output_tokens",Ui="gen_ai.cost.reasoning.output_tokens",ji="gen_ai.cost.total_tokens",Hi="gen_ai.embeddings.input",Vi="gen_ai.function_id",zi="gen_ai.input.messages",Gi="gen_ai.operation.name",qi="gen_ai.operation.type",$i="gen_ai.output.messages",Wi="gen_ai.pipeline.name",Yi="gen_ai.prompt",Ki="gen_ai.prompt.name",Ji="gen_ai.provider.name",Qi="gen_ai.request.available_tools",Xi="gen_ai.request.frequency_penalty",Zi="gen_ai.request.max_tokens",eo="gen_ai.request.messages",to="gen_ai.request.model",ro="gen_ai.request.presence_penalty",no="gen_ai.request.reasoning_effort",io="gen_ai.request.seed",oo="gen_ai.request.stop_sequences",ao="gen_ai.request.temperature",so="gen_ai.request.top_k",lo="gen_ai.request.top_p",co="gen_ai.response.finish_reasons",uo="gen_ai.response.id",po="gen_ai.response.model",ho="gen_ai.response.streaming",fo="gen_ai.response.text",mo="gen_ai.response.time_to_first_chunk",go="gen_ai.response.time_to_first_token",yo="gen_ai.response.tokens_per_second",bo="gen_ai.response.tool_calls",vo="gen_ai.system",_o="gen_ai.system_instructions",So="gen_ai.system.message",Eo="gen_ai.tool.call.arguments",To="gen_ai.tool.call.result",wo="gen_ai.tool.definitions",xo="gen_ai.tool.description",Oo="gen_ai.tool.input",Io="gen_ai.tool.message",Ao="gen_ai.tool.name",ko="gen_ai.tool.output",Ro="gen_ai.tool.type",Co="gen_ai.usage.cache_creation.input_tokens",Po="gen_ai.usage.cache_read.input_tokens",Do="gen_ai.usage.completion_tokens",Mo="gen_ai.usage.input_tokens",No="gen_ai.usage.input_tokens.cached",Lo="gen_ai.usage.input_tokens.cache_write",Fo="gen_ai.usage.output_tokens",Bo="gen_ai.usage.output_tokens.reasoning",Uo="gen_ai.usage.prompt_tokens",jo="gen_ai.usage.reasoning.output_tokens",Ho="gen_ai.usage.total_tokens",Vo="graphql.document",zo="graphql.operation.name",Go="graphql.operation.type",qo="hardwareConcurrency",$o="http.client_ip",Wo="http.decoded_response_content_length",Yo="http.flavor",Ko="http.fragment",Jo="http.host",Qo="http.method",Xo="http.query",Zo="http.request.body.data",ea="http.request.connection_end",ta="http.request.connect_start",ra="http.request.domain_lookup_end",na="http.request.domain_lookup_start",ia="http.request.fetch_start",oa="http.request.header.<key>",aa="http.request.header",sa="http.request.method",la="http.request_method",ca="http.request.redirect_end",ua="http.request.redirect_start",pa="http.request.request_start",da="http.request.resend_count",ha="http.request.response_end",fa="http.request.response_start",ma="http.request.same_origin",ga="http.request.secure_connection_start",ya="http.request.time_to_first_byte",ba="http.request.worker_start",va="http.response.body.size",_a="http.response_content_length",Sa="http.response.header.content-length",Ea="http.response.header.<key>",Ta="http.response.header",wa="http.response.size",xa="http.response.status_code",Oa="http.response_transfer_size",Ia="http.route",Aa="http.scheme",ka="http.server_name",Ra="http.server.request.time_in_queue",Ca="http.status_code",Pa="http.target",Da="http.url",Ma="http.user_agent",Na="id",La="inp",Fa="jsonrpc.protocol.version",Ba="jsonrpc.request.id",Ua="jvm.gc.action",ja="jvm.gc.name",Ha="jvm.memory.pool.name",Va="jvm.memory.type",za="jvm.thread.daemon",Ga="jvm.thread.state",qa="koa.name",$a="koa.type",Wa="lcp",Ya="lcp.element",Ka="lcp.id",Ja="lcp.loadTime",Qa="lcp.renderTime",Xa="lcp.size",Za="lcp.url",es="logger.name",ts="mcp.cancelled.reason",rs="mcp.cancelled.request_id",ns="mcp.client.name",is="mcp.client.title",os="mcp.client.version",as="mcp.lifecycle.phase",ss="mcp.logging.data_type",ls="mcp.logging.level",cs="mcp.logging.logger",us="mcp.logging.message",ps="mcp.method.name",ds="mcp.progress.current",hs="mcp.progress.message",fs="mcp.progress.percentage",ms="mcp.progress.token",gs="mcp.progress.total",ys="mcp.prompt.name",bs="mcp.prompt.result.description",vs="mcp.prompt.result.message_content",_s="mcp.prompt.result.message_count",Ss="mcp.prompt.result.message_role",Es="mcp.protocol.ready",Ts="mcp.protocol.version",ws="mcp.request.argument.<key>",xs="mcp.request.argument",Os="mcp.request.argument.name",Is="mcp.request.argument.uri",As="mcp.request.id",ks="mcp.resource.protocol",Rs="mcp.resource.uri",Cs="mcp.server.name",Ps="mcp.server.title",Ds="mcp.server.version",Ms="mcp.session.id",Ns="mcp.tool.name",Ls="mcp.tool.result.content",Fs="mcp.tool.result.content_count",Bs="mcp.tool.result.is_error",Us="mcp.transport",js="mdc.<key>",Hs="mdc",Vs="messaging.batch.message_count",zs="messaging.destination",Gs="messaging.destination.connection",qs="messaging.destination.name",$s="messaging.message.body.size",Ws="messaging.message.conversation_id",Ys="messaging.message.envelope.size",Ks="messaging.message.id",Js="messaging.message.receive.latency",Qs="messaging.message.retry.count",Xs="messaging.operation.name",Zs="messaging.operation.type",el="messaging.rabbitmq.de
41stination.routing_key",tl="messaging.system",rl="method",nl="middleware.name",il="navigation.origin",ol="navigation.route.id",al="navigation.type",sl="nel.elapsed_time",ll="nel.phase",cl="nel.referrer",ul="nel.sampling_function",pl="nel.type",dl="network.connection.effective_type",hl="network.connection.rtt",fl="network.connection.type",ml="network.local.address",gl="network.local.port",yl="network.peer.address",bl="network.peer.port",vl="network.protocol.name",_l="network.protocol.version",Sl="network.transport",El="network.type",Tl="net.host.ip",wl="net.host.name",xl="net.host.port",Ol="net.peer.ip",Il="net.peer.name",Al="net.peer.port",kl="net.protocol.name",Rl="net.protocol.version",Cl="net.sock.family",Pl="net.sock.host.addr",Dl="net.sock.host.port",Ml="net.sock.peer.addr",Nl="net.sock.peer.name",Ll="net.sock.peer.port",Fl="net.transport",Bl="os.build",Ul="os.build_id",jl="os.description",Hl="os.kernel_version",Vl="os.name",zl="os.raw_description",Gl="os.rooted",ql="os.theme",$l="os.type",Wl="os.version",Yl="otel.kind",Kl="otel.scope.name",Jl="otel.scope.version",Ql="otel.status_code",Xl="otel.status_description",Zl="params.<key>",ec="params",tc="performance.activationStart",rc="performance.timeOrigin",nc="previous_route",ic="process.command_args",oc="process.executable.name",ac="process.pid",sc="process.runtime.description",lc="process.runtime.engine.name",cc="process.runtime.engine.version",uc="process.runtime.name",pc="process.runtime.version",dc="query.<key>",hc="query",fc="react.version",mc="release",gc="remix.action_form_data.<key>",yc="remix.action_form_data",bc="replay_id",vc="resource.deployment.environment",_c="resource.deployment.environment.name",Sc="resource.render_blocking_status",Ec="route",Tc="rpc.grpc.status_code",wc="rpc.method",xc="rpc.response.status_code",Oc="rpc.service",Ic="rpc.system",Ac="rpc.system.name",kc="runtime.build",Rc="runtime.name",Cc="runtime.raw_description",Pc="runtime.version",Dc="score.<key>",Mc="score",Nc="score.ratio.<key>",Lc="score.ratio",Fc="score.total",Bc="score.weight.<key>",Uc="score.weight",jc="sentry.action",Hc="sentry.browser.name",Vc="sentry.browser.version",zc="sentry.cancellation_reason",Gc="sentry.category",qc="sentry.client_sample_rate",$c="sentry.description",Wc="sentry.dist",Yc="sentry.domain",Kc="sentry.dsc.environment",Jc="sentry.dsc.project_id",Qc="sentry.dsc.public_key",Xc="sentry.dsc.release",Zc="sentry.dsc.sampled",eu="sentry.dsc.sample_rate",tu="sentry.dsc.trace_id",ru="sentry.dsc.transaction",nu="sentry.environment",iu="sentry.exclusive_time",ou="sentry.graphql.operation",au="sentry.group",su="sentry.http.prefetch",lu="sentry.idle_span_finish_reason",cu="sentry.is_remote",uu="sentry.kind",pu="sentry.main_thread",du="sentry.message.parameter.<key>",hu="sentry.message.template",fu="sentry.metric.source",mu="sentry.mobile",gu="sentry.module.<key>",yu="sentry.module",bu="sentry.nextjs.ssr.function.route",vu="sentry.nextjs.ssr.function.type",_u="sentry.normalized_db_query",Su="sentry.normalized_db_query.hash",Eu="sentry.normalized_description",Tu="sentry.observed_timestamp_nanos",wu="sentry.op",xu="sentry.origin",Ou="sentry.platform",Iu="sentry.profiler_id",Au="sentry.profile_id",ku="sentry.release",Ru="sentry.replay_id",Cu="sentry.replay_is_buffering",Pu="sentry.report_event",Du="sentry.sdk.integrations",Mu="sentry.sdk.name",Nu="sentry.sdk.version",Lu="sentry.segment.id",Fu="sentry.segment_id",Bu="sentry.segment.name",Uu="sentry.server_sample_rate",ju="sentry.source",Hu="sentry.span.source",Vu="sentry.status",zu="sentry.status_code",Gu="sentry.status.message",qu="sentry.sveltekit.navigation.from",$u="sentry.sveltekit.navigation.to",Wu="sentry.sveltekit.navigation.type",Yu="sentry.thread.id",Ku="sentry.timestamp.sequence",Ju="sentry.trace_lifecycle",Qu="sentry.trace.parent_span_id",Xu="sentry.trace.status",Zu="sentry.transaction",ep="sentry.user.email",tp="sentry.user.geo.city",rp="sentry.user.geo.country_code",np="sentry.user.geo.region",ip="sentry.user.geo.subdivision",op="sentry.user.id",ap="sentry.user.ip",sp="sentry.user.username",lp="server.address",cp="server_name",up="server.port",pp="service.name",dp="service.version",hp="session.id",fp="stall_percentage",mp="stall_total_time",gp="state.type",yp="thread.id",bp="thread.name",vp="timber.tag",_p="time_to_full_display",Sp="time_to_initial_display",Ep="transaction",Tp="trpc.procedure_path",wp="trpc.procedure_type",xp="ttfb",Op="ttfb.requestTime",Ip="type",Ap="ui.component_name",kp="ui.contributes_to_ttfd",R
41p="ui.contributes_to_ttid",Cp="ui.element.height",Pp="ui.element.id",Dp="ui.element.identifier",Mp="ui.element.load_time",Np="ui.element.paint_type",Lp="ui.element.render_time",Fp="ui.element.type",Bp="ui.element.url",Up="ui.element.width",jp="url",Hp="url.domain",Vp="url.fragment",zp="url.full",Gp="url.path",qp="url.path.parameter.<key>",$p="url.path.parameter",Wp="url.port",Yp="url.query",Kp="url.same_origin",Jp="url.scheme",Qp="url.template",Xp="user_agent.original",Zp="user.email",ed="user.full_name",td="user.geo.city",rd="user.geo.country_code",nd="user.geo.region",id="user.geo.subdivision",od="user.hash",ad="user.id",sd="user.ip_address",ld="user.name",cd="user.roles",ud="vercel.branch",pd="vercel.build_id",dd="vercel.deployment_id",hd="vercel.destination",fd="vercel.edge_type",md="vercel.entrypoint",gd="vercel.execution_region",yd="vercel.id",bd="vercel.ja3_digest",vd="vercel.ja4_digest",_d="vercel.log_type",Sd="vercel.path",Ed="vercel.project_id",Td="vercel.project_name",wd="vercel.proxy.cache_id",xd="vercel.proxy.client_ip",Od="vercel.proxy.host",Id="vercel.proxy.lambda_region",Ad="vercel.proxy.method",kd="vercel.proxy.path",Rd="vercel.proxy.path_type",Cd="vercel.proxy.path_type_variant",Pd="vercel.proxy.referer",Dd="vercel.proxy.region",Md="vercel.proxy.response_byte_size",Nd="vercel.proxy.scheme",Ld="vercel.proxy.status_code",Fd="vercel.proxy.timestamp",Bd="vercel.proxy.user_agent",Ud="vercel.proxy.vercel_cache",jd="vercel.proxy.vercel_id",Hd="vercel.proxy.waf_action",Vd="vercel.proxy.waf_rule_id",zd="vercel.request_id",Gd="vercel.source",qd="vercel.status_code",$d={"ai.citations":"string[]","ai.completion_tokens.used":"integer","ai.documents":"string[]","ai.finish_reason":"string","ai.frequency_penalty":"double","ai.function_call":"string","ai.generation_id":"string","ai.input_messages":"string","ai.is_search_required":"boolean","ai.metadata":"string","ai.model_id":"string","ai.model.provider":"string","ai.pipeline.name":"string","ai.preamble":"string","ai.presence_penalty":"double","ai.prompt_tokens.used":"integer","ai.raw_prompting":"boolean","ai.responses":"string[]","ai.response_format":"string","ai.search_queries":"string[]","ai.search_results":"string[]","ai.seed":"string","ai.streaming":"boolean","ai.tags":"string","ai.temperature":"double","ai.texts":"string[]","ai.tools":"string[]","ai.tool_calls":"string[]","ai.top_k":"integer","ai.top_p":"double","ai.total_cost":"double","ai.total_tokens.used":"integer","ai.warnings":"string[]","angular.version":"string","app.app_build":"string","app.app_identifier":"string","app.app_name":"string","app.app_start_time":"string","app.app_version":"string","app.build":"string","app.identifier":"string","app.in_foreground":"boolean","app.name":"string",app_start_cold:"double","app.start_time":"string",app_start_type:"string",app_start_warm:"double","app.version":"string","app.vitals.frames.delay.value":"integer","app.vitals.frames.frozen.count":"integer","app.vitals.frames.slow.count":"integer","app.vitals.frames.total.count":"integer","app.vitals.start.cold.value":"double","app.vitals.start.prewarmed":"boolean","app.vitals.start.reason":"string","app.vitals.start.screen":"string","app.vitals.start.type":"string","app.vitals.start.warm.value":"double","app.vitals.ttfd.value":"double","app.vitals.ttid.value":"double","art.gc.blocking_count":"integer","art.gc.blocking_time":"double","art.gc.pre_oome_count":"integer","art.gc.total_count":"integer","art.gc.total_time":"double","art.gc.waiting_time":"double","art.memory.free":"integer","art.memory.free_until_gc":"integer","art.memory.free_until_oome":"integer","art.memory.max":"integer","art.memory.total":"integer","aws.cloudwatch.logs.log_group":"string","aws.cloudwatch.logs.log_stream":"string","aws.cloudwatch.logs.url":"string","aws.dynamodb.attribute_definitions":"string[]","aws.dynamodb.consistent_read":"boolean","aws.dynamodb.consumed_capacity":"string[]","aws.dynamodb.count":"integer","aws.dynamodb.exclusive_start_table":"string","aws.dynamodb.global_secondary_indexes":"string[]","aws.dynamodb.global_secondary_index_updates":"string[]","aws.dynamodb.index_name":"string","aws.dynamodb.item_collection_metrics":"string","aws.dynamodb.limit":"integer","aws.dynamodb.local_secondary_indexes":"string[]","aws.dynamodb.projection":"string","aws.dynamodb.provisioned_read_capacity":"double","aws.dynamodb.provisioned_write_capacity":"double","aws.dynamodb.scanned_count":"integer","aws.dynamodb.scan_forward":"boolean","aws.dynamodb.segment":"integer","aws.dynamodb.select":"string","aws.dynamodb.table_count":"integer","aws.dynamodb.table_names":"string[]","aws.dynamodb.total_segments":"integer","aws.extended_request_id":"string","aws.kinesis.stream_name":"string","aws.kinesis.stream.name":"string","aws.lambda.aws_request_id":"string","aws.lambda.execution_duration_in_millis":"double","aws.lambda.function_name":"string","aws.lambda.function_version":"string","aws.lambda.invoked_arn":"string","aws.lambda.invoked_function_arn":"string","aws.lambda.remaining_time_in_millis":"double","aws.log.group.names":"string[]","aws.log.stream.names":"string[]","aws.request.extended_id":"string","aws.request_id":"string","aws.request.id":"string","aws.s3.bucket":"string","aws.secretsmanager.secret.arn":"string","aws.sns.topic.arn":"string","aws.step_functions.activity.arn":"string","aws.step_functions.state_machine.arn":"string",blocked_main_thread:"boolean","browser.name":"string","browser.performance.navigation.activation_start":"double","browser.performance.time_origin":"double","browser.report.type":"string","browser.script.invoker":"string","browser.script.invoker_type":"string","browser.script.source_char_position":"integer","browser.version":"string","browser.web_vital.cls.report_event":"string","browser.web_vital.cls.source.<key>":"string","browser.web_vital.cls.value":"double","browser.web_vital.fcp.value":"double","browser.web_vital.fp.value":"double","browser.web_vital.inp.value":"double","browser.web_vital.lcp.element":"string","browser.web_vital.lcp.id":"string","browser.web_vital.lcp.load_time":"integer","browser.web_vital.lcp.render_time":"integer","browser.web_vital.lcp.report_event":"string","browser.web_vital.lcp.size":"integer","browser.web_vital.lcp.url":"string","browser.web_vital.lcp.value":"double","browser.web_vital.ttfb.request_time":"double","browser.web_vital.ttfb.value":"double","cache.hit":"boolean","cache.item_size":"integer","cache.key":"string[]","cache.operation":"string","cache.ttl":"integer","cache.write":"boolean",channel:"string","client.address":"string","client.port":"integer","cloudflare.d1.duration":"integer","cloudflare.d1.query_type":"string","cloudflare.d1.rows_read":"integer","cloudflare.d1.rows_written":"integer","cloudflare.durable_object.query.bindings":"integer","cloudflare.durable_object.response.rows_read":"integer","cloudflare.durable_object.response.rows_written":"integer","cloudflare.r2.bucket":"string","cloudflare.r2.operation":"string","cloudflare.r2.request.delimiter":"string","cloudflare.r2.request.key":"string","cloudflare.r2.request.part_number":"integer","cloudflare.r2.request.prefix":"string","cloudflare.workflow.attempt":"integer","cloudflare.workflow.retries.backoff":"string","cloudflare.workflow.retries.delay":"string","cloudflare.workflow.retries.limit":"integer","cloudflare.workflow.timeout":"string","cloud.account.id":"string","cloud.availability_zone":"string","cloud.platform":"string","cloud.provider":"string","cloud.region":"string","cloud.resource_id":"string",cls:"double","cls.source.<key>":"string","code.filepath":"string","code.file.path":"string","code.function":"string","code.function.name":"string","code.lineno":"integer","code.line.number":"integer","code.namespace":"string",connectionType:"string","connection.rtt":"integer","culture.calendar":"string","culture.display_name":"string","culture.is_24_hour_format":"boolean","culture.locale":"string","culture.timezone":"string","db.collection.name":"string","db.driver.name":"string","db.name":"string","db.namespace":"string","db.operation":"string","db.operation.batch.size":"integer","db.o
41peration.name":"string","db.query.parameter.<key>":"string","db.query.summary":"string","db.query.text":"string","db.redis.connection":"string","db.redis.key":"string","db.redis.parameters":"string[]","db.response.status_code":"string","db.sql.bindings":"string[]","db.statement":"string","db.stored_procedure.name":"string","db.system":"string","db.system.name":"string","db.user":"string",deviceMemory:"string","device.archs":"string[]","device.battery_level":"double","device.battery_temperature":"double","device.boot_time":"string","device.brand":"string","device.charging":"boolean","device.chipset":"string","device.class":"string","device.connection_type":"string","device.cpu_description":"string","device.external_free_storage":"integer","device.external_storage_size":"integer","device.family":"string","device.free_memory":"integer","device.free_storage":"integer","device.id":"string","device.locale":"string","device.low_memory":"boolean","device.low_power_mode":"boolean","device.manufacturer":"string","device.memory.estimated_capacity":"integer","device.memory_size":"integer","device.model":"string","device.model_id":"string","device.name":"string","device.online":"boolean","device.orientation":"string","device.processor_count":"integer","device.processor_frequency":"double","device.screen_density":"double","device.screen_dpi":"integer","device.screen_height_pixels":"integer","device.screen_width_pixels":"integer","device.simulator":"boolean","device.storage_size":"integer","device.thermal_state":"string","device.timezone":"string","device.usable_memory":"integer",dist:"string",effectiveConnectionType:"string",environment:"string","error.type":"string","event.id":"integer","event.name":"string","exception.escaped":"boolean","exception.message":"string","exception.stacktrace":"string","exception.type":"string","faas.coldstart":"boolean","faas.cron":"string","faas.duration_in_ms":"integer","faas.entry_point":"string","faas.execution":"string","faas.id":"string","faas.identity":"string","faas.invocation_id":"string","faas.invoked_name":"string","faas.invoked_provider":"string","faas.invoked_region":"string","faas.name":"string","faas.time":"string","faas.trigger":"string","faas.version":"string",fcp:"double","flag.evaluation.<key>":"boolean",fp:"double","frames.delay":"integer","frames.frozen":"integer",frames_frozen_rate:"double","frames.slow":"integer",frames_slow_rate:"double","frames.total":"integer",fs_error:"string","gcp.function.context.event_id":"string","gcp.function.context.event_type":"string","gcp.function.context.id":"string","gcp.function.context.resource":"string","gcp.function.context.source":"string","gcp.function.context.specversion":"string","gcp.function.context.time":"string","gcp.function.context.timestamp":"string","gcp.function.context.type":"string","gcp.project.id":"string","gen_ai.agent.name":"string","gen_ai.context.utilization":"double","gen_ai.context.window_size":"integer","gen_ai.conversation.id":"string","gen_ai.cost.cache_creation.input_tokens":"double","gen_ai.cost.cache_read.input_tokens":"double","gen_ai.cost.input_tokens":"double","gen_ai.cost.output_tokens":"double","gen_ai.cost.reasoning.output_tokens":"double","gen_ai.cost.total_tokens":"double","gen_ai.embeddings.input":"string","gen_ai.function_id":"string","gen_ai.input.messages":"string","gen_ai.operation.name":"string","gen_ai.operation.type":"string","gen_ai.output.messages":"string","gen_ai.pipeline.name":"string","gen_ai.prompt":"string","gen_ai.prompt.name":"string","gen_ai.provider.name":"string","gen_ai.request.available_tools":"string","gen_ai.request.frequency_penalty":"double","gen_ai.request.max_tokens":"integer","gen_ai.request.messages":"string","gen_ai.request.model":"string","gen_ai.request.presence_penalty":"double","gen_ai.request.reasoning_effort":"string","gen_ai.request.seed":"string","gen_ai.request.stop_sequences":"string[]","gen_ai.request.temperature":"double","gen_ai.request.top_k":"integer","gen_ai.request.top_p":"double","gen_ai.response.finish_reasons":"string","gen_ai.response.id":"string","gen_ai.response.model":"string","gen_ai.response.streaming":"boolean","gen_ai.response.text":"string","gen_ai.response.time_to_first_chunk":"double","gen_ai.response.time_to_first_token":"double","gen_ai.response.tokens_per_second":"double","gen_ai.response.tool_calls":"string","gen_ai.system":"string","gen_ai.system_instructions":"string","gen_ai.system.message":"string","gen_ai.tool.call.arguments":"string","gen_ai.tool.call.result":"string","gen_ai.tool.definitions":"string","gen_ai.tool.description":"string","gen_ai.tool.input":"string","gen_ai.tool.message":"string","gen_ai.tool.name":"string","gen_ai.tool.output":"string","gen_ai.tool.type":"string","gen_ai.usage.cache_creation.input_tokens":"integer","gen_ai.usage.cache_read.input_tokens":"integer","gen_ai.usage.completion_tokens":"integer","gen_ai.usage.input_tokens":"integer","gen_ai.usage.input_tokens.cached":"integer","gen_ai.usage.input_tokens.cache_write":"integer","gen_ai.usage.output_tokens":"integer","gen_ai.usage.output_tokens.reasoning":"integer","gen_ai.usage.prompt_tokens":"integer","gen_ai.usage.reasoning.output_tokens":"integer","gen_ai.usage.total_tokens":"integer","graphql.document":"string","graphql.operation.name":"string","graphql.operation.type":"string",hardwareConcurrency:"str
41ing","http.client_ip":"string","http.decoded_response_content_length":"integer","http.flavor":"string","http.fragment":"string","http.host":"string","http.method":"string","http.query":"string","http.request.body.data":"string","http.request.connection_end":"double","http.request.connect_start":"double","http.request.domain_lookup_end":"double","http.request.domain_lookup_start":"double","http.request.fetch_start":"double","http.request.header.<key>":"string[]","http.request.method":"string","http.request_method":"string","http.request.redirect_end":"double","http.request.redirect_start":"double","http.request.request_start":"double","http.request.resend_count":"integer","http.request.response_end":"double","http.request.response_start":"double","http.request.same_origin":"boolean","http.request.secure_connection_start":"double","http.request.time_to_first_byte":"double","http.request.worker_start":"double","http.response.body.size":"integer","http.response_content_length":"integer","http.response.header.content-length":"string","http.response.header.<key>":"string[]","http.response.size":"integer","http.response.status_code":"integer","http.response_transfer_size":"integer","http.route":"string","http.scheme":"string","http.server_name":"string","http.server.request.time_in_queue":"double","http.status_code":"integer","http.target":"string","http.url":"string","http.user_agent":"string",id:"string",inp:"double","jsonrpc.protocol.version":"string","jsonrpc.request.id":"string","jvm.gc.action":"string","jvm.gc.name":"string","jvm.memory.pool.name":"string","jvm.memory.type":"string","jvm.thread.daemon":"boolean","jvm.thread.state":"string","koa.name":"string","koa.type":"string",lcp:"double","lcp.element":"string","lcp.id":"string","lcp.loadTime":"integer","lcp.renderTime":"integer","lcp.size":"integer","lcp.url":"string","logger.name":"string","mcp.cancelled.reason":"string","mcp.cancelled.request_id":"string","mcp.client.name":"string","mcp.client.title":"string","mcp.client.version":"string","mcp.lifecycle.phase":"string","mcp.logging.data_type":"string","mcp.logging.level":"string","mcp.logging.logger":"string","mcp.logging.message":"string","mcp.method.name":"string","mcp.progress.current":"integer","mcp.progress.message":"string","mcp.progress.percentage":"double","mcp.progress.token":"string","mcp.progress.total":"integer","mcp.prompt.name":"string","mcp.prompt.result.description":"string","mcp.prompt.result.message_content":"string","mcp.prompt.result.message_count":"integer","mcp.prompt.result.message_role":"string","mcp.protocol.ready":"integer","mcp.protocol.version":"string","mcp.request.argument.<key>":"string","mcp.request.argument.name":"string","mcp.request.argument.uri":"string","mcp.request.id":"string","mcp.resource.protocol":"string","mcp.resource.uri":"string","mcp.server.name":"string","mcp.server.title":"string","mcp.server.version":"string","mcp.session.id":"string","mcp.tool.name":"string","mcp.tool.result.content":"string","mcp.tool.result.content_count":"integer","mcp.tool.result.is_error":"boolean","mcp.transport":"string","mdc.<key>":"string","messaging.batch.message_count":"integer","messaging.destination":"string","messaging.destination.connection":"string","messaging.destination.name":"string","messaging.message.body.size":"integer","messaging.message.conversation_id":"string","messaging.message.envelope.size":"integer","messaging.message.id":"string","messaging.message.receive.latency":"integer","messaging.message.retry.count":"integer","messaging.operation.name":"string","messaging.operation.type":"string","messaging.rabbitmq.destination.routing_key":"string","messaging.system":"string",method:"string","middleware.name":"string","navigation.origin":"string","navigation.route.id":"string","navigation.type":"string","nel.elapsed_time":"integer","nel.phase":"string","nel.referrer":"string","nel.sampling_function":"double","nel.type":"string","network.connection.effective_type":"string","network.connection.rtt":"integer","network.connection.type":"string","network.local.address":"string","network.local.port":"integer","network.peer.address":"string","network.peer.port":"integer","network.protocol.name":"string","network.protocol.version":"string","network.transport":"string","network.type":"string","net.host.ip":"string","net.host.name":"string","net.host.port":"integer","net.peer.ip":"string","net.peer.name":"string","net.peer.port":"integer","net.protocol.name":"string","net.protocol.version":"string","net.sock.family":"string","net.sock.host.addr":"string","net.sock.host.port":"integer","net.sock.peer.addr":"string","net.sock.peer.name":"string","net.sock.peer.port":"integer","net.transport":"string","os.build":"string","os.build_id":"string","os.description":"string","os.kernel_version":"string","os.name":"string","os.raw_description":"string","os.rooted":"boolean","os.theme":"string","os.t
41ype":"string","os.version":"string","otel.kind":"string","otel.scope.name":"string","otel.scope.version":"string","otel.status_code":"string","otel.status_description":"string","params.<key>":"string","performance.activationStart":"double","performance.timeOrigin":"double",previous_route:"string","process.command_args":"string[]","process.executable.name":"string","process.pid":"integer","process.runtime.description":"string","process.runtime.engine.name":"string","process.runtime.engine.version":"string","process.runtime.name":"string","process.runtime.version":"string","query.<key>":"string","react.version":"string",release:"string","remix.action_form_data.<key>":"string",replay_id:"string","resource.deployment.environment":"string","resource.deployment.environment.name":"string","resource.render_blocking_status":"string",route:"string","rpc.grpc.status_code":"integer","rpc.method":"string","rpc.response.status_code":"string","rpc.service":"string","rpc.system":"string","rpc.system.name":"string","runtime.build":"string","runtime.name":"string","runtime.raw_description":"string","runtime.version":"string","score.<key>":"double","score.ratio.<key>":"double","score.total":"double","score.weight.<key>":"double","sentry.action":"string","sentry.browser.name":"string","sentry.browser.version":"string","sentry.cancellation_reason":"string","sentry.category":"string","sentry.client_sample_rate":"double","sentry.description":"string","sentry.dist":"string","sentry.domain":"string","sentry.dsc.environment":"string","sentry.dsc.project_id":"string","sentry.dsc.public_key":"string","sentry.dsc.release":"string","sentry.dsc.sampled":"boolean","sentry.dsc.sample_rate":"string","sentry.dsc.trace_id":"string","sentry.dsc.transaction":"string","sentry.environment":"string","sentry.exclusive_time":"double","sentry.graphql.operation":"string","sentry.group":"string","sentry.http.prefetch":"boolean","sentry.idle_span_finish_reason":"string","sentry.is_remote":"boolean","sentry.kind":"string","sentry.main_thread":"boolean","sentry.message.parameter.<key>":"string","sentry.message.template":"string","sentry.metric.source":"string","sentry.mobile":"boolean","sentry.module.<key>":"string","sentry.nextjs.ssr.function.route":"string","sentry.nextjs.ssr.function.type":"string","sentry.normalized_db_query":"string","sentry.normalized_db_query.hash":"string","sentry.normalized_description":"string","sentry.observed_timestamp_nanos":"string","sentry.op":"string","sentry.origin":"string","sentry.platform":"string","sentry.profiler_id":"string","sentry.profile_id":"string","sentry.release":"string","sentry.replay_id":"string","sentry.replay_is_buffering":"boolean","sentry.report_event":"string","sentry.sdk.integrations":"string[]","sentry.sdk.name":"string","sentry.sdk.version":"string","sentry.segment.id":"string","sentry.segment_id":"string","sentry.segment.name":"string","sentry.server_sample_rate":"double","sentry.source":"string","sentry.span.source":"string","sentry.status":"string","sentry.status_code":"integer","sentry.status.message":"string","sentry.sveltekit.navigation.from":"string","sentry.sveltekit.navigation.to":"string","sentry.sveltekit.navigation.type":"string","sentry.thread.id":"integer","sentry.timestamp.sequence":"integer","sentry.trace_lifecycle":"string","sentry.trace.parent_span_id":"string","sentry.trace.status":"string","sentry.transaction":"string","sentry.user.email":"string","sentry.user.geo.city":"string","sentry.user.geo.country_code":"string","sentry.user.geo.region":"string","sentry.user.geo.subdivision":"string","sentry.user.id":"string","sentry.user.ip":"string","sentry.user.username":"string","server.address":"string",server_name:"string","server.port":"integer","service.name":"string","service.version":"string","session.id":"string",stall_percentage:"double",stall_total_time:"double","state.type":"string","thread.id":"integer","thread.name":"string","timber.tag":"string",time_to_full_display:"double",time_to_initial_display:"double",transaction:"string","trpc.procedure_path":"string","trpc.procedure_type":"string",ttfb:"double","ttfb.requestTime":"double",type:"string","ui.component_name":"string","ui.contributes_to_ttfd":"boolean","ui.contributes_to_ttid":"boolean","ui.element.height":"integer","ui.element.i
41d":"string","ui.element.identifier":"string","ui.element.load_time":"double","ui.element.paint_type":"string","ui.element.render_time":"double","ui.element.type":"string","ui.element.url":"string","ui.element.width":"integer",url:"string","url.domain":"string","url.fragment":"string","url.full":"string","url.path":"string","url.path.parameter.<key>":"string","url.port":"integer","url.query":"string","url.same_origin":"boolean","url.scheme":"string","url.template":"string","user_agent.original":"string","user.email":"string","user.full_name":"string","user.geo.city":"string","user.geo.country_code":"string","user.geo.region":"string","user.geo.subdivision":"string","user.hash":"string","user.id":"string","user.ip_address":"string","user.name":"string","user.roles":"string[]","vercel.branch":"string","vercel.build_id":"string","vercel.deployment_id":"string","vercel.destination":"string","vercel.edge_type":"string","vercel.entrypoint":"string","vercel.execution_region":"string","vercel.id":"string","vercel.ja3_digest":"string","vercel.ja4_digest":"string","vercel.log_type":"string","vercel.path":"string","vercel.project_id":"string","vercel.project_name":"string","vercel.proxy.cache_id":"string","vercel.proxy.client_ip":"string","vercel.proxy.host":"string","vercel.proxy.lambda_region":"string","vercel.proxy.method":"string","vercel.proxy.path":"string","vercel.proxy.path_type":"string","vercel.proxy.path_type_variant":"string","vercel.proxy.referer":"string","vercel.proxy.region":"string","vercel.proxy.response_byte_size":"integer","vercel.proxy.scheme":"string","vercel.proxy.status_code":"integer","vercel.proxy.timestamp":"integer","vercel.proxy.user_agent":"string[]","vercel.proxy.vercel_cache":"string","vercel.proxy.vercel_id":"string","vercel.proxy.waf_action":"string","vercel.proxy.waf_rule_id":"string","vercel.request_id":"string","vercel.source":"string","vercel.status_code":"integer"},Wd={"ai.citations":{brief:"References or sources cited by the AI model in its response.",type:"string[]",applyScrubbing:{key:"auto"},isInOtel:!1,visibility:"public",example:["Citation 1","Citation 2"],deprecation:{},changelog:[{version:"0.5.0",prs:[264]},{version:"0.1.0",prs:[55]}]},"ai.completion_tokens.used":{brief:"The number of tokens used to respond to the message.",type:"integer",applyScrubbing:{key:"manual"},isInOtel:!1,visibility:"public",example:10,deprecation:{replacement:"gen_ai.usage.output_tokens"},aliases:["gen_ai.usage.output_tokens","gen_ai.usage.completion_tokens"],changelog:[{version:"0.4.0",prs:[228]},{version:"0.1.0",prs:[57,61]},{version:"0.0.0"}]},"ai.documents":{brief:"Documents or content chunks used as context for the AI model.",type:"string[]",applyScrubbing:{key:"auto"},isInOtel:!1,visibility:"public",example:["document1.txt","document2.pdf"],deprecation:{},changelog:[{version:"0.5.0",prs:[264]},{version:"0.1.0",prs:[55]}]},"ai.finish_reason":{brief:"The reason why the model stopped generating.",type:"string",applyScrubbing:{key:"manual"},isInOtel:!1,visibility:"public",example:"COMPLETE",deprecation:{replacement:"gen_ai.response.finish_reasons"},aliases:["gen_ai.response.finish_reasons"],changelog:[{version:"0.1.0",prs:[55,57,61,108,127]}]},"ai.frequency_penalty":{brief:"Used to reduce repetitiveness of generated tokens. The higher the value, the stronger a penalty is applied to previously present tokens, proportional to how many times they have already appeared in the prompt or prior generation.",type:"double",applyScrubbing:{key:"manual"},isInOtel:!1,visibility:"public",example:.5,deprecation:{replacement:"gen_ai.request.frequency_penalty"},aliases:["gen_ai.request.frequency_penalty"],changelog:[{version:"0.4.0",prs:[228]},{version:"0.1.0",prs:[55,57,61,108]}]},"ai.function_call":{brief:"For an AI model call, the function that was called. This is deprecated for OpenAI, and replaced by tool_calls",type:"string",applyScrubbing:{key:"auto"},isInOtel:!1,visibility:"public",example:"function_name",deprecation:{replacement:"gen_ai.tool.name"},aliases:["gen_ai.tool.name","mcp.tool.name"],changelog:[{version:"0.1.0",prs:[55,57,61,108]}]},"ai.generation_id":{brief:"Unique identifier for the completion.",type:"string",applyScrubbing:{key:"manual"},isInOtel:!1,visibility:"public",example:"gen_123abc",deprecation:{replacement:"gen_ai.response.id"},aliases:["gen_ai.response.id"],changelog:[{version:"0.1.0",prs:[55,57,61,108,127]}]},"ai.input_messages":{brief:"The input messages sent to the model",type:"string",applyScrubbing:{key:"manual"},isInOtel:!1,visibility:"public",example:'[{"role": "user", "message": "hello"}]',deprecation:{replacement:"gen_ai.input.messages"},aliases:["gen_ai.request.messages"],changelog:[{version:"0.1.0",prs:[65,119]},{version:"0.0.0"}]},"ai.is_search_required":{brief:"Boolean indicating if the model needs to perform a search.",type:"boolean",applyScrubbing:{key:"manual"},isInOtel:!1,visibility:"public",example:!1,deprecation:{},changelog:[{version:"0.5.0",prs:[264]},{version:"0.1.0",prs:[55]}]},"ai.metadata":{brief:"Extra metadata passed to an AI pipeline step.",type:"string",applyScrubbing:{key:"manual"},isInOtel:!1,visibility:"public",example:'{"user_id": 123, "session_id": "abc123"}',deprecation:{},changelog:[{version:"0.5.0",prs:[264]},{version:"0.1.0",prs:[55,127]}]},"ai.model_id":{brief:"The vendor-specific ID of the model used.",type:"string",applyScrubbing:{key:"manual"},isInOtel:!1,visibility:"public",example:"gpt-4",deprecation:{replacement:"gen_ai.response.model"},aliases:["gen_ai.response.model"],changelog:[{version:"0.1.0",prs:[57,61,127]},{version:"0.0.0"}]},"ai.model.provider":{brief:"The provider of the model.",type:"string",applyScrubbing:{key:"manual"},isInOtel:!1,visibility:"public",example:"openai",deprecation:{replacement:"gen_ai.provider.name"},aliases:["gen_ai.provider.name","gen_ai.system"],changelog:[{version:"0.4.0",prs:[253]},{version:"0.1.0",prs:[57,61,108,127]}]},"ai.pipeline.name":{brief:"The name of the AI pipeline.",type:"string",applyScrubbing:{key:"manual"},isInOtel:!1,visibility:"public",example:"Autofix Pipeline",deprecation:{replacement:"gen_ai.pipeline.name"},aliases:["gen_ai.pipeline.name"],changelog:[{version:"0.1.0",prs:[53,76,108,127]}]},"ai.preamble":{brief:"For an AI model call, the preamble parameter. Preambles are a part of the prompt used to adjust the model's overall behavior and conversation style.",type:"string",applyScrubbing:{key:"auto"},isInOtel:!1,visibility:"public",example:"You are now a clown.",deprecation:{replacement:"gen_ai.system_instructions"},aliases:["gen_ai.system_instructions"],changelog:[{version:"0.5.0",prs:[264]},{version:"0.1.0",prs:[55]}]},"ai.presence_penalty":{brief:"Used to reduce repetitiveness of generated tokens. Similar to frequency_penalty, except that this penalty is a
41pplied equally to all tokens that have already appeared, regardless of their exact frequencies.",type:"double",applyScrubbing:{key:"manual"},isInOtel:!1,visibility:"public",example:.5,deprecation:{replacement:"gen_ai.request.presence_penalty"},aliases:["gen_ai.request.presence_penalty"],changelog:[{version:"0.4.0",prs:[228]},{version:"0.1.0",prs:[55,57,61,108]}]},"ai.prompt_tokens.used":{brief:"The number of tokens used to process just the prompt.",type:"integer",applyScrubbing:{key:"manual"},isInOtel:!1,visibility:"public",example:20,deprecation:{replacement:"gen_ai.usage.input_tokens"},aliases:["gen_ai.usage.prompt_tokens","gen_ai.usage.input_tokens"],changelog:[{version:"0.4.0",prs:[228]},{version:"0.1.0",prs:[57,61]},{version:"0.0.0"}]},"ai.raw_prompting":{brief:"When enabled, the user’s prompt will be sent to the model without any pre-processing.",type:"boolean",applyScrubbing:{key:"manual"},isInOtel:!1,visibility:"public",example:!0,deprecation:{},changelog:[{version:"0.5.0",prs:[264]},{version:"0.1.0",prs:[55]}]},"ai.responses":{brief:"The response messages sent back by the AI model.",type:"string[]",applyScrubbing:{key:"manual"},isInOtel:!1,visibility:"public",example:["hello","world"],deprecation:{replacement:"gen_ai.output.messages"},changelog:[{version:"0.1.0",prs:[65,127]},{version:"0.0.0"}]},"ai.response_format":{brief:"For an AI model call, the format of the response",type:"string",applyScrubbing:{key:"manual"},isInOtel:!1,visibility:"public",example:"json_object",deprecation:{},changelog:[{version:"0.5.0",prs:[264]},{version:"0.1.0",prs:[55,127]}]},"ai.search_queries":{brief:"Queries used to search for relevant context or documents.",type:"string[]",applyScrubbing:{key:"auto"},isInOtel:!1,visibility:"public",example:["climate change effects","renewable energy"],deprecation:{},changelog:[{version:"0.5.0",prs:[264]},{version:"0.1.0",prs:[55]}]},"ai.search_results":{brief:"Results returned from search queries for context.",type:"string[]",applyScrubbing:{key:"auto"},isInOtel:!1,visibility:"public",example:["search_result_1, search_result_2"],deprecation:{},changelog:[{version:"0.5.0",prs:[264]},{version:"0.1.0",prs:[55]}]},"ai.seed":{brief:"The seed, ideally models given the same seed and same other parameters will produce the exact same output.",type:"string",applyScrubbing:{key:"manual"},isInOtel:!1,visibility:"public",example:"1234567890",deprecation:{replacement:"gen_ai.request.seed"},aliases:["gen_ai.request.seed"],changelog:[{version:"0.1.0",prs:[55,57,61,108,127]}]},"ai.streaming":{brief:"Whether the request was streamed back.",type:"boolean",applyScrubbing:{key:"manual"},isInOtel:!1,visibility:"public",example:!0,deprecation:{replacement:"gen_ai.response.streaming"},aliases:["gen_ai.response.streaming"],changelog:[{version:"0.1.0",prs:[76,108]},{version:"0.0.0"}]},"ai.tags":{brief:"Tags that describe an AI pipeline step.",type:"string",applyScrubbing:{key:"manual"},isInOtel:!1,visibility:"public",example:'{"executed_function": "add_integers"}',deprecation:{},changelog:[{version:"0.5.0",prs:[264]},{version:"0.1.0",prs:[55,127]}]},"ai.temperature":{brief:"For an AI model call, the temperature parameter. Temperature essentially means how random the output will be.",type:"double",applyScrubbing:{key:"manual"},isInOtel:!1,visibility:"public",example:.1,deprecation:{replacement:"gen_ai.request.temperature"},aliases:["gen_ai.request.temperature"],changelog:[{version:"0.4.0",prs:[228]},{version:"0.1.0",prs:[55,57,61,108]}]},"ai.texts":{brief:"Raw text inputs provided to the model.",type:"string[]",applyScrubbing:{key:"auto"},isInOtel:!1,visibility:"public",example:["Hello, how are you?","What is the capital of France?"],deprecation:{replacement:"gen_ai.input.messages"},aliases:["gen_ai.input.messages"],changelog:[{version:"0.5.0",prs:[264]},{version:"0.1.0",prs:[55]}]},"ai.tools":{brief:"For an AI model call, the functions that are available",type:"string[]",applyScrubbing:{key:"manual"},isInOtel:!1,visibility:"public",example:["function_1","function_2"],deprecation:{replacement:"gen_ai.tool.definitions"},changelog:[{version:"0.1.0",prs:[55,65,127]}]},"ai.tool_calls":{brief:"For an AI model call, the tool calls that were made.",type:"string[]",applyScrubbing:{key:"auto"},isInOtel:!1,visibility:"public",example:["tool_call_1","tool_call_2"],deprecation:{replacement:"gen_ai.output.messages"},changelog:[{version:"0.1.0",prs:[55,65]}]},"ai.top_k":{brief:"Limits the model to only consider the K most likely next tokens, where K is an integer (e.g., top_k=20 means only the 20 highest probability tokens are considered).",type:"integer",applyScrubbing:{key:"manual"},isInOtel:!1,visibility:"public",example:35,deprecation:{replacement:"gen_ai.request.top_k"},aliases:["gen_ai.request.top_k"],changelog:[{version:"0.4.0",prs:[228]},{version:"0.1.0",prs:[55,57,61,108]}]},"ai.top_p":{brief:"Limits the model to only consider tokens whose cumulative probability mass adds up to p, where p is a float between 0 and 1 (e.g., top_p=0.7 means only tokens that sum up to 70% of the probability mass are considered).",type:"double",applyScrubbing:{key:"manual"},isInOtel:!1,visibility:"public",example:.7,deprecation:{replacement:"gen_ai.request.top_p"},aliases:["gen_ai.request.top_p"],changelog:[{version:"0.4.0",prs:[228]},{version:"0.1.0",prs:[55,57,61,108]}]},"ai.total_cost":{brief:"The total cost for the tokens used.",type:"double",applyScrubbing:{key:"manual"},isInOtel:!1,visibility:"public",example:12.34,deprecation:{replacement:"gen_ai.cost.total_tokens"},aliases:["gen_ai.cost.total_tokens"],changelog:[{version:"0.5.0",prs:[264]},{version:"0.4.0",prs:[228]},{version:"0.1.0",prs:[53]}]},"ai.total_tokens.used":{brief:"The total number of tokens used to process the prompt.",type:"integer",applyScrubbing:{key:"manual"},isInOtel:!1,visibility:"public",example:30,deprecation:{replacement:"gen_ai.usage.total_tokens"},aliases:["gen_ai.usage.total_tokens"],changelog:[{version:"0.4.0",prs:[228]},{version:"0.1.0",prs:[57,61,108]},{version:"0.0.0"}]},"ai.warnings":{brief:"Warning messages generated during model execution.",type:"string[]",applyScrubbing:{key:"auto"},isInOtel:!1,visibility:"public",example:["Token limit exceeded"],deprecation:{},changelog:[{version:"0.5.0",prs:[264]},{version:"0.1.0",prs:[55]}]},"angular.version":{brief:"The version of the Angular framework",type:"string",applyScrubbing:{key:"manual"},isInOtel:!1,visibility:"public",example:"17.1.0",changelog:[{version:"0.7.0",prs:[367],description:"Added angular.version attribute"}]},"app.app_build":{brief:"Internal build identifier, as it appears on the platform.",type:"string",applyScrubbing:{key:"manual"},isInOtel:!1,visibility:"public",example:"1",deprecation:{replacement:"app.build",reason:"Deprecated 
41in favor of app.build"},aliases:["app.build"],changelog:[{version:"0.5.0",prs:[296],description:"Added and deprecated app.app_build in favor of app.build"}]},"app.app_identifier":{brief:"Version-independent application identifier, often a dotted bundle ID.",type:"string",applyScrubbing:{key:"manual"},isInOtel:!1,visibility:"public",example:"com.example.myapp",deprecation:{replacement:"app.identifier",reason:"Deprecated in favor of app.identifier"},aliases:["app.identifier"],changelog:[{version:"0.5.0",prs:[296],description:"Added and deprecated app.app_identifier in favor of app.identifier"}]},"app.app_name":{brief:"Human readable application name, as it appears on the platform.",type:"string",applyScrubbing:{key:"manual"},isInOtel:!1,visibility:"public",example:"My App",deprecation:{replacement:"app.name",reason:"Deprecated in favor of app.name"},aliases:["app.name"],changelog:[{version:"0.5.0",prs:[296],description:"Added and deprecated app.app_name in favor of app.name"}]},"app.app_start_time":{brief:"Formatted UTC timestamp when the user started the application.",type:"string",applyScrubbing:{key:"manual"},isInOtel:!1,visibility:"public",example:"2025-01-01T00:00:00.000Z",deprecation:{replacement:"app.start_time",reason:"Deprecated 
41in favor of app.start_time"},aliases:["app.start_time"],changelog:[{version:"0.5.0",prs:[296],description:"Added and deprecated app.app_start_time in favor of app.start_time"}]},"app.app_version":{brief:"Human readable application version, as it appears on the platform.",type:"string",applyScrubbing:{key:"manual"},isInOtel:!1,visibility:"public",example:"1.0.0",deprecation:{replacement:"app.version",reason:"Deprecated in favor of app.version"},aliases:["app.version"],changelog:[{version:"0.5.0",prs:[296],description:"Added and deprecated app.app_version in favor of app.version"}]},"app.build":{brief:"Internal build identifier, as it appears on the platform.",type:"string",applyScrubbing:{key:"manual"},isInOtel:!1,visibility:"public",example:"1",aliases:["app.app_build"],changelog:[{version:"0.5.0",prs:[296],description:"Added app.build attribute"}]},"app.identifier":{brief:"Version-independent application identifier, often a dotted bundle ID.",type:"string",applyScrubbing:{key:"manual"},isInOtel:!1,visibility:"public",example:"com.example.myapp",aliases:["app.app_identifier"],changelog:[{version:"0.5.0",prs:[296],description:"Added app.identifier attribute"}]},"app.in_foreground":{brief:"Whether the application is currently in the foreground.",type:"boolean",applyScrubbing:{key:"manual"},isInOtel:!1,visibility:"public",example:!0,changelog:[{version:"0.5.0",prs:[296],description:"Added app.in_foreground attribute"}]},"app.name":{brief:"Human readable application name, as it appears on the platform.",type:"string",applyScrubbing:{key:"manual"},isInOtel:!1,visibility:"public",example:"My App",aliases:["app.app_name"],changelog:[{version:"0.5.0",prs:[296],description:"Added app.name attribute"}]},app_start_cold:{brief:"The duration of a cold app start in milliseconds",type:"double",applyScrubbing:{key:"manual"},isInOtel:!1,visibility:"public",example:1234.56,deprecation:{replacement:"app.vitals.start.cold.value",reason:"Replaced by app.vitals.start.cold.value to align with the app.vitals.* namespace for mobile performance attributes"},aliases:["app.vitals.start.cold.value"],changelog:[{version:"0.5.0",prs:[323],description:"Added and deprecated in favor of app.vitals.start.cold.value"}]},"app.start_time":{brief:"Formatted UTC timestamp when the user started the application.",type:"string",applyScrubbing:{key:"manual"},isInOtel:!1,visibility:"public",example:"2025-01-01T00:00:00.000Z",aliases:["app.app_start_time"],changelog:[{version:"0.5.0",prs:[296],description:"Added app.start_time attribute"}]},app_start_type:{brief:"Mobile app start variant. Either cold or warm.",type:"string",applyScrubbing:{key:"manual"},isInOtel:!1,visibility:"public",example:"cold",deprecation:{replacement:"app.vitals.start.type",reason:"Replaced by app.vitals.start.type to align with the app.vitals.* namespace for mobile performance attributes"},aliases:["app.vitals.start.type"],changelog:[{version:"0.5.0",prs:[313],description:"Deprecated 
41in favor of app.vitals.start.type"},{version:"0.1.0",prs:[127]},{version:"0.0.0"}]},app_start_warm:{brief:"The duration of a warm app start in milliseconds",type:"double",applyScrubbing:{key:"manual"},isInOtel:!1,visibility:"public",example:1234.56,deprecation:{replacement:"app.vitals.start.warm.value",reason:"Replaced by app.vitals.start.warm.value to align with the app.vitals.* namespace for mobile performance attributes"},aliases:["app.vitals.start.warm.value"],changelog:[{version:"0.5.0",prs:[323],description:"Added and deprecated in favor of app.vitals.start.warm.value"}]},"app.version":{brief:"Human readable application version, as it appears on the platform.",type:"string",applyScrubbing:{key:"manual"},isInOtel:!1,visibility:"public",example:"1.0.0",aliases:["app.app_version"],changelog:[{version:"0.5.0",prs:[296],description:"Added app.version attribute"}]},"app.vitals.frames.delay.value":{brief:"The sum of all delayed frame durations in seconds during the lifetime of the span. For more information see [frames delay](https://develop.sentry.dev/sdk/performance/frames-delay/).",type:"integer",applyScrubbing:{key:"manual"},isInOtel:!1,visibility:"public",example:5,aliases:["frames.delay"],changelog:[{version:"0.5.0",prs:[313],description:"Added app.vitals.frames.delay.value to replace frames.delay"}]},"app.vitals.frames.frozen.count":{brief:"The number of frozen frames rendered during the lifetime of the span.",type:"integer",applyScrubbing:{key:"manual"},isInOtel:!1,visibility:"public",example:3,aliases:["frames.frozen"],changelog:[{version:"0.5.0",prs:[313],description:"Added app.vitals.frames.frozen.count to replace frames.frozen"}]},"app.vitals.frames.slow.count":{brief:"The number of slow frames rendered during the lifetime of the span.",type:"integer",applyScrubbing:{key:"manual"},isInOtel:!1,visibility:"public",example:1,aliases:["frames.slow"],changelog:[{version:"0.5.0",prs:[313],description:"Added app.vitals.frames.slow.count to replace frames.slow"}]},"app.vitals.frames.total.count":{brief:"The number of total frames rendered during the lifetime of the span.",type:"integer",applyScrubbing:{key:"manual"},isInOtel:!1,visibility:"public",example:60,aliases:["frames.total"],changelog:[{version:"0.5.0",prs:[313],description:"Added app.vitals.frames.total.count to replace frames.total"}]},"app.vitals.start.cold.value":{brief:"The duration of a cold app start in milliseconds",type:"double",applyScrubbing:{key:"manual"},isInOtel:!1,visibility:"public",example:1234.56,aliases:["app_start_cold"],changelog:[{version:"0.5.0",prs:[313],description:"Added app.vitals.start.cold.value attribute"}]},"app.vitals.start.prewarmed":{brief:"Whether the app start was prewarmed.",type:"boolean",applyScrubbing:{key:"manual"},isInOtel:!1,visibility:"public",example:!0,changelog:[{version:"0.11.0",prs:[379],description:"Added app.vitals.start.prewarmed attribute"}]},"app.vitals.start.reason":{brief:"The reason that triggered the app start.",type:"string",applyScrubbing:{key:"manual"},isInOtel:!1,visibility:"public",example:"push",changelog:[{version:"0.7.0",prs:[353],description:"Added app.vitals.start.reason attribute"}]},"app.vitals.start.screen":{brief:"The screen that is rendered when the app start is complete. This is the screen the user first sees and can interact with after launch. The absence of this attribute on the app start span indicates a background app start where no UI was rendered.",type:"string",applyScrubbing:{key:"manual"},isInOtel:!1,visibility:"public",example:"MainActivity",changelog:[{version:"0.7.0",prs:[353],description:"Added app.vitals.start.screen attribute"}]},"app.vitals.start.type":{brief:"The type of app start, for example `cold` or `warm`",type:"string",applyScrubbing:{key:"manual"},isInOtel:!1,visibility:"public",example:"cold",aliases:["app_start_type"],changelog:[{version:"0.5.0",prs:[313],description:"Added app.vitals.start.type attribute"}]},"app.vitals.start.warm.value":{brief:"The duration of a warm app start in milliseconds",type:"double",applyScrubbing:{key:"manual"},isInOtel:!1,visibility:"public",example:1234.56,aliases:["app_start_warm"],changelog:[{version:"0.5.0",prs:[313],description:"Added app.vitals.start.warm.value attribute"}]},"app.vitals.ttfd.value":{brief:"The duration of time to full display in milliseconds",type:"double",applyScrubbing:{key:"manual"},isInOtel:!1,visibility:"public",example:1234.56,aliases:["time_to_full_display"],changelog:[{version:"0.5.0",prs:[313],description:"Added app.vitals.ttfd.value attribute"}]},"app.vitals.ttid.value":{brief:"The duration of time to initial display in milliseconds",type:"double",applyScrubbing:{key:"manual"},isInOtel:!1,visibility:"public",example:1234.56,aliases:["time_to_initial_display"],changelog:[{version:"0.5.0",prs:[313],description:"Added app.vitals.ttid.value attribute"}]},"art.gc.blocking_count":{brief:"Total number of blocking (stop-the-world) garbage collections performed by the Android Runtime",type:"integer",applyScrubbing:{key:"manual"},isInOtel:!1,visibility:"public",example:1,changelog:[{version:"0.11.0",prs:[382],description:"Added art.gc.blocking_count attribute"}]},"art.gc.blocking_time":{brief:"Total time spent in blocking (stop-the-world) garbage collections by the Android Runtime, in milliseconds",type:"double",applyScrubbing:{key:"manual"},isInOtel:!1,visibility:"public",example:11.873,changelog:[{version:"0.11.0",prs:[382],description:"Added art.gc.blocking_time attribute"}]},"art.gc.pre_oome_count":{brief:"Total number of garbage collections triggered as a last resort before an OutOfMemoryError by the Android Runtime",type:"integer",applyScrubbing:{key:"manual"},isInOtel:!1,visibility:"public",example:0,changelog:[{version:"0.11.0",prs:[382],description:"Added art.gc.pre_oome_count attribute"}]},"art.gc.total_count":{brief:"Total number of garbage collections performed by the Android Runtime",type:"integer",applyScrubbing:{key:"manual"},isInOtel:!1,visibility:"public",example:1,changelog:[{version:"0.11.0",prs:[382],description:"Added art.gc.total_count attribute"}]},"art.gc.total_time":{brief:"Total time spent in garbage collection by the Android Runtime, in milliseconds",type:"double",applyScrubbing:{key:"manual"},isInOtel:!1,visibility:"public",example:11.807,changelog:[{version:"0.11.0",prs:[382],description:"Added art.gc.total_time attribute"}]},"art.gc.waiting_time":{brief:"Total time threads spent waiting for garbage collection to complete in the Android Runtime, in milliseconds",type:"double",applyScrubbing:{key:"manual"},isInOtel:!1,visibility:"public",example:8.054,changelog:[{version:"0.11.0",prs:[382],description:"Added art.gc.waiting_time attribute"}]},"art.memory.free":{brief:"Free memory available to the process as reported by the Android Runtime, in bytes",type:"integer",applyScrubbing:{key:"manual"},isInOtel:!1,visibility:"public",example:3181568,changelog:[{version:"0.11.0",prs:[382],description:"Added art.memory.free attribute"}]},"art.memory.free_until_gc":{brief:"Free memory available before a garbage collection would be triggered by the Android Runtime, in bytes",type:"integer",applyScrubbing:{key:"manual"},isInOtel:!1,visibility:"public",example:3181568,changelog:[{version:"0.11.0",prs:[382],description:"Added art.memory.free_until_gc attribute"}]},"art.memory.free_until_oome":{brief:"Free memory available before an OutOfMemoryError would be thrown by the Android Runtime, in bytes",type:"integer",applyScrubbing:{key:"manual"},isInOtel:!1,visibility:"public",example:196083712,changelog:[{version:"0.11.0",prs:[382],description:"Added art.memory.free_until_oome attribute"}]},"art.memory.max":{brief:"Maximum memory the process is allowed to use as reported by the Android Runtime, in bytes",type:"integer",applyScrubbing:{key:"manual"},isInOtel:!1,visibility:"public",example:201326592,changelog:[{version:"0.11.0",prs:[382],description:"Added art.memory.max attribute"}]},"art.memory.total":{brief:"Total memory currently allocated to the process by the Android Runtime, in bytes",type:"integer",applyScrubbing:{key:"manual"},isInOtel:!1,visibility:"public",example:7774208,changelog:[{version:"0.11.0",prs:[382],description:"Added art.memory.total attribute"}]},"aws.cloudwatch.logs.log_group":{brief:"The name of the CloudWatch Logs log group",type:"string",applyScrubbing:{key:"manual"},isInOtel:!1,visibility:"public",example:"/aws/lambda/my-function",changelog:[{version:"0.7.0",prs:[369],description:"Added aws.cloudwatch.logs.log_group attribute"}]},"aws.cloudwatch.logs.log_stream":{brief:"The name of the CloudWatch Logs log stream",type:"string",applyScrubbing:{key:"manual"},isInOtel:!1,visibility:"public",example:"2024/01/01/[$LATEST]abcdef1234567890",changelog:[{version:"0.7.0",prs:[369],description:"Added aws.cloudwatch.logs.log_stream attribute"}]},"aws.cloudwatch.logs.url":{brief:"The URL to the CloudWatch Logs log group",type:"string",applyScrubbing:{key:"manual"},isInOtel:!1,visibility:"public",example:"https://console.aws.amazon.com/cloudwatch/home?region=us-east-1#logsV2:log-groups/log-group/my-log-group",changelog:[{version:"0.7.0",prs:[369],description:"Added aws.cloudwatch.logs.url attribute"}]},"aws.dynamodb.attribute_definitions":{brief:"The JSON-serialized value of each item in the `AttributeDefinitions` request field.",type:"string[]",applyScrubbing:{key:"manual"},isInOtel:!0,visibility:"public",example:['{ "AttributeName": "string", "AttributeType": "string" }'],changelog:[{version:"0.16.0",prs:[479],description:"Added aws.dynamodb.attribute_definitions attribute"}]},"aws.dynamodb.consistent_read":{brief:"The value of the `ConsistentRead` request parameter.",type:"boolean",applyScrubbing:{key:"manual"}
41,isInOtel:!0,visibility:"public",example:!0,changelog:[{version:"0.16.0",prs:[479],description:"Added aws.dynamodb.consistent_read attribute"}]},"aws.dynamodb.consumed_capacity":{brief:"The JSON-serialized value of each item in the `ConsumedCapacity` response field.",type:"string[]",applyScrubbing:{key:"manual"},isInOtel:!0,visibility:"public",example:['{ "CapacityUnits": number, "GlobalSecondaryIndexes": { "string" : { "CapacityUnits": number, "ReadCapacityUnits": number, "WriteCapacityUnits": number } }, "LocalSecondaryIndexes": { "string" : { "CapacityUnits": number, "ReadCapacityUnits": number, "WriteCapacityUnits": number } }, "ReadCapacityUnits": number, "Table": { "CapacityUnits": number, "ReadCapacityUnits": number, "WriteCapacityUnits": number }, "TableName": "string", "WriteCapacityUnits": number }'],changelog:[{version:"0.16.0",prs:[479],description:"Added aws.dynamodb.consumed_capacity attribute"}]},"aws.dynamodb.count":{brief:"The value of the `Count` response parameter.",type:"integer",applyScrubbing:{key:"manual"},isInOtel:!0,visibility:"public",example:10,changelog:[{version:"0.16.0",prs:[479],description:"Added aws.dynamodb.count attribute"}]},"aws.dynamodb.exclusive_start_table":{brief:"The value of the `ExclusiveStartTableName` request parameter.",type:"string",applyScrubbing:{key:"manual"},isInOtel:!0,visibility:"public",example:"Users",changelog:[{version:"0.16.0",prs:[479],description:"Added aws.dynamodb.exclusive_start_table attribute"}]},"aws.dynamodb.global_secondary_indexes":{brief:"The JSON-serialized value of each item of the `GlobalSecondaryIndexes` request field.",type:"string[]",applyScrubbing:{key:"manual"},isInOtel:!0,visibility:"public",example:['{ "IndexName": "string", "KeySchema": [ { "AttributeName": "string", "KeyType": "string" } ], "Projection": { "NonKeyAttributes": [ "string" ], "ProjectionType": "string" }, "ProvisionedThroughput": { "ReadCapacityUnits": number, "WriteCapacityUnits": number } }'],changelog:[{version:"0.16.0",prs:[479],description:"Added aws.dynamodb.global_secondary_indexes attribute"}]},"aws.dynamodb.global_secondary_index_updates":{brief:"The JSON-serialized value of each item in the `GlobalSecondaryIndexUpdates` request field.",type:"string[]",applyScrubbing:{key:"manual"},isInOtel:!0,visibility:"public",example:['{ "Create": { "IndexName": "string", "KeySchema": [ { "AttributeName": "string", "KeyType": "string" } ], "Projection": { "NonKeyAttributes": [ "string" ], "ProjectionType": "string" }, "ProvisionedThroughput": { "ReadCapacityUnits": number, "WriteCapacityUnits": number } }'],changelog:[{version:"0.16.0",prs:[479],description:"Added aws.dynamodb.global_secondary_index_updates attribute"}]},"aws.dynamodb.index_name":{brief:"The value of the `IndexName` request parameter.",type:"string",applyScrubbing:{key:"manual"},isInOtel:!0,visibility:"public",example:"name_to_group",changelog:[{version:"0.16.0",prs:[479],description:"Added aws.dynamodb.index_name attribute"}]},"aws.dynamodb.item_collection_metrics":{brief:"The JSON-serialized value of the `ItemCollectionMetrics` response field.",type:"string",applyScrubbing:{key:"manual"},isInOtel:!0,visibility:"public",example:'{ "string" : [ { "ItemCollectionKey": { "string" : { "B": blob, "BOOL": boolean, "BS": [ blob ], "L": [ "AttributeValue" ], "M": { "string" : "AttributeValue" }, "N": "string", "NS": [ "string" ], "NULL": boolean, "S": "string", "SS": [ "string" ] } }, "SizeEstimateRangeGB": [ number ] } ] }',changelog:[{version:"0.16.0",prs:[479],description:"Added aws.dynamodb.item_collection_metrics attribute"}]},"aws.dynamodb.limit":{brief:"The value of the `Limit` request parameter.",type:"integer",applyScrubbing:{key:"manual"},isInOtel:!0,visibility:"public",example:10,changelog:[{version:"0.16.0",prs:[479],description:"Added aws.dynamodb.limit attribute"}]},"aws.dynamodb.local_secondary_indexes":{brief:"The JSON-serialized value of each item of the `LocalSecondaryIndexes` request field.",type:"string[]",applyScrubbing:{key:"manual"},isInOtel:!0,visibility:"public",example:['{ "IndexArn": "string", "IndexName": "string", "IndexSizeBytes": number, "ItemCount": number, "KeySchema": [ { "AttributeName": "string", "KeyType": "string" } ], "Projection": { "NonKeyAttributes": [ "string" ], "ProjectionType": "string" } }'],changelog:[{version:"0.16.0",prs:[479],description:"Added aws.dynamodb.local_secondary_indexes attribute"}]},"aws.dynamodb.projection":{brief:"The value of the `ProjectionExpression` request parameter.",type:"string",applyScrubbing:{key:"manual"},isInOtel:!0,visibility:"public",example:"Title, Price, Color",changelog:[{version:"0.16.0",prs:[479],description:"Added aws.dynamodb.projection attribute"}]},"aws.dynamodb.provisioned_read_capacity":{brief:"The value of the `ProvisionedThroughput.ReadCapacityUnits` request parameter.",type:"double",applyScrubbing:{key:"manual"},isInOtel:!0,visibility:"public",example:1,changelog:[{version:"0.16.0",prs:[479],description:"Added aws.dynamodb.provisioned_read_capacity attribute"}]},"aws.dynamodb.provisioned_write_capacity":{brief:"The value of the `ProvisionedThroughput.WriteCapacityUnits` request parameter.",type:"double",applyScrubbing:{key:"manual"},isInOtel:!0,visibility:"public",example:2,changelog:[{version:"0.16.0",prs:[479],description:"Added aws.dynamodb.provisioned_write_capacity attribute"}]},"aws.dynamodb.scanned_count":{brief:"The value of the `ScannedCount` response parameter.",type:"integer",applyScrubbing:{key:"manual"},isInOtel:!0,visibility:"public",example:50,changelog:[{version:"0.16.0",prs:[479],description:"Added aws.dynamodb.scanned_count attribute"}]},"aws.dynamodb.scan_forward":{brief:"The value of the `ScanIndexForward` request parameter.",type:"boolean",applyScrubbing:{key:"manual"}
41,isInOtel:!0,visibility:"public",example:!0,changelog:[{version:"0.16.0",prs:[479],description:"Added aws.dynamodb.scan_forward attribute"}]},"aws.dynamodb.segment":{brief:"The value of the `Segment` request parameter.",type:"integer",applyScrubbing:{key:"manual"},isInOtel:!0,visibility:"public",example:10,changelog:[{version:"0.16.0",prs:[479],description:"Added aws.dynamodb.segment attribute"}]},"aws.dynamodb.select":{brief:"The value of the `Select` request parameter.",type:"string",applyScrubbing:{key:"manual"},isInOtel:!0,visibility:"public",example:"ALL_ATTRIBUTES",changelog:[{version:"0.16.0",prs:[479],description:"Added aws.dynamodb.select attribute"}]},"aws.dynamodb.table_count":{brief:"The number of items in the `TableNames` response parameter.",type:"integer",applyScrubbing:{key:"manual"},isInOtel:!0,visibility:"public",example:20,changelog:[{version:"0.16.0",prs:[479],description:"Added aws.dynamodb.table_count attribute"}]},"aws.dynamodb.table_names":{brief:"The keys in the `RequestItems` object field.",type:"string[]",applyScrubbing:{key:"manual"},isInOtel:!0,visibility:"public",example:["Users","Cats"],changelog:[{version:"0.16.0",prs:[479],description:"Added aws.dynamodb.table_names attribute"}]},"aws.dynamodb.total_segments":{brief:"The value of the `TotalSegments` request parameter.",type:"integer",applyScrubbing:{key:"manual"},isInOtel:!0,visibility:"public",example:100,changelog:[{version:"0.16.0",prs:[479],description:"Added aws.dynamodb.total_segments attribute"}]},"aws.extended_request_id":{brief:"The AWS extended request ID as returned in the response headers.",type:"string",applyScrubbing:{key:"manual"},isInOtel:!0,visibility:"public",example:"wzHcyEWfmOGDIE5QOhTAqFDoDWP3y8IUvpNINCwL9N4TEHbUw0/gZJ+VZTmCNCWR7fezEN3eCiQ=",aliases:["aws.request.extended_id"],changelog:[{version:"0.16.0",prs:[480],description:"Added aws.extended_request_id attribute"}]},"aws.kinesis.stream_name":{brief:"The name of the AWS Kinesis stream the request refers to.",type:"string",applyScrubbing:{key:"manual"},isInOtel:!0,visibility:"public",example:"some-stream-name",aliases:["aws.kinesis.stream.name"],changelog:[{version:"0.16.0",prs:[480],description:"Added aws.kinesis.stream_name attribute"}]},"aws.kinesis.stream.name":{brief:"The name of the AWS Kinesis stream the request refers to.",type:"string",applyScrubbing:{key:"manual"},isInOtel:!1,visibility:"public",example:"some-stream-name",deprecation:{replacement:"aws.kinesis.stream_name",reason:"This attribute is being deprecated 
41in favor of aws.kinesis.stream_name, which is the OTel-aligned replacement."},aliases:["aws.kinesis.stream_name"],changelog:[{version:"0.16.0",prs:[480],description:"Added aws.kinesis.stream.name attribute, deprecated in favor of aws.kinesis.stream_name"}]},"aws.lambda.aws_request_id":{brief:"The AWS request ID as received by the Lambda function runtime",type:"string",applyScrubbing:{key:"manual"},isInOtel:!1,visibility:"public",example:"8476a536-e9f4-11e8-9739-2dfe598c3fcd",deprecation:{replacement:"faas.invocation_id",reason:"This attribute is being deprecated in favor of faas.invocation_id"},aliases:["faas.invocation_id","faas.execution"],changelog:[{version:"0.16.0",prs:[473],description:"Added faas.execution as an alias"},{version:"0.11.1",prs:[414,424],description:"Deprecated aws.lambda.aws_request_id in favor of faas.invocation_id"},{version:"0.7.0",prs:[369],description:"Added aws.lambda.aws_request_id attribute"}]},"aws.lambda.execution_duration_in_millis":{brief:"The execution duration of the Lambda function invocation in milliseconds",type:"double",applyScrubbing:{key:"manual"},isInOtel:!1,visibility:"public",example:1234.56,changelog:[{version:"0.7.0",prs:[369],description:"Added aws.lambda.execution_duration_in_millis attribute"}]},"aws.lambda.function_name":{brief:"The name of the Lambda function",type:"string",applyScrubbing:{key:"manual"},isInOtel:!1,visibility:"public",example:"my-function",deprecation:{replacement:"faas.name",reason:"Use the OTel-aligned faas.name attribute instead"},aliases:["faas.name"],changelog:[{version:"0.11.1",prs:[414],description:"Deprecated aws.lambda.function_name in favor of faas.name"},{version:"0.7.0",prs:[369],description:"Added aws.lambda.function_name attribute"}]},"aws.lambda.function_version":{brief:"The version of the Lambda function",type:"string",applyScrubbing:{key:"manual"},isInOtel:!1,visibility:"public",example:"$LATEST",deprecation:{replacement:"faas.version",reason:"Use the OTel-aligned faas.version attribute instead"},aliases:["faas.version"],changelog:[{version:"0.11.1",prs:[414,424],description:"Deprecated aws.lambda.function_version in favor of faas.version"},{version:"0.7.0",prs:[369],description:"Added aws.lambda.function_version attribute"}]},"aws.lambda.invoked_arn":{brief:"The full ARN of the Lambda function that was invoked",type:"string",applyScrubbing:{key:"manual"},isInOtel:!0,visibility:"public",example:"arn:aws:lambda:us-east-1:123456789012:function:my-function",aliases:["aws.lambda.invoked_function_arn"],changelog:[{version:"0.11.1",prs:[414]}]},"aws.lambda.invoked_function_arn":{brief:"The full ARN of the Lambda function that was invoked",type:"string",applyScrubbing:{key:"manual"},isInOtel:!1,visibility:"public",example:"arn:aws:lambda:us-east-1:123456789012:function:my-function",deprecation:{replacement:"aws.lambda.invoked_arn",reason:"This attribute is being deprecated 
41in favor of aws.lambda.invoked_arn"},aliases:["aws.lambda.invoked_arn"],changelog:[{version:"0.11.1",prs:[414],description:"Deprecated aws.lambda.invoked_function_arn in favor of aws.lambda.invoked_arn"},{version:"0.7.0",prs:[369],description:"Added aws.lambda.invoked_function_arn attribute"}]},"aws.lambda.remaining_time_in_millis":{brief:"The remaining time in milliseconds before the Lambda function times out",type:"double",applyScrubbing:{key:"manual"},isInOtel:!1,visibility:"public",example:5e3,changelog:[{version:"0.7.0",prs:[369],description:"Added aws.lambda.remaining_time_in_millis attribute"}]},"aws.log.group.names":{brief:"The name(s) of the AWS log group(s) an application is writing to.",type:"string[]",applyScrubbing:{key:"manual"},isInOtel:!0,visibility:"public",example:["/aws/lambda/my-function","opentelemetry-service"],changelog:[{version:"0.11.1",prs:[414]}]},"aws.log.stream.names":{brief:"The name(s) of the AWS log stream(s) an application is writing to.",type:"string[]",applyScrubbing:{key:"manual"},isInOtel:!0,visibility:"public",example:["logs/main/10838bed-421f-43ef-870a-f43feacbbb5b"],changelog:[{version:"0.11.1",prs:[414]}]},"aws.request.extended_id":{brief:"The AWS extended request ID as returned in the response headers.",type:"string",applyScrubbing:{key:"manual"},isInOtel:!1,visibility:"public",example:"wzHcyEWfmOGDIE5QOhTAqFDoDWP3y8IUvpNINCwL9N4TEHbUw0/gZJ+VZTmCNCWR7fezEN3eCiQ=",deprecation:{replacement:"aws.extended_request_id",reason:"This attribute is being deprecated 
41in favor of aws.extended_request_id, which is the OTel-aligned replacement."},aliases:["aws.extended_request_id"],changelog:[{version:"0.16.0",prs:[480],description:"Added aws.request.extended_id attribute, deprecated in favor of aws.extended_request_id"}]},"aws.request_id":{brief:"The AWS request ID as returned in the response headers.",type:"string",applyScrubbing:{key:"manual"},isInOtel:!0,visibility:"public",example:"79b9da39-b7ae-508a-a6bc-864b2829c622",aliases:["aws.request.id"],changelog:[{version:"0.16.0",prs:[480],description:"Added aws.request_id attribute"}]},"aws.request.id":{brief:"The AWS request ID as returned in the response headers.",type:"string",applyScrubbing:{key:"manual"},isInOtel:!1,visibility:"public",example:"79b9da39-b7ae-508a-a6bc-864b2829c622",deprecation:{replacement:"aws.request_id",reason:"This attribute is being deprecated in favor of aws.request_id, which is the OTel-aligned replacement."},aliases:["aws.request_id"],changelog:[{version:"0.16.0",prs:[480],description:"Added aws.request.id attribute, deprecated 
41in favor of aws.request_id"}]},"aws.s3.bucket":{brief:"The S3 bucket name the request refers to.",type:"string",applyScrubbing:{key:"manual"},isInOtel:!0,visibility:"public",example:"ot-demo-test",changelog:[{version:"0.16.0",prs:[480],description:"Added aws.s3.bucket attribute"}]},"aws.secretsmanager.secret.arn":{brief:"The ARN of the Secret stored in Secrets Manager.",type:"string",applyScrubbing:{key:"manual"},isInOtel:!0,visibility:"public",example:"arn:aws:secretsmanager:us-east-1:123456789012:secret:SecretName-6RandomCharacters",changelog:[{version:"0.16.0",prs:[480],description:"Added aws.secretsmanager.secret.arn attribute"}]},"aws.sns.topic.arn":{brief:"The ARN of the AWS SNS Topic. An Amazon SNS topic is a logical access point that acts as a communication channel.",type:"string",applyScrubbing:{key:"manual"},isInOtel:!0,visibility:"public",example:"arn:aws:sns:us-east-1:123456789012:mystack-mytopic-NZJ5JSMVGFIE",changelog:[{version:"0.16.0",prs:[480],description:"Added aws.sns.topic.arn attribute"}]},"aws.step_functions.activity.arn":{brief:"The ARN of the AWS Step Functions Activity.",type:"string",applyScrubbing:{key:"manual"},isInOtel:!0,visibility:"public",example:"arn:aws:states:us-east-1:123456789012:activity:get-greeting",changelog:[{version:"0.16.0",prs:[480],description:"Added aws.step_functions.activity.arn attribute"}]},"aws.step_functions.state_machine.arn":{brief:"The ARN of the AWS Step Functions State Machine.",type:"string",applyScrubbing:{key:"manual"},isInOtel:!0,visibility:"public",example:"arn:aws:states:us-east-1:123456789012:stateMachine:myStateMachine:1",changelog:[{version:"0.16.0",prs:[480],description:"Added aws.step_functions.state_machine.arn attribute"}]},blocked_main_thread:{brief:"Whether the main thread was blocked by the span.",type:"boolean",applyScrubbing:{key:"manual"},isInOtel:!1,visibility:"public",example:!0,changelog:[{version:"0.0.0"}]},"browser.name":{brief:"The name of the browser.",type:"string",applyScrubbing:{key:"manual"},isInOtel:!1,visibility:"public",example:"Chrome",aliases:["sentry.browser.name"],changelog:[{version:"0.1.0",prs:[127,139]},{version:"0.0.0"}]},"browser.performance.navigation.activation_start":{brief:"The time between initiating a navigation to a page and the browser activating the page",type:"double",applyScrubbing:{key:"manual"},isInOtel:!1,visibility:"public",example:1.983,aliases:["performance.activationStart"],changelog:[{version:"0.5.0",prs:[321],description:"Added browser.performance.navigation.activation_start attribute"}]},"browser.performance.time_origin":{brief:"The browser's performance.timeOrigin timestamp representing the time when the pageload was initiated",type:"double",applyScrubbing:{key:"manual"},isInOtel:!1,visibility:"public",example:1776185678.886,aliases:["performance.timeOrigin"],changelog:[{version:"0.5.0",prs:[321],description:"Added browser.performance.time_origin attribute attribute"}]},"browser.report.type":{brief:"A browser report sent via reporting API..",type:"string",applyScrubbing:{key:"manual"},isInOtel:!1,visibility:"public",example:"network-error",changelog:[{version:"0.1.0",prs:[68,127]}]},"browser.script.invoker":{brief:"How a script was called in the browser.",type:"string",applyScrubbing:{key:"manual"},isInOtel:!1,visibility:"public",example:"Window.requestAnimationFrame",changelog:[{version:"0.1.0",prs:[127]},{version:"0.0.0"}]},"browser.script.invoker_type":{brief:"Browser script entry point type.",type:"string",applyScrubbing:{key:"manual"},isInOtel:!1,visibility:"public",example:"event-listener",changelog:[{version:"0.1.0",prs:[127]},{version:"0.0.0"}]},"browser.script.source_char_position":{brief:"A number representing the script character position of the script.",type:"integer",applyScrubbing:{key:"manual"},isInOtel:!1,visibility:"public",example:678,changelog:[{version:"0.4.0",prs:[228]},{version:"0.0.0"}]},"browser.version":{brief:"The version of the browser.",type:"string",applyScrubbing:{key:"manual"},isInOtel:!1,visibility:"public",example:"120.0.6099.130",aliases:["sentry.browser.version"],changelog:[{version:"0.1.0",prs:[59,127,139]}]},"browser.web_vital.cls.report_event":{brief:"The event that caused the SDK to report CLS (pagehide or navigation)",type:"string",applyScrubbing:{key:"manual"},isInOtel:!1,visibility:"public",example:"navigation",changelog:[{version:"0.5.0",prs:[319],description:"Added browser.web_vital.cls.report_event attribute"}]},"browser.web_vital.cls.source.<key>":{brief:"The HTML elements or components responsible for the layout shift. <key> is a numeric index from 1 to N",type:"string",applyScrubbing:{key:"manual"},isInOtel:!1,visibility:"public",hasDynamicSuffix:!0,example:"body > div#app",aliases:["cls.source.<key>"],changelog:[{version:"0.5.0",prs:[234]}]},"browser.web_vital.cls.value":{brief:"The value of the recorded Cumulative Layout Shift (CLS) web vital",type:"double",applyScrubbing:{key:"manual"},isInOtel:!1,visibility:"public",example:.2361,aliases:["cls"],changelog:[{version:"0.5.0",prs:[229],description:"Added browser.web_vital.cls.value attribute"}]},"browser.web_vital.fcp.value":{brief:"The time it takes for the browser to render the first piece of meaningful content on the screen",type:"double",applyScrubbing:{key:"manual"},isInOtel:!1,visibility:"public",example:547.6951,aliases:["fcp"],changelog:[{version:"0.5.0",prs:[235]}]},"browser.web_vital.fp.value":{brief:"The time in milliseconds it takes for the browser to render the first pixel on the screen",type:"double",applyScrubbing:{key:"manual"},isInOtel:!1,visibility:"public",example:477.1926,aliases:["fp"],changelog:[{version:"0.5.0",prs:[235]}]},"browser.web_vital.inp.value":{brief:"The value of the recorded Interaction to Next Paint (INP) web vital",type:"double",applyScrubbing:{key:"manual"},isInOtel:!1,visibility:"public",example:200,aliases:["inp"],changelog:[{version:"0.5.0",prs:[229],description:"Added browser.web_vital.inp.value attribute"}]},"browser.web_vital.lcp.element":{brief:"The HTML element selector or component name for which LCP was reported",type:"string",applyScrubbing:{key:"manual"},isInOtel:!1,visibility:"public",example:"body > div#app > div#container >
41 div",aliases:["lcp.element"],changelog:[{version:"0.5.0",prs:[233]}]},"browser.web_vital.lcp.id":{brief:"The id of the dom element responsible for the largest contentful paint",type:"string",applyScrubbing:{key:"manual"},isInOtel:!1,visibility:"public",example:"#gero",aliases:["lcp.id"],changelog:[{version:"0.5.0",prs:[233]}]},"browser.web_vital.lcp.load_time":{brief:"The time it took for the LCP element to be loaded",type:"integer",applyScrubbing:{key:"manual"},isInOtel:!1,visibility:"public",example:1402,aliases:["lcp.loadTime"],changelog:[{version:"0.5.0",prs:[233]}]},"browser.web_vital.lcp.render_time":{brief:"The time it took for the LCP element to be rendered",type:"integer",applyScrubbing:{key:"manual"},isInOtel:!1,visibility:"public",example:1685,aliases:["lcp.renderTime"],changelog:[{version:"0.5.0",prs:[233]}]},"browser.web_vital.lcp.report_event":{brief:"The event that caused the SDK to report LCP (pagehide or navigation)",type:"string",applyScrubbing:{key:"manual"},isInOtel:!1,visibility:"public",example:"pagehide",changelog:[{version:"0.5.0",prs:[319],description:"Added browser.web_vital.lcp.report_event attribute"}]},"browser.web_vital.lcp.size":{brief:"The size of the largest contentful paint element",type:"integer",applyScrubbing:{key:"manual"},isInOtel:!1,visibility:"public",example:1024,aliases:["lcp.size"],changelog:[{version:"0.5.0",prs:[233]}]},"browser.web_vital.lcp.url":{brief:"The url of the dom element responsible for the largest contentful paint",type:"string",applyScrubbing:{key:"auto"},isInOtel:!1,visibility:"public",example:"https://example.com/static/img.png",aliases:["lcp.url"],changelog:[{version:"0.5.0",prs:[233]}]},"browser.web_vital.lcp.value":{brief:"The value of the recorded Largest Contentful Paint (LCP) web vital",type:"double",applyScrubbing:{key:"manual"},isInOtel:!1,visibility:"public",example:2500,aliases:["lcp"],changelog:[{version:"0.5.0",prs:[229],description:"Added browser.web_vital.lcp.value attribute"}]},"browser.web_vital.ttfb.request_time":{brief:"The time it takes for the server to process the initial request and send the first byte of a response to the user's browser",type:"double",applyScrubbing:{key:"manual"},isInOtel:!1,visibility:"public",example:1554.5814,aliases:["ttfb.requestTime"],changelog:[{version:"0.5.0",prs:[235]}]},"browser.web_vital.ttfb.value":{brief:"The value of the recorded Time To First Byte (TTFB) web vital in Milliseconds",type:"double",applyScrubbing:{key:"manual"},isInOtel:!1,visibility:"public",example:194.3322,aliases:["ttfb"],changelog:[{version:"0.5.0",prs:[235]}]},"cache.hit":{brief:"If the cache was hit during this span.",type:"boolean",applyScrubbing:{key:"manual"},isInOtel:!1,visibility:"public",example:!0,changelog:[{version:"0.0.0"}]},"cache.item_size":{brief:"The size of the requested item in the cache. In bytes.",type:"integer",applyScrubbing:{key:"manual"},isInOtel:!1,visibility:"public",example:58,changelog:[{version:"0.4.0",prs:[228]},{version:"0.0.0"}]},"cache.key":{brief:"The key of the cache accessed.",type:"string[]",applyScrubbing:{key:"manual"},isInOtel:!1,visibility:"public",example:["my-cache-key","my-other-cache-key"],changelog:[{version:"0.0.0"}]},"cache.operation":{brief:"The operation being performed on the cache.",type:"string",applyScrubbing:{key:"manual"},isInOtel:!1,visibility:"public",example:"get",changelog:[{version:"0.1.0",prs:[127]},{version:"0.0.0"}]},"cache.ttl":{brief:"The ttl of the cache in seconds",type:"integer",applyScrubbing:{key:"manual"},isInOtel:!1,visibility:"public",example:120,changelog:[{version:"0.4.0",prs:[228]},{version:"0.0.0"}]},"cache.write":{brief:"If the cache operation resulted in a write to the cache.",type:"boolean",applyScrubbing:{key:"manual"},isInOtel:!1,visibility:"public",example:!0,changelog:[{version:"0.5.0"}]},channel:{brief:"The channel name that is being used.",type:"string",applyScrubbing:{key:"manual"},isInOtel:!1,visibility:"public",example:"mail",changelog:[{version:"0.1.0",prs:[127]},{version:"0.0.0"}]},"client.address":{brief:"Client address - domain name if available without reverse DNS lookup; otherwise, IP address or Unix domain socket name.",type:"string",applyScrubbing:{key:"auto"},isInOtel:!0,visibility:"public",example:"example.com",aliases:["http.client_ip"],changelog:[{version:"0.1.0",prs:[106,127]},{version:"0.0.0"}]},"client.port":{brief:"Client port number.",type:"integer",applyScrubbing:{key:"manual"},isInOtel:!0,visibility:"public",example:5432,changelog:[{version:"0.4.0",prs:[228]},{version:"0.0.0"}]},"cloudflare.d1.duration":{brief:"The duration of a Cloudflare D1 operation.",type:"integer",applyScrubbing:{key:"manual"},isInOtel:!1,visibility:"public",example:543,changelog:[{version:"0.4.0",prs:[228]},{version:"0.0.0"}]},"cloudflare.d1.query_type":{brief:"The type of query executed in a Cloudflare D1 operation",type:"string",applyScrubbing:{key:"manual"},isInOtel:!1,visibility:"public",example:"run",deprecation:{replacement:"db.operation.name"},aliases:["db.operation.name","db.operation"],changelog:[{version:"0.11.0",prs:[392],description:"Added cloudflare.d1.query_type attribute"}]},"cloudflare.d1.rows_read":{brief:"The number of rows read in a Cloudflare D1 operation.",type:"integer",applyScrubbing:{key:"manual"},isInOtel:!1,visibility:"public",example:12,changelog:[{version:"0.4.0",prs:[228]},{version:"0.0.0"}]},"cloudflare.d1.rows_written":{brief:"The number of rows written in a Cloudflare D1 operation.",type:"integer",applyScrubbing:{key:"manual"},isInOtel:!1,visibility:"public",example:12,changelog:[{version:"0.4.0",prs:[228]},{version:"0.0.0"}]},"cloudflare.durable_object.query.bindings":{brief:"The number of bound parameters passed to the SQL exec call.",type:"integer",applyScrubbing:{key:"manual"},isInOtel:!1,visibility:"public",example:2,changelog:[{version:"0.13.0",prs:[435],description:"Added cloudflare.durable_object.query.bindings attribute"}]},"cloudflare.durable_object.response.rows_read":{brief:"The number of rows read by a Cloudflare Durable Object SQL operation.",type:"integer",applyScrubbing:{key:"manual"},isInOtel:!1,visibility:"public",example:12,changelog:[{version:"0.13.0",prs:[435],description:"Added cloudflare.durable_object.response.rows_read attribute"}]},"cloudflare.durable_object.response.rows_written":{brief:"The number of rows written by a Cloudflare Durable Object SQL operation.",type:"integer",applyScrubbing:{key:"manual"},isInOtel:!1,visibility:"public",example:1,changelog:[{version:"0.13.0",prs:[435],description:"Added cloudflare.durable_object.response.rows_written attribute"}]},"cloudflare.r2.bucket":{brief:"The name of the Cloudflare R2 bucket binding",type:"string",applyScrubbing:{key:"manual"},isInOtel:!1,visibility:"public",example:"MY_BUCKET",changelog:[{version:"0.11.1",prs:[413],description:"Added cloudflare.r2.bucket attribute"}]},"cloudflare.r2.operation":{brief:"The R2 API operation being performed",type:"string",applyScrubbing:{key:"manual"},isInOtel:!1,visibility:"public",example:"GetObject",changelog:[{version:"0.11.1",prs:[413],description:"Added cloudflare.r2.operation attribute"}]},"cloudflare.r2.request.delimiter":{brief:"The delimiter used to group objects in an R2 list operation",type:"string",applyScrubbing:{key:"manual"},isInOtel:!1,visibility:"public",example:"/",changelog:[{version:"0.11.1",prs:[413],description:"Added cloudflare.r2.request.delimiter attribute"}]},"cloudflare.r2.request.key":{brief:"The object key used in the R2 operation",type:"string",applyScrubbing:{key:"manual"},isInOtel:!1,visibility:"public",example:"my-file.txt",changelog:[{version:"0.11.1",prs:[413],description:"Added cloudflare.r2.request.key attribute"}]},"cloudflare.r2.request.part_number":{brief:"The part number in a multipart upload operation",type:"integer",applyScrubbing:{key:"manual"},isInOtel:!1,visibility:"public",example:1,changelog:[{version:"0.11.1",prs:[413],description:"Added cloudflare.r2.request.part_number attribute"}]},"cloudflare.r2.request.prefix":{brief:"The prefix used to filter objects in an R2 list operation",type:"string",applyScrubbing:{key:"manual"},isInOtel:!1,visibility:"public",example:"images/",changelog:[{version:"0.11.1",prs:[413],description:"Added cloudflare.r2.request.prefix attribute"}]},"cloudflare.workflow.attempt":{brief:"The current attempt number for a Cloudflare Workflow step",type:"integer",applyScrubbing:{key:"manual"},isInOtel:!1,visibility:"public",example:1,changelog:[{version:"0.11.0",prs:[392],description:"Added cloudflare.workflow.attempt attribute"}]},"cloudflare.workflow.retries.backoff":{brief:"The backoff strategy for Cloudflare Workflow step retries",type:"string",applyScrubbing:{key:"manual"},isInOtel:!1,visibility:"public",example:"exponential",changelog:[{version:"0.11.0",prs:[392],description:"Added cloudflare.workflow.retries.backoff attribute"}]},"cloudflare.workflow.retries.delay":{brief:"The delay between Cloudflare Workflow step retries",type:"string",applyScrubbing:{key:"manual"},isInOtel:!1,visibility:"public",example:"5 seconds",changelog:[{version:"0.11.0",prs:[392],description:"Added cloudflare.workflow.retries.delay attribute"}]},"cloudflare.workflow.retries.limit":{brief:"The maximum number of retries for a Cloudflare Workflow step",type:"integer",applyScrubbing:{key:"manual"},isInOtel:!1,visibility:"public",example:3,changelog:[{version:"0.11.0",prs:[392],description:"Added cloudflare.workflow.retries.limit attribute"}]},"cloudflare.workflow.timeout":{brief:"The timeout duration for a Cloudflare Workflow step",type:"string",applyScrubbing:{key:"manual"},isInOtel:!1,visibility:"public",example:"1 minute",changelog:[{version:"0.11.0",prs:[392],description:"Added cloudflare.workflow.timeout attribute"}]},"cloud.account.id":{brief:"The cloud account ID the resource is assigned to",type:"string",applyScrubbing:{key:"manual"},isInOtel:!0,visibility:"public",example:"123456789012",changelog:[{version:"0.7.0",prs:[364],description:"Added cloud.account.id attribute"}]},"cloud.availability_zone":{brief:"Cloud regions often have multiple, isolated locations known as zones to increase availability",type:"string",applyScrubbing:{key:"manual"},isInOtel:!0,visibility:"public",example:"us-east-1c",changelog:[{version:"0.7.0",prs:[364],description:"Added cloud.availability_zone attribute"}]},"cloud.platform":{brief:"The cloud platform in use",type:"string",applyScrubbing:{key:"manual"},isInOtel:!0,visibility:"public",example:"aws_lambda",changelog:[{version:"0.7.0",prs:[364],description:"Added cloud.platform attribute"}]},"cloud.provider":{brief:"Name of the cloud provider",type:"string",applyScrubbing:{key:"manual"},isInOtel:!0,visibility:"public",example:"aws",changelog:[{version:"0.7.0",prs:[364],description:"Added cloud.provider attribute"}]},"cloud.region":{brief:"The geographical region the resource is running",type:"string",applyScrubbing:{key:"manual"},isInOtel:!0,visibility:"public",example:"us-east-1",changelog:[{version:"0.7.0",prs:[364],description:"Added cloud.region attribute"}]},"cloud.resource_id":{brief:"Cloud provider-specific native identifier of the monitored cloud resource",type:"string",applyScrubbing:{key:"manual"},isInOtel:!0,visibility:"public",example:"arn:aws:lambda:REGION:ACCOUNT_ID:function:my-function",aliases:["faas.id"],changelog:[{version:"0.16.0",prs:[475],description:"Added faas.id as an alias"},{version:"0.11.1",prs:[414]}],additionalContext:["This can be an identifier for a resource in AWS, GCP, or Azure. There may be some overlap in values found here with other attributes. For instance, an AWS lambda ARN may be found here as well as in `aws.lambda.invoked_arn`. OTEL recommends setting them alongside each other."]}
vendor: 4,272 bytes, line 41
41,cls:{brief:"The value of the recorded Cumulative Layout Shift (CLS) web vital",type:"double",applyScrubbing:{key:"manual"},isInOtel:!1,visibility:"public",example:.2361,deprecation:{replacement:"browser.web_vital.cls.value",reason:"The CLS web vital is now recorded as a browser.web_vital.cls.value attribute."},aliases:["browser.web_vital.cls.value"],changelog:[{version:"0.5.0",prs:[229],description:"Added and deprecated attribute to document JS SDK's current behaviour"}]},"cls.source.<key>":{brief:"The HTML elements or components responsible for the layout shift. <key> is a numeric index from 1 to N",type:"string",applyScrubbing:{key:"manual"},isInOtel:!1,visibility:"public",hasDynamicSuffix:!0,example:"body > div#app",deprecation:{replacement:"browser.web_vital.cls.source.<key>",reason:"The CLS source is now recorded as a browser.web_vital.cls.source.<key> attribute."},aliases:["browser.web_vital.cls.source.<key>"],changelog:[{version:"0.5.0",prs:[234]}]},"code.filepath":{brief:"The source code file name that identifies the code unit as uniquely as possible (preferably an absolute file path).",type:"string",applyScrubbing:{key:"manual"},isInOtel:!0,visibility:"public",example:"/app/myapplication/http/handler/server.py",deprecation:{replacement:"code.file.path"},aliases:["code.file.path"],changelog:[{version:"0.1.0",prs:[61]},{version:"0.0.0"}]},"code.file.path":{brief:"The source code file name that identifies the code unit as uniquely as possible (preferably an absolute file path).",type:"string",applyScrubbing:{key:"manual"},isInOtel:!0,visibility:"public",example:"/app/myapplication/http/handler/server.py",aliases:["code.filepath"],changelog:[{version:"0.0.0"}]},"code.function":{brief:"The method or function name, or equivalent (usually rightmost part of the code unit's name).",type:"string",applyScrubbing:{key:"manual"},isInOtel:!0,visibility:"public",example:"server_request",aliases:["code.function.name"],changelog:[{version:"0.1.0",prs:[61,74]},{version:"0.0.0"}]},"code.function.name":{brief:"The method or function fully-qualified name without arguments.",type:"string",applyScrubbing:{key:"manual"},isInOtel:!0,visibility:"public",example:"server_request",aliases:["code.function"],changelog:[{version:"0.1.0",prs:[127]},{version:"0.0.0"}]},"code.lineno":{brief:"The line number in code.filepath best representing the operation. It SHOULD point within the code unit named in code.function",type:"integer",applyScrubbing:{key:"manual"},isInOtel:!0,visibility:"public",example:42,deprecation:{replacement:"code.line.number"},aliases:["code.line.number"],changelog:[{version:"0.4.0",prs:[228]},{version:"0.1.0",prs:[61,108]},{version:"0.0.0"}]},"code.line.number":{brief:"The line number in code.filepath best representing the operation. It SHOULD point within the code unit named in code.function",type:"integer",applyScrubbing:{key:"manual"},isInOtel:!0,visibility:"public",example:42,aliases:["code.lineno"],changelog:[{version:"0.4.0",prs:[228]},{version:"0.0.0"}]},"code.namespace":{brief:"The 'namespace' within which code.function is defined. Usually the qualified class or module name, such that code.namespace + some separator + code.function form a unique identifier for the code unit.",type:"string",applyScrubbing:{key:"manual"},isInOtel:!0,visibility:"public",example:"http.handler",changelog:[{version:"0.1.0",prs:[61,74]},{version:"0.0.0"}]},connectionType:{brief:"Specifies the type of the current connection (e.g. wifi, ethernet, cellular , etc).",type:"string",applyScrubbing:{key:"manual"},isInOtel:!1,visibility:"public",example:"wifi",deprecation:{replacement:"network.connection.type",reason:"Old namespace-less attribute, to be replaced with network.connection.type for span-first future"},aliases:["network.connection.type","device.connection_type"],changelog:[{version:"0.5.0",prs:[279],description:"Added and deprecated attribute to document JS SDK's current behaviour"}]},"connection.rtt":{brief:"Specifies the estimated effective round-trip time of the current connection, in milliseconds.",type:"integer",applyScrubbing:{key:"manual"},isInOtel:!1,visibility:"public",example:100,deprecation:{replacement:"network.connection.rtt",reason:"Old attribute name (no official namespace), to be replaced with 
41network.connection.rtt for span-first future"},aliases:["network.connection.rtt"],changelog:[{version:"0.5.0",prs:[279],description:"Added and deprecated attribute to document JS SDK's current behaviour"}]},"culture.calendar":{brief:"The calendar system used by the culture.",type:"string",applyScrubbing:{key:"manual"},isInOtel:!1,visibility:"public",example:"GregorianCalendar",changelog:[{version:"0.4.0",prs:[243]}]},"culture.display_name":{brief:"Human readable name of the culture.",type:"string",applyScrubbing:{key:"manual"},isInOtel:!1,visibility:"public",example:"English (United States)",changelog:[{version:"0.4.0",prs:[243]}]},"culture.is_24_hour_format":{brief:"Whether the culture uses 24-hour time format.",type:"boolean",applyScrubbing:{key:"manual"},isInOtel:!1,visibility:"public",example:!0,changelog:[{version:"0.4.0",prs:[243]}]},"culture.locale":{brief:"The locale identifier following RFC 4646.",type:"string",applyScrubbing:{key:"manual"},isInOtel:!1,visibility:"public",example:"en-US",changelog:[{version:"0.4.0",prs:[243]}]},"culture.timezone":{brief:"The timezone of the culture, as a geographic timezone identifier.",type:"string",applyScrubbing:{key:"manual"},isInOtel:!1,visibility:"public",example:"Europe/Vienna",changelog:[{version:"0.4.0",prs:[243]}]},"db.collection.name":{brief:"The name of a collection (table, container) within the database.",type:"string",applyScrubbing:{key:"manual"},isInOtel:!0,visibility:"public",example:"users",changelog:[{version:"0.1.0",prs:[106,127]},{version:"0.0.0"}]},"db.driver.name":{brief:"The name of the driver used for the database connection.",type:"string",applyScrubbing:{key:"manual"},isInOtel:!1,visibility:"public",example:"psycopg2",changelog:[{version:"0.5.0",prs:[297],description:"Added db.driver.name attribute"}]},"db.name":{brief:"The name of the database being accessed.",type:"string",applyScrubbing:{key:"manual"},isInOtel:!0,visibility:"public",example:"customers",deprecation:{replacement:"db.namespace"},aliases:["db.namespace"],changelog:[{version:"0.1.0",prs:[61,127]},{version:"0.0.0"}]},"db.namespace":{brief:"The name of the database being accessed.",type:"string",applyScrubbing:{key:"manual"},isInOtel:!0,visibility:"public",example:"customers",aliases:["db.name"],changelog:[{version:"0.1.0",prs:[127]},{version:"0.0.0"}]},"db.operation":{brief:"The name of the operation being executed.",type:"string",applyScrubbing:{key:"manual"},isInOtel:!0,visibility:"public",example:"SELECT",deprecation:{replacement:"db.operation.name"},aliases:["db.operation.name","cloudflare.d1.query_type"],changelog:[{version:"0.4.0",prs:[199]},{version:"0.1.0",prs:[61,127]},{version:"0.0.0"}]},"db.operation.batch.size":{brief:"The number of queries included in a batch operation. Operations are only considered batches when they contain two or more operations, and so db.operation.batch.size SHOULD never be 1.",type:"integer",applyScrubbing:{key:"manual"},isInOtel:!0,visibility:"public",example:3,changelog:[{version:"0.11.0",prs:[407],description:"Added db.operation.batch.size attribute"}]},"db.operation.name":{brief:"The name of the operation being executed.",type:"string",applyScrubbing:{key:"manual"},isInOtel:!0,visibility:"public",example:"SELECT",aliases:["db.operation","cloudflare.d1.query_type"],changelog:[{version:"0.1.0",prs:[127]},{version:"0.0.0"}]},"db.query.parameter.<key>":{brief:"A query parameter used in db.query.text, with <key> being the parameter name, and the attribute value being a string representation of the parameter value.",type:"string",applyScrubbing:{key:"auto"},isInOtel:!0,visibility:"public",hasDynamicSuffix:!0,example:"db.query.parameter.foo='123'",changelog:[{version:"0.1.0",prs:[103,127]}]},"db.query.summary":{brief:"A shortened representation of operation(s) in the full query. This attribute must be low-cardinality and should only contain the operation table names.",type:"string",applyScrubbing:{key:"manual"},isInOtel:!0,visibility:"public",example:"SELECT users",changelog:[{version:"0.4.0",prs:[208]},{version:"0.1.0",prs:[127]},{version:"0.0.0"}]},"db.query.text":{brief:"The database parameterized query being executed. Any parameter values (filters, insertion values, etc) should be replaced with parameter placeholders. If applicable, use `db.query.parameter.<key>` to add the parameter value.",type:"string",applyScrubbing:{key:"manual"},isInOtel:!0,visibility:"public",example:"SELECT * FROM users WHERE 
41id = $1",aliases:["db.statement"],changelog:[{version:"0.4.0",prs:[208]},{version:"0.1.0",prs:[127]},{version:"0.0.0"}]},"db.redis.connection":{brief:"The redis connection name.",type:"string",applyScrubbing:{key:"manual"},isInOtel:!1,visibility:"public",example:"my-redis-instance",changelog:[{version:"0.1.0",prs:[127]},{version:"0.0.0"}]},"db.redis.key":{brief:"The key the Redis command is operating on.",type:"string",applyScrubbing:{key:"manual"},isInOtel:!1,visibility:"public",example:"user:2047:city",changelog:[{version:"0.6.0",prs:[326],description:"Added db.redis.key attribute"}]},"db.redis.parameters":{brief:"The array of command parameters given to a redis command.",type:"string[]",applyScrubbing:{key:"auto"},isInOtel:!1,visibility:"public",example:["test","*"],changelog:[{version:"0.0.0"}]},"db.response.status_code":{brief:"Database response status code. The status code returned by the database. Usually it represents an error code, but may also represent partial success, warning, or differentiate between various types of successful outcomes.",type:"string",applyScrubbing:{key:"manual"}
vendor: 5,256 bytes, line 41
41,isInOtel:!0,visibility:"public",example:"ORA-17002",changelog:[{version:"0.16.0",prs:[462],description:"Added db.response.status_code attribute"}]},"db.sql.bindings":{brief:"The array of query bindings.",type:"string[]",applyScrubbing:{key:"auto"},isInOtel:!1,visibility:"public",example:["1","foo"],deprecation:{replacement:"db.query.parameter.<key>",reason:"Instead of adding every binding in the db.sql.bindings attribute, add them as individual entires with db.query.parameter.<key>."},changelog:[{version:"0.1.0",prs:[61]},{version:"0.0.0"}]},"db.statement":{brief:"The database statement being executed.",type:"string",applyScrubbing:{key:"auto"},isInOtel:!0,visibility:"public",example:"SELECT * FROM users",deprecation:{replacement:"db.query.text"},aliases:["db.query.text"],changelog:[{version:"0.4.0",prs:[199]},{version:"0.1.0",prs:[61,127]},{version:"0.0.0"}]},"db.stored_procedure.name":{brief:"The name of a stored procedure being called.",type:"string",applyScrubbing:{key:"manual"},isInOtel:!0,visibility:"public",example:"GetUserById",changelog:[{version:"0.11.0",prs:[398]}]},"db.system":{brief:"An identifier for the database management system (DBMS) product being used. See [OpenTelemetry docs](https://github.com/open-telemetry/semantic-conventions/blob/main/docs/database/database-spans.md#notes-and-well-known-identifiers-for-dbsystem) for a list of well-known identifiers.",type:"string",applyScrubbing:{key:"manual"},isInOtel:!0,visibility:"public",example:"postgresql",deprecation:{replacement:"db.system.name"},aliases:["db.system.name"],changelog:[{version:"0.4.0",prs:[199,224]},{version:"0.1.0",prs:[61,127]},{version:"0.0.0"}]},"db.system.name":{brief:"An identifier for the database management system (DBMS) product being used. See [OpenTelemetry docs](https://github.com/open-telemetry/semantic-conventions/blob/main/docs/database/database-spans.md#notes-and-well-known-identifiers-for-dbsystem) for a list of well-known identifiers.",type:"string",applyScrubbing:{key:"manual"},isInOtel:!0,visibility:"public",example:"postgresql",aliases:["db.system"],changelog:[{version:"0.1.0",prs:[127]},{version:"0.0.0"}]},"db.user":{brief:"The database user.",type:"string",applyScrubbing:{key:"manual"},isInOtel:!0,visibility:"public",example:"fancy_user",changelog:[{version:"0.0.0"}]},deviceMemory:{brief:"The estimated total memory capacity of the device, only a rough estimation in gigabytes.",type:"string",applyScrubbing:{key:"manual"},isInOtel:!1,visibility:"public",example:"8 GB",deprecation:{replacement:"device.memory.estimated_capacity",reason:"Old namespace-less attribute, to be replaced with device.memory.estimated_capacity for span-first future"},aliases:["device.memory.estimated_capacity"],changelog:[{version:"0.5.0",prs:[281],description:"Added and deprecated attribute to document JS SDK's current behaviour"}]},"device.archs":{brief:"The CPU architectures of the device.",type:"string[]",applyScrubbing:{key:"manual"},isInOtel:!1,visibility:"public",example:["arm64-v8a","armeabi-v7a","armeabi"],changelog:[{version:"0.5.0",prs:[303],description:"Added device.archs attribute"}]},"device.battery_level":{brief:"The battery level of the device as a percentage (0-100).",type:"double",applyScrubbing:{key:"manual"},isInOtel:!1,visibility:"public",example:100,changelog:[{version:"0.5.0",prs:[303],description:"Added device.battery_level attribute"}]},"device.battery_temperature":{brief:"The battery temperature of the device in Celsius.",type:"double",applyScrubbing:{key:"manual"},isInOtel:!1,visibility:"public",example:25,changelog:[{version:"0.5.0",prs:[303],description:"Added device.battery_temperature attribute"}]},"device.boot_time":{brief:"A formatted UTC timestamp when the system was booted.",type:"string",applyScrubbing:{key:"manual"},isInOtel:!1,visibility:"public",example:"2018-02-08T12:52:12Z",changelog:[{version:"0.5.0",prs:[303],description:"Added device.boot_time attribute"}]},"device.brand":{brief:"The brand of the device.",type:"string",applyScrubbing:{key:"manual"},isInOtel:!1,visibility:"public",example:"Apple",changelog:[{version:"0.1.0",prs:[116,127]}]},"device.charging":{brief:"Whether the device was charging or not.",type:"boolean",applyScrubbing:{key:"manual"},isInOtel:!1,visibility:"public",example:!1,changelog:[{version:"0.5.0",prs:[303],description:"Added device.charging attribute"}]},"device.chipset":{brief:"The chipset of the device.",type:"string",applyScrubbing:{key:"manual"},isInOtel:!1,visibility:"public",example:"Qualcomm SM8550",changelog:[{version:"0.5.0",prs:[303],description:"Added device.chipset attribute"}]},"device.class":{brief:"The classification of the device. For example, `low`, `medium`, or `high`. Typically inferred by Relay - SDKs generally do not need to set this directly.",type:"string",applyScrubbing:{key:"manual"},isInOtel:!1,visibility:"public",example:"medium",changelog:[{version:"0.5.0",prs:[300],description:"Added device.class attribute"}]},"device.connection_type":{brief:"The internet connection type currently being used by the device.",type:"string",applyScrubbing:{key:"manual"},isInOtel:!1,visibility:"public",example:"wifi",deprecation:{replacement:"network.connection.type",reason:"This attribute is being deprecated 
41in favor of network.connection.type"},aliases:["network.connection.type","connectionType"],changelog:[{version:"0.5.0",prs:[303],description:"Added and deprecated device.connection_type in favor of network.connection.type"}]},"device.cpu_description":{brief:"A description of the CPU of the device.",type:"string",applyScrubbing:{key:"manual"},isInOtel:!1,visibility:"public",example:"Intel(R) Core(TM)2 Quad CPU Q6600 @ 2.40GHz",changelog:[{version:"0.5.0",prs:[303],description:"Added device.cpu_description attribute"}]},"device.external_free_storage":{brief:"External storage free size in bytes.",type:"integer",applyScrubbing:{key:"manual"},isInOtel:!1,visibility:"public",example:67108864e3,changelog:[{version:"0.5.0",prs:[303],description:"Added device.external_free_storage attribute"}]},"device.external_storage_size":{brief:"External storage total size in bytes.",type:"integer",applyScrubbing:{key:"manual"},isInOtel:!1,visibility:"public",example:134217728e3,changelog:[{version:"0.5.0",prs:[303],description:"Added device.external_storage_size attribute"}]},"device.family":{brief:"The family of the device.",type:"string",applyScrubbing:{key:"manual"},isInOtel:!1,visibility:"public",example:"iPhone",changelog:[{version:"0.1.0",prs:[116,127]}]},"device.free_memory":{brief:"Free system memory in bytes.",type:"integer",applyScrubbing:{key:"manual"},isInOtel:!1,visibility:"public",example:2147483648,changelog:[{version:"0.5.0",prs:[300],description:"Added device.free_memory attribute"}]},"device.free_storage":{brief:"Free device storage in bytes.",type:"integer",applyScrubbing:{key:"manual"},isInOtel:!1,visibility:"public",example:107374182400,changelog:[{version:"0.5.0",prs:[303],description:"Added device.free_storage attribute"}]},"device.id":{brief:"Unique device identifier.",type:"string",applyScrubbing:{key:"manual"},isInOtel:!0,visibility:"public",example:"a1b2c3d4-e5f6-7890-abcd-ef1234567890",changelog:[{version:"0.5.0",prs:[303],description:"Added device.id attribute"}]},"device.locale":{brief:"The locale of the device.",type:"string",applyScrubbing:{key:"manual"},isInOtel:!1,visibility:"public",example:"en-US",changelog:[{version:"0.5.0",prs:[303],description:"Added device.locale attribute"}]},"device.low_memory":{brief:"Whether the device was low on memory.",type:"boolean",applyScrubbing:{key:"manual"},isInOtel:!1,visibility:"public",example:!1,changelog:[{version:"0.5.0",prs:[303],description:"Added device.low_memory attribute"}]},"device.low_power_mode":{brief:"Whether the device is in Low Power Mode.",type:"boolean",applyScrubbing:{key:"manual"},isInOtel:!1,visibility:"public",example:!0,changelog:[{version:"0.6.0",prs:[314],description:"Added device.low_power_mode attribute"}]},"device.manufacturer":{brief:"The manufacturer of the device.",type:"string",applyScrubbing:{key:"manual"},isInOtel:!0,visibility:"public",example:"Google",changelog:[{version:"0.5.0",prs:[303],description:"Added device.manufacturer attribute"}]},"device.memory.estimated_capacity":{brief:"The estimated total memory capacity of the device, only a rough estimation in gigabytes. Browsers report estimations in buckets of powers of 2, mostly capped at 8 GB",type:"integer",applyScrubbing:{key:"manual"},isInOtel:!1,visibility:"public",example:8,aliases:["deviceMemory"],changelog:[{version:"0.5.0",prs:[281],description:"Added attribute device.memory.estimated_capacity to be used instead of deviceMemory"}]},"device.memory_size":{brief:"Total system memory available in bytes.",type:"integer",applyScrubbing:{key:"manual"},isInOtel:!1,visibility:"public",example:17179869184,changelog:[{version:"0.5.0",prs:[300],description:"Added device.memory_size attribute"}]},"device.model":{brief:"The model of the device.",type:"string",applyScrubbing:{key:"manual"},isInOtel:!1,visibility:"public",example:"iPhone 15 Pro Max",changelog:[{version:"0.1.0",prs:[116,127]}]},"device.model_id":{brief:"An internal hardware revision to identify the device exactly.",type:"string",applyScrubbing:{key:"manual"},isInOtel:!1,visibility:"public",example:"N861AP",changelog:[{version:"0.5.0",prs:[300],description:"Added device.model_id attribute"}]},"device.name":{brief:"The name of the device. On mobile, this is the user-assigned device name. On servers and desktops, this is typically the hostname.",type:"string",applyScrubbing:{key:"auto"},isInOtel:!1,visibility:"public",example:"localhost",changelog:[{version:"0.5.0",prs:[303],description:"Added device.name attribute"}]},"device.online":{brief:"Whether the device was online or not.",type:"boolean",applyScrubbing:{key:"manual"}
41,isInOtel:!1,visibility:"public",example:!0,changelog:[{version:"0.5.0",prs:[303],description:"Added device.online attribute"}]},"device.orientation":{brief:'The orientation of the device, either "portrait" or "landscape".',type:"string",applyScrubbing:{key:"manual"},isInOtel:!1,visibility:"public",example:"portrait",changelog:[{version:"0.5.0",prs:[303],description:"Added device.orientation attribute"}]},"device.processor_count":{brief:'Number of "logical processors".',type:"integer",applyScrubbing:{key:"manual"},isInOtel:!1,visibility:"public",example:8,aliases:["hardwareConcurrency"],changelog:[{version:"0.5.0",prs:[300],description:"Added and deprecated attribute device.processor_count in favor of device.cpu.logical_core_count"}]},"device.processor_frequency":{brief:"Processor frequency in MHz.",type:"double",applyScrubbing:{key:"manual"},isInOtel:!1,visibility:"public",example:2400,changelog:[{version:"0.5.0",prs:[303],description:"Added device.processor_frequency attribute"}]},"device.screen_density":{brief:"The screen density of the device.",type:"double",applyScrubbing:{key:"manual"},isInOtel:!1,visibility:"public",example:2.625,changelog:[{version:"0.5.0",prs:[303],description:"Added device.screen_density attribute"}]},"device.screen_dpi":{brief:"The screen density in dots-per-inch (DPI) of the device.",type:"integer",applyScrubbing:{key:"manual"},isInOtel:!1,visibility:"public",example:420,changelog:[{version:"0.5.0",prs:[303],description:"Added device.screen_dpi attribute"}]},"device.screen_height_pixels":{brief:"The height of the device screen in pixels.",type:"integer",applyScrubbing:{key:"manual"},isInOtel:!1,visibility:"public",example:2400,changelog:[{version:"0.5.0",prs:[303],description:"Added device.screen_height_pixels attribute"}]},"device.screen_width_pixels":{brief:"The width of the device screen in pixels.",type:"integer",applyScrubbing:{key:"manual"},isInOtel:!1,visibility:"public",example:1080,changelog:[{version:"0.5.0",prs:[303],description:"Added device.screen_width_pixels attribute"}]},"device.simulator":{brief:"Whether the device is a simulator or an actual device.",type:"boolean",applyScrubbing:{key:"manual"},isInOtel:!1,visibility:"public",example:!1,changelog:[{version:"0.5.0",prs:[300],description:"Added device.simulator attribute"}]},"device.storage_size":{brief:"Total device storage in bytes.",type:"integer",applyScrubbing:{key:"manual"},isInOtel:!1,visibility:"public",example:274877906944,changelog:[{version:"0.5.0",prs:[303],description:"Added device.storage_size attribute"}]},"device.thermal_state":{brief:"The thermal state of the device. Based on Apple's `ProcessInfo.ThermalState` enum: `nominal`, `fair`, `serious`, or `critical`.",type:"string",applyScrubbing:{key:"manual"},isInOtel:!1,visibility:"public",example:"nominal",changelog:[{version:"0.5.0",prs:[303],description:"Added device.thermal_state attribute"}]},"device.timezone":{brief:"The timezone of the device.",type:"string",applyScrubbing:{key:"manual"},isInOtel:!1,visibility:"public",example:"Europe/Vienna",changelog:[{version:"0.5.0",prs:[303],description:"Added device.timezone attribute"}]},"device.usable_memory":{brief:"Memory usable for the app in bytes.",type:"integer",applyScrubbing:{key:"manual"},isInOtel:!1,visibility:"public",example:2147483648,changelog:[{version:"0.5.0",prs:[303],description:"Added device.usable_memory attribute"}]},dist:{brief:"The sentry dist.",type:"string",applyScrubbing:{key:"never"},isInOtel:!1,visibility:"public",example:"1.0",deprecation:{replacement:"sentry.dist",reason:"This attribute is being deprecated 
41in favor of sentry.dist."},aliases:["sentry.dist"],changelog:[{version:"0.16.0",prs:[489],description:"Added dist attribute"}]},effectiveConnectionType:{brief:"Specifies the estimated effective type of the current connection (e.g. slow-2g, 2g, 3g, 4g).",type:"string",applyScrubbing:{key:"manual"},isInOtel:!1,visibility:"public",example:"4g",deprecation:{replacement:"network.connection.effective_type",reason:"Old namespace-less attribute, to be replaced with network.connection.effective_type for span-first future"},aliases:["network.connection.effective_type"],changelog:[{version:"0.5.0",prs:[279],description:"Added and deprecated attribute to document JS SDK's current behaviour"}]},environment:{brief:"The sentry environment.",type:"string",applyScrubbing:{key:"manual"},isInOtel:!1,visibility:"public",example:"production",deprecation:{replacement:"sentry.environment"},aliases:["sentry.environment"],changelog:[{version:"0.1.0",prs:[61,127]},{version:"0.0.0"}]},"error.type":{brief:"Describes a class of error the operation ended with.",type:"string",applyScrubbing:{key:"manual"},isInOtel:!0,visibility:"public",example:"timeout",changelog:[{version:"0.1.0",prs:[127]},{version:"0.0.0"}]},"event.id":{brief:"The unique identifier for this event (log record)",type:"integer",applyScrubbing:{key:"manual"},isInOtel:!1,visibility:"public",example:1234567890,changelog:[{version:"0.1.0",prs:[101]}]},"event.name":{brief:"The name that uniquely identifies this event (log record)",type:"string",applyScrubbing:{key:"manual"},isInOtel:!1,visibility:"public",example:"Process Payload",changelog:[{version:"0.1.0",prs:[101,127]}]},"exception.escaped":{brief:"SHOULD be set to true if the exception event is recorded at a point where it is known that the exception is escaping the scope of the span.",type:"boolean",applyScrubbing:{key:"manual"},isInOtel:!0,visibility:"public",example:!0,changelog:[{version:"0.0.0"}]},"exception.message":{brief:"The error message.",type:"string",applyScrubbing:{key:"auto"},isInOtel:!0,visibility:"public",example:"ENOENT: no such file or directory",changelog:[{version:"0.1.0",prs:[127]},{version:"0.0.0"}]},"exception.stacktrace":{brief:"A stacktrace as a string in the natural representation for the language runtime. The representation is to be determined and documented by each language SIG.",type:"string",applyScrubbing:{key:"auto"},isInOtel:!0,visibility:"public",example:'Exception in thread "main" java.lang.RuntimeException: Test exception\n at com.example.GenerateTrace.methodB(GenerateTrace.java:13)\n at com.example.GenerateTrace.methodA(GenerateTrace.java:9)\n at com.example.GenerateTrace.main(GenerateTrace.java:5)',changelog:[{version:"0.1.0",prs:[127]},{version:"0.0.0"}]},"exception.type":{brief:"The type of the exception (its fully-qualified class name, if applicable). The dynamic type of the exception should be preferred over the static type in languages that support it.",type:"string",applyScrubbing:{key:"manual"},isInOtel:!0,visibility:"public",example:"OSError",changelog:[{version:"0.1.0",prs:[127]},{version:"0.0.0"}]},"faas.coldstart":{brief:"A boolean that is true if the serverless function is executed for the first time (aka cold-start).",type:"boolean",applyScrubbing:{key:"manual"},isInOtel:!0,visibility:"public",example:!0,changelog:[{version:"0.0.0"}]},"faas.cron":{brief:"A string containing the schedule period as Cron Expression.",type:"string",applyScrubbing:{key:"manual"},isInOtel:!0,visibility:"public",example:"0/5 * * * ? *",changelog:[{version:"0.1.0",prs:[127]},{version:"0.0.0"}]},"faas.duration_in_ms":{brief:"The duration a function took to run, in milliseconds.",type:"integer",applyScrubbing:{key:"manual"},isInOtel:!1,visibility:"public",example:120,changelog:[{version:"0.11.0",prs:[403]}]},"faas.entry_point":{brief:"The code that's run when the cloud provider invokes your function.",type:"string",applyScrubbing:{key:"manual"},isInOtel:!1,visibility:"public",example:"my_main_function",changelog:[{version:"0.11.0",prs:[403,415]}]},"faas.execution":{brief:"The execution ID of the current function execution.",type:"string",applyScrubbing:{key:"manual"},isInOtel:!1,visibility:"public",example:"af9d5aa4-a685-4c5f-a22b-444f80b3cc28",deprecation:{replacement:"faas.invocation_id",reason:"This attribute is being deprecated 
41in favor of faas.invocation_id, which is the OTel-aligned replacement."},aliases:["faas.invocation_id","aws.lambda.aws_request_id"],changelog:[{version:"0.16.0",prs:[473],description:"Added faas.execution attribute, deprecated in favor of faas.invocation_id"}]},"faas.id":{brief:"The unique ID of the single function that this runtime instance executes.",type:"string",applyScrubbing:{key:"manual"},isInOtel:!1,visibility:"public",example:"arn:aws:lambda:REGION:ACCOUNT_ID:function:my-function",deprecation:{replacement:"cloud.resource_id",reason:"This attribute is being deprecated in favor of cloud.resource_id, which is the OTel-aligned replacement (renamed in OTel semantic conventions v1.19.0)."},aliases:["cloud.resource_id"],changelog:[{version:"0.16.0",prs:[475],description:"Added faas.id attribute, deprecated in favor of cloud.resource_id"}]},"faas.identity":{brief:"The Service Account (GCP), IAM Execution Role (AWS), or Managed Identity (Azure) used by the serverless function when interacting with other cloud services",type:"string",applyScrubbing:{key:"manual"},isInOtel:!1,visibility:"public",example:"[email protected] (GCP), arn:aws:iam::123456789012:role/role-name (AWS), 00000000-0000-0000-0000-000000000000 (Azure)",changelog:[{version:"0.11.0",prs:[403]}]},"faas.invocation_id":{brief:"The invocation ID of the current function invocation.",type:"string",applyScrubbing:{key:"manual"},isInOtel:!0,visibility:"public",example:"af9d5aa4-a685-4c5f-a22b-444f80b3cc28",aliases:["aws.lambda.aws_request_id","faas.execution"],changelog:[{version:"0.16.0",prs:[473],description:"Added faas.execution as an alias"},{version:"0.11.1",prs:[414,424]}]},"faas.invoked_name":{brief:"The name of the invoked function.",type:"string",applyScrubbing:{key:"manual"},isInOtel:!0,visibility:"public",example:"my-function",changelog:[{version:"0.16.0",prs:[481],description:"Added faas.invoked_name attribute"}]},"faas.invoked_provider":{brief:"The cloud provider of the invoked function.",type:"string",applyScrubbing:{key:"manual"},isInOtel:!0,visibility:"public",example:"aws",changelog:[{version:"0.16.0",prs:[481],description:"Added faas.invoked_provider attribute"}]},"faas.invoked_region":{brief:"The cloud region of the invoked function.",type:"string",applyScrubbing:{key:"manual"},isInOtel:!0,visibility:"public",example:"eu-central-1",changelog:[{version:"0.16.0",prs:[481],description:"Added faas.invoked_region attribute"}]},"faas.name":{brief:"The name of the serverless function",type:"string",applyScrubbing:{key:"manual"},isInOtel:!0,visibility:"public",example:"my_function",aliases:["aws.lambda.function_name"],changelog:[{version:"0.11.0",prs:[403,415]}]},"faas.time":{brief:"A string containing the function invocation time in the ISO 8601 format expressed in UTC.",type:"string",applyScrubbing:{key:"manual"},isInOtel:!0,visibility:"public",example:"2020-01-23T13:47:06Z",changelog:[{version:"0.1.0",prs:[127]},{version:"0.0.0"}]},"faas.trigger":{brief:"Type of the trigger which caused this function invocation.",type:"string",applyScrubbing:{key:"manual"},isInOtel:!0,visibility:"public",example:"timer",changelog:[{version:"0.1.0",prs:[127]},{version:"0.0.0"}]},"faas.version":{brief:"The version of the function that was invoked",type:"string",applyScrubbing:{key:"manual"},isInOtel:!0,visibility:"public",example:"$LATEST",aliases:["aws.lambda.function_version"],changelog:[{version:"0.11.1",prs:[414,424]}]},fcp:{brief:"The time it takes for the browser to render the first piece of meaningful content on the screen",type:"double",applyScrubbing:{key:"manual"},isInOtel:!1,visibility:"public",example:547.6951,deprecation:{replacement:"browser.web_vital.fcp.value",reason:"This attribute is being deprecated 
41in favor of browser.web_vital.fcp.value"},aliases:["browser.web_vital.fcp.value"],changelog:[{version:"0.5.0",prs:[235]}]},"flag.evaluation.<key>":{brief:"An instance of a feature flag evaluation. The value of this attribute is the boolean representing the evaluation result. The <key> suffix is the name of the feature flag.",type:"boolean",applyScrubbing:{key:"manual"},isInOtel:!1,visibility:"public",hasDynamicSuffix:!0,example:"flag.evaluation.is_new_ui=true",changelog:[{version:"0.1.0",prs:[103]}]},fp:{brief:"The time it takes for the browser to render the first pixel on the screen",type:"double",applyScrubbing:{key:"manual"},isInOtel:!1,visibility:"public",example:477.1926,deprecation:{replacement:"browser.web_vital.fp.value",reason:"This attribute is being deprecated in favor of browser.web_vital.fp.value"},aliases:["browser.web_vital.fp.value"],changelog:[{version:"0.5.0",prs:[235]}]},"frames.delay":{brief:"The sum of all delayed frame durations in seconds during the lifetime of the span. For more information see [frames delay](https://develop.sentry.dev/sdk/performance/frames-delay/).",type:"integer",applyScrubbing:{key:"manual"},isInOtel:!1,visibility:"public",example:5,deprecation:{replacement:"app.vitals.frames.delay.value",reason:"Replaced by app.vitals.frames.delay.value to align with the app.vitals.* namespace for mobile performance attributes"},aliases:["app.vitals.frames.delay.value"],changelog:[{version:"0.5.0",prs:[313],description:"Deprecated 
41in favor of app.vitals.frames.delay.value"},{version:"0.4.0",prs:[228]},{version:"0.0.0"}]},"frames.frozen":{brief:"The number of frozen frames rendered during the lifetime of the span.",type:"integer",applyScrubbing:{key:"manual"},isInOtel:!1,visibility:"public",example:3,deprecation:{replacement:"app.vitals.frames.frozen.count",reason:"Replaced by app.vitals.frames.frozen.count to align with the app.vitals.* namespace for mobile performance attributes"},aliases:["app.vitals.frames.frozen.count"],changelog:[{version:"0.5.0",prs:[313],description:"Deprecated in favor of app.vitals.frames.frozen.count"},{version:"0.4.0",prs:[228]},{version:"0.0.0"}]},frames_frozen_rate:{brief:"The rate of frozen frames, or `app_vitals.frames.frozen.count` divided by `app_vitals.frames.total.count`. This is computed by Relay.",type:"double",applyScrubbing:{key:"manual"},isInOtel:!1,visibility:"public",changelog:[{version:"0.7.0",prs:[362],description:"Added frames_frozen_rate attribute"}]},"frames.slow":{brief:"The number of slow frames rendered during the lifetime of the span.",type:"integer",applyScrubbing:{key:"manual"},isInOtel:!1,visibility:"public",example:1,deprecation:{replacement:"app.vitals.frames.slow.count",reason:"Replaced by app.vitals.frames.slow.count to align with the app.vitals.* namespace for mobile performance attributes"},aliases:["app.vitals.frames.slow.count"],changelog:[{version:"0.5.0",prs:[313],description:"Deprecated 
41in favor of app.vitals.frames.slow.count"},{version:"0.4.0",prs:[228]},{version:"0.0.0"}]},frames_slow_rate:{brief:"The rate of slow frames, or `app_vitals.frames.slow.count` divided by `app_vitals.frames.total.count`. This is computed by Relay.",type:"double",applyScrubbing:{key:"manual"},isInOtel:!1,visibility:"public",changelog:[{version:"0.7.0",prs:[362],description:"Added frames_slow_rate attribute"}]},"frames.total":{brief:"The number of total frames rendered during the lifetime of the span.",type:"integer",applyScrubbing:{key:"manual"},isInOtel:!1,visibility:"public",example:60,deprecation:{replacement:"app.vitals.frames.total.count",reason:"Replaced by app.vitals.frames.total.count to align with the app.vitals.* namespace for mobile performance attributes"},aliases:["app.vitals.frames.total.count"],changelog:[{version:"0.5.0",prs:[313],description:"Deprecated in favor of app.vitals.frames.total.count"},{version:"0.4.0",prs:[228]},{version:"0.0.0"}]},fs_error:{brief:"The error message of a file system error.",type:"string",applyScrubbing:{key:"manual"},isInOtel:!1,visibility:"public",example:"ENOENT: no such file or directory",deprecation:{replacement:"error.type",reason:"This attribute is not part of the OpenTelemetry specification and error.type fits much better."},changelog:[{version:"0.1.0",prs:[61,127]},{version:"0.0.0"}]},"gcp.function.context.event_id":{brief:"The event ID from the legacy GCP Cloud Function context (1st gen)",type:"string",applyScrubbing:{key:"manual"},isInOtel:!1,visibility:"public",example:"1234567890",changelog:[{version:"0.7.0",prs:[371],description:"Added gcp.function.context.event_id attribute"}]},"gcp.function.context.event_type":{brief:"The type of the GCP Cloud Function event",type:"string",applyScrubbing:{key:"manual"},isInOtel:!1,visibility:"public",example:"google.pubsub.topic.publish",changelog:[{version:"0.7.0",prs:[371],description:"Added gcp.function.context.event_type attribute"}]},"gcp.function.context.id":{brief:"The unique event ID from the GCP CloudEvents context (2nd gen Cloud Functions)",type:"string",applyScrubbing:{key:"manual"},isInOtel:!1,visibility:"public",example:"1234567890",changelog:[{version:"0.7.0",prs:[371],description:"Added gcp.function.context.id attribute"}]},"gcp.function.context.resource":{brief:"The resource that triggered the GCP Cloud Function event",type:"string",applyScrubbing:{key:"manual"},isInOtel:!1,visibility:"public",example:"projects/my-project/topics/my-topic",changelog:[{version:"0.7.0",prs:[371],description:"Added gcp.function.context.resource attribute"}]},"gcp.function.context.source":{brief:"The source of the GCP Cloud Function event",type:"string",applyScrubbing:{key:"manual"},isInOtel:!1,visibility:"public",example:"//pubsub.googleapis.com/projects/my-project/topics/my-topic",changelog:[{version:"0.7.0",prs:[371],description:"Added gcp.function.context.source attribute"}]},"gcp.function.context.specversion":{brief:"The CloudEvents specification version of the GCP Cloud Function event",type:"string",applyScrubbing:{key:"manual"},isInOtel:!1,visibility:"public",example:"1.0",changelog:[{version:"0.7.0",prs:[371],description:"Added gcp.function.context.specversion attribute"}]},"gcp.function.context.time":{brief:"The timestamp of the GCP Cloud Function event",type:"string",applyScrubbing:{key:"manual"},isInOtel:!1,visibility:"public",example:"2024-01-01T00:00:00.000Z",changelog:[{version:"0.7.0",prs:[371],description:"Added gcp.function.context.time attribute"}]},"gcp.function.context.timestamp":{brief:"The legacy timestamp of the GCP Cloud Function event",type:"string",applyScrubbing:{key:"manual"},isInOtel:!1,visibility:"public",example:"2024-01-01T00:00:00.000Z",changelog:[{version:"0.7.0",prs:[371],description:"Added gcp.function.context.timestamp attribute"}]},"gcp.function.context.type":{brief:"The type of the GCP Cloud Function event context",type:"string",applyScrubbing:{key:"manual"},isInOtel:!1,visibility:"public",example:"cloud_functions.context",changelog:[{version:"0.7.0",prs:[371],description:"Added gcp.function.context.type attribute"}]},"gcp.project.id":{brief:"The ID of the project in GCP that this resource is associated with",type:"string",applyScrubbing:{key:"manual"},isInOtel:!1,visibility:"public",example:"my-project-123",changelog:[{version:"0.11.0",prs:[403]}]},"gen_ai.agent.name":{brief:"The name of the agent being used.",type:"string",applyScrubbing:{key:"manual"},isInOtel:!0,visibility:"public",example:"ResearchAssistant",changelog:[{version:"0.1.0",prs:[62,127]}]},"gen_ai.context.utilization":{brief:"The fraction of the model context window utilized by this generation.",type:"double",applyScrubbing:{key:"manual"},isInOtel:!1,visibility:"public",example:.75,changelog:[{version:"0.5.0",prs:[315],description:"Added gen_ai.context.utilization attribute"}]},"gen_ai.context.window_size":{brief:"The maximum context window size supported by the model for this generation.",type:"integer",applyScrubbing:{key:"manual"},isInOtel:!1,visibility:"public",example:128e3,changelog:[{version:"0.5.0",prs:[315],description:"Added gen_ai.context.window_size attribute"}]},"gen_ai.conversation.id":{brief:"The unique identifier for a conversation (session, thread), used to store and correlate messages within this conversation.",type:"string",applyScrubbing:{key:"manual"},isInOtel:!0,visibility:"public",example:"conv_5j66UpCpwteGg4YSxUnt7lPY",changelog:[{version:"0.4.0",prs:[250]}]},"gen_ai.cost.cache_creation.input_tokens":{brief:"The cost of input tokens written to cache in USD.",type:"double",applyScrubbing:{key:"manual"},isInOtel:!1,visibility:"public",example:12.34,changelog:[{version:"0.16.0",description:"Added gen_ai.cost.cache_creation.input_tokens attribute"}],additionalContext:["This attribute appears on both agent parent spans (aggregated totals) and LLM child spans (per-call values). When using sum() to calculate total cost, filter to gen_ai.operation.type:ai_client to avoid double-counting hierarchical spans.","Despite the name 'cost.cache_creation.input_tokens', this value is cost in USD, not a token count. For token counts, use gen_ai.usage.cache_creation.input_tokens.","This is a subset of gen_ai.cost.input_tokens, not an independent cost. Do not sum this with gen_ai.cost.input_tokens — it is already included."]},"gen_ai.cost.cache_read.input_tokens":{brief:"The cost of cached input tokens in USD.",type:"double",applyScrubbing:{key:"manual"},isInOtel:!1,visibility:"public",example:12.34,changelog:[{version:"0.16.0",description:"Added gen_ai.cost.cache_read.input_tokens attribute"}],additionalContext:["This attribute appears on both agent parent spans (aggregated totals) and LLM child spans (per-call values). When using sum() to calculate total cost, filter to gen_ai.operation.type:ai_client to avoid double-counting hierarchical spans.","Despite the name 'cost.cache_read.input_tokens', this value is cost in USD, not a token count. For token counts, use gen_ai.usage.cache_read.input_tokens.","This is a subset of gen_ai.cost.input_tokens, not an independent cost. Do not sum this with gen_ai.cost.input_tokens — it is already included."]},"gen_ai.cost.input_tokens":{brief:"The total cost of all input tokens in USD (includes cached and cache 
41creation tokens).",type:"double",applyScrubbing:{key:"manual"},isInOtel:!1,visibility:"public",example:123.45,changelog:[{version:"0.9.0",prs:[397],description:"Add additional_context"},{version:"0.4.0",prs:[228]},{version:"0.1.0",prs:[112]}],additionalContext:["This attribute appears on both agent parent spans (aggregated totals) and LLM child spans (per-call values). When using sum() to calculate total cost, filter to gen_ai.operation.type:ai_client to avoid double-counting hierarchical spans.","Despite the name 'cost.input_tokens', this value is cost in USD, not a token count. For token counts, use gen_ai.usage.input_tokens.","This is the total cost of all input tokens, including cached and cache creation tokens at their respective rates. For the cached portion, see gen_ai.cost.cache_read.input_tokens. For the cache creation portion, see gen_ai.cost.cache_creation.input_tokens."]},"gen_ai.cost.output_tokens":{brief:"The total cost of all output tokens in USD (includes reasoning tokens).",type:"double",applyScrubbing:{key:"manual"},isInOtel:!1,visibility:"public",example:123.45,changelog:[{version:"0.9.0",prs:[397],description:"Add additional_context"},{version:"0.4.0",prs:[228]},{version:"0.1.0",prs:[112]}],additionalContext:["This attribute appears on both agent parent spans (aggregated totals) and LLM child spans (per-call values). When using sum() to calculate total cost, filter to gen_ai.operation.type:ai_client to avoid double-counting hierarchical spans.","Despite the name 'cost.output_tokens', this value is cost in USD, not a token count. For token counts, use gen_ai.usage.output_tokens.","This is the total cost of all output tokens, including reasoning tokens at their respective rate. For the reasoning portion, see gen_ai.cost.reasoning.output_tokens."]},"gen_ai.cost.reasoning.output_tokens":{brief:"The cost of reasoning output tokens in USD.",type:"double",applyScrubbing:{key:"manual"},isInOtel:!1,visibility:"public",example:12.34,changelog:[{version:"0.16.0",description:"Added gen_ai.cost.reasoning.output_tokens attribute"}],additionalContext:["This attribute appears on both agent parent spans (aggregated totals) and LLM child spans (per-call values). When using sum() to calculate total cost, filter to gen_ai.operation.type:ai_client to avoid double-counting hierarchical spans.","Despite the name 'cost.reasoning.output_tokens', this value is cost in USD, not a token count. For token counts, use gen_ai.usage.reasoning.output_tokens.","This is a subset of gen_ai.cost.output_tokens, not an independent cost. Do not sum this with gen_ai.cost.output_tokens — it is already included."]},"gen_ai.cost.total_tokens":{brief:"The total cost for the tokens used.",type:"double",applyScrubbing:{key:"manual"},isInOtel:!1,visibility:"public",example:12.34,aliases:["ai.total_cost"],changelog:[{version:"0.9.0",prs:[397],description:"Add additional_context"},{version:"0.5.0",prs:[264]},{version:"0.4.0",prs:[228]},{version:"0.1.0",prs:[126]}],additionalContext:["This attribute appears on both agent parent spans (aggregated totals) and LLM child spans (per-call values). When using sum() to calculate total cost, filter to gen_ai.operation.type:ai_client to avoid double-counting hierarchical spans.","Despite the name 'cost.total_tokens', this value is cost in USD, not a token count. For token counts, use gen_ai.usage.total_tokens."]},"gen_ai.embeddings.input":{brief:"The input to the embeddings model.",type:"string",applyScrubbing:{key:"manual"},isInOtel:!1,visibility:"public",example:"What's the weather in Paris?",changelog:[{version:"0.3.1",prs:[195]}]},"gen_ai.function_id":{brief:"Framework-specific tracing label for the execution of a function or other unit of execution in a generative AI system.",type:"string",applyScrubbing:{key:"manual"},isInOtel:!1,visibility:"public",example:"my-awesome-function",changelog:[{version:"0.5.0",prs:[308],description:"Added gen_ai.function_id attribute"}]},"gen_ai.input.messages":{brief:'The messages passed to the model. It has to be a stringified version of an array of objects. The `role` attribute of each object must be `"user"`, `"assistant"`, `"tool"`, or `"system"`. For messages of the role `"tool"`, the `content` can be a string or an arbitrary object with information about the tool call. For other messages the `content` can be either a string or a list of objects in the format `{type: "text", text:"..."}`.',type:"string",applyScrubbing:{key:"manual"},isInOtel:!0,visibility:"public",example:'[{"role": "user", "parts": [{"type": "text", "content": "Weather in Paris?"}]}, {"role": "assistant", "parts": [{"type": "tool_call", "id": "call_VSPygqKTWdrhaFErNvMV18Yl", "n
41ame": "get_weather", "arguments": {"location": "Paris"}}]}, {"role": "tool", "parts": [{"type": "tool_call_response", "id": "call_VSPygqKTWdrhaFErNvMV18Yl", "result": "rainy, 57°F"}]}]',aliases:["ai.texts"],changelog:[{version:"0.5.0",prs:[264]},{version:"0.4.0",prs:[221]}]},"gen_ai.operation.name":{brief:"The name of the operation being performed. It has the following list of well-known values: 'chat', 'create_agent', 'embeddings', 'execute_tool', 'generate_content', 'invoke_agent', 'text_completion'. If one of them applies, then that value MUST be used. Otherwise a custom value MAY be used.",type:"string",applyScrubbing:{key:"manual"},isInOtel:!0,visibility:"public",example:"chat",changelog:[{version:"0.4.0",prs:[225]},{version:"0.1.0",prs:[62,127]}]},"gen_ai.operation.type":{brief:"The type of AI operation. Must be one of 'agent' (invoke_agent and create_agent spans), 'ai_client' (any LLM call), 'tool' (execute_tool spans), 'handoff' (handoff spans), 'other' (input and output processors, skill loading, guardrails etc.) . Added during ingestion based on span.op and gen_ai.operation.type. Used to filter and aggregate data in the UI",type:"string",applyScrubbing:{key:"manual"},isInOtel:!1,visibility:"public",example:"tool",changelog:[{version:"0.4.0",prs:[257]},{version:"0.1.0",prs:[113,127]}]},"gen_ai.output.messages":{brief:"The model's response messages. It has to be a stringified version of an array of message objects, which can include text responses and tool calls.",type:"string",applyScrubbing:{key:"manual"},isInOtel:!0,visibility:"public",example:'[{"role": "assistant", "parts": [{"type": "text", "content": "The weather in Paris is currently rainy with a temperature of 57°F."}], "finish_reason": "stop"}]',changelog:[{version:"0.4.0",prs:[221]}]},"gen_ai.pipeline.name":{brief:"Name of the AI pipeline or chain being executed.",type:"string",applyScrubbing:{key:"manual"},isInOtel:!1,visibility:"public",example:"Autofix Pipeline",aliases:["ai.pipeline.name"],changelog:[{version:"0.1.0",prs:[76,127]}]},"gen_ai.prompt":{brief:"The input messages sent to the model",type:"string",applyScrubbing:{key:"manual"},isInOtel:!0,visibility:"public",example:'[{"role": "user", "message": "hello"}]',deprecation:{reason:"Deprecated from OTEL, use gen_ai.input.messages with the new format instead."},changelog:[{version:"0.1.0",prs:[74,108,119]},{version:"0.0.0"}]},"gen_ai.prompt.name":{brief:"The name of the prompt that uniquely identifies it.",type:"string",applyScrubbing:{key:"manual",reason:"Prompt names may reveal user behavior patterns or sensitive operations"},isInOtel:!0,visibility:"public",example:"summarize_text",aliases:["mcp.prompt.name"],changelog:[{version:"0.12.0",prs:[420],description:"Added gen_ai.prompt.name attribute"}]},"gen_ai.provider.name":{brief:"The Generative AI provider as identified by the client or server instrumentation.",type:"string",applyScrubbing:{key:"manual"},isInOtel:!0,visibility:"public",example:"openai",aliases:["ai.model.provider","gen_ai.system"],changelog:[{version:"0.4.0",prs:[253]}]},"gen_ai.request.available_tools":{brief:"The available tools for the model. It has to be a stringified version of an array of objects.",type:"string",applyScrubbing:{key:"manual"},isInOtel:!1,visibility:"public",example:'[{"name": "get_weather", "description": "Get the weather for a given location"}, {"name": "get_news", "description": "Get the news for a given topic"}]',deprecation:{replacement:"gen_ai.tool.definitions"},changelog:[{version:"0.4.0",prs:[221]},{version:"0.1.0",prs:[63,127]}]},"gen_ai.request.frequency_penalty":{brief:"Used to reduce repetitiveness of generated tokens. The higher the value, the stronger a penalty is applied to previously present tokens, proportional to how many times they have already appeared in the prompt or prior generation.",type:"double",applyScrubbing:{key:"manual"},isInOtel:!0,visibility:"public",example:.5,aliases:["ai.frequency_penalty"],changelog:[{version:"0.4.0",prs:[228]},{version:"0.1.0",prs:[57]}]},"gen_ai.request.max_tokens":{brief:"The maximum number of tokens to generate in the response.",type:"integer",applyScrubbing:{key:"manual"},isInOtel:!0,visibility:"public",example:2048,changelog:[{version:"0.4.0",prs:[228]},{version:"0.1.0",prs:[62]}]},"gen_ai.request.messages":{brief:'The messages passed to the model. It has to be a stringified version of an array of objects. The `role` attribute of each object must be `"user"`, `"assistant"`, `"tool"`, or `"system"`. For messages of the role `"tool"`, the `content` can be a string or an arbitrary object with information about the tool call. For other messages the `content` can be either a string or a list of objects in the format `{type: "text", text:"..."}`.',type:"string",applyScrubbing:{key:"manual"},isInOtel:!1,visibility:"public",example:'[{"role": "system", "content": "Generate a random number."}, {"role": "user", "content": [{"text": "Generate a random number between 0 and 10.", "type": "text"}]}, {"role": "tool", "content": {"toolCallId": "1", "toolName": "Weather", "output": "rainy"}}]',deprecation:{replacement:"gen_ai.input.messages"},aliases:["ai.input_messages"],changelog:[{version:"0.4.0",prs:[221]},{version:"0.1.0",prs:[63,74,108,119,122]}]},"gen_ai.request.model":{brief:"The model identifier being used for the request.",type:"string",applyScrubbing:{key:"manual"},isInOtel:!0,visibility:"public",example:"gpt-4-turbo-preview",changelog:[{version:"0.1.0",prs:[62,127]}]},"gen_ai.request.presence_penalty":{brief:"Used to reduce repetitiveness of generated tokens. Similar to frequency_penalty, except that this penalty is a
41pplied equally to all tokens that have already appeared, regardless of their exact frequencies.",type:"double",applyScrubbing:{key:"manual"},isInOtel:!0,visibility:"public",example:.5,aliases:["ai.presence_penalty"],changelog:[{version:"0.4.0",prs:[228]},{version:"0.1.0",prs:[57]}]},"gen_ai.request.reasoning_effort":{brief:"Constrains the effort on reasoning for reasoning models. Supported values vary by provider.",type:"string",applyScrubbing:{key:"manual"},isInOtel:!1,visibility:"public",example:"high",changelog:[{version:"0.13.0",prs:[334],description:"Added gen_ai.request.reasoning_effort attribute"}]},"gen_ai.request.seed":{brief:"The seed, ideally models given the same seed and same other parameters will produce the exact same output.",type:"string",applyScrubbing:{key:"manual"},isInOtel:!0,visibility:"public",example:"1234567890",aliases:["ai.seed"],changelog:[{version:"0.1.0",prs:[57,127]}]},"gen_ai.request.stop_sequences":{brief:"List of sequences that the model will use to stop generating further tokens.",type:"string[]",applyScrubbing:{key:"manual"},isInOtel:!0,visibility:"public",example:["forest","lived"],changelog:[{version:"0.16.0",prs:[482],description:"Added gen_ai.request.stop_sequences attribute"}]},"gen_ai.request.temperature":{brief:"For an AI model call, the temperature parameter. Temperature essentially means how random the output will be.",type:"double",applyScrubbing:{key:"manual"},isInOtel:!0,visibility:"public",example:.1,aliases:["ai.temperature"],changelog:[{version:"0.4.0",prs:[228]},{version:"0.1.0",prs:[57]}]},"gen_ai.request.top_k":{brief:"Limits the model to only consider the K most likely next tokens, where K is an integer (e.g., top_k=20 means only the 20 highest probability tokens are considered).",type:"integer",applyScrubbing:{key:"manual"},isInOtel:!0,visibility:"public",example:35,aliases:["ai.top_k"],changelog:[{version:"0.4.0",prs:[228]},{version:"0.1.0",prs:[57]}]},"gen_ai.request.top_p":{brief:"Limits the model to only consider tokens whose cumulative probability mass adds up to p, where p is a float between 0 and 1 (e.g., top_p=0.7 means only tokens that sum up to 70% of the probability mass are considered).",type:"double",applyScrubbing:{key:"manual"},isInOtel:!0,visibility:"public",example:.7,aliases:["ai.top_p"],changelog:[{version:"0.4.0",prs:[228]},{version:"0.1.0",prs:[57]}]},"gen_ai.response.finish_reasons":{brief:"The reason why the model stopped generating.",type:"string",applyScrubbing:{key:"manual"},isInOtel:!0,visibility:"public",example:"COMPLETE",aliases:["ai.finish_reason"],changelog:[{version:"0.1.0",prs:[57,127]}]},"gen_ai.response.id":{brief:"Unique identifier for the completion.",type:"string",applyScrubbing:{key:"manual"},isInOtel:!0,visibility:"public",example:"gen_123abc",aliases:["ai.generation_id"],changelog:[{version:"0.1.0",prs:[57,127]}]},"gen_ai.response.model":{brief:"The vendor-specific ID of the model used.",type:"string",applyScrubbing:{key:"manual"},isInOtel:!0,visibility:"public",example:"gpt-4",aliases:["ai.model_id"],changelog:[{version:"0.1.0",prs:[127]},{version:"0.0.0"}]},"gen_ai.response.streaming":{brief:"Whether or not the AI model call's response was streamed back asynchronously",type:"boolean",applyScrubbing:{key:"manual"},isInOtel:!1,visibility:"public",example:!0,aliases:["ai.streaming"],changelog:[{version:"0.1.0",prs:[76]}]},"gen_ai.response.text":{brief:"The model's response text messages. It has to be a stringified version of an array of response text messages.",type:"string",applyScrubbing:{key:"manual"},isInOtel:!1,visibility:"public",example:'["The weather in Paris is rainy and overcast, with temperatures around 57°F", "The weather in London is sunny and warm, with temperatures around 65°F"]',deprecation:{replacement:"gen_ai.output.messages"},changelog:[{version:"0.4.0",prs:[221]},{version:"0.1.0",prs:[63,74]}]},"gen_ai.response.time_to_first_chunk":{brief:"Time in seconds when the first response content chunk arrived in streaming responses.",type:"double",applyScrubbing:{key:"manual"},isInOtel:!0,visibility:"public",example:.6853435,aliases:["gen_ai.response.time_to_first_token"],changelog:[{version:"0.11.0",prs:[418],description:"Added gen_ai.response.time_to_first_chunk attribute"}]},"gen_ai.response.time_to_first_token":{brief:"Time in seconds when the first response content chunk arrived in streaming responses.",type:"double",applyScrubbing:{key:"manual"},isInOtel:!1,visibility:"public",example:.6853435,deprecation:{replacement:"gen_ai.response.time_to_first_chunk"},aliases:["gen_ai.response.time_to_first_chunk"],changelog:[{version:"0.11.0",prs:[418],description:"Deprecate in favor of gen_ai.response.time_to_first_chunk"},{version:"0.4.0",prs:[227]}]},"gen_ai.response.tokens_per_second":{brief:"The total output tokens per seconds throughput",type:"double",applyScrubbing:{key:"manual"},isInOtel:!1,visibility:"public",example:12345.67,changelog:[{version:"0.4.0",prs:[228]},{version:"0.1.0",prs:[66]}]},"gen_ai.response.tool_calls":{brief:"The tool calls in the model's response. It has to be a stringified version of an array of objects.",type:"string",applyScrubbing:{key:"manual"},isInOtel:!1,visibility:"public",example:'[{"name": "get_weather", "arguments": {"location": "Paris"}}]',deprecation:{replacement:"gen_ai.output.messages"},changelog:[{version:"0.4.0",prs:[221]},{version:"0.1.0",prs:[63,74]}]},"gen_ai.system":{brief:"The provider of the model.",type:"string",applyScrubbing:{key:"manual"},isInOtel:!0,visibility:"public",example:"openai",deprecation:{replacement:"gen_ai.provider.name"},aliases:["ai.model.provider","gen_ai.provider.name"],changelog:[{version:"0.4.0",prs:[253]},{version:"0.1.0",prs:[57,127]}]},"gen_ai.system_instructions":{brief:"The system instructions passed to the model.",type:"string",applyScrubbing:{key:"manual"},isInOtel:!0,visibility:"public",example:"You are a helpful assistant",aliases:["ai.preamble"],changelog:[{version:"0.5.0",prs:[264]},{version:"0.4.0",prs:[221]}]},"gen_ai.system.message":{brief:"The system instructions passed to the model.",type:"string",applyScrubbing:{key:"auto"},isInOtel:!1,visibility:"public",example:"You are a helpful assistant",deprecation:{replacement:"gen_ai.system_instructions"},changelog:[{version:"0.4.0",prs:[221]},{version:"0.1.0",prs:[62]}]},"gen_ai.tool.call.arguments":{brief:"The arguments of the tool call. It has to be a stringified version of the arguments to the tool.",type:"string",applyScrubbing:{key:"manual"},isInOtel:!0,visibility:"public",example:'{"location": "Paris"}',aliases:["gen_ai.tool.input"],changelog:[{version:"0.5.0",prs:[265]},{version:"0.4.0",prs:[221]}]},"gen_ai.tool.call.result":{brief:"The result of the tool call. It has to be a stringified version of the result of the tool.",type:"string",applyScrubbing:{key:"manual"},isInOtel:!0,visibility:"public",example:"rainy, 57°F",aliases:["gen_ai.tool.output","gen_ai.tool.message","mcp.tool.result.content"],
41changelog:[{version:"0.5.0",prs:[265]},{version:"0.4.0",prs:[221]}]},"gen_ai.tool.definitions":{brief:"The list of source system tool definitions available to the GenAI agent or model.",type:"string",applyScrubbing:{key:"manual"},isInOtel:!0,visibility:"public",example:'[{"type": "function", "name": "get_current_weather", "description": "Get the current weather in a given location", "parameters": {"type": "object", "properties": {"location": {"type": "string", "description": "The city and state, e.g. San Francisco, CA"}, "unit": {"type": "string", "enum": ["celsius", "fahrenheit"]}}, "required": ["location", "unit"]}}]',changelog:[{version:"0.4.0",prs:[221]}]},"gen_ai.tool.description":{brief:"The description of the tool being used.",type:"string",applyScrubbing:{key:"manual"},isInOtel:!0,visibility:"public",example:"Searches the web for current information about a topic",changelog:[{version:"0.1.0",prs:[62,127]}]},"gen_ai.tool.input":{brief:"The input of the tool being used. It has to be a stringified version of the input to the tool.",type:"string",applyScrubbing:{key:"manual"},isInOtel:!1,visibility:"public",example:'{"location": "Paris"}',deprecation:{replacement:"gen_ai.tool.call.arguments"},aliases:["gen_ai.tool.call.arguments"],changelog:[{version:"0.5.0",prs:[265]},{version:"0.1.0",prs:[63,74]}]},"gen_ai.tool.message":{brief:"The response from a tool or function call passed to the model.",type:"string",applyScrubbing:{key:"auto"},isInOtel:!1,visibility:"public",example:"rainy, 57°F",deprecation:{replacement:"gen_ai.tool.call.result"},aliases:["gen_ai.tool.call.result","gen_ai.tool.output","mcp.tool.result.content"],
vendor: 11,982 bytes, line 41
41changelog:[{version:"0.5.0",prs:[265]},{version:"0.1.0",prs:[62]}]},"gen_ai.tool.name":{brief:"Name of the tool utilized by the agent.",type:"string",applyScrubbing:{key:"manual"},isInOtel:!0,visibility:"public",example:"Flights",aliases:["ai.function_call","mcp.tool.name"],changelog:[{version:"0.1.0",prs:[57,127]}]},"gen_ai.tool.output":{brief:"The output of the tool being used. It has to be a stringified version of the output of the tool.",type:"string",applyScrubbing:{key:"manual"},isInOtel:!1,visibility:"public",example:"rainy, 57°F",deprecation:{replacement:"gen_ai.tool.call.result"},aliases:["gen_ai.tool.call.result","gen_ai.tool.message","mcp.tool.result.content"],changelog:[{version:"0.5.0",prs:[265]},{version:"0.1.0",prs:[63,74]}]},"gen_ai.tool.type":{brief:"The type of tool being used.",type:"string",applyScrubbing:{key:"manual"},isInOtel:!0,visibility:"public",example:"function",deprecation:{reason:"The gen_ai.tool.type attribute is deprecated and should no longer be set."},changelog:[{version:"0.1.0",prs:[62,127]}]},"gen_ai.usage.cache_creation.input_tokens":{brief:"The number of tokens written to the cache when processing the AI input (prompt).",type:"integer",applyScrubbing:{key:"manual"},isInOtel:!0,visibility:"public",example:100,aliases:["gen_ai.usage.input_tokens.cache_write"],changelog:[{version:"0.11.0",prs:[418],description:"Added gen_ai.usage.cache_creation.input_tokens attribute"}],additionalContext:["This attribute appears on both agent parent spans (aggregated totals) and LLM child spans (per-call values). When using sum() to count tokens, filter to gen_ai.operation.type:ai_client to avoid double-counting hierarchical spans."]},"gen_ai.usage.cache_read.input_tokens":{brief:"The number of cached tokens used to process the AI input (prompt).",type:"integer",applyScrubbing:{key:"manual"},isInOtel:!0,visibility:"public",example:50,aliases:["gen_ai.usage.input_tokens.cached"],changelog:[{version:"0.11.0",prs:[418],description:"Added gen_ai.usage.cache_read.input_tokens attribute"}],additionalContext:["This attribute appears on both agent parent spans (aggregated totals) and LLM child spans (per-call values). When using sum() to count tokens, filter to gen_ai.operation.type:ai_client to avoid double-counting hierarchical spans.","This is a subset of gen_ai.usage.input_tokens, not an independent count. Do not sum this with gen_ai.usage.input_tokens — it is already included."]},"gen_ai.usage.completion_tokens":{brief:"The number of tokens used in the GenAI response (completion).",type:"integer",applyScrubbing:{key:"manual"},isInOtel:!0,visibility:"public",example:10,deprecation:{replacement:"gen_ai.usage.output_tokens"},aliases:["ai.completion_tokens.used","gen_ai.usage.output_tokens"],changelog:[{version:"0.9.0",prs:[397],description:"Add additional_context"},{version:"0.4.0",prs:[228]},{version:"0.1.0",prs:[61]},{version:"0.0.0"}],additionalContext:["This attribute appears on both agent parent spans (aggregated totals) and LLM child spans (per-call values). When using sum() to count tokens, filter to gen_ai.operation.type:ai_client to avoid double-counting hierarchical spans."]},"gen_ai.usage.input_tokens":{brief:"The number of tokens used to process the AI input (prompt) including cached input tokens.",type:"integer",applyScrubbing:{key:"manual"},isInOtel:!0,visibility:"public",example:10,aliases:["ai.prompt_tokens.used","gen_ai.usage.prompt_tokens"],changelog:[{version:"0.11.0",prs:[418],description:"Update additional_context to reference gen_ai.usage.cache_read.input_tokens"},{version:"0.9.0",prs:[397],description:"Add additional_context"},{version:"0.5.0",prs:[261]},{version:"0.4.0",prs:[228]},{version:"0.1.0",prs:[112]},{version:"0.0.0"}],additionalContext:["This attribute appears on both agent parent spans (aggregated totals) and LLM child spans (per-call values). When using sum() to count tokens, filter to gen_ai.operation.type:ai_client to avoid double-counting hierarchical spans.","This count includes cached input tokens. gen_ai.usage.cache_read.input_tokens is a subset of this value, not an independent count — do not sum them together."]},"gen_ai.usage.input_tokens.cached":{brief:"The number of cached tokens used to process the AI input (prompt).",type:"integer",applyScrubbing:{key:"manual"},isInOtel:!1,visibility:"public",example:50,deprecation:{replacement:"gen_ai.usage.cache_read.input_tokens"},aliases:["gen_ai.usage.cache_read.input_tokens"],changelog:[{version:"0.11.0",prs:[418],description:"Deprecate in favor of gen_ai.usage.cache_read.input_tokens"},{version:"0.9.0",prs:[397],description:"Add additional_context"},{version:"0.4.0",prs:[228]},{version:"0.1.0",prs:[62,112]}],additionalContext:["This attribute appears on both agent parent spans (aggregated totals) and LLM child spans (per-call values). When using sum() to count tokens, filter to gen_ai.operation.type:ai_client to avoid double-counting hierarchical spans.","This is a subset of gen_ai.usage.input_tokens, not an independent count. Do not sum this with gen_ai.usage.input_tokens — it is already included."]},"gen_ai.usage.input_tokens.cache_write":{brief:"The number of tokens written to the cache when processing the AI input (prompt).",type:"integer",applyScrubbing:{key:"manual"},isInOtel:!1,visibility:"public",example:100,deprecation:{replacement:"gen_ai.usage.cache_creation.input_tokens"},aliases:["gen_ai.usage.cache_creation.input_tokens"],changelog:[{version:"0.11.0",prs:[418],description:"Deprecate in favor of gen_ai.usage.cache_creation.input_tokens"},{version:"0.9.0",prs:[397],description:"Add additional_context"},{version:"0.4.0",prs:[217,228]}],additionalContext:["This attribute appears on both agent parent spans (aggregated totals) and LLM child spans (per-call values). When using sum() to count tokens, filter to gen_ai.operation.type:ai_client to avoid double-counting hierarchical spans."]},"gen_ai.usage.output_tokens":{brief:"The number of tokens used for creating the AI output (including reasoning tokens).",type:"integer",applyScrubbing:{key:"manual"},isInOtel:!0,visibility:"public",example:10,aliases:["ai.completion_tokens.used","gen_ai.usage.completion_tokens"],changelog:[{version:"0.11.0",prs:[418],description:"Update additional_context to reference gen_ai.usage.reasoning.output_tokens"},{version:"0.9.0",prs:[397],description:"Add additional_context"},{version:"0.5.0",prs:[261]},{version:"0.4.0",prs:[228]},{version:"0.1.0",prs:[112]},{version:"0.0.0"}],additionalContext:["This attribute appears on both agent parent spans (aggregated totals) and LLM child spans (per-call values). When using sum() to count tokens, filter to gen_ai.operation.type:ai_client to avoid double-counting hierarchical spans.","This count includes reasoning tokens. gen_ai.usage.reasoning.output_tokens is a subset of this value, not an independent count — do not sum them together."]},"gen_ai.usage.output_tokens.reasoning":{brief:"The number of tokens used for reasoning to create the AI output.",type:"integer",applyScrubbing:{key:"manual"},isInOtel:!1,visibility:"public",example:75,deprecation:{replacement:"gen_ai.usage.reasoning.output_tokens"},aliases:["gen_ai.usage.reasoning.output_tokens"],changelog:[{version:"0.11.0",prs:[418],description:"Deprecate in favor of gen_ai.usage.reasoning.output_tokens"},{version:"0.9.0",prs:[397],description:"Add additional_context"},{version:"0.4.0",prs:[228]},{version:"0.1.0",prs:[62,112]}],additionalContext:["This attribute appears on both agent parent spans (aggregated totals) and LLM child spans (per-call values). When using sum() to count tokens, filter to gen_ai.operation.type:ai_client to avoid double-counting hierarchical spans.","This is a subset of gen_ai.usage.output_tokens, not an independent count. Do not sum this with gen_ai.usage.output_tokens — it is already included."]},"gen_ai.usage.prompt_tokens":{brief:"The number of tokens used in the GenAI input (prompt).",type:"integer",applyScrubbing:{key:"manual"},isInOtel:!0,visibility:"public",example:20,deprecation:{replacement:"gen_ai.usage.input_tokens"},aliases:["ai.prompt_tokens.used","gen_ai.usage.input_tokens"],changelog:[{version:"0.9.0",prs:[397],description:"Add additional_context"},{version:"0.4.0",prs:[228]},{version:"0.1.0",prs:[61]},{version:"0.0.0"}],additionalContext:["This attribute appears on both agent parent spans (aggregated totals) and LLM child spans (per-call values). When using sum() to count tokens, filter to gen_ai.operation.type:ai_client to avoid double-counting hierarchical spans."]},"gen_ai.usage.reasoning.output_tokens":{brief:"The number of tokens used for reasoning to create the AI output.",type:"integer",applyScrubbing:{key:"manual"},isInOtel:!0,visibility:"public",example:75,aliases:["gen_ai.usage.output_tokens.reasoning"],changelog:[{version:"0.11.0",prs:[418],description:"Added gen_ai.usage.reasoning.output_tokens attribute"}],additionalContext:["This attribute appears on both agent parent spans (aggregated totals) and LLM child spans (per-call values). When using sum() to count tokens, filter to gen_ai.operation.type:ai_client to avoid double-counting hierarchical spans.","This is a subset of gen_ai.usage.output_tokens, not an independent count. Do not sum this with gen_ai.usage.output_tokens — it is already included."]},"gen_ai.usage.total_tokens":{brief:"The total number of tokens used to process the prompt. (input tokens plus output todkens)",type:"integer",applyScrubbing:{key:"manual"},isInOtel:!1,visibility:"public",example:20,aliases:["ai.total_tokens.used"],changelog:[{version:"0.9.0",prs:[397],description:"Add additional_context"},{version:"0.4.0",prs:[228]},{version:"0.1.0",prs:[57]}],additionalContext:["This attribute appears on both agent parent spans (aggregated totals) and LLM child spans (per-call values). When using sum() to count tokens, filter to gen_ai.operation.type:ai_client to avoid double-counting hierarchical spans.","This is the sum of gen_ai.usage.input_tokens and gen_ai.usage.output_tokens. Do not sum this with either of them — they are already included."]},"graphql.document":{brief:"The GraphQL document being executed.",type:"string",applyScrubbing:{key:"auto",reason:"The document may contain sensitive information in arguments or variables. Instrumentation should redact sensitive information when possible."},isInOtel:!0,visibility:"public",example:"query findBookById { bookById(id: ?) { name } }",changelog:[{version:"0.7.0",description:"Adds the `graphql.document` attribute to track the GraphQL document being executed."}]},"graphql.operation.name":{brief:"The name of the operation being executed.",type:"string",applyScrubbing:{key:"manual"},isInOtel:!0,visibility:"public",example:"findBookById",changelog:[{version:"0.1.0",prs:[127]},{version:"0.0.0"}]},"graphql.operation.type":{brief:"The type of the operation being executed.",type:"string",applyScrubbing:{key:"manual"},isInOtel:!0,visibility:"public",example:"query",changelog:[{version:"0.1.0",prs:[127]},{version:"0.0.0"}]},hardwareConcurrency:{brief:"The number of logical CPU cores available.",type:"string",applyScrubbing:{key:"manual"},isInOtel:!1,visibility:"public",example:"14",deprecation:{replacement:"device.processor_count",reason:"Old namespace-less attribute, to be replaced with device.processor_count for span-first future"},aliases:["device.processor_count"],changelog:[{version:"0.5.0",prs:[281,300],description:"Added and deprecated attribute to document JS SDK's current behaviour"}]},"http.client_ip":{brief:"Client address - domain name if available without reverse DNS lookup; otherwise, IP address or Unix domain socket name.",type:"string",applyScrubbing:{key:"auto"},isInOtel:!0,visibility:"public",example:"example.com",deprecation:{replacement:"client.address"},aliases:["client.address"],changelog:[{version:"0.1.0",prs:[61,106,127]},{version:"0.0.0"}]},"http.decoded_response_content_length":{brief:"The decoded body size of the response 
41(in bytes).",type:"integer",applyScrubbing:{key:"manual"},isInOtel:!1,visibility:"public",example:456,changelog:[{version:"0.4.0",prs:[228]},{version:"0.0.0"}]},"http.flavor":{brief:"The actual version of the protocol used for network communication.",type:"string",applyScrubbing:{key:"manual"},isInOtel:!0,visibility:"public",example:"1.1",deprecation:{replacement:"network.protocol.version"},aliases:["network.protocol.version","net.protocol.version"],changelog:[{version:"0.1.0",prs:[61,108,127]},{version:"0.0.0"}]},"http.fragment":{brief:"The fragments present in the URI. Note that this contains the leading # character, while the `url.fragment` attribute does not.",type:"string",applyScrubbing:{key:"auto"},isInOtel:!1,visibility:"public",example:"#details",changelog:[{version:"0.0.0"}]},"http.host":{brief:"The domain name.",type:"string",applyScrubbing:{key:"manual"},isInOtel:!0,visibility:"public",example:"example.com",deprecation:{replacement:"server.address",reason:"Deprecated, use one of `server.address` or `client.address`, depending on the usage"},aliases:["server.address","client.address","http.server_name","net.host.name","server_name"],changelog:[{version:"0.1.0",prs:[61,108,127]},{version:"0.0.0"}]},"http.method":{brief:"The HTTP method used.",type:"string",applyScrubbing:{key:"manual"},isInOtel:!0,visibility:"public",example:"GET",deprecation:{replacement:"http.request.method"},aliases:["http.request.method","http.request_method","method"],changelog:[{version:"0.1.0",prs:[61,127]},{version:"0.0.0"}]},"http.query":{brief:"The query string present in the URL. Note that this contains the leading ? character, while the `url.query` attribute does not.",type:"string",applyScrubbing:{key:"auto",reason:"Query string values can contain sensitive information. Clients should attempt to scrub parameters that might contain sensitive information."},isInOtel:!1,visibility:"public",example:"?foo=bar&bar=baz",changelog:[{version:"0.0.0"}]},"http.request.body.data":{brief:"HTTP request body data. Can be given as string or structural data of any format.",type:"string",applyScrubbing:{key:"auto"},isInOtel:!1,visibility:"public",example:'[{"role": "user", "message": "hello"}]',changelog:[{version:"0.6.0",prs:[336],description:"Added http.request.body.data attribute"}]},"http.request.connection_end":{brief:"The UNIX timestamp representing the time immediately after the browser finishes establishing the connection to the server to retrieve the resource. The timestamp value includes the time interval to establish the transport connection, as well as other time intervals such as TLS handshake and SOCKS authentication.",type:"double",applyScrubbing:{key:"manual"},isInOtel:!1,visibility:"public",example:1732829555.15,changelog:[{version:"0.4.0",prs:[228]},{version:"0.1.0",prs:[134]},{version:"0.0.0"}]},"http.request.connect_start":{brief:"The UNIX timestamp representing the time immediately before the user agent starts establishing the connection to the server to retrieve the resource.",type:"double",applyScrubbing:{key:"manual"},isInOtel:!1,visibility:"public",example:1732829555.111,changelog:[{version:"0.4.0",prs:[228]},{version:"0.1.0",prs:[134]},{version:"0.0.0"}]},"http.request.domain_lookup_end":{brief:"The UNIX timestamp representing the time immediately after the browser finishes the domain-name lookup for the resource.",type:"double",applyScrubbing:{key:"manual"},isInOtel:!1,visibility:"public",example:1732829555.201,changelog:[{version:"0.4.0",prs:[228]},{version:"0.1.0",prs:[134]},{version:"0.0.0"}]},"http.request.domain_lookup_start":{brief:"The UNIX timestamp representing the time immediately before the browser starts the domain name lookup for the resource.",type:"double",applyScrubbing:{key:"manual"},isInOtel:!1,visibility:"public",example:1732829555.322,changelog:[{version:"0.4.0",prs:[228]},{version:"0.1.0",prs:[134]},{version:"0.0.0"}]},"http.request.fetch_start":{brief:"The UNIX timestamp representing the time immediately before the browser starts to fetch the resource.",type:"double",applyScrubbing:{key:"manual"},isInOtel:!1,visibility:"public",example:1732829555.389,changelog:[{version:"0.4.0",prs:[228]},{version:"0.1.0",prs:[134]},{version:"0.0.0"}]},"http.request.header.<key>":{brief:"HTTP request headers, <key> being the normalized HTTP Header name (lowercase), the value being the header values.",type:"string[]",applyScrubbing:{key:"auto"},isInOtel:!0,visibility:"public",hasDynamicSuffix:!0,example:"http.request.header.custom-header=['foo', 'bar']",changelog:[{version:"0.4.0",prs:[201,204]},{version:"0.1.0",prs:[103]}]},"http.request.method":{brief:"The HTTP method used.",type:"string",applyScrubbing:{key:"manual"},isInOtel:!0,visibility:"public",example:"GET",aliases:["method","http.method","http.request_method"],changelog:[{version:"0.1.0",prs:[127]},{version:"0.0.0"}]},"http.request_method":{brief:"The HTTP method used.",type:"string",applyScrubbing:{key:"manual"},isInOtel:!1,visibility:"public",example:"GET",deprecation:{replacement:"http.request.method"},aliases:["method","http.method","http.request.method"],changelog:[{version:"0.6.0",prs:[343],description:"Added http.request_method attribute"}]},"http.request.redirect_end":{brief:"The UNIX timestamp representing the timestamp immediately after receiving the last b
41yte of the response of the last redirect",type:"double",applyScrubbing:{key:"manual"},isInOtel:!1,visibility:"public",example:1732829558.502,changelog:[{version:"0.4.0",prs:[228]},{version:"0.1.0",prs:[130,134]}]},"http.request.redirect_start":{brief:"The UNIX timestamp representing the start time of the fetch which that initiates the redirect.",type:"double",applyScrubbing:{key:"manual"},isInOtel:!1,visibility:"public",example:1732829555.495,changelog:[{version:"0.4.0",prs:[228]},{version:"0.1.0",prs:[134]},{version:"0.0.0"}]},"http.request.request_start":{brief:"The UNIX timestamp representing the time immediately before the browser starts requesting the resource from the server, cache, or local resource. If the transport connection fails and the browser retires the request, the value returned will be the start of the retry request.",type:"double",applyScrubbing:{key:"manual"},isInOtel:!1,visibility:"public",example:1732829555.51,changelog:[{version:"0.4.0",prs:[228]},{version:"0.1.0",prs:[134]},{version:"0.0.0"}]},"http.request.resend_count":{brief:"The ordinal number of request resending attempt (for any reason, including redirects).",type:"integer",applyScrubbing:{key:"manual"},isInOtel:!1,visibility:"public",example:2,changelog:[{version:"0.4.0",prs:[228]},{version:"0.0.0"}]},"http.request.response_end":{brief:"The UNIX timestamp representing the time immediately after the browser receives the last byte of the resource or immediately before the transport connection is closed, whichever comes first.",type:"double",applyScrubbing:{key:"manual"},isInOtel:!1,visibility:"public",example:1732829555.89,changelog:[{version:"0.4.0",prs:[228]},{version:"0.1.0",prs:[134]},{version:"0.0.0"}]},"http.request.response_start":{brief:"The UNIX timestamp representing the time immediately before the browser starts requesting the resource from the server, cache, or local resource. If the transport connection fails and the browser retires the request, the value returned will be the start of the retry request.",type:"double",applyScrubbing:{key:"manual"},isInOtel:!1,visibility:"public",example:1732829555.7,changelog:[{version:"0.4.0",prs:[228]},{version:"0.1.0",prs:[134]},{version:"0.0.0"}]},"http.request.same_origin":{brief:"Indicates that a URL has the same origin as the current page's origin in the browser.",type:"boolean",applyScrubbing:{key:"manual"},isInOtel:!1,visibility:"public",example:!0,aliases:["url.same_origin"],changelog:[{version:"0.16.0",prs:[456],description:"Added http.request.same_origin attribute"}]},"http.request.secure_connection_start":{brief:"The UNIX timestamp representing the time immediately before the browser starts the handshake process to secure the current connection. If a secure connection is not used, the property returns zero.",type:"double",applyScrubbing:{key:"manual"},isInOtel:!1,visibility:"public",example:1732829555.73,changelog:[{version:"0.4.0",prs:[228]},{version:"0.1.0",prs:[134]},{version:"0.0.0"}]},"http.request.time_to_first_byte":{brief:"The time in seconds from the browser's timeorigin to when the first byte of the request's response was received. See https://web.dev/articles/ttfb#measure-resource-requests",type:"double",applyScrubbing:{key:"manual"},isInOtel:!1,visibility:"public",example:1.032,changelog:[{version:"0.4.0",prs:[228]},{version:"0.1.0",prs:[131]}]},"http.request.worker_start":{brief:"The UNIX timestamp representing the timestamp immediately before dispatching the FetchEvent if a Service Worker thread is already running, or immediately before starting the Service Worker thread if it is not already running.",type:"double",applyScrubbing:{key:"manual"},isInOtel:!1,visibility:"public",example:1732829553.68,changelog:[{version:"0.4.0",prs:[228]},{version:"0.1.0",prs:[130,134]}]},"http.response.body.size":{brief:"The encoded body size of the response (in bytes).",type:"integer",applyScrubbing:{key:"manual"},isInOtel:!0,visibility:"public",example:123,aliases:["http.response_content_length","http.response.header.content-length"],changelog:[{version:"0.4.0",prs:[228]},{version:"0.1.0",prs:[106]},{version:"0.0.0"}]},"http.response_content_length":{brief:"The encoded body size of the response 
41(in bytes).",type:"integer",applyScrubbing:{key:"manual"},isInOtel:!0,visibility:"public",example:123,deprecation:{replacement:"http.response.body.size"},aliases:["http.response.body.size","http.response.header.content-length"],changelog:[{version:"0.4.0",prs:[228]},{version:"0.1.0",prs:[61,106]},{version:"0.0.0"}]},"http.response.header.content-length":{brief:"The size of the message body sent to the recipient (in bytes)",type:"string",applyScrubbing:{key:"manual"},isInOtel:!0,visibility:"public",example:"http.response.header.custom-header=['foo', 'bar']",aliases:["http.response_content_length","http.response.body.size"],changelog:[{version:"0.1.0",prs:[127]},{version:"0.0.0"}]},"http.response.header.<key>":{brief:"HTTP response headers, <key> being the normalized HTTP Header name (lowercase), the value being the header values.",type:"string[]",applyScrubbing:{key:"auto"},isInOtel:!0,visibility:"public",hasDynamicSuffix:!0,example:"http.response.header.custom-header=['foo', 'bar']",changelog:[{version:"0.4.0",prs:[201,204]},{version:"0.1.0",prs:[103]}]},"http.response.size":{brief:"The transfer size of the response (in bytes).",type:"integer",applyScrubbing:{key:"manual"},isInOtel:!0,visibility:"public",example:456,aliases:["http.response_transfer_size"],changelog:[{version:"0.4.0",prs:[228]},{version:"0.0.0"}]},"http.response.status_code":{brief:"The status code of the HTTP response.",type:"integer",applyScrubbing:{key:"manual"},isInOtel:!0,visibility:"public",example:404,aliases:["http.status_code"],changelog:[{version:"0.4.0",prs:[228]},{version:"0.0.0"}]},"http.response_transfer_size":{brief:"The transfer size of the response (in bytes).",type:"integer",applyScrubbing:{key:"manual"},isInOtel:!1,visibility:"public",example:456,deprecation:{replacement:"http.response.size"},aliases:["http.response.size"],changelog:[{version:"0.4.0",prs:[228]},{version:"0.1.0",prs:[61]},{version:"0.0.0"}]},"http.route":{brief:"The matched route, that is, the path template in the format used by the respective server framework.",type:"string",applyScrubbing:{key:"manual"},isInOtel:!0,visibility:"public",example:"/users/:id",aliases:["url.template"],changelog:[{version:"0.1.0",prs:[127]},{version:"0.0.0"}]},"http.scheme":{brief:"The URI scheme component identifying the used protocol.",type:"string",applyScrubbing:{key:"manual"},isInOtel:!0,visibility:"public",example:"https",deprecation:{replacement:"url.scheme"},aliases:["url.scheme"],changelog:[{version:"0.1.0",prs:[61,127]},{version:"0.0.0"}]},"http.server_name":{brief:"The server domain name",type:"string",applyScrubbing:{key:"manual"},isInOtel:!0,visibility:"public",example:"example.com",deprecation:{replacement:"server.address"},aliases:["server.address","net.host.name","http.host","server_name"],changelog:[{version:"0.1.0",prs:[61,108,127]},{version:"0.0.0"}]},"http.server.request.time_in_queue":{brief:"The time in milliseconds the request spent in the server queue before processing began. Measured from the X-Request-Start header set by reverse proxies (e.g., Nginx, HAProxy, Heroku) to when the application started handling the request.",type:"double",applyScrubbing:{key:"manual"},isInOtel:!1,visibility:"public",example:50,changelog:[{version:"0.5.0",prs:[267]}]},"http.status_code":{brief:"The status code of the HTTP response.",type:"integer",applyScrubbing:{key:"manual"},isInOtel:!0,visibility:"public",example:404,deprecation:{replacement:"http.response.status_code"},aliases:["http.response.status_code"],changelog:[{version:"0.4.0",prs:[228]},{version:"0.1.0",prs:[61]},{version:"0.0.0"}]},"http.target":{brief:"The pathname and query string of the URL.",type:"string",applyScrubbing:{key:"auto"},isInOtel:!0,visibility:"public",example:"/test?foo=bar#buzz",deprecation:{replacement:"url.path",reason:"This attribute is being deprecated 
41in favor of url.path and url.query"},changelog:[{version:"0.1.0",prs:[61]},{version:"0.0.0"}]},"http.url":{brief:"The URL of the resource that was fetched.",type:"string",applyScrubbing:{key:"auto"},isInOtel:!0,visibility:"public",example:"https://example.com/test?foo=bar#buzz",deprecation:{replacement:"url.full"},aliases:["url.full","url"],changelog:[{version:"0.1.0",prs:[61,108]},{version:"0.0.0"}]},"http.user_agent":{brief:"Value of the HTTP User-Agent header sent by the client.",type:"string",applyScrubbing:{key:"manual"},isInOtel:!0,visibility:"public",example:"Mozilla/5.0 (iPhone; CPU iPhone OS 14_7_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/14.1.2 Mobile/15E148 Safari/604.1",deprecation:{replacement:"user_agent.original"},aliases:["user_agent.original"],changelog:[{version:"0.1.0",prs:[61,127]},{version:"0.0.0"}]},id:{brief:"A unique identifier for the span.",type:"string",applyScrubbing:{key:"never"},isInOtel:!1,visibility:"public",example:"f47ac10b58cc4372a5670e02b2c3d479",changelog:[{version:"0.0.0"}]},inp:{brief:"The value of the recorded Interaction to Next Paint (INP) web vital",type:"double",applyScrubbing:{key:"manual"},isInOtel:!1,visibility:"public",example:200,deprecation:{replacement:"browser.web_vital.inp.value",reason:"The INP web vital is now recorded as a browser.web_vital.inp.value attribute."},aliases:["browser.web_vital.inp.value"],changelog:[{version:"0.5.0",prs:[229],description:"Added and deprecated attribute to document JS SDK's current behaviour"}]},"jsonrpc.protocol.version":{brief:"The version of the JSON-RPC protocol used.",type:"string",applyScrubbing:{key:"manual"},isInOtel:!0,visibility:"public",example:"2.0",changelog:[{version:"0.12.0",prs:[420],description:"Added jsonrpc.protocol.version attribute"}]},"jsonrpc.request.id":{brief:"The JSON-RPC request identifier. Unique within the session.",type:"string",applyScrubbing:{key:"manual"},isInOtel:!0,visibility:"public",example:"1",aliases:["mcp.request.id"],changelog:[{version:"0.12.0",prs:[420],description:"Added jsonrpc.request.id attribute"}]},"jvm.gc.action":{brief:"Name of the garbage collector action.",type:"string",applyScrubbing:{key:"manual"},isInOtel:!0,visibility:"public",example:"end of minor GC",changelog:[{version:"0.1.0",prs:[127]},{version:"0.0.0"}]},"jvm.gc.name":{brief:"Name of the garbage collector.",type:"string",applyScrubbing:{key:"manual"},isInOtel:!0,visibility:"public",example:"G1 Young Generation",changelog:[{version:"0.1.0",prs:[127]},{version:"0.0.0"}]},"jvm.memory.pool.name":{brief:"Name of the memory pool.",type:"string",applyScrubbing:{key:"manual"},isInOtel:!0,visibility:"public",example:"G1 Old Gen",changelog:[{version:"0.1.0",prs:[127]},{version:"0.0.0"}]},"jvm.memory.type":{brief:"Name of the memory pool.",type:"string",applyScrubbing:{key:"manual"},isInOtel:!0,visibility:"public",example:"G1 Old Gen",changelog:[{version:"0.1.0",prs:[127]},{version:"0.0.0"}]},"jvm.thread.daemon":{brief:"Whether the thread is daemon or not.",type:"boolean",applyScrubbing:{key:"manual"},isInOtel:!0,visibility:"public",example:!0,changelog:[{version:"0.0.0"}]},"jvm.thread.state":{brief:"State of the thread.",type:"string",applyScrubbing:{key:"manual"},isInOtel:!0,visibility:"public",example:"blocked",changelog:[{version:"0.1.0",prs:[127]},{version:"0.0.0"}]},"koa.name":{brief:"The name of the Koa middleware or matched route that handled the request.",type:"string",applyScrubbing:{key:"manual"},isInOtel:!1,visibility:"public",example:"/users/:id",deprecation:{reason:"No single replacement. SDKs should use http.route for router layers and code.function.name for middleware layers instead."},changelog:[{version:"0.16.0",prs:[490],description:"Added koa.name attribute as deprecated"}]},"koa.type":{brief:"The type of the Koa layer that handled the request.",type:"string",applyScrubbing:{key:"manual"},isInOtel:!1,visibility:"public",example:"router",changelog:[{version:"0.16.0",prs:[471],description:"Added koa.type attribute"}]},lcp:{brief:"The value of the recorded Largest Contentful Paint (LCP) web vital",type:"double",applyScrubbing:{key:"manual"},isInOtel:!1,visibility:"public",example:2500,deprecation:{replacement:"browser.web_vital.lcp.value",reason:"The LCP web vital is now recorded as a browser.web_vital.lcp.value attribute."},aliases:["browser.web_vital.lcp.value"],changelog:[{version:"0.5.0",prs:[229],description:"Added and deprecated attribute to document JS SDK's current behaviour"}]},"lcp.element":{brief:"The dom element responsible for the largest contentful paint.",type:"string",applyScrubbing:{key:"manual"},isInOtel:!1,visibility:"public",example:"img",deprecation:{replacement:"browser.web_vital.lcp.element",reason:"The LCP element is now recorded as a browser.web_vital.lcp.element attribute."}
41,aliases:["browser.web_vital.lcp.element"],changelog:[{version:"0.5.0",prs:[233]},{version:"0.1.0",prs:[127]},{version:"0.0.0"}]},"lcp.id":{brief:"The id of the dom element responsible for the largest contentful paint.",type:"string",applyScrubbing:{key:"manual"},isInOtel:!1,visibility:"public",example:"#hero",deprecation:{replacement:"browser.web_vital.lcp.id",reason:"The LCP id is now recorded as a browser.web_vital.lcp.id attribute."},aliases:["browser.web_vital.lcp.id"],changelog:[{version:"0.5.0",prs:[233]},{version:"0.1.0",prs:[127]},{version:"0.0.0"}]},"lcp.loadTime":{brief:"The time it took for the LCP element to be loaded",type:"integer",applyScrubbing:{key:"manual"},isInOtel:!1,visibility:"public",example:1402,deprecation:{replacement:"browser.web_vital.lcp.load_time",reason:"The LCP load time is now recorded as a browser.web_vital.lcp.load_time attribute."},aliases:["browser.web_vital.lcp.load_time"],changelog:[{version:"0.5.0",prs:[233]}]},"lcp.renderTime":{brief:"The time it took for the LCP element to be rendered",type:"integer",applyScrubbing:{key:"manual"},isInOtel:!1,visibility:"public",example:1685,deprecation:{replacement:"browser.web_vital.lcp.render_time",reason:"The LCP render time is now recorded as a browser.web_vital.lcp.render_time attribute."},aliases:["browser.web_vital.lcp.render_time"],changelog:[{version:"0.5.0",prs:[233]}]},"lcp.size":{brief:"The size of the largest contentful paint element.",type:"integer",applyScrubbing:{key:"manual"},isInOtel:!1,visibility:"public",example:1234,deprecation:{replacement:"browser.web_vital.lcp.size",reason:"The LCP size is now recorded as a browser.web_vital.lcp.size attribute."},aliases:["browser.web_vital.lcp.size"],changelog:[{version:"0.5.0",prs:[233]},{version:"0.4.0",prs:[228]},{version:"0.0.0"}]},"lcp.url":{brief:"The url of the dom element responsible for the largest contentful paint.",type:"string",applyScrubbing:{key:"auto"},isInOtel:!1,visibility:"public",example:"https://example.com",deprecation:{replacement:"browser.web_vital.lcp.url",reason:"The LCP url is now recorded as a browser.web_vital.lcp.url attribute."},aliases:["browser.web_vital.lcp.url"],changelog:[{version:"0.5.0",prs:[233]},{version:"0.1.0",prs:[127]},{version:"0.0.0"}]},"logger.name":{brief:"The name of the logger that generated this event.",type:"string",applyScrubbing:{key:"manual"},isInOtel:!1,visibility:"public",example:"myLogger",changelog:[{version:"0.1.0",prs:[127]},{version:"0.0.0"}]},"mcp.cancelled.reason":{brief:"Reason for the cancellation of an MCP operation.",type:"string",applyScrubbing:{key:"manual",reason:"Cancellation reasons may contain user-specific or sensitive information"},isInOtel:!1,visibility:"public",example:"User cancelled the request",changelog:[{version:"0.3.0",prs:[171]}]},"mcp.cancelled.request_id":{brief:"Request ID of the cancelled MCP operation.",type:"string",applyScrubbing:{key:"manual"},isInOtel:!1,visibility:"public",example:"123",changelog:[{version:"0.3.0",prs:[171]}]},"mcp.client.name":{brief:"Name of the MCP client application.",type:"string",applyScrubbing:{key:"manual"},isInOtel:!1,visibility:"public",example:"claude-desktop",changelog:[{version:"0.3.0",prs:[171]}]},"mcp.client.title":{brief:"Display title of the MCP client application.",type:"string",applyScrubbing:{key:"manual",reason:"Client titles may reveal user-specific application configurations or custom setups"},isInOtel:!1,visibility:"public",example:"Claude Desktop",changelog:[{version:"0.3.0",prs:[171]}]},"mcp.client.version":{brief:"Version of the MCP client application.",type:"string",applyScrubbing:{key:"manual"},isInOtel:!1,visibility:"public",example:"1.0.0",changelog:[{version:"0.3.0",prs:[171]}]},"mcp.lifecycle.phase":{brief:"Lifecycle phase indicator for MCP operations.",type:"string",applyScrubbing:{key:"manual"},isInOtel:!1,visibility:"public",example:"initialization_complete",changelog:[{version:"0.3.0",prs:[171]}]},"mcp.logging.data_type":{brief:"Data type of the logged message content.",type:"string",applyScrubbing:{key:"manual"},isInOtel:!1,visibility:"public",example:"string",changelog:[{version:"0.3.0",prs:[171]}]},"mcp.logging.level":{brief:"Log level for MCP logging operations.",type:"string",applyScrubbing:{key:"manual"},isInOtel:!1,visibility:"public",example:"info",changelog:[{version:"0.3.0",prs:[171]}]},"mcp.logging.logger":{brief:"Logger name for MCP logging operations.",type:"string",applyScrubbing:{key:"manual",reason:"Logger names may be user-defined and could contain sensitive information"},isInOtel:!1,visibility:"public",example:"mcp_server",changelog:[{version:"0.3.0",prs:[171]}]},"mcp.logging.message":{brief:"Log message content from MCP logging operations.",type:"string",applyScrubbing:{key:"auto",reason:"Log messages can contain user data"},isInOtel:!1,visibility:"public",example:"Tool execution completed successfully",changelog:[{version:"0.3.0",prs:[171]}]},"mcp.method.name":{brief:"The name of the MCP request or notification method being called.",type:"string",applyScrubbing:{key:"manual"},isInOtel:!0,visibility:"public",example:"tools/call",changelog:[{version:"0.12.0",prs:[420],description:"Set is_in_otel=true, attribute exists in OTel MCP registry"},{version:"0.3.0",prs:[171]}]},"mcp.progress.current":{brief:"Current progress value of an MCP operation.",type:"integer",applyScrubbing:{key:"manual"},isInOtel:!1,visibility:"public",example:50,changelog:[{version:"0.4.0",prs:[228]},{version:"0.3.0",prs:[171]}]},"mcp.progress.message":{brief:"Progress message describing the current state of an MCP operation.",type:"string",applyScrubbing:{key:"manual",reason:"Progress messages may contain user-specific or sensitive information"}
41,isInOtel:!1,visibility:"public",example:"Processing 50 of 100 items",changelog:[{version:"0.3.0",prs:[171]}]},"mcp.progress.percentage":{brief:"Calculated progress percentage of an MCP operation. Computed from current/total * 100.",type:"double",applyScrubbing:{key:"manual"},isInOtel:!1,visibility:"public",example:50,changelog:[{version:"0.4.0",prs:[228]},{version:"0.3.0",prs:[171]}]},"mcp.progress.token":{brief:"Token for tracking progress of an MCP operation.",type:"string",applyScrubbing:{key:"manual"},isInOtel:!1,visibility:"public",example:"progress-token-123",changelog:[{version:"0.3.0",prs:[171]}]},"mcp.progress.total":{brief:"Total progress target value of an MCP operation.",type:"integer",applyScrubbing:{key:"manual"},isInOtel:!1,visibility:"public",example:100,changelog:[{version:"0.4.0",prs:[228]},{version:"0.3.0",prs:[171]}]},"mcp.prompt.name":{brief:"Name of the MCP prompt template being used.",type:"string",applyScrubbing:{key:"manual",reason:"Prompt names may reveal user behavior patterns or sensitive operations"},isInOtel:!1,visibility:"public",example:"summarize",deprecation:{replacement:"gen_ai.prompt.name",reason:"OTel uses gen_ai.prompt.name for MCP prompt names"},aliases:["gen_ai.prompt.name"],changelog:[{version:"0.12.0",prs:[420],description:"Deprecated 
41in favor of gen_ai.prompt.name"},{version:"0.3.0",prs:[171]}]},"mcp.prompt.result.description":{brief:"Description of the prompt result.",type:"string",applyScrubbing:{key:"auto"},isInOtel:!1,visibility:"public",example:"A summary of the requested information",changelog:[{version:"0.3.0",prs:[171]}]},"mcp.prompt.result.message_content":{brief:"Content of the message in the prompt result. Used for single message results only.",type:"string",applyScrubbing:{key:"auto"},isInOtel:!1,visibility:"public",example:"Please provide a summary of the document",changelog:[{version:"0.3.0",prs:[171]}]},"mcp.prompt.result.message_count":{brief:"Number of messages in the prompt result.",type:"integer",applyScrubbing:{key:"manual"},isInOtel:!1,visibility:"public",example:3,changelog:[{version:"0.4.0",prs:[228]},{version:"0.3.0",prs:[171]}]},"mcp.prompt.result.message_role":{brief:"Role of the message in the prompt result. Used for single message results only.",type:"string",applyScrubbing:{key:"manual"},isInOtel:!1,visibility:"public",example:"user",changelog:[{version:"0.3.0",prs:[171]}]},"mcp.protocol.ready":{brief:"Protocol readiness indicator for MCP session. Non-zero value indicates the protocol is ready.",type:"integer",applyScrubbing:{key:"manual"},isInOtel:!1,visibility:"public",example:1,changelog:[{version:"0.4.0",prs:[228]},{version:"0.3.0",prs:[171]}]},"mcp.protocol.version":{brief:"MCP protocol version used in the session.",type:"string",applyScrubbing:{key:"manual"},isInOtel:!0,visibility:"public",example:"2024-11-05",changelog:[{version:"0.12.0",prs:[420],description:"Set is_in_otel=true, attribute exists in OTel MCP registry"},{version:"0.3.0",prs:[171]}]},"mcp.request.argument.<key>":{brief:"MCP request argument with dynamic key suffix. The <key> is replaced with the actual argument name. The value is a JSON-stringified representation of the argument value.",type:"string",applyScrubbing:{key:"auto",reason:"Arguments contain user input"},isInOtel:!1,visibility:"public",hasDynamicSuffix:!0,example:"mcp.request.argument.query='weather in Paris'",changelog:[{version:"0.3.0",prs:[176]}]},"mcp.request.argument.name":{brief:"Name argument from prompts/get MCP request.",type:"string",applyScrubbing:{key:"auto",reason:"Prompt names can contain user input"},isInOtel:!1,visibility:"public",example:"summarize",changelog:[{version:"0.3.0",prs:[171]}]},"mcp.request.argument.uri":{brief:"URI argument from resources/read MCP request.",type:"string",applyScrubbing:{key:"auto",reason:"URIs can contain user file paths"},isInOtel:!1,visibility:"public",example:"file:///path/to/resource",changelog:[{version:"0.3.0",prs:[171]}]},"mcp.request.id":{brief:"JSON-RPC request identifier for the MCP request. Unique within the MCP session.",type:"string",applyScrubbing:{key:"manual"},isInOtel:!1,visibility:"public",example:"1",deprecation:{replacement:"jsonrpc.request.id",reason:"OTel models MCP as JSON-RPC, uses jsonrpc.request.id"},aliases:["jsonrpc.request.id"],changelog:[{version:"0.12.0",prs:[420],description:"Deprecated 
41in favor of jsonrpc.request.id"},{version:"0.3.0",prs:[171]}]},"mcp.resource.protocol":{brief:"Protocol of the resource URI being accessed, extracted from the URI.",type:"string",applyScrubbing:{key:"manual"},isInOtel:!1,visibility:"public",example:"file",deprecation:{replacement:"network.protocol.name",reason:"OTel uses the generic network.protocol.name attribute"},aliases:["network.protocol.name","net.protocol.name"],changelog:[{version:"0.12.0",prs:[420],description:"Deprecated in favor of network.protocol.name"},{version:"0.3.0",prs:[171]}]},"mcp.resource.uri":{brief:"The resource URI being accessed in an MCP operation.",type:"string",applyScrubbing:{key:"auto",reason:"URIs can contain sensitive file paths"},isInOtel:!0,visibility:"public",example:"file:///path/to/file.txt",changelog:[{version:"0.12.0",prs:[420],description:"Set is_in_otel=true, attribute exists in OTel MCP registry"},{version:"0.3.0",prs:[171]}]},"mcp.server.name":{brief:"Name of the MCP server application.",type:"string",applyScrubbing:{key:"manual"},isInOtel:!1,visibility:"public",example:"sentry-mcp-server",changelog:[{version:"0.3.0",prs:[171]}]},"mcp.server.title":{brief:"Display title of the MCP server application.",type:"string",applyScrubbing:{key:"manual",reason:"Server titles may reveal user-specific application configurations or custom setups"},isInOtel:!1,visibility:"public",example:"Sentry MCP Server",changelog:[{version:"0.3.0",prs:[171]}]},"mcp.server.version":{brief:"Version of the MCP server application.",type:"string",applyScrubbing:{key:"manual"},isInOtel:!1,visibility:"public",example:"0.1.0",changelog:[{version:"0.3.0",prs:[171]}]},"mcp.session.id":{brief:"Identifier for the MCP session.",type:"string",applyScrubbing:{key:"manual"},isInOtel:!0,visibility:"public",example:"550e8400-e29b-41d4-a716-446655440000",changelog:[{version:"0.12.0",prs:[420],description:"Set is_in_otel=true, attribute exists in OTel MCP registry"},{version:"0.3.0",prs:[171]}]},"mcp.tool.name":{brief:"Name of the MCP tool being called.",type:"string",applyScrubbing:{key:"manual"},isInOtel:!1,visibility:"public",example:"calculator",deprecation:{replacement:"gen_ai.tool.name",reason:"OTel uses gen_ai.tool.name for MCP tool names"},aliases:["gen_ai.tool.name","ai.function_call"],changelog:[{version:"0.12.0",prs:[420],description:"Deprecated 
41in favor of gen_ai.tool.name"},{version:"0.3.0",prs:[171]}]},"mcp.tool.result.content":{brief:"The content of the tool result.",type:"string",applyScrubbing:{key:"auto",reason:"Tool results can contain user data"},isInOtel:!1,visibility:"public",example:'{"output": "rainy", "toolCallId": "1"}',deprecation:{replacement:"gen_ai.tool.call.result",reason:"OTel uses gen_ai.tool.call.result for MCP tool results"},aliases:["gen_ai.tool.call.result","gen_ai.tool.message","gen_ai.tool.output"],changelog:[{version:"0.12.0",prs:[420],description:"Deprecated in favor of gen_ai.tool.call.result"},{version:"0.3.0",prs:[171]},{version:"0.2.0",prs:[164]}]},"mcp.tool.result.content_count":{brief:"Number of content items in the tool result.",type:"integer",applyScrubbing:{key:"manual"},isInOtel:!1,visibility:"public",example:1,changelog:[{version:"0.4.0",prs:[228]},{version:"0.3.0",prs:[171]}]},"mcp.tool.result.is_error":{brief:"Whether a tool execution resulted in an error.",type:"boolean",applyScrubbing:{key:"manual"},isInOtel:!1,visibility:"public",example:!1,deprecation:{replacement:"error.type",reason:"OTel uses error.type set to 'tool_error' when isError is true. Cannot be automatically backfilled due to type mismatch (boolean vs string)."},changelog:[{version:"0.12.0",prs:[420],description:"Deprecated 
41in favor of error.type"},{version:"0.3.0",prs:[171]}]},"mcp.transport":{brief:"Transport method used for MCP communication.",type:"string",applyScrubbing:{key:"manual"},isInOtel:!1,visibility:"public",example:"stdio",deprecation:{replacement:"network.transport",reason:"OTel uses the generic network.transport attribute"},aliases:["network.transport","net.transport"],changelog:[{version:"0.12.0",prs:[420],description:"Deprecated in favor of network.transport"},{version:"0.3.0",prs:[171]}]},"mdc.<key>":{brief:"Attributes from the Mapped Diagnostic Context (MDC) present at the moment the log record was created. The MDC is supported by all the most popular logging solutions in the Java ecosystem, and it's usually implemented as a thread-local map that stores context for e.g. a specific request.",type:"string",applyScrubbing:{key:"auto"},isInOtel:!1,visibility:"public",hasDynamicSuffix:!0,example:"mdc.some_key='some_value'",changelog:[{version:"0.3.0",prs:[176]}]},"messaging.batch.message_count":{brief:"The number of messages sent, received, or processed in the scope of the batching operation.",type:"integer",applyScrubbing:{key:"manual"},isInOtel:!0,visibility:"public",example:10,changelog:[{version:"0.6.0",prs:[341],description:"Added messaging.batch.message_count attribute"}]},"messaging.destination":{brief:"The message destination name.",type:"string",applyScrubbing:{key:"manual"},isInOtel:!1,visibility:"public",example:"BestTopic",deprecation:{replacement:"messaging.destination.name",reason:"This attribute is being deprecated 
41in favor of messaging.destination.name, which is the OTel-aligned replacement."},aliases:["messaging.destination.name"],changelog:[{version:"0.16.0",prs:[482],description:"Added messaging.destination attribute, deprecated in favor of messaging.destination.name"}]},"messaging.destination.connection":{brief:"The message destination connection.",type:"string",applyScrubbing:{key:"manual"},isInOtel:!1,visibility:"public",example:"BestTopic",changelog:[{version:"0.1.0",prs:[127]},{version:"0.0.0"}]},"messaging.destination.name":{brief:"The message destination name.",type:"string",applyScrubbing:{key:"manual"},isInOtel:!0,visibility:"public",example:"BestTopic",aliases:["messaging.destination"],changelog:[{version:"0.16.0",prs:[482],description:"Added messaging.destination as an alias"},{version:"0.1.0",prs:[127]},{version:"0.0.0"}]},"messaging.message.body.size":{brief:"The size of the message body in bytes.",type:"integer",applyScrubbing:{key:"manual"},isInOtel:!0,visibility:"public",example:839,changelog:[{version:"0.4.0",prs:[228]},{version:"0.0.0"}]},"messaging.message.conversation_id":{brief:'The conversation ID identifying the conversation to which the message belongs, represented as a string. Sometimes called "Correlation ID".',type:"string",applyScrubbing:{key:"manual"},isInOtel:!0,visibility:"public",example:"MyConversationId",changelog:[{version:"0.16.0",prs:[468],description:"Added messaging.message.conversation_id attribute"}]},"messaging.message.envelope.size":{brief:"The size of the message body and metadata in bytes.",type:"integer",applyScrubbing:{key:"manual"},isInOtel:!0,visibility:"public",example:1045,changelog:[{version:"0.4.0",prs:[228]},{version:"0.0.0"}]},"messaging.message.id":{brief:"A value used by the messaging system as an identifier for the message, represented as a string.",type:"string",applyScrubbing:{key:"manual"},isInOtel:!0,visibility:"public",example:"f47ac10b58cc4372a5670e02b2c3d479",changelog:[{version:"0.1.0",prs:[127]},{version:"0.0.0"}]},"messaging.message.receive.latency":{brief:"The latency between when the message was published and received.",type:"integer",applyScrubbing:{key:"manual"},isInOtel:!1,visibility:"public",example:1732847252,changelog:[{version:"0.4.0",prs:[228]},{version:"0.0.0"}]},"messaging.message.retry.count":{brief:"The amount of attempts to send the message.",type:"integer",applyScrubbing:{key:"manual"},isInOtel:!1,visibility:"public",example:2,changelog:[{version:"0.4.0",prs:[228]},{version:"0.0.0"}]},"messaging.operation.name":{brief:"The name of the messaging operation being performed",type:"string",applyScrubbing:{key:"manual"},isInOtel:!0,visibility:"public",example:"send",changelog:[{version:"0.11.0",prs:[392],description:"Added messaging.operation.name attribute"}]},"messaging.operation.type":{brief:"A string identifying the type of the messaging operation",type:"string",applyScrubbing:{key:"manual"},isInOtel:!0,visibility:"public",example:"create",changelog:[{version:"0.1.0",prs:[51,127]}]},"messaging.rabbitmq.destination.routing_key":{brief:"RabbitMQ message routing key.",type:"string",applyScrubbing:{key:"manual"},isInOtel:!0,visibility:"public",example:"myKey",changelog:[{version:"0.16.0",prs:[468],description:"Added messaging.rabbitmq.destination.routing_key attribute"}]},"messaging.system":{brief:"The messaging system as identified by the client instrumentation.",type:"string",applyScrubbing:{key:"manual"},isInOtel:!0,visibility:"public",example:"activemq",changelog:[{version:"0.1.0",prs:[127]},{version:"0.0.0"}]},method:{brief:"The HTTP method used.",type:"string",applyScrubbing:{key:"manual"},isInOtel:!1,visibility:"public",example:"GET",deprecation:{replacement:"http.request.method"},aliases:["http.request.method","http.request_method","http.method"],changelog:[{version:"0.1.0",prs:[61,127]},{version:"0.0.0"}]},"middleware.name":{brief:"The name of the middleware.",type:"string",applyScrubbing:{key:"manual"},isInOtel:!1,visibility:"public",example:"AuthenticationMiddleware",changelog:[{version:"0.6.0",prs:[336],description:"Added middleware.name attribute"}]},"navigation.origin":{brief:"The origin of the navigation (usually client side router navigations). Should preferrably parameterized template (like url.template) or a URL path otherwise.",type:"string",applyScrubbing:{key:"auto"},isInOtel:!1,visibility:"public",example:"/users/:id",aliases:["sentry.sveltekit.navigation.from"],changelog:[{version:"0.16.0",prs:[467],description:"Added navigation.origin attribute"}]},"navigation.route.id":{brief:"The identifier of the matched client-side route, as assigned by the routing framework (e.g., vue-router name, react-router id).",type:"string",applyScrubbing:{key:"auto"},isInOtel:!1,visibility:"public",example:"AboutView",changelog:[{version:"0.16.0",prs:[468],description:"Added navigation.route.id attribute"}]},"navigation.type":{brief:"The type of navigation done by a client-side router.",type:"string",applyScrubbing:{key:"manual"},isInOtel:!1,visibility:"public",example:"router.push",aliases:["sentry.sveltekit.navigation.type"],changelog:[{version:"0.16.0",prs:[467],description:"Added new deprecated alias"},{version:"0.1.0",prs:[127]},{version:"0.0.0"}]},"nel.elapsed_time":{brief:"The elapsed number of milliseconds between the start of the resource fetch and when it was completed or aborted by the user agent.",type:"integer",applyScrubbing:{key:"manual"},isInOtel:!1,visibility:"public",example:100,changelog:[{version:"0.4.0",prs:[228]},{version:"0.1.0",prs:[68]}]},"nel.phase":{brief:'If request failed, the phase of its network error. If request succeeded, "application".',type:"string",applyScrubbing:{key:"manual"},isInOtel:!1,visibility:"public",example:"application",changelog:[{version:"0.1.0",prs:[68,127]}]},"nel.referrer":{brief:"request's referrer, as determined by the referrer policy associated with its client.",type:"string",applyScrubbing:{key:"auto"},isInOtel:!1,visibility:"public",example:"https://example.com/foo?bar=baz",changelog:[{version:"0.1.0",prs:[68,127]}]},"nel.sampling_function":{brief:"The sampling function used to determine if the request should be sampled.",type:"double",applyScrubbing:{key:"manual"},isInOtel:!1,visibility:"public",example:.5,changelog:[{version:"0.4.0",prs:[228]},{version:"0.1.0",prs:[68]}]},"nel.type":{brief:'If request failed, the type of its network error. If request succeeded, "ok".',type:"string",applyScrubbing:{key:"manual"},isInOtel:!1,visibility:"public",example:"dns.unreachable",changelog:[{version:"0.1.0",prs:[68,127]}]},"network.connection.effective_type":{brief:"Specifies the effective type of the current connection (e.g. slow-2g, 2g, 3g, 4g).",type:"string",applyScrubbing:{key:"manual"},isInOtel:!1,visibility:"public",example:"4g",aliases:["effectiveConnectionType"],changelog:[{version:"0.5.0",prs:[279],description:"Added attribute network.connection.effective_type to be used instead of effectiveConnectionType"}]},"network.connection.rtt":{brief:"Specifies the estimated effective round-trip time of the current connection, in milliseconds.",type:"integer",applyScrubbing:{key:"manual"},isInOtel:!1,visibility:"public",example:100,aliases:["connection.rtt"],changelog:[{version:"0.5.0",prs:[279],description:"Added attribute network.connection.rtt to be used instead of connection.rtt"}]},"network.connection.type":{brief:"Specifies the type of the current connection (e.g. wifi, ethernet, cellular , etc).",type:"string",applyScrubbing:{key:"manual"},isInOtel:!0,visibility:"public",example:"wifi",aliases:["device.connection_type","connectionType"],changelog:[{version:"0.5.0",prs:[279],description:"Added attribute network.connection.type to be used instead of connectionType"}]},"network.local.address":{brief:"Local address of the network connection - IP address or Unix domain socket name.",type:"string",applyScrubbing:{key:"manual"},isInOtel:!0,visibility:"public",example:"10.1.2.80",aliases:["net.host.ip","net.sock.host.addr"],changelog:[{version:"0.1.0",prs:[127]},{version:"0.0.0"}]},"network.local.port":{brief:"Local port number of the network connection.",type:"integer",applyScrubbing:{key:"manual"},isInOtel:!0,visibility:"public",example:65400,aliases:["net.sock.host.port"],changelog:[{version:"0.4.0",prs:[228]},{version:"0.0.0"}]},"network.peer.address":{brief:"Peer address of the network connection - IP address or Unix domain socket name.",type:"string",applyScrubbing:{key:"auto"},isInOtel:!0,visibility:"public",example:"10.1.2.80",aliases:["net.peer.ip","net.sock.peer.addr"],changelog:[{version:"0.1.0",prs:[108,127]},{version:"0.0.0"}]},"network.peer.port":{brief:"Peer port number of the network connection.",type:"integer",applyScrubbing:{key:"manual"},isInOtel:!0,visibility:"public",example:65400,changelog:[{version:"0.4.0",prs:[228]},{version:"0.0.0"}]},"network.protocol.name":{brief:"OSI application layer or non-OSI equivalent.",type:"string",applyScrubbing:{key:"manual"},isInOtel:!0,visibility:"public",example:"http",aliases:["net.protocol.name","mcp.resource.protocol"],changelog:[{version:"0.1.0",prs:[127]},{version:"0.0.0"}]},"network.protocol.version":{brief:"The actual version of the protocol used for network communication.",type:"string",applyScrubbing:{key:"manual"},isInOtel:!0,visibility:"public",example:"1.1",aliases:["http.flavor","net.protocol.version"],changelog:[{version:"0.1.0",prs:[127]},{version:"0.0.0"}]},"network.transport":{brief:"OSI transport layer or inter-process communication method.",type:"string",applyScrubbing:{key:"manual"},isInOtel:!0,visibility:"public",example:"tcp",aliases:["net.transport","mcp.transport"],changelog:[{version:"0.1.0",prs:[127]},{version:"0.0.0"}]},"network.type":{brief:"OSI network layer or non-OSI equivalent.",type:"string",applyScrubbing:{key:"manual"},isInOtel:!0,visibility:"public",example:"ipv4",changelog:[{version:"0.1.0",prs:[127]},{version:"0.0.0"}]},"net.host.ip":{brief:"Local address of the network connection - IP address or Unix domain socket name.",type:"string",applyScrubbing:{key:"manual"},isInOtel:!0,visibility:"public",example:"192.168.0.1",deprecation:{replacement:"network.local.address"},aliases:["network.local.address","net.sock.host.addr"],changelog:[{version:"0.1.0",prs:[61,108,127]},{version:"0.0.0"}]},"net.host.name":{brief:"Server domain name if available without reverse DNS lookup; otherwise, IP address or Unix domain socket name.",type:"string",applyScrubbing:{key:"manual"},isInOtel:!0,visibility:"public",example:"example.com",deprecation:{replacement:"server.address"},aliases:["server.address","http.server_name","http.host","server_name"],changelog:[{version:"0.1.0",prs:[61,108,127]},{version:"0.0.0"}]},"net.host.port":{brief:"Server port number.",type:"integer",applyScrubbing:{key:"manual"},isInOtel:!0,visibility:"public",example:1337,deprecation:{replacement:"server.port"},aliases:["server.port"],changelog:[{version:"0.4.0",prs:[228]},{version:"0.1.0",prs:[61]},{version:"0.0.0"}]},"net.peer.ip":{brief:"Peer address of the network connection - IP address or Unix domain socket name.",type:"string",applyScrubbing:{key:"auto"},isInOtel:!0,visibility:"public",example:"192.168.0.1",deprecation:{replacement:"network.peer.address"},aliases:["network.peer.address","net.sock.peer.addr"],changelog:[{version:"0.1.0",prs:[61,108,127]},{version:"0.0.0"}]},"net.peer.name":{brief:"Server domain name if available without reverse DNS lookup; otherwise, IP address or Unix domain socket name.",type:"string",applyScrubbing:{key:"auto"},isInOtel:!0,visibility:"public",example:"example.com",deprecation:{replacement:"server.address",reason:"Deprecated, use server.address on client spans and client.address on server spans."},changelog:[{version:"0.1.0",prs:[61,127]},{version:"0.0.0"}]},"net.peer.port":{brief:"Peer port number.",type:"integer",applyScrubbing:{key:"manual"},isInOtel:!0,visibility:"public",example:1337,deprecation:{replacement:"server.port",reason:"Deprecated, use server.port on client spans and client.port on server spans."},changelog:[{version:"0.4.0",prs:[228]},{version:"0.1.0",prs:[61]},{version:"0.0.0"}]},"net.protocol.name":{brief:"OSI application layer or non-OSI equivalent.",type:"string",applyScrubbing:{key:"manual"},isInOtel:!0,visibility:"public",example:"http",deprecation:{replacement:"network.protocol.name"},aliases:["network.protocol.name","mcp.resource.protocol"],changelog:[{version:"0.1.0",prs:[61,127]},{version:"0.0.0"}]},"net.protocol.version":{brief:"The actual version of the protocol used for network communication.",type:"string",applyScrubbing:{key:"manual"},isInOtel:!0,visibility:"public",example:"1.1",deprecation:{replacement:"network.protocol.version"},aliases:["network.protocol.version","http.flavor"],changelog:[{version:"0.1.0",prs:[61,108,127]},{version:"0.0.0"}]},"net.sock.family":{brief:"OSI transport and network layer",type:"string",applyScrubbing:{key:"manual"},isInOtel:!0,visibility:"public",example:"inet",deprecation:{replacement:"network.transport",reason:"Deprecated, use network.transport and network.type."},changelog:[{version:"0.1.0",prs:[61,127]},{version:"0.0.0"}]},"net.sock.host.addr":{brief:"Local address of the network connection mapping to Unix domain socket name.",type:"string",applyScrubbing:{key:"manual"},isInOtel:!0,visibility:"public",example:"/var/my.sock",deprecation:{replacement:"network.local.address"},aliases:["network.local.address","net.host.ip"],changelog:[{version:"0.1.0",prs:[61,108,127]},{version:"0.0.0"}]},"net.sock.host.port":{brief:"Local port number of the network connection.",type:"integer",applyScrubbing:{key:"manual"},isInOtel:!0,visibility:"public",example:8080,deprecation:{replacement:"network.local.port"},aliases:["network.local.port"],changelog:[{version:"0.4.0",prs:[228]},{version:"0.1.0",prs:[61]},{version:"0.0.0"}]},"net.sock.peer.addr":{brief:"Peer address of the network connection - IP address",type:"string",applyScrubbing:{key:"auto"},isInOtel:!0,visibility:"public",example:"192.168.0.1",deprecation:{replacement:"network.peer.address"},aliases:["network.peer.address","net.peer.ip"],changelog:[{version:"0.1.0",prs:[61,108,127]},{version:"0.0.0"}]},"net.sock.peer.name":{brief:"Peer address of the network connection - Unix domain socket name",type:"string",applyScrubbing:{key:"auto"},isInOtel:!0,visibility:"public",example:"/var/my.sock",deprecation:{reason:"Deprecated from OTEL, no replacement at this time"},changelog:[{version:"0.1.0",prs:[61,119,127]},{version:"0.0.0"}]},"net.sock.peer.port":{brief:"Peer port number of the network connection.",type:"integer",applyScrubbing:{key:"manual"},isInOtel:!0,visibility:"public",example:8080,deprecation:{replacement:"network.peer.port"},changelog:[{version:"0.4.0",prs:[228]},{version:"0.1.0",prs:[61]},{version:"0.0.0"}]},"net.transport":{brief:"OSI transport layer or inter-process communication method.",type:"string",applyScrubbing:{key:"manual"},isInOtel:!0,visibility:"public",example:"tcp",deprecation:{replacement:"network.transport"},aliases:["network.transport","mcp.transport"],changelog:[{version:"0.1.0",prs:[61,127]},{version:"0.0.0"}]},"os.build":{brief:"The build ID of the operating system.",type:"string",applyScrubbing:{key:"manual"},isInOtel:!1,visibility:"public",example:"1234567890",deprecation:{replacement:"os.build_id"},aliases:["os.build_id"],changelog:[{version:"0.5.0",prs:[301],description:"Added os.build attribute, deprecated 
41in favor of os.build_id"}]},"os.build_id":{brief:"The build ID of the operating system.",type:"string",applyScrubbing:{key:"manual"},isInOtel:!0,visibility:"public",example:"1234567890",aliases:["os.build"],changelog:[{version:"0.5.0",prs:[301],description:"Added os.build as alias"},{version:"0.1.0",prs:[127]},{version:"0.0.0"}]},"os.description":{brief:"Human readable (not intended to be parsed) OS version information, like e.g. reported by ver or lsb_release -a commands.",type:"string",applyScrubbing:{key:"manual"},isInOtel:!0,visibility:"public",example:"Ubuntu 18.04.1 LTS",changelog:[{version:"0.1.0",prs:[127]},{version:"0.0.0"}]},"os.kernel_version":{brief:"An independent kernel version string. Typically the entire output of the `uname` syscall.",type:"string",applyScrubbing:{key:"manual"},isInOtel:!1,visibility:"public",example:"20.2.0",changelog:[{version:"0.5.0",prs:[301],description:"Added os.kernel_version attribute"}]},"os.name":{brief:"Human readable operating system name.",type:"string",applyScrubbing:{key:"manual"},isInOtel:!0,visibility:"public",example:"Ubuntu",changelog:[{version:"0.1.0",prs:[127]},{version:"0.0.0"}]},"os.raw_description":{brief:"An unprocessed description string obtained by the operating system. For some well-known runtimes, Sentry will attempt to parse `name` and `version` from this string, if they are not explicitly given.",type:"string",applyScrubbing:{key:"manual"},isInOtel:!1,visibility:"public",example:"Ubuntu 22.04.4 LTS (Jammy Jellyfish)",changelog:[{version:"0.5.0",prs:[301],description:"Added os.raw_description attribute"}]},"os.rooted":{brief:"Whether the operating system has been jailbroken or rooted.",type:"boolean",applyScrubbing:{key:"manual"},isInOtel:!1,visibility:"public",example:!0,changelog:[{version:"0.5.0",prs:[301],description:"Added os.rooted attribute"}]},"os.theme":{brief:"Whether the OS runs in dark mode or light mode.",type:"string",applyScrubbing:{key:"manual"},isInOtel:!1,visibility:"public",example:"dark",changelog:[{version:"0.5.0",prs:[301],description:"Added os.theme attribute"}]},"os.type":{brief:"The operating system type.",type:"string",applyScrubbing:{key:"manual"},isInOtel:!0,visibility:"public",example:"linux",changelog:[{version:"0.1.0",prs:[127]},{version:"0.0.0"}]},"os.version":{brief:"The version of the operating system.",type:"string",applyScrubbing:{key:"manual"},isInOtel:!0,visibility:"public",example:"18.04.2",changelog:[{version:"0.1.0",prs:[127]},{version:"0.0.0"}]}
vendor: 9,601 bytes, line 41
41,"otel.kind":{brief:"The span kind (https://opentelemetry.io/docs/concepts/signals/traces/#span-kind). Deprecated, use `sentry.kind` instead.",type:"string",applyScrubbing:{key:"manual"},isInOtel:!1,visibility:"public",example:"SERVER",deprecation:{replacement:"sentry.kind",reason:"Deprecated in favor of sentry.kind"},aliases:["sentry.kind"],changelog:[{version:"0.13.0",prs:[440],description:"Added otel.kind attribute"}]},"otel.scope.name":{brief:"The name of the instrumentation scope - (InstrumentationScope.Name in OTLP).",type:"string",applyScrubbing:{key:"manual"},isInOtel:!0,visibility:"public",example:"io.opentelemetry.contrib.mongodb",changelog:[{version:"0.1.0",prs:[127]},{version:"0.0.0"}]},"otel.scope.version":{brief:"The version of the instrumentation scope - (InstrumentationScope.Version in OTLP).",type:"string",applyScrubbing:{key:"manual"},isInOtel:!0,visibility:"public",example:"2.4.5",changelog:[{version:"0.1.0",prs:[127]},{version:"0.0.0"}]},"otel.status_code":{brief:"Name of the code, either “OK” or “ERROR”. MUST NOT be set if the status code is UNSET.",type:"string",applyScrubbing:{key:"manual"},isInOtel:!0,visibility:"public",example:"OK",changelog:[{version:"0.1.0",prs:[127]},{version:"0.0.0"}]},"otel.status_description":{brief:"Description of the Status if it has a value, otherwise not set.",type:"string",applyScrubbing:{key:"auto"},isInOtel:!0,visibility:"public",example:"resource not found",changelog:[{version:"0.1.0",prs:[127]},{version:"0.0.0"}]},"params.<key>":{brief:"Decoded parameters extracted from a URL path. Usually added by client-side routing frameworks like vue-router.",type:"string",applyScrubbing:{key:"auto"},isInOtel:!1,visibility:"public",hasDynamicSuffix:!0,example:"params.id='123'",aliases:["url.path.parameter.<key>"],changelog:[{version:"0.1.0",prs:[103]}]},"performance.activationStart":{brief:"The time between initiating a navigation to a page and the browser activating the page",type:"double",applyScrubbing:{key:"manual"},isInOtel:!1,visibility:"public",example:1.983,deprecation:{replacement:"browser.performance.navigation.activation_start",reason:"The activationStart is now recorded as the browser.performance.navigation.activation_start attribute."},aliases:["browser.performance.navigation.activation_start"],changelog:[{version:"0.5.0",prs:[321],description:"Added performance.activationStart attribute"}]},"performance.timeOrigin":{brief:"The browser's performance.timeOrigin timestamp representing the time when the pageload was initiated",type:"double",applyScrubbing:{key:"manual"},isInOtel:!1,visibility:"public",example:1776185678.886,deprecation:{replacement:"browser.performance.time_origin",reason:"The timeOrigin is now recorded as the browser.performance.time_origin attribute."},aliases:["browser.performance.time_origin"],changelog:[{version:"0.5.0",prs:[321],description:"Added performance.timeOrigin attribute"}]},previous_route:{brief:"Also used by mobile SDKs to indicate the previous route in the application.",type:"string",applyScrubbing:{key:"manual"},isInOtel:!1,visibility:"public",example:"HomeScreen",changelog:[{version:"0.1.0",prs:[74]},{version:"0.0.0"}]},"process.command_args":{brief:"All the command arguments (including the command/executable itself) as received by the process.",type:"string[]",applyScrubbing:{key:"auto"},isInOtel:!0,visibility:"public",example:["cmd/otecol","--config=config.yaml"],changelog:[{version:"0.6.0",prs:[327],description:"Added process.command_args attribute"}]},"process.executable.name":{brief:"The name of the executable that started the process.",type:"string",applyScrubbing:{key:"manual"},isInOtel:!0,visibility:"public",example:"getsentry",changelog:[{version:"0.1.0",prs:[127]},{version:"0.0.0"}]},"process.pid":{brief:"The process ID of the running process.",type:"integer",applyScrubbing:{key:"manual"},isInOtel:!0,visibility:"public",example:12345,changelog:[{version:"0.4.0",prs:[228]},{version:"0.0.0"}]},"process.runtime.description":{brief:"An additional description about the runtime of the process, for example a specific vendor customization of the runtime environment. Equivalent to `raw_description` in the Sentry runtime context.",type:"string",applyScrubbing:{key:"manual"},isInOtel:!0,visibility:"public",example:"Eclipse OpenJ9 VM openj9-0.21.0",aliases:["runtime.raw_description"],changelog:[{version:"0.1.0",prs:[127]},{version:"0.0.0"}]},"process.runtime.engine.name":{brief:"The name of the runtime engine.",type:"string",applyScrubbing:{key:"manual"},isInOtel:!1,visibility:"public",example:"v8",changelog:[{version:"0.0.0"}]},"process.runtime.engine.version":{brief:"The version of the runtime engine.",type:"string",applyScrubbing:{key:"manual"},isInOtel:!1,visibility:"public",example:"12.9.202.13-rusty",changelog:[{version:"0.0.0"}]},"process.runtime.name":{brief:"The name of the runtime. Equivalent to `name` in the Sentry runtime context.",type:"string",applyScrubbing:{key:"manual"},isInOtel:!0,visibility:"public",example:"node",aliases:["runtime.name"],changelog:[{version:"0.1.0",prs:[127]},{version:"0.0.0"}]},"process.runtime.version":{brief:"The version of the runtime of this process, as returned by the runtime without modification. Equivalent to `version` in the Sentry runtime context.",type:"string",applyScrubbing:{key:"manual"},isInOtel:!0,visibility:"public",example:"18.04.2",aliases:["runtime.version"],changelog:[{version:"0.1.0",prs:[127]},{version:"0.0.0"}]},"query.<key>":{brief:"An item in a query string. Usually added by client-side routing frameworks like vue-router.",type:"string",applyScrubbing:{key:"auto"},isInOtel:!1,visibility:"public",hasDynamicSuffix:!0,example:"query.id='123'",deprecation:{replacement:"url.query",reason:"Instead of sending items individually in query.<key>, they should be sent all together with url.query."},changelog:[{version:"0.1.0",prs:[103]}]},"react.version":{brief:"The version of the React framework",type:"string",applyScrubbing:{key:"manual"},isInOtel:!1,visibility:"public",example:"18.2.0",changelog:[{version:"0.7.0",prs:[368],description:"Added react.version attribute"}]},release:{brief:"The sentry release.",type:"string",applyScrubbing:{key:"manual"},isInOtel:!1,visibility:"public",example:"production",deprecation:{replacement:"sentry.release"},aliases:["sentry.release"],changelog:[{version:"0.1.0",prs:[61,127]},{version:"0.0.0"}]},"remix.action_form_data.<key>":{brief:"Remix form data, <key> being the form data key, the value being the form data value.",type:"string",applyScrubbing:{key:"auto"},isInOtel:!1,visibility:"public",hasDynamicSuffix:!0,example:"http.response.header.text='test'",changelog:[{version:"0.1.0",prs:[103]}]},replay_id:{brief:"The id of the sentry replay.",type:"string",applyScrubbing:{key:"never"},isInOtel:!1,visibility:"public",example:"123e4567e89b12d3a456426614174000",deprecation:{replacement:"sentry.replay_id"},aliases:["sentry.replay_id"],changelog:[{version:"0.1.0",prs:[61]},{version:"0.0.0"}]},"resource.deployment.environment":{brief:"The software deployment environment name.",type:"string",applyScrubbing:{key:"manual"},isInOtel:!0,visibility:"public",example:"production",deprecation:{replacement:"sentry.environment"},changelog:[{version:"0.5.0",prs:[266]}]},"resource.deployment.environment.name":{brief:"The software deployment environment name.",type:"string",applyScrubbing:{key:"manual"},isInOtel:!0,visibility:"public",example:"production",deprecation:{replacement:"sentry.environment"},changelog:[{version:"0.3.1",prs:[196]}]},"resource.render_blocking_status":{brief:"The render blocking status of the resource.",type:"string",applyScrubbing:{key:"manual"},isInOtel:!1,visibility:"public",example:"non-blocking",changelog:[{version:"0.1.0",prs:[127]},{version:"0.0.0"}]},route:{brief:"The matched route, that is, the path template in the format used by the respective server framework. Also used by mobile SDKs to indicate the current route in the application.",type:"string",applyScrubbing:{key:"manual"},isInOtel:!1,visibility:"public",example:"App\\Controller::indexAction",deprecation:{replacement:"http.route"},aliases:["http.route"],changelog:[{version:"0.1.0",prs:[61,74]},{version:"0.0.0"}]},"rpc.grpc.status_code":{brief:"The numeric status code of the gRPC request.",type:"integer",applyScrubbing:{key:"manual"},isInOtel:!0,visibility:"public",example:2,changelog:[{version:"0.4.0",prs:[228]},{version:"0.0.0"}]},"rpc.method":{brief:"The fully-qualified logical name of the method from the RPC interface perspective.",type:"string",applyScrubbing:{key:"manual"},isInOtel:!0,visibility:"public",example:"com.example.ExampleService/exampleMethod",changelog:[{version:"0.7.0",prs:[351],description:"Added rpc.method attribute"}]},"rpc.response.status_code":{brief:"Status code of the RPC returned by the RPC server or generated by the client.",type:"string",applyScrubbing:{key:"manual"},isInOtel:!0,visibility:"public",example:"DEADLINE_EXCEEDED",changelog:[{version:"0.7.0",prs:[352],description:"Added rpc.response.status_code attribute"}]},"rpc.service":{brief:"The full (logical) name of the service being called, including its package name, if applicable.",type:"string",applyScrubbing:{key:"manual"},isInOtel:!0,visibility:"public",example:"myService.BestService",changelog:[{version:"0.1.0",prs:[127]},{version:"0.0.0"}]},"rpc.system":{brief:"A string identifying the remoting system.",type:"string",applyScrubbing:{key:"manual"},isInOtel:!0,visibility:"public",example:"aws-api",deprecation:{replacement:"rpc.system.name",reason:"This attribute is being deprecated 
41in favor of rpc.system.name, which is the OTel-aligned replacement."},aliases:["rpc.system.name"],changelog:[{version:"0.16.0",prs:[482],description:"Added rpc.system attribute, deprecated in favor of rpc.system.name"}]},"rpc.system.name":{brief:"A string identifying the remoting system.",type:"string",applyScrubbing:{key:"manual"},isInOtel:!0,visibility:"public",example:"aws-api",aliases:["rpc.system"],changelog:[{version:"0.16.0",prs:[482],description:"Added rpc.system.name attribute"}]},"runtime.build":{brief:"The application build string, when it is separate from the version.",type:"string",applyScrubbing:{key:"manual"},isInOtel:!1,visibility:"public",example:"stable",deprecation:{reason:"The runtime.* namespace is deprecated in favor of process.runtime.*. No direct OTel equivalent exists for this attribute."},changelog:[{version:"0.11.0",prs:[383],description:"Added and deprecated runtime.build attribute"}]},"runtime.name":{brief:"The name of the runtime. For example node, CPython, or rustc.",type:"string",applyScrubbing:{key:"manual"},isInOtel:!1,visibility:"public",example:"node",deprecation:{replacement:"process.runtime.name",reason:"Prefer OTel-aligned process.runtime.name"},aliases:["process.runtime.name"],changelog:[{version:"0.11.0",prs:[383],description:"Added and deprecated runtime.name attribute in favor of process.runtime.name"}]},"runtime.raw_description":{brief:"Unprocessed description string as obtained from the runtime. Used to extract name and version for well-known runtimes.",type:"string",applyScrubbing:{key:"manual"},isInOtel:!1,visibility:"public",example:"Eclipse OpenJ9 VM openj9-0.21.0",deprecation:{replacement:"process.runtime.description",reason:"Prefer OTel-aligned process.runtime.description"},aliases:["process.runtime.description"],changelog:[{version:"0.11.0",prs:[383],description:"Added and deprecated runtime.raw_description attribute in favor of process.runtime.description"}]},"runtime.version":{brief:"The version of the runtime.",type:"string",applyScrubbing:{key:"manual"},isInOtel:!1,visibility:"public",example:"18.04.2",deprecation:{replacement:"process.runtime.version",reason:"Prefer OTel-aligned process.runtime.version"},aliases:["process.runtime.version"],changelog:[{version:"0.11.0",prs:[383],description:"Added and deprecated runtime.version attribute in favor of process.runtime.version"}]},"score.<key>":{brief:"The weighted performance score for a web vital. This is defined as `score.weight.<key>` * `score.ratio.<key>`.",type:"double",applyScrubbing:{key:"manual"},isInOtel:!1,visibility:"public",hasDynamicSuffix:!0,example:"score.cls=0.1723",changelog:[{version:"0.7.0",prs:[355],description:"Added score.<key> attribute"}]},"score.ratio.<key>":{brief:"The score for a web vital, normalized to a number between 0 and 1.",type:"double",applyScrubbing:{key:"manual"},isInOtel:!1,visibility:"public",hasDynamicSuffix:!0,example:"score.ratio.inp=0.7748",changelog:[{version:"0.7.0",prs:[355],description:"Added score.ratio.<key> attribute"}]},"score.total":{brief:"The total performance score of a span. This is the sum of individual weighted web vital scores (see `score.<key>`).",type:"double",applyScrubbing:{key:"manual"},isInOtel:!1,visibility:"public",changelog:[{version:"0.7.0",prs:[355],description:"Added score.total attribute"}]},"score.weight.<key>":{brief:"The relative weight of a web vital in a span's performance score.",type:"double",applyScrubbing:{key:"manual"},isInOtel:!1,visibility:"public",hasDynamicSuffix:!0,example:"score.weight.fcp=0.25",changelog:[{version:"0.7.0",prs:[355],description:"Added score.weight.<key> attribute"}]},"sentry.action":{brief:"Used as a generic attribute representing the action depending on the type of span. For instance, this is the database query operation for DB spans, and the request method for HTTP spans.",type:"string",applyScrubbing:{key:"manual"},isInOtel:!1,visibility:"public",example:"SELECT",changelog:[{version:"0.4.0",prs:[212]}]},"sentry.browser.name":{brief:"The name of the browser.",type:"string",applyScrubbing:{key:"manual"},isInOtel:!1,visibility:"public",example:"Chrome",deprecation:{replacement:"browser.name"},aliases:["browser.name"],changelog:[{version:"0.1.0",prs:[139]}]},"sentry.browser.version":{brief:"The version of the browser.",type:"string",applyScrubbing:{key:"manual"},isInOtel:!1,visibility:"public",example:"120.0.6099.130",deprecation:{replacement:"browser.version"},aliases:["browser.version"],changelog:[{version:"0.1.0",prs:[139]}]},"sentry.cancellation_reason":{brief:"The reason why a span ended early.",type:"string",applyScrubbing:{key:"never"},isInOtel:!1,visibility:"public",example:"document.hidden",changelog:[{version:"0.0.0"}]},"sentry.category":{brief:"The high-level category of a span, derived from the span operation or span attributes. This categorizes spans by their general purpose (e.g., database, HTTP, UI). Known values include: 'ai', 'ai.pipeline', 'app', 'browser', 'cache', 'console', 'db', 'event', 'file', 'function.aws', 'function.azure', 'function.gcp', 'function.nextjs', 'function.remix', 'graphql', 'grpc', 'http', 'measure', 'middleware', 'navigation', 'pageload', 'queue', 'resource', 'rpc', 'serialize', 'subprocess', 'template', 'topic', 'ui', 'ui.angular', 'ui.ember', 'ui.react', 'ui.svelte', 'ui.vue', 'view', 'websocket'.",type:"string",applyScrubbing:{key:"never"},isInOtel:!1,visibility:"public",example:"db",changelog:[{version:"0.4.0",prs:[218]}]},"sentry.client_sample_rate":{brief:"Rate at which a span was sampled in the SDK.",type:"double",applyScrubbing:{key:"never"},isInOtel:!1,visibility:"public",example:.5,changelog:[{version:"0.1.0",prs:[102]}]},"sentry.description":{brief:"The human-readable description of a span.",type:"string",applyScrubbing:{key:"auto"},isInOtel:!1,visibility:"public",example:"index view query",changelog:[{version:"0.1.0",prs:[135]}]},"sentry.dist":{brief:"The sentry dist.",type:"string",applyScrubbing:{key:"never"},isInOtel:!1,visibility:"public",example:"1.0",aliases:["dist"],changelog:[{version:"0.16.0",prs:[489],description:"Added dist as an alias"},{version:"0.0.0"}]},"sentry.domain":{brief:"Used as a generic attribute representing the domain depending on the type of span. For instance, this is the collection/table name for database spans, and the server address for HTTP spans.",type:"string",applyScrubbing:{key:"manual"},isInOtel:!1,visibility:"public",example:"example.com",changelog:[{version:"0.4.0",prs:[212]}]},"sentry.dsc.environment":{brief:"The environment from the dynamic sampling context.",type:"string",applyScrubbing:{key:"never"},isInOtel:!1,visibility:"internal",example:"prod",changelog:[{version:"0.3.0",prs:[185]}]},"sentry.dsc.project_id":{brief:"The ID of the project where the trace originated (i.e. the project of the SDK that started the trace). Propagated through the dynamic sampling context and set by Relay during ingestion.",type:"string",applyScrubbing:{key:"never"},isInOtel:!1,visibility:"internal",example:"12345",changelog:[{version:"0.7.0",prs:[358],description:"Add sentry.dsc.project_id as an attribute"}]},"sentry.dsc.public_key":{brief:"The public key from the dynamic sampling context.",type:"string",applyScrubbing:{key:"manual"},isInOtel:!1,visibility:"internal",example:"c51734c603c4430eb57cb0a5728a479d",changelog:[{version:"0.3.0",prs:[185]}]},"sentry.dsc.release":{brief:"The release identifier from the dynamic sampling context.",type:"string",applyScrubbing:{key:"never"},isInOtel:!1,visibility:"internal",example:"frontend@e8211be71b214afab5b85de4b4c54be3714952bb",changelog:[{version:"0.3.0",prs:[185]}]},"sentry.dsc.sampled":{brief:"Whether the event was sampled according to the dynamic sampling context.",type:"boolean",applyScrubbing:{key:"never"}
vendor: 11,214 bytes, line 41
41,isInOtel:!1,visibility:"internal",example:!0,changelog:[{version:"0.3.0",prs:[185]}]},"sentry.dsc.sample_rate":{brief:"The sample rate from the dynamic sampling context.",type:"string",applyScrubbing:{key:"never"},isInOtel:!1,visibility:"internal",example:"1.0",changelog:[{version:"0.3.0",prs:[185]}]},"sentry.dsc.trace_id":{brief:"The trace ID from the dynamic sampling context.",type:"string",applyScrubbing:{key:"never"},isInOtel:!1,visibility:"internal",example:"047372980460430cbc78d9779df33a46",changelog:[{version:"0.3.0",prs:[185]}]},"sentry.dsc.transaction":{brief:"The transaction name from the dynamic sampling context.",type:"string",applyScrubbing:{key:"never"},isInOtel:!1,visibility:"internal",example:"/issues/errors-outages/",changelog:[{version:"0.3.0",prs:[185]}]},"sentry.environment":{brief:"The sentry environment.",type:"string",applyScrubbing:{key:"never"},isInOtel:!1,visibility:"public",example:"production",aliases:["environment"],changelog:[{version:"0.0.0"}]},"sentry.exclusive_time":{brief:"The exclusive time duration of the span in milliseconds.",type:"double",applyScrubbing:{key:"manual"},isInOtel:!1,visibility:"public",example:1234,changelog:[{version:"0.4.0",prs:[228]},{version:"0.3.0",prs:[160]},{version:"0.0.0"}]},"sentry.graphql.operation":{brief:"Indicates the type of graphql operation, emitted by the Javascript SDK.",type:"string",applyScrubbing:{key:"manual"},isInOtel:!1,visibility:"public",example:"getUserById",changelog:[{version:"0.3.1",prs:[190]}]},"sentry.group":{brief:"Stores the hash of `sentry.normalized_description`. This is primarily used for grouping spans in the product end.",type:"string",applyScrubbing:{key:"never"},isInOtel:!1,visibility:"public",changelog:[{version:"0.4.0",prs:[212]}]},"sentry.http.prefetch":{brief:"If an http request was a prefetch request.",type:"boolean",applyScrubbing:{key:"never"},isInOtel:!1,visibility:"public",example:!0,changelog:[{version:"0.0.0"}]},"sentry.idle_span_finish_reason":{brief:"The reason why an idle span ended early.",type:"string",applyScrubbing:{key:"never"},isInOtel:!1,visibility:"public",example:"idleTimeout",changelog:[{version:"0.0.0"}]},"sentry.is_remote":{brief:"Indicates whether a span's parent is remote.",type:"boolean",applyScrubbing:{key:"never"},isInOtel:!1,visibility:"public",example:!0,changelog:[{version:"0.3.1",prs:[190]}]},"sentry.kind":{brief:"Used to clarify the relationship between parents and children, or to distinguish between spans, e.g. a `server` and `client` span with the same name.",type:"string",applyScrubbing:{key:"manual"},isInOtel:!1,visibility:"public",example:"server",aliases:["otel.kind"],changelog:[{version:"0.3.1",prs:[190]}]},"sentry.main_thread":{brief:"Whether the span or event occurred on the main thread. Computed by Relay and should not be set by SDKs.",type:"boolean",applyScrubbing:{key:"never"},isInOtel:!1,visibility:"public",example:!0,changelog:[{version:"0.5.0"}]},"sentry.message.parameter.<key>":{brief:"A parameter used in the message template. <key> can either be the number that represent the parameter's position in the template string (sentry.message.parameter.0, sentry.message.parameter.1, etc) or the parameter's name (sentry.message.parameter.item_id, sentry.message.parameter.user_id, etc)",type:"string",applyScrubbing:{key:"auto"},isInOtel:!1,visibility:"public",example:"sentry.message.parameter.0='123'",changelog:[{version:"0.1.0",prs:[116]}]},"sentry.message.template":{brief:"The parameterized template string.",type:"string",applyScrubbing:{key:"manual"},isInOtel:!1,visibility:"public",example:"Hello, {name}!",changelog:[{version:"0.1.0",prs:[116]}]},"sentry.metric.source":{brief:"The provenance of a metric.  For example, this can be set to indicate if a metric was generated by Relay from a span.",type:"string",applyScrubbing:{key:"never"},isInOtel:!1,visibility:"public",example:"span",changelog:[{version:"0.16.0",prs:[476],description:"Added sentry.metric.source attribute"}]},"sentry.mobile":{brief:"Whether the application is using a mobile SDK. Computed by Relay and should not be set by SDKs.",type:"boolean",applyScrubbing:{key:"never"},isInOtel:!1,visibility:"public",example:!0,changelog:[{version:"0.5.0"}]},"sentry.module.<key>":{brief:"A module that was loaded in the process. The key is the name of the module.",type:"string",applyScrubbing:{key:"manual"},isInOtel:!1,visibility:"public",hasDynamicSuffix:!0,example:"sentry.module.brianium/paratest='v7.7.0'",changelog:[{version:"0.1.0",prs:[103]}]},"sentry.nextjs.ssr.function.route":{brief:"A parameterized route for a function in Next.js that contributes to Server-Side Rendering. Should be present on spans that track such functions when the file location of the function is known.",type:"string",applyScrubbing:{key:"never"},isInOtel:!1,visibility:"public",example:"/posts/[id]/layout",changelog:[{version:"0.1.0",prs:[54,106]}]},"sentry.nextjs.ssr.function.type":{brief:"A descriptor for a for a function in Next.js that contributes to Server-Side Rendering. Should be present on spans that track such functions.",type:"string",applyScrubbing:{key:"never"},isInOtel:!1,visibility:"public",example:"generateMetadata",changelog:[{version:"0.1.0",prs:[54,106]}]},"sentry.normalized_db_query":{brief:"The normalized version of `db.query.text`.",type:"string",applyScrubbing:{key:"manual"},isInOtel:!1,visibility:"public",example:"SELECT .. FROM sentry_project WHERE (project_id = %s)",changelog:[{version:"0.3.1",prs:[194]}]},"sentry.normalized_db_query.hash":{brief:"The hash of `sentry.normalized_db_query`.",type:"string",applyScrubbing:{key:"never"},isInOtel:!1,visibility:"public",changelog:[{version:"0.4.0",prs:[200]}]},"sentry.normalized_description":{brief:"Used as a generic attribute representing the normalized `sentry.description`. This refers to the legacy use case of `sentry.description` where it holds relevant data depending on the type of span (e.g. database query, resource url, http request description, etc).",type:"string",applyScrubbing:{key:"auto"},isInOtel:!1,visibility:"public",example:"SELECT .. FROM sentry_project WHERE (project_id = %s)",changelog:[{version:"0.4.0",prs:[212]}]},"sentry.observed_timestamp_nanos":{brief:"The timestamp at which an envelope was received by Relay, in nanoseconds.",type:"string",applyScrubbing:{key:"never"},isInOtel:!1,visibility:"public",example:"1544712660300000000",changelog:[{version:"0.3.0",prs:[174]},{version:"0.2.0",prs:[137]}]},"sentry.op":{brief:"The operation of a span.",type:"string",applyScrubbing:{key:"never"},isInOtel:!1,visibility:"public",example:"http.client",changelog:[{version:"0.0.0"}]},"sentry.origin":{brief:"The origin of the instrumentation (e.g. span, log, etc.)",type:"string",applyScrubbing:{key:"never"},isInOtel:!1,visibility:"public",example:"auto.http.otel.fastify",changelog:[{version:"0.1.0",prs:[68]},{version:"0.0.0"}]},"sentry.platform":{brief:"The sdk platform that generated the event.",type:"string",applyScrubbing:{key:"never"},isInOtel:!1,visibility:"public",example:"php",changelog:[{version:"0.0.0"}]},"sentry.profiler_id":{brief:"The id of the currently running profiler (continuous profiling)",type:"string",applyScrubbing:{key:"never"},isInOtel:!1,visibility:"public",example:"18779b64dd35d1a538e7ce2dd2d3fad3",changelog:[{version:"0.4.0",prs:[242]}]},"sentry.profile_id":{brief:"The ID of the Sentry profile the span is associated with. This is only meaningful for transaction-based profiling.",type:"string",applyScrubbing:{key:"never"},isInOtel:!1,visibility:"public",example:"123e4567e89b12d3a456426614174000",changelog:[{version:"0.6.0",prs:[344],description:"Added sentry.profile_id attribute"}]},"sentry.release":{brief:"The sentry release.",type:"string",applyScrubbing:{key:"never"},isInOtel:!1,visibility:"public",example:"7.0.0",aliases:["service.version","release"],changelog:[{version:"0.0.0"}]},"sentry.replay_id":{brief:"The id of the sentry replay.",type:"string",applyScrubbing:{key:"never"},isInOtel:!1,visibility:"public",example:"123e4567e89b12d3a456426614174000",aliases:["replay_id"],changelog:[{version:"0.0.0"}]},"sentry.replay_is_buffering":{brief:"A sentinel attribute on log events indicating whether the current Session Replay is being buffered (onErrorSampleRate).",type:"boolean",applyScrubbing:{key:"never"},isInOtel:!1,visibility:"public",example:!0,changelog:[{version:"0.3.0",prs:[185]}]},"sentry.report_event":{brief:"(Deprecated) The event that caused the SDK to report CLS or LCP (pagehide or navigation)",type:"string",applyScrubbing:{key:"manual"},isInOtel:!1,visibility:"public",example:"pagehide",deprecation:{reason:"The report event is now recorded as a browser.web_vital.lcp.report_event or browser.web_vital.cls.report_event attribute. No backfill required."},changelog:[{version:"0.5.0",prs:[320],description:"Added sentry.report_event attribute"}]},"sentry.sdk.integrations":{brief:"A list of names identifying enabled integrations. The list shouldhave all enabled integrations, including default integrations. Defaultintegrations are included because different SDK releases may contain differentdefault integrations.",type:"string[]",applyScrubbing:{key:"never"},isInOtel:!1,visibility:"public",example:["InboundFilters","FunctionToString","BrowserApiErrors","Breadcrumbs"],changelog:[{version:"0.0.0",prs:[42]}]},"sentry.sdk.name":{brief:"The sentry sdk name.",type:"string",applyScrubbing:{key:"never"},isInOtel:!1,visibility:"public",example:"@sentry/react",changelog:[{version:"0.0.0"}]},"sentry.sdk.version":{brief:"The sentry sdk version.",type:"string",applyScrubbing:{key:"never"},isInOtel:!1,visibility:"public",example:"7.0.0",changelog:[{version:"0.0.0"}]},"sentry.segment.id":{brief:"The segment ID of a span",type:"string",applyScrubbing:{key:"never"},isInOtel:!1,visibility:"public",example:"051581bf3cb55c13",aliases:["sentry.segment_id"],changelog:[{version:"0.1.0",prs:[107,124]}]},"sentry.segment_id":{brief:"The segment ID of a span",type:"string",applyScrubbing:{key:"never"},isInOtel:!1,visibility:"public",example:"051581bf3cb55c13",deprecation:{replacement:"sentry.segment.id"},aliases:["sentry.segment.id"],changelog:[{version:"0.1.0",prs:[124]}]},"sentry.segment.name":{brief:"The segment name of a span",type:"string",applyScrubbing:{key:"manual"},isInOtel:!1,visibility:"public",example:"GET /user",aliases:["sentry.transaction","transaction"],changelog:[{version:"0.6.0",prs:[345],description:"Added sentry.transaction and transaction aliases"},{version:"0.1.0",prs:[104]}]},"sentry.server_sample_rate":{brief:"Rate at which a span was sampled in Relay.",type:"double",applyScrubbing:{key:"never"},isInOtel:!1,visibility:"public",example:.5,changelog:[{version:"0.1.0",prs:[102]}]},"sentry.source":{brief:"The source of a span, also referred to as transaction source. Known values are:  `'custom'`, `'url'`, `'route'`, `'component'`, `'view'`, `'task'`. '`source`' describes a parametrized route, while `'url'` describes the full URL, potentially containing identifiers.",type:"string",applyScrubbing:{key:"never"},isInOtel:!1,visibility:"public",example:"route",deprecation:{replacement:"sentry.span.source",reason:"This attribute is being deprecated 
41in favor of sentry.span.source"},changelog:[{version:"0.5.0"}]},"sentry.span.source":{brief:"The source of a span, also referred to as transaction source. Known values are:  `'custom'`, `'url'`, `'route'`, `'component'`, `'view'`, `'task'`. '`source`' describes a parametrized route, while `'url'` describes the full URL, potentially containing identifiers.",type:"string",applyScrubbing:{key:"never"},isInOtel:!1,visibility:"public",example:"route",changelog:[{version:"0.4.0",prs:[214]},{version:"0.0.0"}]},"sentry.status":{brief:'The span\'s status (either "ok" or "error"). Older SDKs may set this to a more specific error, but this behaviour is deprecated.',type:"string",applyScrubbing:{key:"never"},isInOtel:!1,visibility:"public",example:"ok",changelog:[{version:"0.14.0",prs:[453]}]},"sentry.status_code":{brief:"The HTTP status code used in Sentry Insights. Typically set by Sentry during ingestion, rather than by clients.",type:"integer",applyScrubbing:{key:"manual"},isInOtel:!1,visibility:"public",example:200,changelog:[{version:"0.4.0",prs:[223,228]}]},"sentry.status.message":{brief:"The from OTLP extracted status message.",type:"string",applyScrubbing:{key:"manual"},isInOtel:!1,visibility:"public",example:"foobar",changelog:[{version:"0.3.1",prs:[190]}]},"sentry.sveltekit.navigation.from":{brief:"the navigation origin (sveltekit router)",type:"string",applyScrubbing:{key:"auto"},isInOtel:!1,visibility:"public",example:"/home",deprecation:{replacement:"navigation.origin",reason:"Use the more generic attribute instead"},aliases:["navigation.origin"],changelog:[{version:"0.16.0",prs:[467],description:"Added sentry.sveltekit.navigation.from attribute"}]},"sentry.sveltekit.navigation.to":{brief:"the navigation destination",type:"string",applyScrubbing:{key:"auto"},isInOtel:!1,visibility:"public",example:"/users/:id",deprecation:{reason:"the navigation destination is already covered by url.* attributes"},changelog:[{version:"0.16.0",prs:[467],description:"Added sentry.sveltekit.navigation.to attribute"}]},"sentry.sveltekit.navigation.type":{brief:"The type of navigation event emitted from the sveltekit client router",type:"string",applyScrubbing:{key:"manual"},isInOtel:!1,visibility:"public",example:"link",deprecation:{replacement:"navigation.type",reason:"Use the more generic attribute instead"},aliases:["navigation.type"],changelog:[{version:"0.16.0",prs:[467],description:"Added sentry.sveltekit.navigation.type attribute"}]},"sentry.thread.id":{brief:"Current “managed” thread ID.",type:"integer",applyScrubbing:{key:"manual"},isInOtel:!1,visibility:"public",example:56,deprecation:{replacement:"thread.id",reason:"This attribute is being deprecated 
41in favor of the OTel-standard thread.id"},changelog:[{version:"0.13.0",prs:[451]}]},"sentry.timestamp.sequence":{brief:"A sequencing counter for deterministic ordering of logs or metrics when timestamps share the same integer millisecond. Starts at 0 on SDK initialization, increments by 1 for each captured item, and resets to 0 when the integer millisecond of the current item differs from the previous one.",type:"integer",applyScrubbing:{key:"never"},isInOtel:!1,visibility:"public",example:0,changelog:[{version:"0.5.0",prs:[262]}]},"sentry.trace_lifecycle":{brief:"Indicates the chosen trace lifecycle mode of the SDK (stream or static)",type:"string",applyScrubbing:{key:"manual"},isInOtel:!1,visibility:"public",example:"stream",changelog:[{version:"0.13.0",prs:[442],description:"Added sentry.trace_lifecycle attribute"}]},"sentry.trace.parent_span_id":{brief:"The span id of the span that was active when the log was collected. This should not be set if there was no active span.",type:"string",applyScrubbing:{key:"never"},isInOtel:!1,visibility:"public",example:"b0e6f15b45c36b12",deprecation:{},changelog:[{version:"0.5.0",prs:[287],description:"Deprecate `sentry.trace.parent_span_id`"},{version:"0.1.0",prs:[116]}]},"sentry.trace.status":{brief:'The segment\'s status (either "ok" or "error"). Older SDKs may set this to a more specific error, but this behaviour is deprecated.',type:"string",applyScrubbing:{key:"never"},isInOtel:!1,visibility:"public",example:"ok",changelog:[{version:"0.14.0",prs:[453]}]},"sentry.transaction":{brief:"The sentry transaction (segment name).",type:"string",applyScrubbing:{key:"never"},isInOtel:!1,visibility:"public",example:"GET /",deprecation:{replacement:"sentry.segment.name",reason:"This attribute is being deprecated 
41in favor of sentry.segment.name"},aliases:["sentry.segment.name","transaction"],changelog:[{version:"0.6.0",prs:[345],description:"Deprecated sentry.transaction in favor of sentry.segment.name"},{version:"0.0.0"}]},"sentry.user.email":{brief:"User email address.",type:"string",applyScrubbing:{key:"auto"},isInOtel:!1,visibility:"public",deprecation:{replacement:"user.email"},aliases:["user.email"],changelog:[{version:"0.10.0",prs:[406]}]},"sentry.user.geo.city":{brief:"Human readable city name.",type:"string",applyScrubbing:{key:"manual"},isInOtel:!1,visibility:"public",deprecation:{replacement:"user.geo.city"},aliases:["user.geo.city"],changelog:[{version:"0.10.0",prs:[406]}]},"sentry.user.geo.country_code":{brief:"Two-letter country code (ISO 3166-1 alpha-2).",type:"string",applyScrubbing:{key:"manual"},isInOtel:!1,visibility:"public",deprecation:{replacement:"user.geo.country_code"},aliases:["user.geo.country_code"],changelog:[{version:"0.10.0",prs:[406]}]},"sentry.user.geo.region":{brief:"Human readable region name or code.",type:"string",applyScrubbing:{key:"manual"},isInOtel:!1,visibility:"public",deprecation:{replacement:"user.geo.region"},aliases:["user.geo.region"],changelog:[{version:"0.10.0",prs:[406]}]},"sentry.user.geo.subdivision":{brief:"Human readable subdivision name.",type:"string",applyScrubbing:{key:"manual"},isInOtel:!1,visibility:"public",deprecation:{replacement:"user.geo.subdivision"},aliases:["user.geo.subdivision"],changelog:[{version:"0.10.0",prs:[406]}]},"sentry.user.id":{brief:"Unique identifier of the user.",type:"string",applyScrubbing:{key:"auto"},isInOtel:!1,visibility:"public",deprecation:{replacement:"user.id"},aliases:["user.id"],changelog:[{version:"0.10.0",prs:[406]}]},"sentry.user.ip":{brief:"The IP address of the user.",type:"string",applyScrubbing:{key:"auto"},isInOtel:!1,visibility:"public",deprecation:{replacement:"user.ip_address"},aliases:["user.ip_address"],changelog:[{version:"0.10.0",prs:[406]}]},"sentry.user.username":{brief:"Short name or login/username of the user.",type:"string",applyScrubbing:{key:"auto"},isInOtel:!1,visibility:"public",deprecation:{replacement:"user.name"},aliases:["user.name"],changelog:[{version:"0.10.0",prs:[406]}]},"server.address":{brief:"Server domain name if available without reverse DNS lookup; otherwise, IP address or Unix domain socket name.",type:"string",applyScrubbing:{key:"manual"},isInOtel:!0,visibility:"public",example:"example.com",aliases:["http.server_name","net.host.name","http.host","server_name"],changelog:[{version:"0.1.0",prs:[108,127]},{version:"0.0.0"}]},server_name:{brief:"Server domain name if available without reverse DNS lookup; otherwise, IP address or Unix domain socket name.",type:"string",applyScrubbing:{key:"manual"},isInOtel:!1,visibility:"public",example:"example.com",deprecation:{replacement:"server.address",reason:"This attribute is being deprecated 
41in favor of server.address, which is the OTel-aligned replacement."},aliases:["server.address","http.server_name","net.host.name","http.host"],changelog:[{version:"0.16.0",prs:[477],description:"Added server_name attribute, deprecated in favor of server.address"}]},"server.port":{brief:"Server port number.",type:"integer",applyScrubbing:{key:"manual"},isInOtel:!0,visibility:"public",example:1337,aliases:["net.host.port"],changelog:[{version:"0.4.0",prs:[228]},{version:"0.0.0"}]},"service.name":{brief:"Logical name of the service.",type:"string",applyScrubbing:{key:"manual"},isInOtel:!0,visibility:"public",example:"omegastar",changelog:[{version:"0.1.0",prs:[127]},{version:"0.0.0"}]},"service.version":{brief:"The version string of the service API or implementation. The format is not defined by these conventions.",type:"string",applyScrubbing:{key:"manual"},isInOtel:!0,visibility:"public",example:"5.0.0",aliases:["sentry.release"],changelog:[{version:"0.1.0",prs:[127]},{version:"0.0.0"}]},"session.id":{brief:"A unique id identifying the active session at the time of setting this attribute",type:"string",applyScrubbing:{key:"manual"},isInOtel:!0,visibility:"public",example:"00112233-4455-6677-8899-aabbccddeeff",changelog:[{version:"0.11.0",prs:[412],description:"Added session.id attribute"}]},stall_percentage:{brief:"The fraction of time the app was stalled. Only applies to React Native. This is computed by Relay.",type:"double",applyScrubbing:{key:"manual"},isInOtel:!1,visibility:"public",changelog:[{version:"0.7.0",prs:[362],description:"Added stall_percentage attribute"}]},stall_total_time:{brief:"The combined duration of all stalls in milliseconds. Only applies to React Native. This is computed by Relay.",type:"double",applyScrubbing:{key:"manual"},isInOtel:!1,visibility:"public",changelog:[{version:"0.7.0",prs:[362],description:"Added stall_total_time attribute"}]},"state.type":{brief:"The type of state management library",type:"string",applyScrubbing:{key:"manual"},isInOtel:!1,visibility:"public",example:"redux",changelog:[{version:"0.7.0",prs:[365],description:"Added state.type attribute"}]},"thread.id":{brief:"Current “managed” thread ID.",type:"integer",applyScrubbing:{key:"manual"},isInOtel:!0,visibility:"public",example:56,changelog:[{version:"0.0.0"}]},"thread.name":{brief:"Current thread name.",type:"string",applyScrubbing:{key:"manual"},isInOtel:!0,visibility:"public",example:"main",changelog:[{version:"0.1.0",prs:[127]},{version:"0.0.0"}]},"timber.tag":{brief:"The log tag provided by the timber logging framework.",type:"string",applyScrubbing:{key:"manual"},isInOtel:!1,visibility:"public",example:"MyTag",changelog:[{version:"0.3.0",prs:[183]}]},time_to_full_display:{brief:"The duration of time to full display in milliseconds",type:"double",applyScrubbing:{key:"manual"},isInOtel:!1,visibility:"public",example:1234.56,deprecation:{replacement:"app.vitals.ttfd.value",reason:"Replaced by app.vitals.ttfd.value to align with the app.vitals.* namespace for mobile performance attributes"},aliases:["app.vitals.ttfd.value"],changelog:[{version:"0.5.0",prs:[313],description:"Added and deprecated in favor of app.vitals.ttfd.value"}]},time_to_initial_display:{brief:"The duration of time to initial display in milliseconds",type:"double",applyScrubbing:{key:"manual"},isInOtel:!1,visibility:"public",example:1234.56,deprecation:{replacement:"app.vitals.ttid.value",reason:"Replaced by app.vitals.ttid.value to align with the app.vitals.* namespace for mobile performance attributes"},aliases:["app.vitals.ttid.value"],changelog:[{version:"0.5.0",prs:[313],description:"Added and deprecated in favor of app.vitals.ttid.value"}]},transaction:{brief:"The sentry transaction (segment name).",type:"string",applyScrubbing:{key:"manual"},isInOtel:!1,visibility:"public",example:"GET /",deprecation:{replacement:"sentry.segment.name"},aliases:["sentry.segment.name","sentry.transaction"],changelog:[{version:"0.6.0",prs:[345],description:"Updated transaction deprecation replacement to sentry.segment.name"},{version:"0.1.0",prs:[61,127]},{version:"0.0.0"}]},"trpc.procedure_path":{brief:"The path of the tRPC procedure being called",type:"string",applyScrubbing:{key:"manual"},isInOtel:!1,visibility:"public",example:"user.getById",changelog:[{version:"0.7.0",prs:[370],description:"Added trpc.procedure_path attribute"}]},"trpc.procedure_type":{brief:"The type of the tRPC procedure",type:"string",applyScrubbing:{key:"manual"},isInOtel:!1,visibility:"public",example:"query",changelog:[{version:"0.7.0",prs:[370],description:"Added trpc.procedure_type attribute"}]},ttfb:{brief:"The value of the recorded Time To First Byte (TTFB) web vital in milliseconds",type:"double",applyScrubbing:{key:"manual"},isInOtel:!1,visibility:"public",example:194,deprecation:{replacement:"browser.web_vital.ttfb.value",reason:"This attribute is being deprecated 
41in favor of browser.web_vital.ttfb.value"},aliases:["browser.web_vital.ttfb.value"],changelog:[{version:"0.5.0",prs:[235]}]},"ttfb.requestTime":{brief:"The time it takes for the server to process the initial request and send the first byte of a response to the user's browser",type:"double",applyScrubbing:{key:"manual"},isInOtel:!1,visibility:"public",example:1554.5814,deprecation:{replacement:"browser.web_vital.ttfb.request_time",reason:"This attribute is being deprecated in favor of browser.web_vital.ttfb.request_time"},aliases:["browser.web_vital.ttfb.request_time"],changelog:[{version:"0.5.0",prs:[235]}]},type:{brief:"More granular type of the operation happening.",type:"string",applyScrubbing:{key:"manual"},isInOtel:!1,visibility:"public",example:"fetch",changelog:[{version:"0.0.0"}]},"ui.component_name":{brief:"The name of the associated component.",type:"string",applyScrubbing:{key:"manual"},isInOtel:!1,visibility:"public",example:"HomeButton",changelog:[{version:"0.1.0",prs:[127]},{version:"0.0.0"}]},"ui.contributes_to_ttfd":{brief:"Whether the span execution contributed to the TTFD (time to fully drawn) metric.",type:"boolean",applyScrubbing:{key:"manual"},isInOtel:!1,visibility:"public",example:!0,changelog:[{version:"0.0.0"}]},"ui.contributes_to_ttid":{brief:"Whether the span execution contributed to the TTID (time to initial display) metric.",type:"boolean",applyScrubbing:{key:"manual"},isInOtel:!1,visibility:"public",example:!0,changelog:[{version:"0.0.0"}]},"ui.element.height":{brief:"The height of the UI element (for Html in pixels)",type:"integer",applyScrubbing:{key:"manual"},isInOtel:!1,visibility:"public",example:256,changelog:[{version:"0.5.0",prs:[284],description:"Added ui.element.height attribute"}]},"ui.element.id":{brief:"The id of the UI element",type:"string",applyScrubbing:{key:"manual"},isInOtel:!1,visibility:"public",example:"btn-login",changelog:[{version:"0.5.0",prs:[284],description:"Added ui.element.id attribute"}]},"ui.element.identifier":{brief:"The identifier used to measure the UI element timing",type:"string",applyScrubbing:{key:"manual"},isInOtel:!1,visibility:"public",example:"heroImage",changelog:[{version:"0.5.0",prs:[284],description:"Added ui.element.identifier attribute"}]},"ui.element.load_time":{brief:"The loading time of a UI element (from time origin to finished loading)",type:"double",applyScrubbing:{key:"manual"},isInOtel:!1,visibility:"public",example:998.2234,changelog:[{version:"0.5.0",prs:[284],description:"Added ui.element.load_time attribute"}]},"ui.element.paint_type":{brief:"The type of element paint. Can either be 'image-paint' or 'text-paint'",type:"string",applyScrubbing:{key:"manual"},isInOtel:!1,visibility:"public",example:"image-paint",changelog:[{version:"0.5.0",prs:[284],description:"Added ui.element.paint_type attribute"}]},"ui.element.render_time":{brief:"The rendering time of the UI element (from time origin to finished rendering)",type:"double",applyScrubbing:{key:"manual"},isInOtel:!1,visibility:"public",example:1023.1124,changelog:[{version:"0.5.0",prs:[284],description:"Added ui.element.render_time attribute"}]},"ui.element.type":{brief:"type of the UI element",type:"string",applyScrubbing:{key:"manual"},isInOtel:!1,visibility:"public",example:"img",changelog:[{version:"0.5.0",prs:[284],description:"Added ui.element.type attribute"}]},"ui.element.url":{brief:"The URL of the UI element (e.g. an img src)",type:"string",applyScrubbing:{key:"auto"},isInOtel:!1,visibility:"public",example:"https://assets.myapp.com/hero.png",changelog:[{version:"0.5.0",prs:[284],description:"Added ui.element.url attribute"}]},"ui.element.width":{brief:"The width of the UI element (for HTML in pixels)",type:"integer",applyScrubbing:{key:"manual"},isInOtel:!1,visibility:"public",example:512,changelog:[{version:"0.5.0",prs:[284],description:"Added ui.element.width attribute"}]},url:{brief:"The URL of the resource that was fetched.",type:"string",applyScrubbing:{key:"auto"},isInOtel:!1,visibility:"public",example:"https://example.com/test?foo=bar#buzz",deprecation:{replacement:"url.full"}
41,aliases:["url.full","http.url"],changelog:[{version:"0.1.0",prs:[61]},{version:"0.0.0"}]},"url.domain":{brief:"Server domain name if available without reverse DNS lookup; otherwise, IP address or Unix domain socket name.",type:"string",applyScrubbing:{key:"manual"},isInOtel:!0,visibility:"public",example:"example.com",changelog:[{version:"0.1.0",prs:[127]},{version:"0.0.0"}]},"url.fragment":{brief:"The fragments present in the URI. Note that this does not contain the leading # character, while the `http.fragment` attribute does.",type:"string",applyScrubbing:{key:"auto"},isInOtel:!0,visibility:"public",example:"details",changelog:[{version:"0.0.0"}]},"url.full":{brief:"The URL of the resource that was fetched.",type:"string",applyScrubbing:{key:"auto"},isInOtel:!0,visibility:"public",example:"https://example.com/test?foo=bar#buzz",aliases:["http.url","url"],changelog:[{version:"0.1.0",prs:[108]},{version:"0.0.0"}]},"url.path":{brief:"The URI path component.",type:"string",applyScrubbing:{key:"auto"},isInOtel:!0,visibility:"public",example:"/foo",changelog:[{version:"0.0.0"}]},"url.path.parameter.<key>":{brief:"Decoded parameters extracted from a URL path. Usually added by client-side routing frameworks like vue-router.",type:"string",applyScrubbing:{key:"auto"},isInOtel:!1,visibility:"public",hasDynamicSuffix:!0,example:"url.path.parameter.id='123'",aliases:["params.<key>"],changelog:[{version:"0.1.0",prs:[103]}]},"url.port":{brief:"Server port number.",type:"integer",applyScrubbing:{key:"manual"},isInOtel:!0,visibility:"public",example:1337,changelog:[{version:"0.4.0",prs:[228]},{version:"0.0.0"}]},"url.query":{brief:"The query string present in the URL. Note that this does not contain the leading ? character, while the `http.query` attribute does.",type:"string",applyScrubbing:{key:"auto",reason:"Query string values can contain sensitive information. Clients should attempt to scrub parameters that might contain sensitive information."},isInOtel:!0,visibility:"public",example:"foo=bar&bar=baz",changelog:[{version:"0.0.0"}]},"url.same_origin":{brief:"Indicates that a URL has the same origin as the current page's origin in the browser.",type:"boolean",applyScrubbing:{key:"manual"},isInOtel:!1,visibility:"public",example:!0,deprecation:{replacement:"http.request.same_origin",reason:"This attribute is being deprecated 
41in favor of http.request.same_origin."},aliases:["http.request.same_origin"],changelog:[{version:"0.16.0",prs:[456],description:"Added url.same_origin attribute, deprecated in favor of http.request.same_origin"}]},"url.scheme":{brief:"The URI scheme component identifying the used protocol.",type:"string",applyScrubbing:{key:"manual"},isInOtel:!0,visibility:"public",example:"https",aliases:["http.scheme"],changelog:[{version:"0.1.0",prs:[127]},{version:"0.0.0"}]},"url.template":{brief:"The low-cardinality template of an absolute path reference.",type:"string",applyScrubbing:{key:"manual"},isInOtel:!0,visibility:"public",example:"/users/:id",aliases:["http.route"],changelog:[{version:"0.1.0",prs:[127]},{version:"0.0.0"}]},"user_agent.original":{brief:"Value of the HTTP User-Agent header sent by the client.",type:"string",applyScrubbing:{key:"manual"},isInOtel:!0,visibility:"public",example:"Mozilla/5.0 (iPhone; CPU iPhone OS 14_7_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/14.1.2 Mobile/15E148 Safari/604.1",aliases:["http.user_agent"],changelog:[{version:"0.1.0",prs:[127]},{version:"0.0.0"}]},"user.email":{brief:"User email address.",type:"string",applyScrubbing:{key:"auto"},isInOtel:!0,visibility:"public",example:"[email protected]",aliases:["sentry.user.email"],changelog:[{version:"0.0.0"}]},"user.full_name":{brief:"User's full name.",type:"string",applyScrubbing:{key:"auto"},isInOtel:!0,visibility:"public",example:"John Smith",changelog:[{version:"0.0.0"}]},"user.geo.city":{brief:"Human readable city name.",type:"string",applyScrubbing:{key:"manual"},isInOtel:!1,visibility:"public",example:"Toronto",aliases:["sentry.user.geo.city"],changelog:[{version:"0.0.0"}]},"user.geo.country_code":{brief:"Two-letter country code (ISO 3166-1 alpha-2).",type:"string",applyScrubbing:{key:"manual"},isInOtel:!1,visibility:"public",example:"CA",aliases:["sentry.user.geo.country_code"],changelog:[{version:"0.0.0"}]},"user.geo.region":{brief:"Human readable region name or code.",type:"string",applyScrubbing:{key:"manual"},isInOtel:!1,visibility:"public",example:"Canada",aliases:["sentry.user.geo.region"],changelog:[{version:"0.0.0"}]},"user.geo.subdivision":{brief:"Human readable subdivision name.",type:"string",applyScrubbing:{key:"manual"},isInOtel:!1,visibility:"public",example:"Ontario",aliases:["sentry.user.geo.subdivision"],changelog:[{version:"0.0.0"}]},"user.hash":{brief:"Unique user hash to correlate information for a user in anonymized form.",type:"string",applyScrubbing:{key:"auto"},isInOtel:!0,visibility:"public",example:"8ae4c2993e0f4f3b8b2d1b1f3b5e8f4d",changelog:[{version:"0.0.0"}]},"user.id":{brief:"Unique identifier of the user.",type:"string",applyScrubbing:{key:"auto"},isInOtel:!0,visibility:"public",example:"S-1-5-21-202424912787-2692429404-2351956786-1000",aliases:["sentry.user.id"],changelog:[{version:"0.0.0"}]},"user.ip_address":{brief:"The IP address of the user.",type:"string",applyScrubbing:{key:"auto"},isInOtel:!1,visibility:"public",example:"192.168.1.1",aliases:["sentry.user.ip"],changelog:[{version:"0.1.0",prs:[75]}]},"user.name":{brief:"Short name or login/username of the user.",type:"string",applyScrubbing:{key:"auto"},isInOtel:!0,visibility:"public",example:"j.smith",aliases:["sentry.user.username"],changelog:[{version:"0.0.0"}]},"user.roles":{brief:"Array of user roles at the time of the event.",type:"string[]",applyScrubbing:{key:"auto"},isInOtel:!0,visibility:"public",example:["admin","editor"],changelog:[{version:"0.0.0"}]},"vercel.branch":{brief:"Git branch name for Vercel project",type:"string",applyScrubbing:{key:"manual"},isInOtel:!1,visibility:"public",example:"main",changelog:[{version:"0.2.0",prs:[163]}]},"vercel.build_id":{brief:"Identifier for the Vercel build (only present on build logs)",type:"string",applyScrubbing:{key:"manual"},isInOtel:!1,visibility:"public",example:"bld_cotnkcr76",changelog:[{version:"0.2.0",prs:[163]}]},"vercel.deployment_id":{brief:"Identifier for the Vercel deployment",type:"string",applyScrubbing:{key:"manual"},isInOtel:!1,visibility:"public",example:"dpl_233NRGRjVZX1caZrXWtz5g1TAksD",changelog:[{version:"0.2.0",prs:[163]}]}
41,"vercel.destination":{brief:"Origin of the external content in Vercel (only on external logs)",type:"string",applyScrubbing:{key:"manual"},isInOtel:!1,visibility:"public",example:"https://vitals.vercel-insights.com/v1",changelog:[{version:"0.2.0",prs:[163]}]},"vercel.edge_type":{brief:"Type of edge runtime in Vercel",type:"string",applyScrubbing:{key:"manual"},isInOtel:!1,visibility:"public",example:"edge-function",changelog:[{version:"0.2.0",prs:[163]}]},"vercel.entrypoint":{brief:"Entrypoint for the request in Vercel",type:"string",applyScrubbing:{key:"manual"},isInOtel:!1,visibility:"public",example:"api/index.js",changelog:[{version:"0.2.0",prs:[163]}]},"vercel.execution_region":{brief:"Region where the request is executed",type:"string",applyScrubbing:{key:"manual"},isInOtel:!1,visibility:"public",example:"sfo1",changelog:[{version:"0.2.0",prs:[163]}]},"vercel.id":{brief:"Unique identifier for the log entry in Vercel",type:"string",applyScrubbing:{key:"manual"},isInOtel:!1,visibility:"public",example:"1573817187330377061717300000",changelog:[{version:"0.2.0",prs:[163]}]},"vercel.ja3_digest":{brief:"JA3 fingerprint digest of Vercel request",type:"string",applyScrubbing:{key:"auto"},isInOtel:!1,visibility:"public",example:"769,47-53-5-10-49161-49162-49171-49172-50-56-19-4,0-10-11,23-24-25,0",changelog:[{version:"0.2.0",prs:[163]}]},"vercel.ja4_digest":{brief:"JA4 fingerprint digest",type:"string",applyScrubbing:{key:"auto"},isInOtel:!1,visibility:"public",example:"t13d1516h2_8daaf6152771_02713d6af862",changelog:[{version:"0.2.0",prs:[163]}]},"vercel.log_type":{brief:"Vercel log output type",type:"string",applyScrubbing:{key:"manual"},isInOtel:!1,visibility:"public",example:"stdout",changelog:[{version:"0.2.0",prs:[163]}]},"vercel.path":{brief:"Function or dynamic path of the request in Vercel.",type:"string",applyScrubbing:{key:"manual"},isInOtel:!1,visibility:"public",example:"/dynamic/[route].json",changelog:[{version:"0.6.0",prs:[349],description:"Added vercel.path attribute"}]},"vercel.project_id":{brief:"Identifier for the Vercel project",type:"string",applyScrubbing:{key:"manual"},isInOtel:!1,visibility:"public",example:"gdufoJxB6b9b1fEqr1jUtFkyavUU",changelog:[{version:"0.2.0",prs:[163]}]},"vercel.project_name":{brief:"Name of the Vercel project",type:"string",applyScrubbing:{key:"manual"},isInOtel:!1,visibility:"public",example:"my-app",changelog:[{version:"0.2.0",prs:[163]}]},"vercel.proxy.cache_id":{brief:"Original request ID when request is served from cache",type:"string",applyScrubbing:{key:"manual"},isInOtel:!1,visibility:"public",example:"pdx1::v8g4b-1744143786684-93dafbc0f70d",changelog:[{version:"0.2.0",prs:[163]}]},"vercel.proxy.client_ip":{brief:"Client IP address",type:"string",applyScrubbing:{key:"auto"},isInOtel:!1,visibility:"public",example:"120.75.16.101",changelog:[{version:"0.2.0",prs:[163]}]},"vercel.proxy.host":{brief:"Hostname of the request",type:"string",applyScrubbing:{key:"manual"},isInOtel:!1,visibility:"public",example:"test.vercel.app",changelog:[{version:"0.2.0",prs:[163]}]},"vercel.proxy.lambda_region":{brief:"Region where lambda function executed",type:"string",applyScrubbing:{key:"manual"},isInOtel:!1,visibility:"public",example:"sfo1",changelog:[{version:"0.2.0",prs:[163]}]},"vercel.proxy.method":{brief:"HTTP method of the request",type:"string",applyScrubbing:{key:"manual"},isInOtel:!1,visibility:"public",example:"GET",changelog:[{version:"0.2.0",prs:[163]}]},"vercel.proxy.path":{brief:"Request path with query parameters",type:"string",applyScrubbing:{key:"auto"},isInOtel:!1,visibility:"public",example:"/dynamic/some-value.json?route=some-value",changelog:[{version:"0.2.0",prs:[163]}]},"vercel.proxy.path_type":{brief:"How the request was served based on its path and project configuration",type:"string",applyScrubbing:{key:"manual"},isInOtel:!1,visibility:"public",example:"func",changelog:[{version:"0.2.0",prs:[163]}]},"vercel.proxy.path_type_variant":{brief:"Variant of the path type",type:"string",applyScrubbing:{key:"manual"},isInOtel:!1,visibility:"public",example:"api",changelog:[{version:"0.2.0",prs:[163]}]},"vercel.proxy.referer":{brief:"Referer of the request",type:"string",applyScrubbing:{key:"auto"},isInOtel:!1,visibility:"public",example:"*.vercel.app",changelog:[{version:"0.2.0",prs:[163]}]},"vercel.proxy.region":{brief:"Region where the request is processed",type:"string",applyScrubbing:{key:"manual"},isInOtel:!1,visibility:"public",example:"sfo1",changelog:[{version:"0.2.0",prs:[163]}]},"vercel.proxy.response_byte_size":{brief:"Size of the response in bytes",type:"integer",applyScrubbing:{key:"manual"},isInOtel:!1,visibility:"public",example:1024,changelog:[{version:"0.4.0",prs:[228]},{version:"0.2.0",prs:[163]}]},"vercel.proxy.scheme":{brief:"Protocol of the request",type:"string",applyScrubbing:{key:"manual"},isInOtel:!1,visibility:"public",example:"https",changelog:[{version:"0.2.0",prs:[163]}]},"vercel.proxy.status_code":{brief:"HTTP status code of the proxy request",type:"integer",applyScrubbing:{key:"manual"},isInOtel:!1,visibility:"public",example:200,changelog:[{version:"0.4.0",prs:[228]},{version:"0.2.0",prs:[163]}]},"vercel.proxy.timestamp":{brief:"Unix timestamp when the proxy request was made",type:"integer",applyScrubbing:{key:"manual"},isInOtel:!1,visibility:"public",example:1573817250172,changelog:[{version:"0.4.0",prs:[228]},{version:"0.2.0",prs:[163]}]},"vercel.proxy.user_agent":{brief:"User agent strings of the request",type:"string[]",applyScrubbing:{key:"manual"},isInOtel:!1,visibility:"public",example:["Mozilla/5.0..."],changelog:[{version:"0.2.0",prs:[163]}]},"vercel.proxy.vercel_cache":{brief:"Cache status sent to the browser",type:"string",applyScrubbing:{key:"manual"},isInOtel:!1,visibility:"public",example:"REVALIDATED",changelog:[{version:"0.2.0",prs:[163]}]},"vercel.proxy.vercel_id":{brief:"Vercel-specific identifier",type:"string",applyScrubbing:{key:"manual"},isInOtel:!1,visibility:"public",example:"sfo1::abc123",changelog:[{version:"0.2.0",prs:[163]}]},"vercel.proxy.waf_action":{brief:"Action taken by firewall rules",type:"string",applyScrubbing:{key:"manual"},isInOtel:!1,visibility:"public",example:"deny",changelog:[{version:"0.2.0",prs:[163]}]},"vercel.proxy.waf_rule_id":{brief:"ID of the firewall rule that matched",type:"string",applyScrubbing:{key:"manual"},isInOtel:!1,visibility:"public",example:"rule_gAHz8jtSB1Gy",changelog:[{version:"0.2.0",prs:[163]}]},"vercel.request_id":{brief:"Identifier of the Vercel request",type:"string",applyScrubbing:{key:"manual"},isInOtel:!1,visibility:"public",example:"643af4e3-975a-4cc7-9e7a-1eda11539d90",changelog:[{version:"0.2.0",prs:[163]}]},"vercel.source":{brief:"Origin of the Vercel log (build, edge, lambda, static, external, or firewall)",type:"string",applyScrubbing:{key:"manual"},isInOtel:!1,visibility:"public",example:"build",changelog:[{version:"0.2.0",prs:[163]}]},"vercel.status_code":{brief:"HTTP status code of the request (-1 means no response returned and the lambda crashed)",type:"integer",applyScrubbing:{key:"manual"},isInOtel:!1,visibility:"public",example:200,changelog:[{version:"0.4.0",prs:[228]},{version:"0.2.0",prs:[163]}]}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{addClickKeypressInstrumentationHandler:()=>p,instrumentDOM:()=>d});var n=r(1507),i=r(356),o=r(357),a=r(1514);const s=1e3;let l,c,u;function p(e){(0,n.addHandler)("dom",e),(0,n.maybeInstrument)("dom",d)}function d(){if(!a.WINDOW.document)return;const e=n.triggerHandlers.bind(null,"dom"),t=h(e,!0);a.WINDOW.document.addEventListener("click",t,!1),a.WINDOW.document.addEventListener("keypress",t,!1),["EventTarget","Node"].forEach(t=>{const r=a.WINDOW,n=r[t]?.prototype;n?.hasOwnProperty?.("addEventListener")&&((0,o.fill)(n,"addEventListener",function(t){return function(r,n,i){if("click"===r||"keypress"==r)try{const n=this.__sentry_instrumentation_handlers__=this.__sentry_instrumentation_handlers__||{},o=n[r]=n[r]||{refCount:0};if(!o.handler){const n=h(e);o.handler=n,t.call(this,r,n,i)}o.refCount++}catch{}return t.call(this,r,n,i)}}),(0,o.fill)(n,"removeEventListener",function(e){return function(t,r,n){if("click"===t||"keypress"==t)try{const r=this.__sentry_instrumentation_handlers__||{},i=r[t];i&&(i.refCount--,i.refCount<=0&&(e.call(this,t,i.handler,n),i.handler=void 0,delete r[t]),0===Object.keys(r).length&&delete this.__sentry_instrumentation_handlers__)}catch{}return e.call(this,t,r,n)}}))})}function h(e,t=!1){return r=>{if(!r||r._sentryCaptured)return;const n=function(e){try{return e.target}catch{return null}}(r);if(function(e,t){return"keypress"===e&&(!t?.tagName||"INPUT"!==t.tagName&&"TEXTAREA"!==t.tagName&&!t.isContentEditable)}(r.type,n))return;(0,o.addNonEnumerableProperty)(r,"_sentryCaptured",!0),n&&!n._sentryId&&(0,o.addNonEnumerableProperty)(n,"_sentryId",(0,i.uuid4)());const p="keypress"===r.type?"input":r.type;if(!function(e){if(e.type!==c)return!1;try{if(!e.target||e.target._sentryId!==u)return!1}catch{}return!0}(r)){e({event:r,name:p,global:t}),c=r.type,u=n?n._sentryId:void 0}clearTimeout(l),l=a.WINDOW.setTimeout(()=>{u=void 0,c=void 0},s)}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{WINDOW:()=>n});const n=r(350).GLOBAL_OBJ},(e,t,r)=>{"use strict";r.r(t),r.d(t,{addHistoryInstrumentationHandler:()=>l,instrumentHistory:()=>c});var n=r(1507),i=r(357),o=r(1509),a=r(1514);let s;function l(e){const t="history";(0,n.addHandler)(t,e),(0,n.maybeInstrument)(t,c)}function c(){function e(e){return function(...t){const r=t.length>2?t[2]:void 0;if(r){const i=s,o=function(e){try{return new URL(e,a.WINDOW.location.origin).toString()}catch{return e}}(String(r));if(s=o,i===o)return e.apply(this,t);const l={from:i,to:o};(0,n.triggerHandlers)("history",l)}return e.apply(this,t)}}a.WINDOW.addEventListener("popstate",()=>{const e=a.WINDOW.location.href,t=s;if(s=e,t===e)return;const r={from:t,to:e};(0,n.triggerHandlers)("history",r)}),(0,o.supportsHistory)()&&((0,i.fill)(a.WINDOW.history,"pushState",e),(0,i.fill)(a.WINDOW.history,"replaceState",e))}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{SENTRY_XHR_DATA_KEY:()=>s,addXhrInstrumentationHandler:()=>l,instrumentXHR:()=>c});var n=r(1507),i=r(359),o=r(365),a=r(1514);const s="__sentry_xhr_v3__";function l(e){(0,n.addHandler)("xhr",e),(0,n.maybeInstrument)("xhr",c)}function c(){if(!a.WINDOW.XMLHttpRequest)return;const e=XMLHttpRequest.prototype;e.open=new Proxy(e.open,{apply(e,t,r){const a=new Error,l=1e3*(0,o.timestampInSeconds)(),c=(0,i.isString)(r[0])?r[0].toUpperCase():void 0,u=function(e){if((0,i.isString)(e))return e;try{return e.toString()}catch{}return}(r[1]);if(!c||!u)return e.apply(t,r);t[s]={method:c,url:u,request_headers:{}}
41,"POST"===c&&u.match(/sentry_key/)&&(t.__sentry_own_request__=!0);const p=()=>{const e=t[s];if(e&&4===t.readyState){try{e.status_code=t.status}catch{}const r={endTimestamp:1e3*(0,o.timestampInSeconds)(),startTimestamp:l,xhr:t,virtualError:a};(0,n.triggerHandlers)("xhr",r),t.removeEventListener("readystatechange",p)}};return"onreadystatechange"in t&&"function"==typeof t.onreadystatechange?t.onreadystatechange=new Proxy(t.onreadystatechange,{apply:(e,t,r)=>(p(),e.apply(t,r))}):t.addEventListener("readystatechange",p),t.setRequestHeader=new Proxy(t.setRequestHeader,{apply(e,t,r){const[n,o]=r,a=t[s];return a&&(0,i.isString)(n)&&(0,i.isString)(o)&&(a.request_headers[n.toLowerCase()]=o),e.apply(t,r)}}),e.apply(t,r)}}),e.send=new Proxy(e.send,{apply(e,t,r){const i=t[s];if(!i)return e.apply(t,r);void 0!==r[0]&&(i.body=r[0]);const a={startTimestamp:1e3*(0,o.timestampInSeconds)(),xhr:t};return(0,n.triggerHandlers)("xhr",a),e.apply(t,r)}})}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{htmlTreeAsString:()=>s});var n=r(359);const i=80,o={};try{"undefined"!=typeof Node&&(o.parentNode=Object.getOwnPropertyDescriptor(Node.prototype,"parentNode").get),"undefined"!=typeof Element&&(o.tagName=Object.getOwnPropertyDescriptor(Element.prototype,"tagName").get,o.id=Object.getOwnPropertyDescriptor(Element.prototype,"id").get,o.className=Object.getOwnPropertyDescriptor(Element.prototype,"className").get,o.getAttribute=Element.prototype.getAttribute),"undefined"!=typeof HTMLElement&&(o.dataset=Object.getOwnPropertyDescriptor(HTMLElement.prototype,"dataset").get)}catch{}function a(e,t,r){const n=o[t];if(n)try{return n.call(e,r)}catch{}const i=e[t];return"function"==typeof i?i.call(e,r):i}function s(e,t={}){if(!e)return"<unknown>";try{let r=e;const n=5,o=[];let s=0,c=0;const u=" > ",p=u.length;let d;const h=Array.isArray(t)?t:t.keyAttrs,f=!Array.isArray(t)&&t.maxStringLength||i;for(;r&&s++<n&&(d=l(r,h),!("html"===d||s>1&&c+o.length*p+d.length>=f));)o.push(d),c+=d.length,r=a(r,"parentNode");return o.reverse().join(u)}catch{return"<unknown>"}}function l(e,t){const r=[],i=a(e,"tagName");if(!i)return"";if("undefined"!=typeof HTMLElement&&e instanceof HTMLElement){const t=a(e,"dataset");if(t){if(t.sentryComponent)return t.sentryComponent;if(t.sentryElement)return t.sentryElement}}r.push(i.toLowerCase());const o=t?.length?t.filter(t=>a(e,"getAttribute",t)).map(t=>[t,a(e,"getAttribute",t)]):null;if(o?.length)o.forEach(e=>{r.push(`[${e[0]}="${e[1]}"]`)});else{const t=a(e,"id");t&&r.push(`#${t}`);const i=a(e,"className");if(i&&(0,n.isString)(i)){const e=i.split(/\s+/);for(const t of e)r.push(`.${t}`)}}for(const t of["aria-label","type","name","title","alt"]){const n=a(e,"getAttribute",t);n&&r.push(`[${t}="${n}"]`)}return r.join("")}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{DEBUG_BUILD:()=>n});const n="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__},(e,t,r)=>{"use strict";r.r(t),r.d(t,{browserApiErrorsIntegration:()=>l});var n=r(1468),i=r(357),o=r(364),a=r(1502);const s="EventTarget,Window,Node,ApplicationCache,AudioTrackList,BroadcastChannel,ChannelMergerNode,CryptoOperation,EventSource,FileReader,HTMLUnknownElement,IDBDatabase,IDBRequest,IDBTransaction,KeyOperation,MediaController,MessagePort,ModalWindow,Notification,SVGElementInstance,Screen,SharedWorker,TextTrack,TextTrackCue,TextTrackList,WebSocket,WebSocketWorker,Worker,XMLHttpRequest,XMLHttpRequestEventTarget,XMLHttpRequestUpload".split(","),l=(0,n.defineIntegration)((e={})=>{const t={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,unregisterOriginalCallbacks:!1,...e};return{name:"BrowserApiErrors",setupOnce(){t.setTimeout&&(0,i.fill)(a.WINDOW,"setTimeout",c),t.setInterval&&(0,i.fill)(a.WINDOW,"setInterval",c),t.requestAnimationFrame&&(0,i.fill)(a.WINDOW,"requestAnimationFrame",u),t.XMLHttpRequest&&"XMLHttpRequest"in a.WINDOW&&(0,i.fill)(XMLHttpRequest.prototype,"send",p);const e=t.eventTarget;if(e){(Array.isArray(e)?e:s).forEach(e=>function(e,t){const r=a.WINDOW,n=r[e]?.prototype;if(!n?.hasOwnProperty?.("addEventListener"))return;(0,i.fill)(n,"addEventListener",function(r){return function(n,i,s){try{"function"==typeof i.handleEvent&&(i.handleEvent=(0,a.wrap)(i.handleEvent,{mechanism:{data:{handler:(0,o.getFunctionName)(i),target:e},handled:!1,type:"auto.browser.browserapierrors.handleEvent"}}))}catch{}return t.unregisterOriginalCallbacks&&function(e,t,r){e&&"object"==typeof e&&"removeEventListener"in e&&"function"==typeof e.removeEventListener&&e.removeEventListener(t,r)}(this,n,i),r.apply(this,[n,(0,a.wrap)(i,{mechanism:{data:{handler:(0,o.getFunctionName)(i),target:e},handled:!1,type:"auto.browser.browserapierrors.addEventListener"}}),s])}}),(0,i.fill)(n,"removeEventListener",function(e){return function(t,r,n){try{if(Object.prototype.hasOwnProperty.call(r,"__sentry_wrapped__")){const i=r.__sentry_wrapped__;i&&e.call(this,t,i,n)}}catch{}return e.call(this,t,r,n)}})}(e,t))}}}});function c(e){return function(...t){const r=t[0];return t[0]=(0,a.wrap)(r,{mechanism:{handled:!1,type:`auto.browser.browserapierrors.${(0,o.getFunctionName)(e)}`}}),e.apply(this,t)}}function u(e){return function(t){return e.apply(this,[(0,a.wrap)(t,{mechanism:{data:{handler:(0,o.getFunctionName)(e)},handled:!1,type:"auto.browser.browserapierrors.requestAnimationFrame"}})])}}function p(e){return function(...t){const r=this;return["onload","onerror","onprogress","onreadystatechange"].forEach(e
41=>{e in r&&"function"==typeof r[e]&&(0,i.fill)(r,e,function(t){const r={mechanism:{data:{handler:(0,o.getFunctionName)(t)},handled:!1,type:`auto.browser.browserapierrors.xhr.${e}`}},n=(0,i.getOriginalFunction)(t);return n&&(r.mechanism.data.handler=(0,o.getFunctionName)(n)),(0,a.wrap)(t,r)})}),e.apply(this,t)}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{browserSessionIntegration:()=>p});var n=r(345),i=r(346),o=r(1468),a=r(358),s=r(1521),l=r(1515),c=r(1518),u=r(1502);const p=(0,o.defineIntegration)((e={})=>{const t=e.lifecycle??"route";return{name:"BrowserSession",setupOnce(){if(void 0===u.WINDOW.document)return void(c.DEBUG_BUILD&&a.debug.warn("Using the `browserSessionIntegration` in non-browser environments is not supported."));(0,n.startSession)({ignoreDuration:!0});let e=!1;(0,s.whenIdleOrHidden)(()=>{e||((0,n.captureSession)(),e=!0)});const r=(0,i.getIsolationScope)();let o=r.getUser();r.addScopeListener(t=>{const r=t.getUser();o?.id===r?.id&&o?.ip_address===r?.ip_address||(o=r,e&&(0,n.captureSession)())}),"route"===t&&(0,l.addHistoryInstrumentationHandler)(({from:t,to:r})=>{t!==r&&((0,n.startSession)({ignoreDuration:!0}),(0,n.captureSession)(),e=!0)})}}})},(e,t,r)=>{"use strict";r.r(t),r.d(t,{whenIdleOrHidden:()=>a});var n=r(1514),i=r(1522),o=r(1523);const a=e=>{const t=n.WINDOW.requestIdleCallback||n.WINDOW.setTimeout;"hidden"===n.WINDOW.document?.visibilityState?e():(e=(0,o.runOnce)(e),(0,i.addPageListener)("visibilitychange",e,{once:!0,capture:!0}),(0,i.addPageListener)("pagehide",e,{once:!0,capture:!0}),t(()=>{e(),(0,i.removePageListener)("visibilitychange",e,{capture:!0}),(0,i.removePageListener)("pagehide",e,{capture:!0})}))}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{addPageListener:()=>i,removePageListener:()=>o});var n=r(1514);function i(e,t,r){n.WINDOW.document&&n.WINDOW.addEventListener(e,t,r)}function o(e,t,r){n.WINDOW.document&&n.WINDOW.removeEventListener(e,t,r)}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{runOnce:()=>n});const n=e=>{let t=!1;return()=>{t||(e(),t=!0)}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{cultureContextIntegration:()=>a});var n=r(1525),i=r(1468),o=r(1502);const a=(0,i.defineIntegration)(()=>({name:"CultureContext",preprocessEvent(e){const t=s();t&&(e.contexts={...e.contexts,culture:{...t,...e.contexts?.culture}})},processSegmentSpan(e){const t=s();t&&(0,n.safeSetSpanJSONAttributes)(e,{"culture.locale":t.locale,"culture.timezone":t.timezone,"culture.calendar":t.calendar})}}));function s(){try{const e=o.WINDOW.Intl;if(!e)return;const t=e.DateTimeFormat().resolvedOptions();return{locale:t.locale,timezone:t.timeZone,calendar:t.calendar}}catch{return}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{applyBeforeSendSpanCallback:()=>h,captureSpan:()=>p,safeSetSpanJSONAttributes:()=>d});var n=r(372),i=r(400),o=r(379),a=r(382),s=r(392),l=r(1526),c=r(386),u=r(1512);function p(e,t){const r=(0,o.spanToStreamedSpanJSON)(e),p=(0,o.INTERNAL_getSegmentSpan)(e),f=(0,o.spanToStreamedSpanJSON)(p),{isolationScope:m,scope:g}=(0,a.getCapturedScopesOnSpan)(e),y=(0,i.getCombinedScopeData)(m,g);!function(e,t,r,i){const o=r.getSdkMetadata(),{release:a,environment:s}=r.getOptions();d(e,{[u.SENTRY_TRACE_LIFECYCLE]:"stream",[u.SENTRY_SEGMENT_NAME]:t.name,[u.SENTRY_SEGMENT_ID]:t.span_id,[u.SENTRY_SDK_NAME]:o?.sdk?.name,[u.SENTRY_SDK_VERSION]:o?.sdk?.version,[n.SEMANTIC_ATTRIBUTE_SENTRY_RELEASE]:a,[n.SEMANTIC_ATTRIBUTE_SENTRY_ENVIRONMENT]:s||c.DEFAULT_ENVIRONMENT,[n.SEMANTIC_ATTRIBUTE_USER_ID]:i.user?.id,[n.SEMANTIC_ATTRIBUTE_USER_EMAIL]:i.user?.email,[n.SEMANTIC_ATTRIBUTE_USER_IP_ADDRESS]:i.user?.ip_address,[n.SEMANTIC_ATTRIBUTE_USER_USERNAME]:i.user?.username,...i.attributes})}(r,f,t,y);const b=e.kind;t.emit("preprocessSpan",r,{spanKind:b}),r.is_segment&&(!function(e,t){const r=(0,l.scopeContextsToSpanAttributes)(t.contexts);d(e,r)}(r,y),function(e,t){const r=t.getIntegrationNames();if(!r.length)return;d(e,{[n.SEMANTIC_ATTRIBUTE_SENTRY_SDK_INTEGRATIONS]:r})}(r,t),t.emit("processSegmentSpan",r)),t.emit("processSpan",r);const{beforeSendSpan:v}=t.getOptions(),_=v&&(0,s.isStreamedBeforeSendSpanCallback)(v)?h(r,v):r,S=_.attributes?.[n.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE];return r.is_segment&&S&&d(_,{"sentry.segment.name.source":S}),{...(0,o.streamedSpanJsonToSerializedSpan)(_),_segmentSpan:p}}function d(e,t){const r=e.attributes??(e.attributes={});Object.entries(t).forEach(([e,t])=>{null==t||e in r||(r[e]=t)})}function h(e,t){const r=t(e);return r||((0,o.showSpanDropWarning)(),e)}},(e,t,r)=>{"use strict";function n(e){const t={},{response:r,profile:n,cloud_resource:i,culture:o,state:a}=e;if(r&&(null!=r.status_code&&(t["http.response.status_code"]=r.status_code),null!=r.body_size&&(t["http.response.body.size"]=r.body_size)),n&&(n.profile_id&&(t["sentry.profile_id"]=n.profile_id),n.profiler_id&&(t["sentry.profiler_id"]=n.profiler_id)),i)for(const[e,r]of Object.entries(i))null!=r&&(t[e]=r);o&&(o.locale&&(t["culture.locale"]=o.locale),o.timezone&&(t["culture.timezone"]=o.timezone)),a?.state&&"string"==typeof a.state.type&&(t["state.type"]=a.state.type);const s=e.angular;if(s){const e=s.version;"string"!=typeof e&&"number"!=typeof e||(t["angular.version"]=e)}const l=e.react;if(l){const e=l.version;"string"!=typeof e&&"number"!=typeof e||(t["react.version"]=e)}return t}r.r(t),r.d(t,{scopeContextsToSpanAttributes:()=>n})},(e,t,r)=>{"use strict";r.r(t),r.d(t,{_eventFromRejectionWithPrimitive:()=>b,_getUnhandledRejectionError:()=>y,globalHandlersIntegration:()=>g});var n=r(345),i=r(346),o=r(1468),a=r(1528),s=r(1529),l=r(359),c=r(358),u=r(364),p=r(1511),d=r(1503),h=r(1518),f=r(1500),m=r(1502);const g=(0,o.defineIntegration)((e={})=>{const t={onerror:!0,onunhandledrejection:!0,...e};return{name:"GlobalHandlers",setupOnce(){Error.stackTraceLimit=50},setup(e){t.onerror&&(!function(e){(0,a.addGlobalErrorInstrumentationHandler)(t=>{const{stackParser:r,attachStacktrace:o}=_();if((0,i.getClient)()!==e||(0,m.shouldIgnoreOnError)())return;const{msg:a,url:s,line:l,column:c,error:p}=t,h=function(e,t,r,n){const i=e.exception=e.exception||{},o=i.values=i.values||[],a=o[0]=o[0]||{},s=a.stacktrace=a.stacktrace||{},l=s.frames=s.frames||[];
410===l.length&&l.push({colno:n,lineno:r,filename:S(t)??(0,d.getLocationHref)(),function:u.UNKNOWN_FUNCTION,in_app:!0});return e}((0,f.eventFromUnknownInput)(r,p||a,void 0,o,!1),s,l,c);h.level="error",(0,n.captureEvent)(h,{originalException:p,mechanism:{handled:!1,type:"auto.browser.global_handlers.onerror"}})})}(e),v("onerror")),t.onunhandledrejection&&(!function(e){(0,s.addGlobalUnhandledRejectionInstrumentationHandler)(t=>{const{stackParser:r,attachStacktrace:o}=_();if((0,i.getClient)()!==e||(0,m.shouldIgnoreOnError)())return;const a=y(t),s=(0,l.isPrimitive)(a)?b(a):(0,f.eventFromUnknownInput)(r,a,void 0,o,!0);s.level="error",(0,n.captureEvent)(s,{originalException:a,mechanism:{handled:!1,type:"auto.browser.global_handlers.onunhandledrejection"}})})}(e),v("onunhandledrejection"))}}});function y(e){if((0,l.isPrimitive)(e))return e;try{if("reason"in e)return e.reason;if("detail"in e&&"reason"in e.detail)return e.detail.reason}catch{}return e}function b(e){return{exception:{values:[{type:"UnhandledRejection",value:`Non-Error promise rejection captured with value: ${String(e)}`}]}}}function v(e){h.DEBUG_BUILD&&c.debug.log(`Global Handler attached: ${e}`)}function _(){const e=(0,i.getClient)();return e?.getOptions()||{stackParser:()=>[],attachStacktrace:!1}}function S(e){if((0,l.isString)(e)&&0!==e.length)return e.startsWith("data:")?`<${(0,p.stripDataUrlContent)(e,!1)}>`:e}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{addGlobalErrorInstrumentationHandler:()=>a});var n=r(350),i=r(1507);let o=null;function a(e){const t="error";(0,i.addHandler)(t,e),(0,i.maybeInstrument)(t,s)}function s(){o=n.GLOBAL_OBJ.onerror,n.GLOBAL_OBJ.onerror=function(e,t,r,n,a){const s={column:n,error:a,line:r,msg:e,url:t};return(0,i.triggerHandlers)("error",s),!!o&&o.apply(this,arguments)},n.GLOBAL_OBJ.onerror.__SENTRY_INSTRUMENTED__=!0}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{addGlobalUnhandledRejectionInstrumentationHandler:()=>a});var n=r(350),i=r(1507);let o=null;function a(e){const t="unhandledrejection";(0,i.addHandler)(t,e),(0,i.maybeInstrument)(t,s)}function s(){o=n.GLOBAL_OBJ.onunhandledrejection,n.GLOBAL_OBJ.onunhandledrejection=function(e){const t=e;return(0,i.triggerHandlers)("unhandledrejection",t),!o||o.apply(this,arguments)},n.GLOBAL_OBJ.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{httpContextIntegration:()=>l});var n=r(1525),i=r(372),o=r(1468),a=r(1502),s=r(1512);const l=(0,o.defineIntegration)(()=>({name:"HttpContext",preprocessEvent(e){if(!a.WINDOW.navigator&&!a.WINDOW.location&&!a.WINDOW.document)return;const t=(0,a.getHttpRequestData)(),r={...t.headers,...e.request?.headers};e.request={...t,...e.request,headers:r}},processSegmentSpan(e){const t=e.attributes?.[i.SEMANTIC_ATTRIBUTE_SENTRY_OP];if(!a.WINDOW.navigator&&!a.WINDOW.location&&!a.WINDOW.document)return;const r=(0,a.getHttpRequestData)();(0,n.safeSetSpanJSONAttributes)(e,{[s.URL_FULL]:"http.client"!==t?r.url:void 0,"http.request.header.user_agent":r.headers["User-Agent"],"http.request.header.referer":r.headers.Referer})}}))},(e,t,r)=>{"use strict";r.r(t),r.d(t,{linkedErrorsIntegration:()=>a});var n=r(1468),i=r(1532),o=r(1500);const a=(0,n.defineIntegration)((e={})=>{const t=e.limit||5,r=e.key||"cause";return{name:"LinkedErrors",preprocessEvent(e,n,a){const s=a.getOptions();(0,i.applyAggregateErrorsToEvent)(o.exceptionFromError,s.stackParser,r,t,e,n)}}})},(e,t,r)=>{"use strict";r.r(t),r.d(t,{applyAggregateErrorsToEvent:()=>i});var n=r(359);function i(e,t,r,i,a,s){if(!a.exception?.values||!s||!(0,n.isError)(s.originalException))return;const l=a.exception.values.length>0?a.exception.values[a.exception.values.length-1]:void 0;l&&(a.exception.values=o(e,t,i,s.originalException,r,a.exception.values,l,0))}function o(e,t,r,i,c,u,p,d){if(u.length>=r+1)return u;let h=[...u];
41if((0,n.isError)(i[c])){s(p,d,i);const n=e(t,i[c]),a=h.length;l(n,c,a,d),h=o(e,t,r,i[c],c,[n,...h],n,a)}return a(i)&&i.errors.forEach((a,u)=>{if((0,n.isError)(a)){s(p,d,i);const n=e(t,a),f=h.length;l(n,`errors[${u}]`,f,d),h=o(e,t,r,a,c,[n,...h],n,f)}}),h}function a(e){return Array.isArray(e.errors)}function s(e,t,r){e.mechanism={handled:!0,type:"auto.core.linked_errors",...a(r)&&{is_exception_group:!0},...e.mechanism,exception_id:t}}function l(e,t,r,n){e.mechanism={handled:!0,...e.mechanism,type:"chained",source:t,exception_id:r,parent_id:n}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{chromeStackLineParser:()=>c,defaultStackLineParsers:()=>v,defaultStackParser:()=>_,geckoStackLineParser:()=>d,opera10StackLineParser:()=>g,opera11StackLineParser:()=>b,winjsStackLineParser:()=>f});var n=r(364);function i(e,t,r,i){const o={filename:e,function:"<anonymous>"===t?n.UNKNOWN_FUNCTION:t,in_app:!0};return void 0!==r&&(o.lineno=r),void 0!==i&&(o.colno=i),o}const o=/^\s*at (\S+?)(?::(\d+))(?::(\d+))\s*$/i,a=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,s=/\((\S*)(?::(\d+))(?::(\d+))\)/,l=/at (.+?) ?\(data:(.+?),/,c=[30,e=>{const t=e.match(l);if(t)return{filename:`<data:${t[2]}>`,function:t[1]};const r=o.exec(e);if(r){const[,e,t,o]=r;return i(e,n.UNKNOWN_FUNCTION,+t,+o)}const c=a.exec(e);if(c){if(0===c[2]?.indexOf("eval")){const e=s.exec(c[2]);e&&(c[2]=e[1],c[3]=e[2],c[4]=e[3])}const[e,t]=S(c[1]||n.UNKNOWN_FUNCTION,c[2]);return i(t,e,c[3]?+c[3]:void 0,c[4]?+c[4]:void 0)}}],u=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,p=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,d=[50,e=>{const t=u.exec(e);if(t){if(t[3]&&t[3].indexOf(" > eval")>-1){const e=p.exec(t[3]);e&&(t[1]=t[1]||"eval",t[3]=e[1],t[4]=e[2],t[5]="")}let e=t[3],r=t[1]||n.UNKNOWN_FUNCTION;return[r,e]=S(r,e),i(e,r,t[4]?+t[4]:void 0,t[5]?+t[5]:void 0)}}],h=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:[-a-z]+):.*?):(\d+)(?::(\d+))?\)?\s*$/i,f=[40,e=>{const t=h.exec(e);return t?i(t[2],t[1]||n.UNKNOWN_FUNCTION,+t[3],t[4]?+t[4]:void 0):void 0}],m=/ line (\d+).*script (?:in )?(\S+)(?:: in function (\S+))?$/i,g=[10,e=>{const t=m.exec(e);return t?i(t[2],t[3]||n.UNKNOWN_FUNCTION,+t[1]):void 0}],y=/ line (\d+), column (\d+)\s*(?:in (?:<anonymous function: ([^>]+)>|([^)]+))\(.*\))? in (.*):\s*$/i,b=[20,e=>{const t=y.exec(e);return t?i(t[5],t[3]||t[4]||n.UNKNOWN_FUNCTION,+t[1],+t[2]):void 0}],v=[c,d],_=(0,n.createStackParser)(...v),S=(e,t)=>{const r=-1!==e.indexOf("safari-extension"),i=-1!==e.indexOf("safari-web-extension");return r||i?[-1!==e.indexOf("@")?e.split("@")[0]:n.UNKNOWN_FUNCTION,r?`safari-extension:${t}`:`safari-web-extension:${t}`]:[e,t]}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{makeFetchTransport:()=>s});var n=r(1489),i=r(1490),o=r(1535);const a=40;function s(e,t=(0,o.getNativeImplementation)("fetch")){let r=0,s=0;return(0,n.createTransport)(e,async function(n){const i=n.body.length;r+=i,s++;const a={body:n.body,method:"POST",referrerPolicy:"strict-origin",headers:e.headers,keepalive:r<=6e4&&s<15,...e.fetchOptions};try{const r=await t(e.url,a);return{statusCode:r.status,headers:{"x-sentry-rate-limits":r.headers.get("X-Sentry-Rate-Limits"),"retry-after":r.headers.get("Retry-After")}}}catch(e){throw(0,o.clearCachedImplementation)("fetch"),e}finally{r-=i,s--}},(0,i.makePromiseBuffer)(e.bufferSize||a))}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{clearCachedImplementation:()=>c,fetch:()=>u,getNativeImplementation:()=>l,setTimeout:()=>p});var n=r(358),i=r(1509),o=r(1536),a=r(1514);const s={};function l(e){const t=s[e];if(t)return t;let r=a.WINDOW[e];if((0,i.isNativeFunction)(r))return s[e]=r.bind(a.WINDOW);const l=a.WINDOW.document;if(l&&"function"==typeof l.createElement)try{const t=l.createElement("iframe");t.hidden=!0,l.head.appendChild(t);const n=t.contentWindow;n?.[e]&&(r=n[e]),l.head.removeChild(t)}catch(t){o.DEBUG_BUILD&&n.debug.warn(`Could not create sandbox iframe for ${e} check, bailing to window.${e}: `,t)}return r?s[e]=r.bind(a.WINDOW):r}function c(e){s[e]=void 0}function u(...e){return l("fetch")(...e)}function p(...e){return l("setTimeout")(...e)}
41},(e,t,r)=>{"use strict";r.r(t),r.d(t,{DEBUG_BUILD:()=>n});const n="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__},(e,t,r)=>{"use strict";r.r(t),r.d(t,{normalizeStringifyValue:()=>a});var n=r(1517),i=r(1538);const o=/^HTML(\w*)Element$/;function a(e){if("undefined"!=typeof window&&e===window)return"[Window]";if("undefined"!=typeof document&&e===document)return"[Document]";if((0,i.isElement)(e)){const t=function(e){const t=Object.getPrototypeOf(e);return t?.constructor?t.constructor.name:"null prototype"}(e);if(o.test(t))return`[HTMLElement: ${(0,n.htmlTreeAsString)(e)}]`}}},(e,t,r)=>{"use strict";function n(e){if("undefined"==typeof Element)return!1;try{return e instanceof Element}catch{return!1}}r.r(t),r.d(t,{isElement:()=>n})},(e,t,r)=>{"use strict";r.r(t),r.d(t,{checkAndWarnIfIsEmbeddedBrowserExtension:()=>s});var n=r(358),i=r(1503),o=r(1518),a=r(1502);function s(){return!!function(){if(void 0===a.WINDOW.window)return!1;const e=a.WINDOW;if(e.nw)return!1;const t=e.chrome||e.browser;if(!t?.runtime?.id)return!1;const r=(0,i.getLocationHref)();return!(a.WINDOW===a.WINDOW.top&&/^(?:chrome-extension|moz-extension|ms-browser-extension|safari-web-extension):\/\//.test(r))}()&&(o.DEBUG_BUILD&&(0,n.consoleSandbox)(()=>{console.error("[Sentry] You cannot use Sentry.init() in a browser extension, see: https://docs.sentry.io/platforms/javascript/best-practices/browser-extensions/")}),!0)}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{BROWSER_TRACING_INTEGRATION_ID:()=>R,browserTracingIntegration:()=>M,getMetaContent:()=>F,getServerTiming:()=>B,isBotUserAgent:()=>P,startBrowserTracingNavigationSpan:()=>L,startBrowserTracingPageLoadSpan:()=>N});var n=r(1541),i=r(1542),o=r(371),a=r(385),s=r(372),l=r(346),c=r(375),u=r(379),p=r(377),d=r(350),h=r(358),f=r(357),m=r(365),g=r(383),y=r(1511),b=r(367),v=r(1503),_=r(1543),S=r(1515),E=r(1518),T=r(1502),w=r(1568),x=r(1569),O=r(1572),I=r(1573),A=r(1574),k=r(1512);const R="BrowserTracing",C=/Googlebot|Google-InspectionTool|Storebot-Google|Bingbot|Slurp|DuckDuckBot|Baiduspider|YandexBot|Facebot|facebookexternalhit|LinkedInBot|Twitterbot|Applebot/i;function P(){const e=T.WINDOW.navigator;return!!e?.userAgent&&C.test(e.userAgent)}const D={...i.TRACING_DEFAULTS,instrumentNavigation:!0,instrumentPageLoad:!0,markBackgroundSpan:!0,enableLongTask:!0,enableLongAnimationFrame:!0,enableInp:!0,ignoreResourceSpans:[],ignorePerformanceApiSpans:[],detectRedirects:!0,linkPreviousTrace:"in-memory",consistentTraceSampling:!1,enableReportPageLoaded:!1,_experiments:{},...A.defaultRequestInstrumentationOptions},M=(e={})=>{"enableElementTiming"in e&&(0,h.consoleSandbox)(()=>{console.warn("[Sentry] `enableElementTiming` is deprecated and no longer has any effect. Use the standalone `elementTimingIntegration` instead.")});const t={name:void 0,source:void 0},r=T.WINDOW.document,{enableInp:f,enableLongTask:C,enableLongAnimationFrame:M,_experiments:{enableInteractions:U,enableStandaloneClsSpans:z,enableStandaloneLcpSpans:G},beforeStartSpan:q,idleTimeout:$,finalTimeout:W,childSpanTimeout:Y,markBackgroundSpan:K,traceFetch:J,traceXHR:Q,trackFetchStreamPerformance:X,shouldCreateSpanForRequest:Z,enableHTTPTimings:ee,ignoreResourceSpans:te,ignorePerformanceApiSpans:re,instrumentPageLoad:ne,instrumentNavigation:ie,detectRedirects:oe,linkPreviousTrace:ae,consistentTraceSampling:se,enableReportPageLoaded:le,onRequestSpanStart:ce,onRequestSpanEnd:ue}={...D,...e},pe=P();let de,he;function fe(e,n,c=!0,d){const h="pageload"===n.op,f=n.name,g=q?q(n):n,b=(0,y.parseStringToURLObject)(d||(0,v.getLocationHref)()),S={...b?.pathname&&{[k.URL_PATH]:b.pathname},...b&&!(0,y.isURLObjectRelative)(b)&&{[k.URL_FULL]:b.href},...g.attributes};if(f!==g.name&&(S[s.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]="custom"),g.attributes=S,!c){const e=(0,m.dateTimestampInSeconds)();return void(0,o.startInactiveSpan)({...g,startTime:e}).end(e)}t.name=g.name,t.source=S[s.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE];const E=(0,i.startIdleSpan)(g,{idleTimeout:$,finalTimeout:W,childSpanTimeout:Y,disableAutoFinish:h,beforeSpanEnd:t=>{(0,_.addPerformanceEntries)(t,{ignoreResourceSpans:te,ignorePerformanceApiSpans:re,spanStreamingEnabled:(0,p.hasSpanStreamingEnabled)(e)}),H(e,void 0);const r=(0,l.getCurrentScope)(),n=r.getPropagationContext();r.setPropagationContext({...n,traceId:E.spanContext().traceId,sampled:(0,u.spanIsSampled)(E),dsc:(0,a.getDynamicSamplingContextFromSpan)(t)}),h&&(he=void 0)},trimIdleSpanEndTimestamp:!le});function T(){r&&["interactive","complete"].includes(r.readyState)&&(e.emit("idleSpanEnableAutoFinish",E),r.removeEventListener("readystatechange",T))}h&&le&&(he=E),H(e,E),h&&!le&&r&&(r.addEventListener("readystatechange",T),T())}return{name:R,setup(e){if(pe)E.DEBUG_BUILD&&h.debug.log("[Tracing] Skipping browserTracingIntegration setup for bot user agent.");else{if((0,n.registerSpanErrorInstrumentation)(),M&&d.GLOBAL_OBJ.PerformanceObserver&&PerformanceObserver.supportedEntryTypes?.includes("long-animation-frame")?(0,_.startTrackingLongAnimationFrames)():C&&(0,_.startTrackingLongTasks)(),U&&(0,_.startTrackingInteractions)(),oe&&r){const e=()=>{de=(0,m.timestampInSeconds)()};addEventListener("click",e,{capture:!0}),addEventListener("keydown",e,{capture:!0,passive:!0})}e.on("startNavigationSpan",(r,n)=>{if((0,l.getClient)()!==e)return;if(n?.isRedirect)return E.DEBUG_BUILD&&h.debug.warn("[Tracing] Detected redirect, navigation span will not be the root span, but a child span."),void fe(e,{op:"navigation.redirect",...r},!1,n.url);de=void 0,t(),(0,l.getIsolationScope)().setPropagationContext({traceId:(0,b.generateTraceId)(),sampleRand:Math.random(),propagationSpanId:(0,c.hasSpansEnabled)()?void 0:(0,b.generateSpanId)()});const i=(0,l.getCurrentScope)();i.setPropagationContext({traceId:(0,b.generateTraceId)(),sampleRand:Math.random(),propagationSpanId:(0,c.hasSpansEnabled)()?void 0:(0,b.generateSpanId)()}),i.setSDKProcessingMetadata({normalizedRequest:void 0}),fe(e,{op:"navigation",...r,parentSpan:null,forceTransaction:!0},!0,n?.url)}),e.on("startPageLoadSpan",(r,n={})=>
41{if((0,l.getClient)()!==e)return;t();const i=n.sentryTrace||F("sentry-trace")||B("sentry-trace"),o=n.baggage||F("baggage")||B("baggage"),a=(0,g.propagationContextFromHeaders)(i,o),s=(0,l.getCurrentScope)();s.setPropagationContext(a),(0,c.hasSpansEnabled)()||(s.getPropagationContext().propagationSpanId=(0,b.generateSpanId)()),s.setSDKProcessingMetadata({normalizedRequest:(0,T.getHttpRequestData)()}),fe(e,{op:"pageload",...r})}),e.on("endPageloadSpan",()=>{le&&he&&(he.setAttribute(s.SEMANTIC_ATTRIBUTE_SENTRY_IDLE_SPAN_FINISH_REASON,"reportPageLoaded"),he.end())})}function t(){const t=j(e);t&&!(0,u.spanToJSON)(t).timestamp&&(E.DEBUG_BUILD&&h.debug.log(`[Tracing] Finishing current active span with op: ${(0,u.spanToJSON)(t).op}`),t.setAttribute(s.SEMANTIC_ATTRIBUTE_SENTRY_IDLE_SPAN_FINISH_REASON,"cancelled"),t.end())}},afterAllSetup(e){if(pe)return;e.addIntegration&&!e.getIntegrationByName?.(x.WEB_VITALS_INTEGRATION_NAME)&&e.addIntegration((0,x.webVitalsIntegration)({ignore:f?[]:["inp"],_experiments:{enableStandaloneClsSpans:z,enableStandaloneLcpSpans:G}}));let r=(0,v.getLocationHref)();if("off"!==ae&&(0,I.linkTraces)(e,{linkPreviousTrace:ae,consistentTraceSampling:se}),T.WINDOW.location){if(ne){const t=(0,m.browserPerformanceTimeOrigin)();N(e,{name:T.WINDOW.location.pathname,startTime:t?t/1e3:void 0,attributes:{[s.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]:"url",[s.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.pageload.browser"}})}ie&&(0,S.addHistoryInstrumentationHandler)(({to:t,from:n})=>{if(void 0===n&&-1!==r?.indexOf(t))return void(r=void 0);r=void 0;const i=(0,y.parseStringToURLObject)(t),o=j(e),a=o&&oe&&function(e,t){const r=(0,u.spanToJSON)(e),n=(0,m.dateTimestampInSeconds)(),i=r.start_timestamp;if(n-i>V)return!1;if(t&&n-t<=V)return!1;return!0}(o,de);L(e,{name:i?.pathname||T.WINDOW.location.pathname,attributes:{[s.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]:"url",[s.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.navigation.browser"}},{url:t,isRedirect:a})})}K&&(0,O.registerBackgroundTabDetection)(),U&&function(e,t,r,n,o){const a=T.WINDOW.document;let l;const c=()=>{const a="ui.action.click",c=j(e);if(c){const e=(0,u.spanToJSON)(c).op;if(["navigation","pageload"].includes(e))return void(E.DEBUG_BUILD&&h.debug.warn(`[Tracing] Did not create ${a} span because a pageload or navigation span is in progress.`))}l&&(l.setAttribute(s.SEMANTIC_ATTRIBUTE_SENTRY_IDLE_SPAN_FINISH_REASON,"interactionInterrupted"),l.end(),l=void 0),o.name?l=(0,i.startIdleSpan)({name:o.name,op:a,attributes:{[s.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]:o.source||"url"}},{idleTimeout:t,finalTimeout:r,childSpanTimeout:n}):E.DEBUG_BUILD&&h.debug.warn(`[Tracing] Did not create ${a} transaction because _latestRouteName is missing.`)};a&&addEventListener("click",c,{capture:!0})}(e,$,W,Y,t),(0,A.instrumentOutgoingRequests)(e,{traceFetch:J,traceXHR:Q,tracePropagationTargets:e.getOptions().tracePropagationTargets,shouldCreateSpanForRequest:Z,enableHTTPTimings:ee,onRequestSpanStart:ce,onRequestSpanEnd:ue}),X&&e.addIntegration((0,w.fetchStreamPerformanceIntegration)())}}};function N(e,t,r){e.emit("startPageLoadSpan",t,r),(0,l.getCurrentScope)().setTransactionName(t.name);const n=j(e);return n&&e.emit("afterStartPageLoadSpan",n),n}function L(e,t,r){const{url:n,isRedirect:i}=r||{};e.emit("beforeStartNavigationSpan",t,{isRedirect:i,url:n}),e.emit("startNavigationSpan",t,{isRedirect:i,url:n});const o=(0,l.getCurrentScope)();return o.setTransactionName(t.name),n&&!i&&o.setSDKProcessingMetadata({normalizedRequest:{...(0,T.getHttpRequestData)(),url:n}}),j(e)}function F(e){const t=T.WINDOW.document,r=t?.querySelector(`meta[name=${e}]`);return r?.getAttribute("content")||void 0}function B(e){const t=T.WINDOW.performance?.getEntriesByType?.("navigation")[0],r=t?.serverTiming?.find(t=>t.name===e);return r?.description}const U="_sentry_idleSpan";function j(e){return e[U]}function H(e,t){(0,f.addNonEnumerableProperty)(e,U,t)}const V=1.5},(e,t,r)=>{"use strict";r.r(t),r.d(t,{registerSpanErrorInstrumentation:()=>u});
41var n=r(354),i=r(1528),o=r(1529),a=r(358),s=r(379),l=r(381);let c=!1;function u(){function e(){const e=(0,s.getActiveSpan)(),t=e&&(0,s.getRootSpan)(e);if(t){const e="internal_error";n.DEBUG_BUILD&&a.debug.log(`[Tracing] Root span: ${e} -> Global error occurred`),t.setStatus({code:l.SPAN_STATUS_ERROR,message:e})}}c||(c=!0,(0,i.addGlobalErrorInstrumentationHandler)(e),(0,o.addGlobalUnhandledRejectionInstrumentationHandler)(e))}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{TRACING_DEFAULTS:()=>y,startIdleSpan:()=>E});var n=r(346),i=r(354),o=r(372),a=r(358),s=r(375),l=r(376),c=r(368),u=r(379),p=r(365),d=r(387),h=r(390),f=r(381),m=r(371),g=r(382);const y={idleTimeout:1e3,finalTimeout:3e4,childSpanTimeout:15e3},b="heartbeatFailed",v="idleTimeout",_="finalTimeout",S="externalFinish";function E(e,t={}){const r=new Map;let E,T,w=!1,x=S,O=!t.disableAutoFinish;const I=[],{idleTimeout:A=y.idleTimeout,finalTimeout:k=y.finalTimeout,childSpanTimeout:R=y.childSpanTimeout,beforeSpanEnd:C,trimIdleSpanEndTimestamp:P=!0}=t,D=(0,n.getClient)(),M=(0,n.getCurrentScope)();if(!D||!(0,s.hasSpansEnabled)()){const e=new d.SentryNonRecordingSpan({traceId:M.getPropagationContext().traceId});return(0,g.setCapturedScopesOnSpan)(e,M,(0,n.getIsolationScope)()),e}const N=(0,u.getActiveSpan)(),L=function(e){const t=(0,m.startInactiveSpan)(e);return(0,c._setSpanForScope)((0,n.getCurrentScope)(),t),i.DEBUG_BUILD&&a.debug.log("[Tracing] Started span is an idle span"),t}(e);function F(){E&&(clearTimeout(E),E=void 0)}function B(){T&&(clearTimeout(T),T=void 0)}function U(e){F(),E=setTimeout(()=>{!w&&0===r.size&&O&&(x=v,L.end(e))},A)}function j(e){B(),T=setTimeout(()=>{!w&&O&&(x=b,L.end(e))},R)}function H(e){w=!0,r.clear(),I.forEach(e=>e()),(0,c._setSpanForScope)(M,N);const t=(0,u.spanToJSON)(L),{start_timestamp:n}=t;if(!n)return;t.data[o.SEMANTIC_ATTRIBUTE_SENTRY_IDLE_SPAN_FINISH_REASON]||L.setAttribute(o.SEMANTIC_ATTRIBUTE_SENTRY_IDLE_SPAN_FINISH_REASON,x);const s=t.status;s&&"unknown"!==s||L.setStatus({code:f.SPAN_STATUS_OK}),a.debug.log(`[Tracing] Idle span "${t.op}" finished`);const l=(0,u.getSpanDescendants)(L).filter(e=>e!==L);let p=0;l.forEach(t=>{t.isRecording()&&(t.setStatus({code:f.SPAN_STATUS_ERROR,message:"cancelled"}),t.end(e),i.DEBUG_BUILD&&a.debug.log("[Tracing] Cancelling span since span ended early",JSON.stringify(t,void 0,2)));const r=(0,u.spanToJSON)(t),{timestamp:n=0,start_timestamp:o=0}=r,s=o<=e,l=n-o<=(k+A)/1e3;if(i.DEBUG_BUILD){const e=JSON.stringify(t,void 0,2);s?l||a.debug.log("[Tracing] Discarding span since it finished after idle span final timeout",e):a.debug.log("[Tracing] Discarding span since it happened after idle span was finished",e)}l&&s||((0,u.removeChildSpanFromSpan)(L,t),p++)}),p>0&&L.setAttribute("sentry.idle_span_discarded_spans",p)}return L.end=new Proxy(L.end,{apply(e,t,r){if(C&&C(L),(0,d.spanIsNonRecordingSpan)(t))return;const[n,...i]=r,o=n||(0,p.timestampInSeconds)(),a=(0,u.spanTimeInputToSeconds)(o),s=(0,u.getSpanDescendants)(L).filter(e=>e!==L),c=(0,u.spanToJSON)(L);if(!s.length||!P)return H(a),Reflect.apply(e,t,[a,...i]);const h=D.getOptions().ignoreSpans,f=s?.reduce((e,t)=>{const r=(0,u.spanToJSON)(t);return r.timestamp?h&&(0,l.shouldIgnoreSpan)({description:r.description,op:r.op,attributes:r.data},h)?e:e?Math.max(e,r.timestamp):r.timestamp:e},void 0),m=c.start_timestamp,g=Math.min(m?m+k/1e3:1/0,Math.max(m||-1/0,Math.min(a,f||1/0)));return H(g),Reflect.apply(e,t,[g,...i])}}),I.push(D.on("spanStart",e=>{if(w||e===L||(0,u.spanToJSON)(e).timestamp||e instanceof h.SentrySpan&&e.isStandaloneSpan())return;var t;(0,u.getSpanDescendants)(L).includes(e)&&(t=e.spanContext().spanId,F(),r.set(t,!0),j((0,p.timestampInSeconds)()+R/1e3))})),I.push(D.on("spanEnd",e=>{var t;w||(t=e.spanContext().spanId,r.has(t)&&r.delete(t),0===r.size&&(U((0,p.timestampInSeconds)()+A/1e3),B()))})),I.push(D.on("idleSpanEnableAutoFinish",e=>{e===L&&(O=!0,U(),r.size&&j())})),t.disableAutoFinish||U(),setTimeout(()=>{w||(L.setStatus({code:f.SPAN_STATUS_ERROR,message:"deadline_exceeded"}),x=_,L.end())},k),L}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{_addMeasureSpans:()=>L,_addNavigationSpans:()=>F,_addResourceSpans:()=>U,_setResourceRequestAttributes:()=>j,addPerformanceEntries:()=>D,addWebVitalsToSpan:()=>M,startTrackingInteractions:()=>P,startTrackingLongAnimationFrames:()=>C,startTrackingLongTasks:()=>R,startTrackingWebVitals:()=>k}
41);var n=r(394),i=r(372),o=r(379),a=r(359),s=r(358),l=r(361),c=r(365),u=r(1511),p=r(1503),d=r(1517),h=r(1514),f=r(1544),m=r(1545),g=r(1566),y=r(1567),b=r(1564),v=r(1549),_=r(1550),S=r(1548),E=r(1536),T=r(1512);const w=2147483647;let x,O,I=0,A={};function k({recordClsStandaloneSpans:e,recordLcpStandaloneSpans:t,client:r}){const n=(0,b.getBrowserPerformanceAPI)();if(n&&(0,c.browserPerformanceTimeOrigin)()){n.mark&&h.WINDOW.performance.mark("sentry-tracing-init");const i=t?(0,g.trackLcpAsStandaloneSpan)(r):!1===t?(0,m.addLcpInstrumentationHandler)(({metric:e})=>{const t=e.entries[e.entries.length-1];t&&(0,g.isValidLcpMetric)(e.value)&&(A.lcp={value:e.value,unit:"millisecond"},x=t)},!0):void 0,o=e?(0,f.trackClsAsStandaloneSpan)(r):!1===e?(0,m.addClsInstrumentationHandler)(({metric:e})=>{const t=e.entries[e.entries.length-1];t&&(A.cls={value:e.value,unit:""},O=t)},!0):void 0,a=(0,m.addTtfbInstrumentationHandler)(({metric:e})=>{e.entries[e.entries.length-1]&&(A.ttfb={value:e.value,unit:"millisecond"})}),s=(0,m.addPerformanceInstrumentationHandler)("paint",({entries:e})=>{const t=(0,S.getVisibilityWatcher)();for(const r of e){const e=r.startTime<t.firstHiddenTime;"first-paint"===r.name&&e&&(A.fp={value:r.startTime,unit:"millisecond"}),"first-contentful-paint"===r.name&&e&&(A.fcp={value:r.startTime,unit:"millisecond"})}});return()=>{a(),s(),i?.(),o?.()}}return()=>{}}function R(){(0,m.addPerformanceInstrumentationHandler)("longtask",({entries:e})=>{const t=(0,o.getActiveSpan)();if(!t)return;const{op:r,start_timestamp:n}=(0,o.spanToJSON)(t);for(const o of e){const e=(0,b.msToSec)((0,c.browserPerformanceTimeOrigin)()+o.startTime),a=(0,b.msToSec)(o.duration);
41"navigation"===r&&n&&e<n||(0,b.startAndEndSpan)(t,e,e+a,{name:"Main UI thread blocked",op:"ui.long-task",attributes:{[i.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.ui.browser.metrics"}})}})}function C(){new PerformanceObserver(e=>{const t=(0,o.getActiveSpan)();if(t)for(const r of e.getEntries()){if(!r.scripts[0])continue;const e=(0,b.msToSec)((0,c.browserPerformanceTimeOrigin)()+r.startTime),{start_timestamp:n,op:a}=(0,o.spanToJSON)(t);if("navigation"===a&&n&&e<n)continue;const s=(0,b.msToSec)(r.duration),l={[i.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.ui.browser.metrics"},u=r.scripts[0],{invoker:p,invokerType:d,sourceURL:h,sourceFunctionName:f,sourceCharPosition:m}=u;l["browser.script.invoker"]=p,l["browser.script.invoker_type"]=d,h&&(l["code.filepath"]=h),f&&(l["code.function"]=f),-1!==m&&(l["browser.script.source_char_position"]=m),(0,b.startAndEndSpan)(t,e,e+s,{name:"Main UI thread blocked",op:"ui.long-animation-frame",attributes:l})}}).observe({type:"long-animation-frame",buffered:!0})}function P(){(0,m.addPerformanceInstrumentationHandler)("event",({entries:e})=>{const t=(0,o.getActiveSpan)();
41if(t)for(const r of e)if("click"===r.name){const e=(0,b.msToSec)((0,c.browserPerformanceTimeOrigin)()+r.startTime),n=(0,b.msToSec)(r.duration),o={name:(0,d.htmlTreeAsString)(r.target),op:`ui.interaction.${r.name}`,startTime:e,attributes:{[i.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.ui.browser.metrics"}},a=(0,p.getComponentName)(r.target);a&&(o.attributes["ui.component_name"]=a),(0,b.startAndEndSpan)(t,e,e+n,o)}})}function D(e,t){const r=(0,b.getBrowserPerformanceAPI)(),i=(0,c.browserPerformanceTimeOrigin)();if(!r?.getEntries||!i)return;const{spanStreamingEnabled:a,ignorePerformanceApiSpans:s,ignoreResourceSpans:l}=t,u=(0,b.msToSec)(i),p=r.getEntries(),{op:d,start_timestamp:f}=(0,o.spanToJSON)(e);p.slice(I).forEach(t=>{const r=(0,b.msToSec)(t.startTime),n=(0,b.msToSec)(Math.max(0,t.duration));if(!("navigation"===d&&f&&u+r<f))switch(t.entryType){case"navigation":F(e,t,u);break;case"mark":case"paint":case"measure":L(e,t,r,n,u,s);break;case"resource":U(e,t,t.name,r,n,u,l)}}),I=Math.max(p.length-1,0),function(e,t){const r=h.WINDOW.navigator;if(!r)return;const i=r.connection;i&&(i.effectiveType&&e.setAttribute(t?"network.connection.effective_type":"effectiveConnectionType",i.effectiveType),i.type&&e.setAttribute(t?"network.connection.type":"connectionType",i.type),(0,b.isMeasurementValue)(i.rtt)&&(t?e.setAttribute("network.connection.rtt",i.rtt):"pageload"===(0,o.spanToJSON)(e).op&&(0,n.setMeasurement)("connection.rtt",i.rtt,"millisecond")));(0,b.isMeasurementValue)(r.deviceMemory)&&(t?e.setAttribute("device.memory.estimated_capacity",r.deviceMemory):e.setAttribute("deviceMemory",`${r.deviceMemory} GB`));(0,b.isMeasurementValue)(r.hardwareConcurrency)&&(t?e.setAttribute("device.processor_count",r.hardwareConcurrency):e.setAttribute("hardwareConcurrency",String(r.hardwareConcurrency)))}(e,a)}function M(e,t){const r=(0,c.browserPerformanceTimeOrigin)();if(!(0,b.getBrowserPerformanceAPI)()?.getEntries||!r)return void N();const{spanStreamingEnabled:i,recordClsOnPageloadSpan:a,recordLcpOnPageloadSpan:l}=t,u=(0,b.msToSec)(r);if("pageload"===(0,o.spanToJSON)(e).op){if(function(e){const t=(0,_.getNavigationEntry)(!1);if(!t)return;const{responseStart:r,requestStart:n}=t;n<=r&&(e["ttfb.requestTime"]={value:r-n,unit:"millisecond"})}(A),i){const t=(t,r,n)=>{const i=n??`browser.web_vital.${t}.value`;e.setAttribute(i,r),E.DEBUG_BUILD&&s.debug.log("Setting web vital attribute",{[i]:r},"on pageload span")};["ttfb","fp","fcp"].forEach(e=>{A[e]&&t(e,A[e].value)}),A["ttfb.requestTime"]&&t("ttfb.requestTime",A["ttfb.requestTime"].value,"browser.web_vital.ttfb.request_time")}else a||delete A.cls,l||delete A.lcp,Object.entries(A).forEach(([t,r])=>{(0,n.setMeasurement)(t,r.value,r.unit,e)}),function(e,t){x&&t.recordLcpOnPageloadSpan&&(x.element&&e.setAttribute("lcp.element",(0,d.htmlTreeAsString)(x.element)),x.id&&e.setAttribute("lcp.id",x.id),x.url&&e.setAttribute("lcp.url",x.url.trim().slice(0,200)),null!=x.loadTime&&e.setAttribute("lcp.loadTime",x.loadTime),null!=x.renderTime&&e.setAttribute("lcp.renderTime",x.renderTime),e.setAttribute("lcp.size",x.size));O?.sources&&t.recordClsOnPageloadSpan&&O.sources.forEach((t,r)=>e.setAttribute(`cls.source.${r+1}`,(0,d.htmlTreeAsString)(t.node)))}(e,t);e.setAttribute(i?"browser.performance.time_origin":"performance.timeOrigin",u),e.setAttribute(i?"browser.performance.navigation.activation_start":"performance.activationStart",(0,v.getActivationStart)())}N()}function N(){x=void 0,O=void 0,A={}}function L(e,t,r,n,o,s){if(function(e){if("measure"===e?.entryType)try{return"Components ⚛"===e.detail.devtools.track}catch{return}}(t))return;if(["mark","measure"].includes(t.entryType)&&(0,l.stringMatchesSomePattern)(t.name,s))return;const c=(0,_.getNavigationEntry)(!1),u=(0,b.msToSec)(c?c.requestStart:0),p=o+Math.max(r,u),d=o+r,h=d+n,f={[i.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.resource.browser.metrics"};p!==d&&(f["sentry.browser.measure_happened_before_request"]=!0,f["sentry.browser.measure_start_time"]=p),function(e,t){try{const r=t.detail;if(!r)return;if("object"==typeof r){for(const[t,n]of Object.entries(r))if(n&&(0,a.isPrimitive)(n))e[`sentry.browser.measure.detail.${t}`]=n;else if(void 0!==n)try{e[`sentry.browser.measure.detail.${t}`]=JSON.stringify(n)}catch{}return}if((0,a.isPrimitive)(r))return void(e["sentry.browser.measure.detail"]=r);try{e["sentry.browser.measure.detail"]=JSON.stringify(r)}catch{}}catch{}}
41(f,t),p<=h&&(0,b.startAndEndSpan)(e,p,h,{name:t.name,op:t.entryType,attributes:f})}function F(e,t,r){["unloadEvent","redirect","domContentLoadedEvent","loadEvent","connect"].forEach(n=>{B(e,t,n,r)}),B(e,t,"secureConnection",r,"TLS/SSL"),B(e,t,"fetch",r,"cache"),B(e,t,"domainLookup",r,"DNS"),function(e,t,r){const n=r+(0,b.msToSec)(t.requestStart),o=r+(0,b.msToSec)(t.responseEnd),a=r+(0,b.msToSec)(t.responseStart);t.responseEnd&&((0,b.startAndEndSpan)(e,n,o,{op:"browser.request",name:t.name,attributes:{[i.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.ui.browser.metrics"}}),(0,b.startAndEndSpan)(e,a,o,{op:"browser.response",name:t.name,attributes:{[i.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.ui.browser.metrics"}}))}(e,t,r)}function B(e,t,r,n,o=r){const a=function(e){if("secureConnection"===e)return"connectEnd";if("fetch"===e)return"domainLookupStart";return`${e}End`}(r),s=t[a],l=t[`${r}Start`];l&&s&&(0,b.startAndEndSpan)(e,n+(0,b.msToSec)(l),n+(0,b.msToSec)(s),{op:`browser.${o}`,name:t.name,attributes:{[i.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.ui.browser.metrics",..."redirect"===r&&null!=t.redirectCount?{"http.redirect_count":t.redirectCount}:{}}})}
41function U(e,t,r,n,o,a,s){if("xmlhttprequest"===t.initiatorType||"fetch"===t.initiatorType)return;const l=t.initiatorType?`resource.${t.initiatorType}`:"resource.other";if(s?.includes(l))return;const c={[i.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.resource.browser.metrics"},p=(0,u.parseUrl)(r);p.protocol&&(c["url.scheme"]=p.protocol.split(":").pop()),p.host&&(c["server.address"]=p.host),c["url.same_origin"]=r.includes(h.WINDOW.location.origin),c[T.URL_FULL]=r,j(t,c,[["responseStatus","http.response.status_code"],["transferSize","http.response_transfer_size"],["encodedBodySize","http.response_content_length"],["decodedBodySize","http.decoded_response_content_length"],["renderBlockingStatus","resource.render_blocking_status"],["deliveryType","http.response_delivery_type"]]);const d={...c,...(0,y.resourceTimingToSpanAttributes)(t)},f=a+n,m=f+o;(0,b.startAndEndSpan)(e,f,m,{name:r.replace(h.WINDOW.location.origin,""),op:l,attributes:d})}function j(e,t,r){r.forEach(([r,n])=>{const i=e[r];null!=i&&("number"==typeof i&&i<w||"string"==typeof i)&&(t[n]=i)})}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{_sendStandaloneClsSpan:()=>d,trackClsAsStandaloneSpan:()=>p});var n=r(372),i=r(346),o=r(358),a=r(365),s=r(1536),l=r(1517),c=r(1545),u=r(1564);function p(e){let t,r=0;if(!(0,u.supportsWebVital)("layout-shift"))return;const n=(0,c.addClsInstrumentationHandler)(({metric:e})=>{const n=e.entries[e.entries.length-1];n&&(r=e.value,t=n)},!0);(0,u.listenForWebVitalReportEvents)(e,(e,i)=>{d(r,t,i,e),n()})}function d(e,t,r,c){s.DEBUG_BUILD&&o.debug.log(`Sending CLS span (${e})`);const p=t?(0,u.msToSec)(((0,a.browserPerformanceTimeOrigin)()||0)+t.startTime):(0,a.timestampInSeconds)(),d=(0,i.getCurrentScope)().getScopeData().transactionName,h=t?(0,l.htmlTreeAsString)(t.sources[0]?.node):"Layout shift",f={[n.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.http.browser.cls",[n.SEMANTIC_ATTRIBUTE_SENTRY_OP]:"ui.webvital.cls",[n.SEMANTIC_ATTRIBUTE_EXCLUSIVE_TIME]:0,"sentry.pageload.span_id":r,"sentry.report_event":c};t?.sources&&t.sources.forEach((e,t)=>{f[`cls.source.${t+1}`]=(0,l.htmlTreeAsString)(e.node)});const m=(0,u.startStandaloneWebVitalSpan)({name:h,transaction:d,attributes:f,startTime:p});m&&(m.addEvent("cls",{[n.SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_UNIT]:"",[n.SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_VALUE]:e}),m.end(p))}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{addClsInstrumentationHandler:()=>y,addInpInstrumentationHandler:()=>_,addLcpInstrumentationHandler:()=>b,addPerformanceInstrumentationHandler:()=>S,addTtfbInstrumentationHandler:()=>v,isPerformanceEventTiming:()=>R});var n=r(358),i=r(364),o=r(1536),a=r(1546),s=r(1558),l=r(1561),c=r(1555),u=r(1563);const p={},d={};let h,f,m,g;function y(e,t=!1){return I("cls",e,T,h,t)}function b(e,t=!1){return I("lcp",e,w,f,t)}function v(e){return I("ttfb",e,x,m)}function _(e){return I("inp",e,O,g)}function S(e,t){return A(e,t),d[e]||(!function(e){const t={};"event"===e&&(t.durationThreshold=0);(0,c.observe)(e,t=>{E(e,{entries:t})},t)}(e),d[e]=!0),k(e,t)}function E(e,t){const r=p[e];if(r?.length)for(const a of r)try{a(t)}catch(t){o.DEBUG_BUILD&&n.debug.error(`Error while triggering instrumentation handler.\nType: ${e}\nName: ${(0,i.getFunctionName)(a)}\nError:`,t)}}function T(){return(0,a.onCLS)(e=>{E("cls",{metric:e}),h=e},{reportAllChanges:!0})}function w(){return(0,l.onLCP)(e=>{E("lcp",{metric:e}),f=e},{reportAllChanges:!0})}function x(){return(0,u.onTTFB)(e=>{E("ttfb",{metric:e}),m=e})}function O(){return(0,s.onINP)(e=>{E("inp",{metric:e}),g=e})}function I(e,t,r,n,i=!1){let o;return A(e,t),d[e]||(o=r(),d[e]=!0),n&&t({metric:n}),k(e,t,i?o:void 0)}function A(e,t){p[e]=p[e]||[],p[e].push(t)}function k(e,t,r){return()=>{r&&r();const n=p[e];if(!n)return;const i=n.indexOf(t);-1!==i&&n.splice(i,1)}}function R(e){return"duration"in e}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{CLSThresholds:()=>d,onCLS:()=>h});var n=r(1514),i=r(1547),o=r(1548),a=r(1551),s=r(1553),l=r(1554),c=r(1555),u=r(1523),p=r(1556);const d=[.1,.25],h=(e,t={})=>{(0,p.onFCP)((0,u.runOnce)(()=>{const r=(0,a.initMetric)("CLS",0);let u;const p=(0,o.getVisibilityWatcher)(),h=(0,s.initUnique)(t,l.LayoutShiftManager),f=e=>{for(const t of e)h._processEntry(t);h._sessionValue>r.value&&(r.value=h._sessionValue,r.entries=h._sessionEntries,u(
41))},m=(0,c.observe)("layout-shift",f);m&&(u=(0,i.bindReporter)(e,r,d,t.reportAllChanges),p.onHidden(()=>{f(m.takeRecords()),u(!0)}),n.WINDOW?.setTimeout?.(u))}))}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{bindReporter:()=>n});const n=(e,t,r,n)=>{let i,o;return a=>{t.value>=0&&(a||n)&&(o=t.value-(i??0),(o||void 0===i)&&(i=t.value,t.delta=o,t.rating=((e,t)=>e>t[1]?"poor":e>t[0]?"needs-improvement":"good")(t.value,r),e(t)))}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{getVisibilityWatcher:()=>c});var n=r(1514),i=r(1549),o=r(1522);let a=-1;const s=new Set,l=e=>{if(function(e){return"pagehide"===e.type||"hidden"===n.WINDOW.document?.visibilityState}(e)&&a>-1){if("visibilitychange"===e.type||"pagehide"===e.type)for(const e of s)e();isFinite(a)||(a="visibilitychange"===e.type?e.timeStamp:0,(0,o.removePageListener)("prerenderingchange",l,!0))}},c=()=>{if(n.WINDOW.document&&a<0){const e=(0,i.getActivationStart)(),t=n.WINDOW.document.prerendering?void 0:globalThis.performance.getEntriesByType("visibility-state").filter(t=>"hidden"===t.name&&t.startTime>e)[0]?.startTime;a=t??("hidden"!==n.WINDOW.document?.visibilityState||n.WINDOW.document?.prerendering?1/0:0),(0,o.addPageListener)("visibilitychange",l,!0),(0,o.addPageListener)("pagehide",l,!0),(0,o.addPageListener)("prerenderingchange",l,!0)}return{get firstHiddenTime(){return a},onHidden(e){s.add(e)}}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{getActivationStart:()=>i});var n=r(1550);const i=()=>{const e=(0,n.getNavigationEntry)();return e?.activationStart??0}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{getNavigationEntry:()=>i});var n=r(1514);const i=(e=!0)=>{const t=n.WINDOW.performance?.getEntriesByType?.("navigation")[0];if(!e||t&&t.responseStart>0&&t.responseStart<performance.now())return t}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{initMetric:()=>s});var n=r(1514),i=r(1552),o=r(1549),a=r(1550);const s=(e,t=-1)=>{const r=(0,a.getNavigationEntry)();let s="navigate";r&&(n.WINDOW.document?.prerendering||(0,o.getActivationStart)()>0?s="prerender":n.WINDOW.document?.wasDiscarded?s="restore":r.type&&(s=r.type.replace(/_/g,"-")));return{name:e,value:t,rating:"good",delta:0,entries:[],id:(0,i.generateUniqueID)(),navigationType:s}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{generateUniqueID:()=>n});const n=()=>`v5-${Date.now()}-${Math.floor(8999999999999*Math.random())+1e12}`},(e,t,r)=>{"use strict";r.r(t),r.d(t,{initUnique:()=>i});const n=new WeakMap;function i(e,t){try{return n.get(e)||n.set(e,new t),n.get(e)}catch(e){return new t}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{LayoutShiftManager:()=>n});class n{constructor(){this._sessionValue=0,this._sessionEntries=[]}_processEntry(e){if(e.hadRecentInput)return;const t=this._sessionEntries[0],r=this._sessionEntries[this._sessionEntries.length-1];this._sessionValue&&t&&r&&e.startTime-r.startTime<1e3&&e.startTime-t.startTime<5e3?(this._sessionValue+=e.value,this._sessionEntries.push(e)):(this._sessionValue=e.value,this._sessionEntries=[e]),this._onAfterProcessingUnexpectedShift?.(e)}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{observe:()=>n});const n=(e,t,r={})=>{try{if(PerformanceObserver.supportedEntryTypes.includes(e)){const n=new PerformanceObserver(e=>{Promise.resolve().then(()=>{t(e.getEntries())})});return n.observe({type:e,buffered:!0,...r}),n}}catch{}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{FCPThresholds:()=>c,onFCP:()=>u});var n=r(1547),i=r(1549),o=r(1548),a=r(1551),s=r(1555),l=r(1557);const c=[1800,3e3],u=(e,t={})=>{(0,l.whenActivated)(()=>{const r=(0,o.getVisibilityWatcher)(),l=(0,a.initMetric)("FCP");let u;const p=(0,s.observe)("paint",e=>{for(const t of e)"first-contentful-paint"===t.name&&(p.disconnect(),t.startTime<r.firstHiddenTime&&(l.value=Math.max(t.startTime-(0,i.getActivationStart)(),0),l.entries.push(t),u(!0)))});p&&(u=(0,n.bindReporter)(e,l,c,t.reportAllChanges))})}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{whenActivated:()=>i});var n=r(1514);const i=e=>{n.WINDOW.document?.prerendering?addEventListener("prerenderingchange",()=>e(),!0):e()}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{INPThresholds:()=>d,onINP:()=>h});var n=r(1547),i=r(1548),o=r(1551),a=r(1553),s=r(1559),l=r(1555),c=r(1560),u=r(1557),p=r(1521);const d=[200,500],h=(e,t={})=>
41{if(!globalThis.PerformanceEventTiming||!("interactionId"in PerformanceEventTiming.prototype))return;const r=(0,i.getVisibilityWatcher)();(0,u.whenActivated)(()=>{(0,c.initInteractionCountPolyfill)();const i=(0,o.initMetric)("INP");let u;const h=(0,a.initUnique)(t,s.InteractionManager),f=e=>{(0,p.whenIdleOrHidden)(()=>{for(const t of e)h._processEntry(t);const t=h._estimateP98LongestInteraction();t&&t._latency!==i.value&&(i.value=t._latency,i.entries=t.entries,u())})},m=(0,l.observe)("event",f,{durationThreshold:t.durationThreshold??40});u=(0,n.bindReporter)(e,i,d,t.reportAllChanges),m&&(m.observe({type:"first-input",buffered:!0}),r.onHidden(()=>{f(m.takeRecords()),u(!0)}))})}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{InteractionManager:()=>o});var n=r(1560);let i=0;class o{constructor(){this._longestInteractionList=[],this._longestInteractionMap=new Map}_resetInteractions(){i=(0,n.getInteractionCount)(),this._longestInteractionList.length=0,this._longestInteractionMap.clear()}_estimateP98LongestInteraction(){const e=Math.min(this._longestInteractionList.length-1,Math.floor(((0,n.getInteractionCount)()-i)/50));return this._longestInteractionList[e]}_processEntry(e){if(this._onBeforeProcessingEntry?.(e),!e.interactionId&&"first-input"!==e.entryType)return;const t=this._longestInteractionList.at(-1);let r=this._longestInteractionMap.get(e.interactionId);if(r||this._longestInteractionList.length<10||e.duration>t._latency){if(r?e.duration>r._latency?(r.entries=[e],r._latency=e.duration):e.duration===r._latency&&e.startTime===r.entries[0].startTime&&r.entries.push(e):(r={id:e.interactionId,entries:[e],_latency:e.duration},this._longestInteractionMap.set(r.id,r),this._longestInteractionList.push(r)),this._longestInteractionList.sort((e,t)=>t._latency-e._latency),this._longestInteractionList.length>10){const e=this._longestInteractionList.splice(10);for(const t of e)this._longestInteractionMap.delete(t.id)}this._onAfterProcessingINPCandidate?.(r)}}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{getInteractionCount:()=>c,initInteractionCountPolyfill:()=>u});var n=r(1555);let i=0,o=1/0,a=0;const s=e=>{e.forEach(e=>{e.interactionId&&(o=Math.min(o,e.interactionId),a=Math.max(a,e.interactionId),i=a?(a-o)/7+1:0)})};let l;const c=()=>l?i:performance.interactionCount||0,u=()=>{"interactionCount"in performance||l||(l=(0,n.observe)("event",s,{type:"event",buffered:!0,durationThreshold:0}))}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{LCPThresholds:()=>f,onLCP:()=>m});var n=r(1547),i=r(1549),o=r(1548),a=r(1522),s=r(1551),l=r(1553),c=r(1562),u=r(1555),p=r(1523),d=r(1557),h=r(1521);const f=[2500,4e3],m=(e,t={})=>{(0,d.whenActivated)(()=>{const r=(0,o.getVisibilityWatcher)(),d=(0,s.initMetric)("LCP");let m;const g=(0,l.initUnique)(t,c.LCPEntryManager),y=e=>{t.reportAllChanges||(e=e.slice(-1));for(const t of e)g._processEntry(t),t.startTime<r.firstHiddenTime&&(d.value=Math.max(t.startTime-(0,i.getActivationStart)(),0),d.entries=[t],m())},b=(0,u.observe)("largest-contentful-paint",y);if(b){m=(0,n.bindReporter)(e,d,f,t.reportAllChanges);const r=(0,p.runOnce)(()=>{y(b.takeRecords()),b.disconnect(),m(!0)}),i=e=>{e.isTrusted&&((0,h.whenIdleOrHidden)(r),(0,a.removePageListener)(e.type,i,{capture:!0}))};for(const e of["keydown","click","visibilitychange"])(0,a.addPageListener)(e,i,{capture:!0})}})}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{LCPEntryManager:()=>n});class n{_processEntry(e){this._onBeforeProcessingEntry?.(e)}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{TTFBThresholds:()=>c,onTTFB:()=>p});var n=r(1514),i=r(1547),o=r(1549),a=r(1550),s=r(1551),l=r(1557);const c=[800,1800],u=e=>{n.WINDOW.document?.prerendering?(0,l.whenActivated)(()=>u(e)):"complete"!==n.WINDOW.document?.readyState?addEventListener("load",()=>u(e),!0):setTimeout(e)},p=(e,t={})=>{const r=(0,s.initMetric)("TTFB"),n=(0,i.bindReporter)(e,r,c,t.reportAllChanges);u(()=>{const e=(0,a.getNavigationEntry)();e&&(r.value=Math.max(e.responseStart-(0,o.getActivationStart)(),0),r.entries=[e],n(!0))})}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{extractNetworkProtocol:()=>h,getBrowserPerformanceAPI:()=>p,isMeasurementValue:()=>l,listenForWebVitalReportEvents:()=>m,msToSec:()=>d,startAndEndSpan:()=>c,startStandaloneWebVitalSpan:()=>u,supportsWebVital:()=>f});var n=r(371),i=r(346),o=r(379),a=r(1514),s=r(1565);function l(e){return"number"==typeof e&&isFinite(e)}function c(e,t,r,{...i}){const a=(0,o.spanToJSON)(e).start_timestamp;return a&&a>t&&"function"==typeof e.updateStartTime&&e.updateStartTime(t),(0,n.withActiveSpan)(e,()=>{const e=(0,n.startInactiveSpan)({startTime:t,...i});return e&&e.end(r),e})}function u(e){const t=(0,i.getClient)();if(!t)return;const{name:r,transaction:o,attributes:s,startTime:l}=e,{release:c,environment:u}=t.getOptions(),{userInfo:p}=t.getDataCollectionOptions(),d=t.getIntegrationByName("Replay"),h=d?.getReplayId(),f=(0,i.getCurrentScope)(),m=f.getUser(),g=void 0!==m?m.email||m.id||m.ip_address:void 0;let y;try{y=f.getScopeData().contexts.profile.profile_id}catch{}const b={release:c,environment:u,user:g||void 0,profile_id:y||void 0,replay_id:h||void 0,transaction:o,"user_agent.original":a.WINDOW.navigator?.userAgent,"client.address":p?"{{auto}}":void 0,...s};return(0,n.startInactiveSpan)({name:r,attributes:b,startTime:l,experimental:{standalone:!0}})}function p(){return a.WINDOW.addEventListener&&a.WINDOW.performance}function d(e){return e/1e3}function h(e){let t="unknown",r="unknown",n="";for(const i of e){if("/"===i){[t,r]=e.split("/");break}if(!isNaN(Number(i))){t="h"===n?"http":n,r=e.split(n)[1];break}n+=i}
41return n===e&&(t=n),{name:t,version:r}}function f(e){try{return PerformanceObserver.supportedEntryTypes.includes(e)}catch{return!1}}function m(e,t){let r,n=!1;function i(e){!n&&r&&t(e,r.spanContext().spanId,r),n=!0}(0,s.onHidden)(()=>{i("pagehide")});const o=e.on("beforeStartNavigationSpan",(e,t)=>{t?.isRedirect||(i("navigation"),o(),a())}),a=e.on("afterStartPageLoadSpan",e=>{r=e,a()})}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{onHidden:()=>o});var n=r(1514),i=r(1522);const o=e=>{const t=t=>{"pagehide"!==t.type&&"hidden"!==n.WINDOW.document?.visibilityState||e(t)};(0,i.addPageListener)("visibilitychange",t,{capture:!0,once:!0}),(0,i.addPageListener)("pagehide",t,{capture:!0,once:!0})}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{MAX_PLAUSIBLE_LCP_DURATION:()=>p,_sendStandaloneLcpSpan:()=>f,isValidLcpMetric:()=>d,trackLcpAsStandaloneSpan:()=>h});var n=r(372),i=r(346),o=r(358),a=r(365),s=r(1536),l=r(1517),c=r(1545),u=r(1564);const p=6e4;function d(e){return null!=e&&e>0&&e<=p}function h(e){let t,r=0;if(!(0,u.supportsWebVital)("largest-contentful-paint"))return;const n=(0,c.addLcpInstrumentationHandler)(({metric:e})=>{const n=e.entries[e.entries.length-1];n&&d(e.value)&&(r=e.value,t=n)},!0);(0,u.listenForWebVitalReportEvents)(e,(e,i)=>{f(r,t,i,e),n()})}function f(e,t,r,c){if(!d(e))return;s.DEBUG_BUILD&&o.debug.log(`Sending LCP span (${e})`);const p=(0,u.msToSec)(((0,a.browserPerformanceTimeOrigin)()||0)+(t?.startTime||0)),h=(0,i.getCurrentScope)().getScopeData().transactionName,f=t?(0,l.htmlTreeAsString)(t.element):"Largest contentful paint",m={[n.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.http.browser.lcp",[n.SEMANTIC_ATTRIBUTE_SENTRY_OP]:"ui.webvital.lcp",[n.SEMANTIC_ATTRIBUTE_EXCLUSIVE_TIME]:0,"sentry.pageload.span_id":r,"sentry.report_event":c};t&&(t.element&&(m["lcp.element"]=(0,l.htmlTreeAsString)(t.element)),t.id&&(m["lcp.id"]=t.id),t.url&&(m["lcp.url"]=t.url),null!=t.loadTime&&(m["lcp.loadTime"]=t.loadTime),null!=t.renderTime&&(m["lcp.renderTime"]=t.renderTime),null!=t.size&&(m["lcp.size"]=t.size));const g=(0,u.startStandaloneWebVitalSpan)({name:f,transaction:h,attributes:m,startTime:p});g&&(g.addEvent("lcp",{[n.SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_UNIT]:"millisecond",[n.SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_VALUE]:e}),g.end(p))}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{resourceTimingToSpanAttributes:()=>a});var n=r(365),i=r(1564);function o(e){return e?(((0,n.browserPerformanceTimeOrigin)()||performance.timeOrigin)+e)/1e3:e}function a(e){const t={};if(null!=e.nextHopProtocol){const{name:r,version:n}=(0,i.extractNetworkProtocol)(e.nextHopProtocol);t["network.protocol.version"]=n,t["network.protocol.name"]=r}return(0,n.browserPerformanceTimeOrigin)()||(0,i.getBrowserPerformanceAPI)()?.timeOrigin?(r={...t,"http.request.redirect_start":o(e.redirectStart),"http.request.redirect_end":o(e.redirectEnd),"http.request.worker_start":o(e.workerStart),"http.request.fetch_start":o(e.fetchStart),"http.request.domain_lookup_start":o(e.domainLookupStart),"http.request.domain_lookup_end":o(e.domainLookupEnd),"http.request.connect_start":o(e.connectStart),"http.request.secure_connection_start":o(e.secureConnectionStart),"http.request.connection_end":o(e.connectEnd),"http.request.request_start":o(e.requestStart),"http.request.response_start":o(e.responseStart),"http.request.response_end":o(e.responseEnd),"http.request.time_to_first_byte":null!=e.responseStart?e.responseStart/1e3:void 0},Object.fromEntries(Object.entries(r).filter(([,e])=>null!=e))):t;var r}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{fetchStreamPerformanceIntegration:()=>p});var n=r(371),i=r(372),o=r(1468),a=r(1508),s=r(1511);const l=new WeakMap,c=new WeakMap,u=["text/event-stream","application/x-ndjson","application/stream+json"],p=(0,o.defineIntegration)(()=>({name:"FetchStreamPerformance",setup(){(0,a.addFetchEndInstrumentationHandler)(e=>{if(e.response){const t=l.get(e.response);if(t&&e.endTimestamp){t.end(e.endTimestamp);const r=c.get(e.response);r&&clearTimeout(r)}}}),(0,a.addFetchInstrumentationHandler)(e=>{if(e.endTimestamp&&e.response){const t=e.response.headers?.get("content-type")||"";if(e.response.headers?.get("content-length")||!u.some(e=>
41t.startsWith(e)))return;const r=e.fetchData?.url||"",o=e.fetchData?.method||"GET",a=(0,s.parseStringToURLObject)(r),p=r.startsWith("data:")?(0,s.stripDataUrlContent)(r):a?(0,s.getSanitizedUrlStringFromUrlObject)(a):r,d=(0,n.startInactiveSpan)({name:`${o} ${p}`,startTime:e.endTimestamp,attributes:{url:(0,s.stripDataUrlContent)(r),"http.method":o,type:"fetch",[i.SEMANTIC_ATTRIBUTE_SENTRY_OP]:"http.client.stream",[i.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.http.browser.stream"}});l.set(e.response,d);const h=setTimeout(()=>{d.isRecording()&&d.end()},9e4);c.set(e.response,h)}})}}))},(e,t,r)=>{"use strict";r.r(t),r.d(t,{WEB_VITALS_INTEGRATION_NAME:()=>l,webVitalsIntegration:()=>c});var n=r(1468),i=r(377),o=r(1543),a=r(1570),s=r(1571);const l="WebVitals",c=(0,n.defineIntegration)((e={})=>{const t=new Set(e.ignore??[]);return{name:l,setup(r){const n=(0,i.hasSpanStreamingEnabled)(r),{enableStandaloneClsSpans:l,enableStandaloneLcpSpans:c}=e._experiments??{},u=n||t.has("cls")?void 0:l||!1,p=n||t.has("lcp")?void 0:c||!1,d=(0,o.startTrackingWebVitals)({recordClsStandaloneSpans:u,recordLcpStandaloneSpans:p,client:r}),h=new WeakSet;r.on("afterStartPageLoadSpan",e=>{h.add(e)}),r.on("spanEnd",e=>{h.delete(e)&&(d(),(0,o.addWebVitalsToSpan)(e,{recordClsOnPageloadSpan:!1===u,recordLcpOnPageloadSpan:!1===p,spanStreamingEnabled:n}))}),n?(t.has("lcp")||(0,a.trackLcpAsSpan)(r),t.has("cls")||(0,a.trackClsAsSpan)(r),t.has("inp")||(0,a.trackInpAsSpan)()):t.has("inp")||(0,s.startTrackingINP)()},afterAllSetup(){t.has("inp")||(0,s.registerInpInteractionListener)()}}})},(e,t,r)=>{"use strict";r.r(t),r.d(t,{_emitWebVitalSpan:()=>y,_sendClsSpan:()=>S,_sendInpSpan:()=>T,_sendLcpSpan:()=>v,trackClsAsSpan:()=>_,trackInpAsSpan:()=>E,trackLcpAsSpan:()=>b});var n=r(371),i=r(372),o=r(346),a=r(379),s=r(358),l=r(365),c=r(1536),u=r(1517),p=r(1514),d=r(1571),h=r(1545),f=r(1566),m=r(1564),g=r(1512);function y(e){const{name:t,op:r,origin:s,metricName:l,value:c,attributes:u,parentSpan:d,reportEvent:h,startTime:f,endTime:m}=e,y=(0,o.getCurrentScope)().getScopeData().transactionName,b={[i.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:s,[i.SEMANTIC_ATTRIBUTE_SENTRY_OP]:r,[i.SEMANTIC_ATTRIBUTE_EXCLUSIVE_TIME]:0,[`browser.web_vital.${l}.value`]:c,[g.SENTRY_TRANSACTION]:y,[g.SENTRY_SEGMENT_NAME]:y,"user_agent.original":p.WINDOW.navigator?.userAgent,...u};d&&"pageload"===(0,a.spanToStreamedSpanJSON)(d).attributes?.[i.SEMANTIC_ATTRIBUTE_SENTRY_OP]&&(b["sentry.pageload.span_id"]=d.spanContext().spanId),h&&(b[`browser.web_vital.${l}.report_event`]=h);const v=(0,n.startInactiveSpan)({name:t,attributes:b,startTime:f,parentSpan:d});v&&v.end(m??f)}function b(e){let t,r=0;if(!(0,m.supportsWebVital)("largest-contentful-paint"))return;const n=(0,h.addLcpInstrumentationHandler)(({metric:e})=>{const n=e.entries[e.entries.length-1];n&&(0,f.isValidLcpMetric)(e.value)&&(r=e.value,t=n)},!0);(0,m.listenForWebVitalReportEvents)(e,(e,i,o)=>{v(r,t,o,e),n()})}function v(e,t,r,n){if(!(0,f.isValidLcpMetric)(e))return;c.DEBUG_BUILD&&s.debug.log(`Sending LCP span (${e})`);const i=(0,l.browserPerformanceTimeOrigin)()||0,o=(0,m.msToSec)(i),a=(0,m.msToSec)(i+(t?.startTime||0)),p=t?(0,u.htmlTreeAsString)(t.element):"Largest contentful paint",d={};t?.element&&(d["browser.web_vital.lcp.element"]=(0,u.htmlTreeAsString)(t.element)),t?.id&&(d["browser.web_vital.lcp.id"]=t.id),t?.url&&(d["browser.web_vital.lcp.url"]=t.url),null!=t?.loadTime&&(d["browser.web_vital.lcp.load_time"]=t.loadTime),null!=t?.renderTime&&(d["browser.web_vital.lcp.render_time"]=t.renderTime),null!=t?.size&&(d["browser.web_vital.lcp.size"]=t.size),y({name:p,op:"ui.webvital.lcp",origin:"auto.http.browser.lcp",metricName:"lcp",value:e,attributes:d,parentSpan:r,reportEvent:n,startTime:o,endTime:a})}function _(e){let t,r=0;if(!(0,m.supportsWebVital)("layout-shift"))return;const n=(0,h.addClsInstrumentationHandler)(({metric:e})=>{const n=e.entries[e.entries.length-1];n&&(r=e.value,t=n)},!0);(0,m.listenForWebVitalReportEvents)(e,(e,i,o)=>{S(r,t,o,e),n()})}function S(e,t,r,n){c.DEBUG_BUILD&&s.debug.log(`Sending CLS span (${e})`);const i=t?(0,m.msToSec)(((0,l.browserPerformanceTimeOrigin)()||0)+t.startTime):(0,l.timestampInSeconds)(),o=t?(0,u.htmlTreeAsString)(t.sources[0]?.node):"Layout shift",a={};
41t?.sources&&t.sources.forEach((e,t)=>{a[`browser.web_vital.cls.source.${t+1}`]=(0,u.htmlTreeAsString)(e.node)}),y({name:o,op:"ui.webvital.cls",origin:"auto.http.browser.cls",metricName:"cls",value:e,attributes:a,parentSpan:r,reportEvent:n,startTime:i})}function E(){if(!(0,m.getBrowserPerformanceAPI)()||!(0,l.browserPerformanceTimeOrigin)())return;(0,h.addInpInstrumentationHandler)(({metric:e})=>{if(null==e.value)return;if((0,m.msToSec)(e.value)>d.MAX_PLAUSIBLE_INP_DURATION)return;const t=e.entries.find(t=>t.duration===e.value&&d.INP_ENTRY_MAP[t.name]);t&&T(e.value,t)})}function T(e,t){c.DEBUG_BUILD&&s.debug.log(`Sending INP span (${e})`);const r=(0,m.msToSec)((0,l.browserPerformanceTimeOrigin)()+t.startTime),n=(0,m.msToSec)(e),p=d.INP_ENTRY_MAP[t.name],h=(0,d.getCachedInteractionContext)(t.interactionId),f=(0,a.getActiveSpan)(),b=f?(0,a.getRootSpan)(f):void 0,v=h?.span||b,_=v?(0,a.spanToStreamedSpanJSON)(v).name:(0,o.getCurrentScope)().getScopeData().transactionName;y({name:h?.elementName||(0,u.htmlTreeAsString)(t.target),op:`ui.interaction.${p}`,origin:"auto.http.browser.inp",metricName:"inp",value:e,attributes:{[i.SEMANTIC_ATTRIBUTE_EXCLUSIVE_TIME]:t.duration,[g.SENTRY_TRANSACTION]:_,[g.SENTRY_SEGMENT_NAME]:_},startTime:r,endTime:r+n,parentSpan:v})}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{INP_ENTRY_MAP:()=>y,MAX_PLAUSIBLE_INP_DURATION:()=>m,_onInp:()=>v,_trackINP:()=>b,getCachedInteractionContext:()=>_,registerInpInteractionListener:()=>S,startTrackingINP:()=>g});var n=r(372),i=r(346),o=r(379),a=r(1482),s=r(365),l=r(1517),c=r(1514),u=r(1545),p=r(1564);const d=[],h=new Map,f=new Map,m=60;function g(){if((0,p.getBrowserPerformanceAPI)()&&(0,s.browserPerformanceTimeOrigin)()){const e=b();return()=>{e()}}return()=>{}}const y={click:"click",pointerdown:"click",pointerup:"click",mousedown:"click",mouseup:"click",touchstart:"click",touchend:"click",mouseover:"hover",mouseout:"hover",mouseenter:"hover",mouseleave:"hover",pointerover:"hover",pointerout:"hover",pointerenter:"hover",pointerleave:"hover",dragstart:"drag",dragend:"drag",drag:"drag",dragenter:"drag",dragleave:"drag",dragover:"drag",drop:"drag",keydown:"press",keyup:"press",keypress:"press",input:"press"};function b(){return(0,u.addInpInstrumentationHandler)(v)}const v=({metric:e})=>{if(null==e.value)return;const t=(0,p.msToSec)(e.value);if(t>m)return;const r=e.entries.find(t=>t.duration===e.value&&y[t.name]);if(!r)return;const{interactionId:a}=r,c=y[r.name],u=(0,p.msToSec)((0,s.browserPerformanceTimeOrigin)()+r.startTime),d=(0,o.getActiveSpan)(),f=d?(0,o.getRootSpan)(d):void 0,g=null!=a?h.get(a):void 0,b=g?.span||f,v=b?(0,o.spanToJSON)(b).description:(0,i.getCurrentScope)().getScopeData().transactionName,_=g?.elementName||(0,l.htmlTreeAsString)(r.target),S={[n.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.http.browser.inp",[n.SEMANTIC_ATTRIBUTE_SENTRY_OP]:`ui.interaction.${c}`,[n.SEMANTIC_ATTRIBUTE_EXCLUSIVE_TIME]:r.duration},E=(0,p.startStandaloneWebVitalSpan)({name:_,transaction:v,attributes:S,startTime:u});E&&(E.addEvent("inp",{[n.SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_UNIT]:"millisecond",[n.SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_VALUE]:e.value}),E.end(u+t))};function _(e){return null!=e?h.get(e):void 0}function S(){const e=Object.keys(y);function t(e){const t=e.target;if(!t)return;const r=(0,l.htmlTreeAsString)(t),n=Math.round(e.timeStamp);if(f.set(n,r),f.size>50){const e=f.keys().next().value;void 0!==e&&f.delete(e)}}(0,a.isBrowser)()&&e.forEach(e=>{c.WINDOW.addEventListener(e,t,{capture:!0,passive:!0})});const r=({entries:e})=>{const t=(0,o.getActiveSpan)(),r=t&&(0,o.getRootSpan)(t);e.forEach(e=>{if(!(0,u.isPerformanceEventTiming)(e))return;const t=e.interactionId;if(null==t)return;if(h.has(t))return;const n=e.target?(0,l.htmlTreeAsString)(e.target):function(e){const t=Math.round(e.startTime);let r=f.get(t);if(!r)for(let e=-5;e<=5;e++){const n=f.get(t+e);if(n){r=n;break}}return r||"<unknown>"}(e);if(d.length>10){const e=d.shift();h.delete(e)}d.push(t),h.set(t,{span:r,elementName:n})})};(0,u.addPerformanceInstrumentationHandler)("event",r),(0,u.addPerformanceInstrumentationHandler)("first-input",r)}},(e,t,r)=>{"use strict";
41r.r(t),r.d(t,{registerBackgroundTabDetection:()=>l});var n=r(381),i=r(379),o=r(358),a=r(1518),s=r(1502);function l(){s.WINDOW.document?s.WINDOW.document.addEventListener("visibilitychange",()=>{const e=(0,i.getActiveSpan)();if(!e)return;const t=(0,i.getRootSpan)(e);if(s.WINDOW.document.hidden&&t){const e="cancelled",{op:r,status:s}=(0,i.spanToJSON)(t);a.DEBUG_BUILD&&o.debug.log(`[Tracing] Transaction: ${e} -> since tab moved to the background, op: ${r}`),s||t.setStatus({code:n.SPAN_STATUS_ERROR,message:e}),t.setAttribute("sentry.cancellation_reason","document.hidden"),t.end()}}):a.DEBUG_BUILD&&o.debug.warn("[Tracing] Could not set up background tab detection due to lack of global document")}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{PREVIOUS_TRACE_KEY:()=>u,PREVIOUS_TRACE_MAX_DURATION:()=>c,PREVIOUS_TRACE_TMP_SPAN_ATTRIBUTE:()=>p,addPreviousTraceSpanLink:()=>h,getPreviousTraceFromSessionStorage:()=>m,linkTraces:()=>d,spanContextSampled:()=>g,storePreviousTraceInSessionStorage:()=>f});var n=r(372),i=r(346),o=r(379),a=r(358),s=r(1518),l=r(1502);const c=3600,u="sentry_previous_trace",p="sentry.previous_trace";function d(e,{linkPreviousTrace:t,consistentTraceSampling:r}){const a="session-storage"===t;let s=a?m():void 0;e.on("spanStart",e=>{if((0,o.getRootSpan)(e)!==e)return;const t=(0,i.getCurrentScope)().getPropagationContext();s=h(s,e,t),a&&f(s)});let l=!0;r&&e.on("beforeSampling",e=>{if(!s)return;const t=(0,i.getCurrentScope)(),r=t.getPropagationContext();l&&r.parentSpanId?l=!1:(t.setPropagationContext({...r,dsc:{...r.dsc,sample_rate:String(s.sampleRate),sampled:String(g(s.spanContext))},sampleRand:s.sampleRand}),e.parentSampled=g(s.spanContext),e.parentSampleRate=s.sampleRate,e.spanAttributes={...e.spanAttributes,[n.SEMANTIC_ATTRIBUTE_SENTRY_PREVIOUS_TRACE_SAMPLE_RATE]:s.sampleRate})})}function h(e,t,r){const i=(0,o.spanToJSON)(t);const l={spanContext:t.spanContext(),startTimestamp:i.start_timestamp,sampleRate:function(){try{const e=Number(i.data?.[n.SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE]??r.dsc?.sample_rate);return Number.isNaN(e)?0:e}catch{return 0}}(),sampleRand:r.sampleRand};if(!e)return l;const u=e.spanContext;return u.traceId===i.trace_id?e:(Date.now()/1e3-e.startTimestamp<=c&&(s.DEBUG_BUILD&&a.debug.log(`Adding previous_trace \`${JSON.stringify(u)}\` link to span \`${JSON.stringify({op:i.op,...t.spanContext()})}\``),t.addLink({context:u,attributes:{[n.SEMANTIC_LINK_ATTRIBUTE_LINK_TYPE]:"previous_trace"}}),t.setAttribute(p,`${u.traceId}-${u.spanId}-${g(u)?1:0}`)),l)}function f(e){try{l.WINDOW.sessionStorage.setItem(u,JSON.stringify(e))}catch(e){s.DEBUG_BUILD&&a.debug.warn("Could not store previous trace in sessionStorage",e)}}function m(){try{const e=l.WINDOW.sessionStorage?.getItem(u);return JSON.parse(e)}catch{return}}function g(e){return 1===e.traceFlags}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{defaultRequestInstrumentationOptions:()=>w,instrumentOutgoingRequests:()=>x,shouldAttachHeaders:()=>A});var n=r(387),i=r(381),o=r(371),a=r(372),s=r(346),l=r(375),c=r(379),u=r(1575),p=r(1576),d=r(377),h=r(1508),f=r(361),m=r(365),g=r(1511),y=r(1503),b=r(1545),v=r(1516),_=r(1577),S=r(1567),E=r(1578),T=r(1512);const w={traceFetch:!0,traceXHR:!0,enableHTTPTimings:!0,trackFetchStreamPerformance:!1};function x(e,t){const{traceFetch:r,traceXHR:f,shouldCreateSpanForRequest:m,enableHTTPTimings:y,tracePropagationTargets:b,onRequestSpanStart:S,onRequestSpanEnd:x}={...w,...t},O="function"==typeof m?m:e=>!0,k=e=>A(e,b),R={},C=e.getOptions().propagateTraceparent;r&&(0,h.addFetchInstrumentationHandler)(t=>{const r=(0,p.instrumentFetchRequest)(t,O,k,R,{propagateTraceparent:C,onRequestSpanEnd:x});if(r){const n=(0,E.getFullURL)(t.fetchData.url),i=n?(0,g.parseUrl)(n).host:void 0,o=n?(0,g.stripDataUrlContent)(n):void 0;r.setAttributes({[T.HTTP_URL]:o,[T.URL_FULL]:o,"server.address":i}),y&&I(r,e),S?.(r,{headers:t.headers})}}),f&&(0,v.addXhrInstrumentationHandler)(t=>{const r=function(e,t,r,p,h,f){const m=e.xhr,y=m?.[v.SENTRY_XHR_DATA_KEY];if(!m||m.__sentry_own_request__||!y)return;const{url:b,method:S}=y,w=(0,l.hasSpansEnabled)()&&t(b);if(e.endTimestamp){const t=m.__sentry_xhr_span_id__;if(!t)return;const r=p[t];return void(r&&(w&&void 0!==y.status_code&&((0,i.setHttpStatus)(r,y.status_code),r.end(),f?.(r,{headers:(0,E.createHeadersSafely)((0,_.parseXhrResponseHeaders)(m)),error:e.error})),delete p[t]))}const x=(0,E.getFullURL)(b),O=x?(0,g.parseUrl)(x):(0,g.parseUrl)(b),I=x?(0,g.stripDataUrlContent)(x):void 0,A=(0,g.stripDataUrlContent)((0,g.stripUrlQueryAndFragment)(b)),k=(0,s.getClient)(),R=!!(0,c.getActiveSpan)(),C=R||!!k&&(0,d.hasSpanStreamingEnabled)(k),P=w&&C?(0,o.startInactiveSpan)({name:`${S} ${A}`,attributes:{url:(0,g.stripDataUrlContent)(b),type:"xhr","http.method":S,"http.url":I,[T.URL_FULL]:I,"server.address":O?.host,[a.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.http.browser",[a.SEMANTIC_ATTRIBUTE_SENTRY_OP]:"http.client",...O?.search&&{"http.query":O?.search},...O?.hash&&{"http.fragment":O?.hash}}}):new n.SentryNonRecordingSpan,D=(0,o.spanIsIgnored)(P)&&R?void 0:P;w&&!C&&k?.recordDroppedEvent("no_parent_span","span");m.__sentry_xhr_span_id__=P.spanContext().spanId,p[m.__sentry_xhr_span_id__]=P,r(b)&&function(e,t,r){const{"sentry-trace":n,baggage:i,traceparent:o}=(0,u.getTraceData)({span:t,propagateTraceparent:r});n&&function(e,t,r,n){const i=e.__sentry_xhr_v3__?.request_headers;if(i?.["sentry-trace"]||!e.setRequestHeader)return;try{if(e.setRequestHeader("sentry-trace",t),n&&!i?.traceparent&&e.setRequestHeader("traceparent",n),r){const t=i?.baggage;t&&(0,E.baggageHeaderHasSentryValues)(t)||e.setRequestHeader("baggage",r)}}catch{}}(e,n,i,o)}(m,(0,l.hasSpansEnabled)()&&C?D:void 0,h);k&&k.emit("beforeOutgoingRequestSpan",P,e);return P}(t,O,k,R,C,x);r&&(y&&I(r,e),S?.(r,{headers:(0,E.createHeadersSafely)(t.xhr.__sentry_xhr_v3__?.request_headers)}))})}const O=300;function I(e,t){const{url:r}=(0,c.spanToJSON)(e).data;if(!r||"string"!=typeof r)return;let n=()=>{setTimeout(i)};if((0,d.hasSpanStreamingEnabled)(t)){const t=e.end.bind(e);e.end=e=>{const r=e??(0,m.timestampInSeconds)();let o=!1;const a=()=>{o||(o=!0,setTimeout(i),t(r),clearTimeout(s))};n=a;const s=setTimeout(a,O)}}const i=(0,b.addPerformanceInstrumentationHandler)("resource",({entries:t})=>{t.forEach(t=>{(0,E.isPerformanceResourceTiming)(t)&&t.name.endsWith(r)&&(e.setAttributes((0,S.resourceTimingToSpanAttributes)(t)),n())})})}function A(e,t){const r=(0,y.getLocationHref)();if(r){let n,i;try{n=new URL(e,r),i=new URL(r).origin}catch{return!1}const o=n.origin===i;return t?(0,f.stringMatchesSomePattern)(n.toString(),t)||o&&(0,f.stringMatchesSomePattern)(n.pathname,t):o}{const r=!!e.match(/^\/(?!\/)/);return t?(0,f.stringMatchesSomePattern)(e,t):r}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{getTraceData:()=>f});var n=r(347),i=r(348),o=r(346),a=r(345),s=r(358),l=r(379),c=r(375),u=r(387),p=r(385),d=r(373),h=r(383);function f(e={}){const t=e.client||(0,o.getClient)();if(!(0,a.isEnabled)()||!t)return{};const r=(0,i.getMainCarrier)(),f=(0,n.getAsyncContextStrategy)(r);if(f.getTraceData)return f.getTraceData(e);const m=e.scope||(0,o.getCurrentScope)(),g=e.span||(0,l.getActiveSpan)(),y=(0,u.spanIsNonRecordingSpan)(g)&&!(0,c.hasSpansEnabled)(t.getOptions());if(!g&&(0,o.hasExternalPropagationContext)())return{};const b=g&&!y?(0,l.spanToTraceHeader)(g):function(e){const{traceId:t,sampled:r,propagationSpanId:n}=e.getPropagationContext();return(0,h.generateSentryTraceHeader)(t,n,r)}(m),v=g?(0,p.getDynamicSamplingContextFromSpan)(g):(0,p.getDynamicSamplingContextFromScope)(t,m),_=(0,d.dynamicSamplingContextToSentryBaggageHeader)(v);if(!h.TRACEPARENT_REGEXP.test(b))return s.debug.warn("Invalid sentry-trace data. Cannot generate trace data"),{};const S={"sentry-trace":b,baggage:_};return e.propagateTraceparent&&(S.traceparent=g&&!y?(0,l.spanToTraceparentHeader)(g):function(e){const{traceId:t,sampled:r,propagationSpanId:n}=e.getPropagationContext();return(0,h.generateTraceparentHeader)(t,n,r)}(m)),S}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{_INTERNAL_getTracingHeadersForFetchRequest:()=>b,_callOnRequestSpanEnd:()=>y,instrumentFetchRequest:()=>g});var n=r(1512),i=r(346),o=r(372),a=r(379),s=r(381),l=r(359),c=r(375),u=r(387),p=r(373),d=r(377),h=r(371),f=r(1575),m=r(1511);function g(e,t,r,n,o){if(!e.fetchData)return;const{method:l,url:p}=e.fetchData,f=(0,c.hasSpansEnabled)()&&t(p);if(e.endTimestamp){const t=e.fetchData.__span;if(!t)return;const r=n[t];return void(r&&(f&&(!function(e,t){if(t.response){(0,s.setHttpStatus)(e,t.response.status);const r=t.response?.headers?.get("content-length");if(r){const t=parseInt(r);t>0&&e.setAttribute("http.response_content_length",t)}}else t.error&&e.setStatus({code:s.SPAN_STATUS_ERROR,message:"internal_error"});e.end()}(r,e),y(r,e,o)),delete n[t]))}const{spanOrigin:g="auto.http.browser",propagateTraceparent:v=!1}="object"==typeof o?o:{spanOrigin:o},S=(0,i.getClient)(),E=!!(0,a.getActiveSpan)(),T=E||!!S&&(0,d.hasSpanStreamingEnabled)(S),w=f&&T?(0,h.startInactiveSpan)(function(e,t,r){if(e.startsWith("data:")){return{name:`${t} ${(0,m.stripDataUrlContent)(e)}`,attributes:_(e,void 0,t,r)}}const n=(0,m.parseStringToURLObject)(e),i=n?(0,m.getSanitizedUrlStringFromUrlObject)(n):e;return{name:`${t} ${i}`,attributes:_(e,n,t,r)}}(p,l,g)):new u.SentryNonRecordingSpan,x=(0,h.spanIsIgnored)(w)&&E?void 0:w;if(f&&!T&&S?.recordDroppedEvent("no_parent_span","span"),e.fetchData.__span=w.spanContext().spanId,n[w.spanContext().spanId]=w,r(e.fetchData.url)){const t=e.args[0],r={...e.args[1]||{}},n=b(t,r,(0,c.hasSpansEnabled)()&&T?x:void 0,v);
41n&&(e.args[1]=r,r.headers=n)}if(S){const t={input:e.args,response:e.response,startTimestamp:e.startTimestamp,endTimestamp:e.endTimestamp};S.emit("beforeOutgoingRequestSpan",w,t)}return w}function y(e,t,r){const n="object"==typeof r&&null!==r?r.onRequestSpanEnd:void 0;n?.(e,{headers:t.response?.headers,error:t.error})}function b(e,t,r,n){const i=(0,f.getTraceData)({span:r,propagateTraceparent:n}),o=i["sentry-trace"],a=i.baggage,s=i.traceparent;if(!o)return;const c=t.headers||((0,l.isRequest)(e)?e.headers:void 0);if(c){if(u=c,"undefined"!=typeof Headers&&(0,l.isInstanceOf)(u,Headers)){const e=new Headers(c);if(e.get("sentry-trace")||e.set("sentry-trace",o),n&&s&&!e.get("traceparent")&&e.set("traceparent",s),a){const t=e.get("baggage");t?v(t)||e.set("baggage",`${t},${a}`):e.set("baggage",a)}return e}if(function(e){if(!Array.isArray(e))return!1;return e.every(e=>Array.isArray(e)&&2===e.length&&"string"==typeof e[0])}(c)){const e=[...c];e.find(e=>"sentry-trace"===e[0])||e.push(["sentry-trace",o]),n&&s&&!e.find(e=>"traceparent"===e[0])&&e.push(["traceparent",s]);const t=c.find(e=>"baggage"===e[0]&&"string"==typeof e[1]&&v(e[1]));return a&&!t&&e.push(["baggage",a]),e}{const e="sentry-trace"in c?c["sentry-trace"]:void 0,t="traceparent"in c?c.traceparent:void 0,r="baggage"in c?c.baggage:void 0,i=r?Array.isArray(r)?[...r]:[r]:[],l=r&&(Array.isArray(r)?r.find(e=>v(e)):v(r));a&&!l&&i.push(a);const u=Object.assign({},c,{"sentry-trace":e??o,...i.length>0&&{baggage:i.join(",")}});return n&&s&&!t&&(u.traceparent=s),u}}return{"sentry-trace":o,...a&&{baggage:a},...s&&{traceparent:s}};var u}function v(e){return"string"==typeof e&&e.split(",").some(e=>e.trim().startsWith(p.SENTRY_BAGGAGE_KEY_PREFIX))}function _(e,t,r,i){const a={url:(0,m.stripDataUrlContent)(e),type:"fetch","http.method":r,[o.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:i,[o.SEMANTIC_ATTRIBUTE_SENTRY_OP]:"http.client"};return t&&((0,m.isURLObjectRelative)(t)||(a[n.HTTP_URL]=(0,m.stripDataUrlContent)(t.href),a[n.URL_FULL]=(0,m.stripDataUrlContent)(t.href),a["server.address"]=t.host),t.search&&(a["http.query"]=t.search),t.hash&&(a["http.fragment"]=t.hash)),a}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{ORIGINAL_REQ_BODY:()=>o,getBodyString:()=>s,getFetchRequestArgBody:()=>l,parseXhrResponseHeaders:()=>c,serializeFormData:()=>a});var n=r(358),i=r(1536);const o=Symbol.for("sentry__originalRequestBody");function a(e){return new URLSearchParams(e).toString()}function s(e,t=n.debug){try{if("string"==typeof e)return[e];if(e instanceof URLSearchParams)return[e.toString()];if(e instanceof FormData)return[a(e)];if(!e)return[void 0]}catch(r){return i.DEBUG_BUILD&&t.error(r,"Failed to serialize body",e),[void 0,"BODY_PARSE_ERROR"]}return i.DEBUG_BUILD&&t.log("Skipping network body because of body type",e),[void 0,"UNPARSEABLE_BODY_TYPE"]}function l(e=[]){if(e.length>=2&&e[1]&&"object"==typeof e[1]&&"body"in e[1])return e[1].body;if(e.length>=1&&e[0]instanceof Request){const t=e[0][o];return void 0!==t?t:void 0}}function c(e){let t;try{t=e.getAllResponseHeaders()}catch(t){return i.DEBUG_BUILD&&n.debug.error(t,"Failed to get xhr response headers",e),{}}return t?t.split("\r\n").reduce((e,t)=>{const[r,n]=t.split(": ");return n&&(e[r.toLowerCase()]=n),e},{}):{}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{baggageHeaderHasSentryValues:()=>i,createHeadersSafely:()=>s,getFullURL:()=>o,isPerformanceResourceTiming:()=>a});var n=r(1502);function i(e){return e.split(",").some(e=>e.trim().startsWith("sentry-"))}function o(e){try{return new URL(e,n.WINDOW.location.origin).href}catch{return}}function a(e){return"resource"===e.entryType&&"initiatorType"in e&&"string"==typeof e.nextHopProtocol&&("fetch"===e.initiatorType||"xmlhttprequest"===e.initiatorType)}function s(e){try{return new Headers(e)}catch{return}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{excludeGraphQLFetch:()=>n,withoutGraphQLFetch:()=>i});const n=e=>{if("fetch"===e.category){if((e.data?.url??"").includes("/graphql"))return null}return e};function i(e){return(t,r)=>{const i=n(t,r);return null===i?null:e(i,r)}}},,,,,,,(e,t,r)=>{"use strict";r.r(t),r.d(t,{EventStreamCodec:()=>n.EventStreamCodec,EventStreamMarshaller:()=>u.EventStreamMarshaller,EventStreamSerde:()=>g.EventStreamSerde,HeaderMarshaller:()=>i.HeaderMarshaller,Int64:()=>
41o.Int64,MessageDecoderStream:()=>a.MessageDecoderStream,MessageEncoderStream:()=>s.MessageEncoderStream,SmithyMessageDecoderStream:()=>l.SmithyMessageDecoderStream,SmithyMessageEncoderStream:()=>c.SmithyMessageEncoderStream,UniversalEventStreamMarshaller:()=>d.EventStreamMarshaller,eventStreamSerdeProvider:()=>u.eventStreamSerdeProvider,getChunkedStream:()=>h.getChunkedStream,getMessageUnmarshaller:()=>f.getMessageUnmarshaller,getUnmarshalledStream:()=>f.getUnmarshalledStream,iterableToReadableStream:()=>p.iterableToReadableStream,readableStreamToIterable:()=>p.readableStreamToIterable,resolveEventStreamSerdeConfig:()=>m.resolveEventStreamSerdeConfig,universalEventStreamSerdeProvider:()=>d.eventStreamSerdeProvider});var n=r(1587),i=r(1589),o=r(1590),a=r(1592),s=r(1593),l=r(1594),c=r(1595),u=r(1596),p=r(1600),d=r(1597),h=r(1598),f=r(1599),m=r(1601),g=r(1602)},(e,t,r)=>{"use strict";r.r(t),r.d(t,{EventStreamCodec:()=>a});var n=r(1588),i=r(1589),o=r(1591);class a{headerMarshaller;messageBuffer;isEndOfStream;constructor(e,t){this.headerMarshaller=new i.HeaderMarshaller(e,t),this.messageBuffer=[],this.isEndOfStream=!1}feed(e){this.messageBuffer.push(this.decode(e))}endOfStream(){this.isEndOfStream=!0}getMessage(){const e=this.messageBuffer.pop(),t=this.isEndOfStream;return{getMessage:()=>e,isEndOfStream:()=>t}}getAvailableMessages(){const e=this.messageBuffer;this.messageBuffer=[];const t=this.isEndOfStream;return{getMessages:()=>e,isEndOfStream:()=>t}}encode({headers:e,body:t}){const r=this.headerMarshaller.format(e),i=r.byteLength+t.byteLength+16,o=new Uint8Array(i),a=new DataView(o.buffer,o.byteOffset,o.byteLength),s=new n.Crc32Js;return a.setUint32(0,i,!1),a.setUint32(4,r.byteLength,!1),s.update(o.subarray(0,8)),a.setUint32(8,s.digestSync(),!1),o.set(r,12),o.set(t,r.byteLength+12),s.update(o.subarray(8,i-4)),a.setUint32(i-4,s.digestSync(),!1),o}decode(e){const{headers:t,body:r}=(0,o.splitMessage)(e);return{headers:this.headerMarshaller.parse(t),body:r}}formatHeaders(e){return this.headerMarshaller.format(e)}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{Crc32Js:()=>o});const n=new Uint32Array(256);for(let e=0;e<256;++e){let t=e;for(let e=0;e<8;++e)t=1&t?3988292384^t>>>1:t>>>1;n[e]=t>>>0}const i=4294967295;class o{digestLength=4;checksum=i;update(e){for(let t=0;t<e.length;++t)this.checksum=this.checksum>>>8^n[255&(this.checksum^e[t])]}digestSync(){return(this.checksum^i)>>>0}async digest(){const e=this.digestSync(),t=new Uint8Array(4);return new DataView(t.buffer).setUint32(0,e,!1),t}reset(){this.checksum=i}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{HeaderMarshaller:()=>s});var n,i=r(131),o=r(230),a=r(1590);class s{toUtf8;fromUtf8;constructor(e,t){this.toUtf8=e,this.fromUtf8=t}format(e){const t=[];for(const r in e){if(!(0,i.hasOwn)(e,r))continue;const n=this.fromUtf8(r);t.push(Uint8Array.from([n.byteLength]),n,this.formatHeaderValue(e[r]))}const r=new Uint8Array(t.reduce((e,t)=>e+t.byteLength,0));let n=0;for(const e of t)r.set(e,n),n+=e.byteLength;return r}formatHeaderValue(e){switch(e.type){case"boolean":return Uint8Array.from([e.value?0:1]);case"byte":return Uint8Array.from([2,e.value]);case"short":const t=new DataView(new ArrayBuffer(3));return t.setUint8(0,3),t.setInt16(1,e.value,!1),new Uint8Array(t.buffer);case"integer":const r=new DataView(new ArrayBuffer(5));return r.setUint8(0,4),r.setInt32(1,e.value,!1),new Uint8Array(r.buffer);case"long":const n=new Uint8Array(9);return n[0]=5,n.set(e.value.bytes,1),n;case"binary":const i=new DataView(new ArrayBuffer(3+e.value.byteLength));i.setUint8(0,6),i.setUint16(1,e.value.byteLength,!1);const s=new Uint8Array(i.buffer);return s.set(e.value,3),s;case"string":const l=this.fromUtf8(e.value),c=new DataView(new ArrayBuffer(3+l.byteLength));c.setUint8(0,7),c.setUint16(1,l.byteLength,!1);const u=new Uint8Array(c.buffer);return u.set(l,3),u;case"timestamp":const p=new Uint8Array(9);return p[0]=8,p.set(a.Int64.fromNumber(e.value.valueOf()).bytes,1),p;case"uuid":if(!y.test(e.value))throw new Error(`Invalid UUID received: ${e.value}`);const d=new Uint8Array(17);return d[0]=9,d.set((0,o.fromHex)(e.value.replace(/-/g,"")),1),d}}parse(e){const t={};let r=0;for(;r<e.byteLength;
41){const n=e.getUint8(r++),i=this.toUtf8(new Uint8Array(e.buffer,e.byteOffset+r,n));switch(r+=n,e.getUint8(r++)){case 0:t[i]={type:l,value:!0};break;case 1:t[i]={type:l,value:!1};break;case 2:t[i]={type:c,value:e.getInt8(r++)};break;case 3:t[i]={type:u,value:e.getInt16(r,!1)},r+=2;break;case 4:t[i]={type:p,value:e.getInt32(r,!1)},r+=4;break;case 5:t[i]={type:d,value:new a.Int64(new Uint8Array(e.buffer,e.byteOffset+r,8))},r+=8;break;case 6:const n=e.getUint16(r,!1);r+=2,t[i]={type:h,value:new Uint8Array(e.buffer,e.byteOffset+r,n)},r+=n;break;case 7:const s=e.getUint16(r,!1);r+=2,t[i]={type:f,value:this.toUtf8(new Uint8Array(e.buffer,e.byteOffset+r,s))},r+=s;break;case 8:t[i]={type:m,value:new Date(new a.Int64(new Uint8Array(e.buffer,e.byteOffset+r,8)).valueOf())},r+=8;break;case 9:const y=new Uint8Array(e.buffer,e.byteOffset+r,16);r+=16,t[i]={type:g,value:`${(0,o.toHex)(y.subarray(0,4))}-${(0,o.toHex)(y.subarray(4,6))}-${(0,o.toHex)(y.subarray(6,8))}-${(0,o.toHex)(y.subarray(8,10))}-${(0,o.toHex)(y.subarray(10))}`};break;default:throw new Error("Unrecognized header type tag")}}return t}}!function(e){e[e.boolTrue=0]="boolTrue",e[e.boolFalse=1]="boolFalse",e[e.byte=2]="byte",e[e.short=3]="short",e[e.integer=4]="integer",e[e.long=5]="long",e[e.byteArray=6]="byteArray",e[e.string=7]="string",e[e.timestamp=8]="timestamp",e[e.uuid=9]="uuid"}(n||(n={}));const l="boolean",c="byte",u="short",p="integer",d="long",h="binary",f="string",m="timestamp",g="uuid",y=/^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$/},(e,t,r)=>{"use strict";r.r(t),r.d(t,{Int64:()=>i});var n=r(230);class i{bytes;constructor(e){if(this.bytes=e,8!==e.byteLength)throw new Error("Int64 buffers must be exactly 8 bytes")}static fromNumber(e){if(e>0x8000000000000000||e<-0x8000000000000000)throw new Error(`${e} is too large (or, if negative, too small) to represent as an Int64`);const t=new Uint8Array(8);for(let r=7,n=Math.abs(Math.round(e));r>-1&&n>0;r--,n/=256)t[r]=n;return e<0&&o(t),new i(t)}valueOf(){const e=this.bytes.slice(0),t=128&e[0];return t&&o(e),parseInt((0,n.toHex)(e),16)*(t?-1:1)}toString(){return String(this.valueOf())}}function o(e){for(let t=0;t<8;t++)e[t]^=255;for(let t=7;t>-1&&(e[t]++,0===e[t]);t--);}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{splitMessage:()=>l});var n=r(1588);const i=4,o=2*i,a=4,s=o+2*a;function l({byteLength:e,byteOffset:t,buffer:r}){if(e<s)throw new Error("Provided message too short to accommodate event stream message overhead");const l=new DataView(r,t,e),c=l.getUint32(0,!1);if(e!==c)throw new Error("Reported message length does not match received message length");const u=l.getUint32(i,!1),p=l.getUint32(o,!1),d=l.getUint32(e-a,!1),h=new n.Crc32Js;if(h.update(new Uint8Array(r,t,o)),p!==h.digestSync())throw new Error(`The prelude checksum specified in the message (${p}) does not match the calculated CRC32 checksum (${h.digestSync()})`);if(h.update(new Uint8Array(r,t+o,e-(o+a))),d!==h.digestSync())throw new Error(`The message checksum (${h.digestSync()}) did not match the expected value of ${d}`);return{headers:new DataView(r,t+o+a,u),body:new Uint8Array(r,t+o+a+u,c-u-(o+a+a))}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{MessageDecoderStream:()=>n});class n{options;constructor(e){this.options=e}[Symbol.asyncIterator](){return this.asyncIterator()}async*asyncIterator(){for await(const e of this.options.inputStream){const t=this.options.decoder.decode(e);yield t}}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{MessageEncoderStream:()=>n});class n{options;constructor(e){this.options=e}[Symbol.asyncIterator](){return this.asyncIterator()}async*asyncIterator(){for await(const e of this.options.messageStream){const t=this.options.encoder.encode(e);yield t}this.options.includeEndFrame&&(yield new Uint8Array(0))}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{SmithyMessageDecoderStream:()=>n});class n{options;constructor(e){this.options=e}[Symbol.asyncIterator](){return this.asyncIterator()}async*asyncIterator(){for await(const e of this.options.messageStream){const t=await this.options.deserializer(e);void 0!==t&&(yield t)}}}},(e,t,r)=>{"use strict";
41r.r(t),r.d(t,{SmithyMessageEncoderStream:()=>n});class n{options;constructor(e){this.options=e}[Symbol.asyncIterator](){return this.asyncIterator()}async*asyncIterator(){for await(const e of this.options.inputStream){const t=this.options.serializer(e);yield t}}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{EventStreamMarshaller:()=>o,eventStreamSerdeProvider:()=>s});var n=r(1597),i=r(1600);class o{universalMarshaller;constructor({utf8Encoder:e,utf8Decoder:t}){this.universalMarshaller=new n.EventStreamMarshaller({utf8Decoder:t,utf8Encoder:e})}deserialize(e,t){const r=a(e)?(0,i.readableStreamToIterable)(e):e;return this.universalMarshaller.deserialize(r,t)}serialize(e,t){const r=this.universalMarshaller.serialize(e,t);return"function"==typeof ReadableStream?(0,i.iterableToReadableStream)(r):r}}const a=e=>"function"==typeof ReadableStream&&e instanceof ReadableStream,s=e=>new o(e)},(e,t,r)=>{"use strict";r.r(t),r.d(t,{EventStreamMarshaller:()=>u,eventStreamSerdeProvider:()=>p});var n=r(1587),i=r(1592),o=r(1593),a=r(1594),s=r(1595),l=r(1598),c=r(1599);class u{eventStreamCodec;utfEncoder;constructor({utf8Encoder:e,utf8Decoder:t}){this.eventStreamCodec=new n.EventStreamCodec(e,t),this.utfEncoder=e}deserialize(e,t){const r=(0,l.getChunkedStream)(e);return new a.SmithyMessageDecoderStream({messageStream:new i.MessageDecoderStream({inputStream:r,decoder:this.eventStreamCodec}),deserializer:(0,c.getMessageUnmarshaller)(t,this.utfEncoder)})}serialize(e,t){return new o.MessageEncoderStream({messageStream:new s.SmithyMessageEncoderStream({inputStream:e,serializer:t}),encoder:this.eventStreamCodec,includeEndFrame:!0})}}const p=e=>new u(e)},(e,t,r)=>{"use strict";function n(e){let t=0,r=0,n=null,i=null;const o=e=>{if("number"!=typeof e)throw new Error("Attempted to allocate an event message where size was not a number: "+e);t=e,r=4,n=new Uint8Array(e);new DataView(n.buffer).setUint32(0,e,!1)};return{[Symbol.asyncIterator]:async function*(){const a=e[Symbol.asyncIterator]();for(;;){const{value:e,done:s}=await a.next();if(s){if(!t)return;if(t!==r)throw new Error("Truncated event message received.");return void(yield n)}const l=e.length;let c=0;for(;c<l;){if(!n){const t=l-c;i||(i=new Uint8Array(4));const n=Math.min(4-r,t);if(i.set(e.slice(c,c+n),r),r+=n,c+=n,r<4)break;o(new DataView(i.buffer).getUint32(0,!1)),i=null}const a=Math.min(t-r,l-c);n.set(e.slice(c,c+a),r),r+=a,c+=a,t&&t===r&&(yield n,n=null,t=0,r=0)}}}}}r.r(t),r.d(t,{getChunkedStream:()=>n})},(e,t,r)=>{"use strict";function n(e,t){const r=i(t.deserializer,t.toUtf8);return{[Symbol.asyncIterator]:async function*(){for await(const n of e){const e=t.eventStreamCodec.decode(n),i=await r(e);void 0!==i&&(yield i)}}}}function i(e,t){return async function(r){const{value:n}=r.headers[":message-type"];if("error"===n){const e=new Error(r.headers[":error-message"].value||"UnknownError");throw e.name=r.headers[":error-code"].value,e}if("exception"===n){const n=r.headers[":exception-type"].value,i={[n]:r},o=await e(i);if(o.$unknown){const e=new Error(t(r.body));throw e.name=n,e}throw o[n]}if("event"===n){const t={[r.headers[":event-type"].value]:r},n=await e(t);if(n.$unknown)return;return n}throw Error(`Unrecognizable event type: ${r.headers[":event-type"].value}`)}}r.r(t),r.d(t,{getMessageUnmarshaller:()=>i,getUnmarshalledStream:()=>n})},(e,t,r)=>{"use strict";r.r(t),r.d(t,{iterableToReadableStream:()=>i,readableStreamToIterable:()=>n});const n=e=>({[Symbol.asyncIterator]:async function*(){const t=e.getReader();try{for(;;){const{done:e,value:r}=await t.read();if(e)return;yield r}}finally{t.releaseLock()}}}),i=e=>{const t=e[Symbol.asyncIterator]();return new ReadableStream({async pull(e){const{done:r,value:n}=await t.next();if(r)return e.close();e.enqueue(n)}})}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{resolveEventStreamSerdeConfig:()=>n});const n=e=>Object.assign(e,{eventStreamMarshaller:e.eventStreamSerdeProvider(e)})},(e,t,r)=>{"use strict";r.r(t),r.d(t,{EventStreamSerde:()=>s});var n=r(131),i=r(171),o=r(222),a=r(224);class s{marshaller;serializer;deserializer;serdeContext;defaultContentType;compositeErrorRegistry;constructor({marshaller:e,serializer:t,deserializer:r,serdeContext:n,defaultContentType:i,compositeErrorRegistry:o}
41){this.marshaller=e,this.serializer=t,this.deserializer=r,this.serdeContext=n,this.defaultContentType=i,this.compositeErrorRegistry=o}async serializeEventStream({eventStream:e,requestSchema:t,initialRequest:r,initialMessageType:i}){const o=this.marshaller,a=t.getEventStreamMember(),s=t.getMemberSchema(a),l=this.serializer,c=this.defaultContentType,u=Symbol("initialRequestMarker"),p={async*[Symbol.asyncIterator](){if(r){const e={":event-type":{type:"string",value:i??"initial-request"},":message-type":{type:"string",value:"event"},":content-type":{type:"string",value:c}};l.write(t,r);const n=l.flush();yield{[u]:!0,headers:e,body:n}}for await(const t of e)yield t}};return o.serialize(p,e=>{if(e[u])return{headers:e.headers,body:e.body};let t="";for(const r in e)if((0,n.hasOwn)(e,r)&&"__type"!==r){t=r;break}const{additionalHeaders:r,body:i,eventType:o,explicitPayloadContentType:a}=this.writeEventBody(t,s,e);return{headers:{":event-type":{type:"string",value:o},":message-type":{type:"string",value:"event"},":content-type":{type:"string",value:a??c},...r},body:i}})}async deserializeEventStream({response:e,responseSchema:t,initialResponseContainer:r,initialMessageType:i}){const o=this.marshaller,s=t.getEventStreamMember(),l=t.getMemberSchema(s).getMemberSchemas(),c=Symbol("initialResponseMarker"),u=o.deserialize(e.body,async e=>{let r="";for(const t in e)if((0,n.hasOwn)(e,t)&&"__type"!==t){r=t;break}const o=e[r].body;if(r===(i??"initial-response")){const e=await this.deserializer.read(t,o);return delete e[s],{[c]:!0,...e}}if(r in l){const t=l[r];if(t.isStructSchema()){const n={};let i=!1;for(const[s,l]of t.structIterator()){const{eventHeader:t,eventPayload:c}=l.getMergedTraits();if(i=i||Boolean(t||c),c)l.isBlobSchema()?n[s]=o:l.isStringSchema()?n[s]=(this.serdeContext?.utf8Encoder??a.toUtf8)(o):l.isStructSchema()&&(n[s]=await this.deserializer.read(l,o));else if(t){const t=e[r].headers[s]?.value;null!=t&&(l.isNumericSchema()?n[s]=t&&"object"==typeof t&&"bytes"in t?BigInt(t.toString()):Number(t):n[s]=t)}}return{[r]:await this.readEventMember(t,o,i,n)}}return{[r]:await this.deserializer.read(t,o)}}return{$unknown:e}}),p=u[Symbol.asyncIterator](),d=await p.next();if(d.done)return u;if(d.value?.[c]){if(!t)throw new Error("@smithy::core/protocols - initial-response event encountered in event stream but no response schema given.");for(const e in d.value)(0,n.hasOwn)(d.value,e)&&(r[e]=d.value[e])}return{async*[Symbol.asyncIterator](){for(d?.value?.[c]||(yield d.value);;){const{done:e,value:t}=await p.next();if(e)break;yield t}}}}async readEventMember(e,t,r,n){let o;const a=e.getSchema();if(Array.isArray(a)&&-3===a[0]){const e=a[1],t=i.TypeRegistry.for(e);this.compositeErrorRegistry?.copyFrom(t),o=(this.compositeErrorRegistry??t)?.getErrorCtor(a)}const s=r?n:0===t.byteLength?{}:await this.deserializer.read(e,t);if(o){const t=s.message??s.Message??"Unknown",r={},n=e.getMergedTraits().error;return n&&(r.$fault=n),Object.assign(new o({}),r,{message:t},s)}return s}writeEventBody(e,t,r){const n=this.serializer;let i,a=e,s=null;const l={};if(t.getSchema()[4].includes(e)){const o=t.getMemberSchema(e);if(o.isStructSchema()){for(const[t,n]of o.structIterator()){const{eventHeader:i,eventPayload:o}=n.getMergedTraits();if(o)s=t;else if(i){const i=r[e][t];let o="binary";n.isNumericSchema()?o=(-2)**31<=i&&i<=2**31-1?"integer":"long":n.isTimestampSchema()?o="timestamp":n.isStringSchema()?o="string":n.isBooleanSchema()&&(o="boolean"),null!=i&&(l[t]={type:o,value:i},delete r[e][t])}}if(null!==s){const t=o.getMemberSchema(s);t.isBlobSchema()?i="application/octet-stream":t.isStringSchema()&&(i="text/plain"),n.write(t,r[e][s])}else n.write(o,r[e])}else{if(!o.isUnitSchema())throw new Error("@smithy/core/event-streams - non-struct member not supported in event stream union.");n.write(o,{})}}else{const[t,i]=r[e];a=t,n.write(15,i)}const c=n.flush()??new Uint8Array;return{body:"string"==typeof c?(this.serdeContext?.utf8Decoder??o.fromUtf8)(c):c,eventType:a,explicitPayloadContentType:i,additionalHeaders:l}}}},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,(e,t,r)=>
vendor: 9,381 bytes, line 41
41{const n=r(1653),i=r(1654),o=r(1677),a=r(1679);function s(e,t,r,o,a){const s=[].slice.call(arguments,1),l=s.length,c="function"==typeof s[l-1];if(!c&&!n())throw new Error("Callback required as last argument");if(!c){if(l<1)throw new Error("Too few arguments provided");return 1===l?(r=t,t=o=void 0):2!==l||t.getContext||(o=r,r=t,t=void 0),new Promise(function(n,a){try{const a=i.create(r,o);n(e(a,t,o))}catch(e){a(e)}})}if(l<2)throw new Error("Too few arguments provided");2===l?(a=r,r=t,t=o=void 0):3===l&&(t.getContext&&void 0===a?(a=o,o=void 0):(a=o,o=r,r=t,t=void 0));try{const n=i.create(r,o);a(null,e(n,t,o))}catch(e){a(e)}}t.create=i.create,t.toCanvas=s.bind(null,o.render),t.toDataURL=s.bind(null,o.renderToDataURL),t.toString=s.bind(null,function(e,t,r){return a.render(e,r)})},e=>{e.exports=function(){return"function"==typeof Promise&&Promise.prototype&&Promise.prototype.then}},(e,t,r)=>{const n=r(1655),i=r(1656),o=r(1657),a=r(1658),s=r(1659),l=r(1660),c=r(1661),u=r(1662),p=r(1663),d=r(1666),h=r(1670),f=r(1667),m=r(1671);function g(e,t,r){const n=e.size,i=h.getEncodedBits(t,r);let o,a;for(o=0;o<15;o++)a=1==(i>>o&1),o<6?e.set(o,8,a,!0):o<8?e.set(o+1,8,a,!0):e.set(n-15+o,8,a,!0),o<8?e.set(8,n-o-1,a,!0):o<9?e.set(8,15-o-1+1,a,!0):e.set(8,15-o-1,a,!0);e.set(n-8,8,1,!0)}function y(e,t,r){const i=new o;r.forEach(function(t){i.put(t.mode.bit,4),i.put(t.getLength(),f.getCharCountIndicator(t.mode,e)),t.write(i)});const a=8*(n.getSymbolTotalCodewords(e)-u.getTotalCodewordsCount(e,t));for(i.getLengthInBits()+4<=a&&i.put(0,4);i.getLengthInBits()%8!=0;)i.putBit(0);const s=(a-i.getLengthInBits())/8;for(let e=0;e<s;e++)i.put(e%2?17:236,8);return function(e,t,r){const i=n.getSymbolTotalCodewords(t),o=u.getTotalCodewordsCount(t,r),a=i-o,s=u.getBlocksCount(t,r),l=i%s,c=s-l,d=Math.floor(i/s),h=Math.floor(a/s),f=h+1,m=d-h,g=new p(m);let y=0;const b=new Array(s),v=new Array(s);let _=0;const S=new Uint8Array(e.buffer);for(let e=0;e<s;e++){const t=e<c?h:f;b[e]=S.slice(y,y+t),v[e]=g.encode(b[e]),y+=t,_=Math.max(_,t)}const E=new Uint8Array(i);let T,w,x=0;for(T=0;T<_;T++)for(w=0;w<s;w++)T<b[w].length&&(E[x++]=b[w][T]);for(T=0;T<m;T++)for(w=0;w<s;w++)E[x++]=v[w][T];return E}(i,e,t)}function b(e,t,r,i){let o;if(Array.isArray(e))o=m.fromArray(e);else{if("string"!=typeof e)throw new Error("Invalid data");{let n=t;if(!n){const t=m.rawSplit(e);n=d.getBestVersionForData(t,r)}o=m.fromString(e,n||40)}}const u=d.getBestVersionForData(o,r);if(!u)throw new Error("The amount of data is too big to be stored in a QR Code");if(t){if(t<u)throw new Error("\nThe chosen QR Code version cannot contain this amount of data.\nMinimum version required to store current data is: "+u+".\n")}else t=u;const p=y(t,r,o),h=n.getSymbolSize(t),f=new a(h);return function(e,t){const r=e.size,n=l.getPositions(t);for(let t=0;t<n.length;t++){const i=n[t][0],o=n[t][1];for(let t=-1;t<=7;t++)if(!(i+t<=-1||r<=i+t))for(let n=-1;n<=7;n++)o+n<=-1||r<=o+n||(t>=0&&t<=6&&(0===n||6===n)||n>=0&&n<=6&&(0===t||6===t)||t>=2&&t<=4&&n>=2&&n<=4?e.set(i+t,o+n,!0,!0):e.set(i+t,o+n,!1,!0))}}(f,t),function(e){const t=e.size;for(let r=8;r<t-8;r++){const t=r%2==0;e.set(r,6,t,!0),e.set(6,r,t,!0)}}(f),function(e,t){const r=s.getPositions(t);for(let t=0;t<r.length;t++){const n=r[t][0],i=r[t][1];for(let t=-2;t<=2;t++)for(let r=-2;r<=2;r++)-2===t||2===t||-2===r||2===r||0===t&&0===r?e.set(n+t,i+r,!0,!0):e.set(n+t,i+r,!1,!0)}}(f,t),g(f,r,0),t>=7&&function(e,t){const r=e.size,n=d.getEncodedBits(t);let i,o,a;for(let t=0;t<18;t++)i=Math.floor(t/3),o=t%3+r-8-3,a=1==(n>>t&1),e.set(i,o,a,!0),e.set(o,i,a,!0)}(f,t),function(e,t){const r=e.size;let n=-1,i=r-1,o=7,a=0;for(let s=r-1;s>0;s-=2)for(6===s&&s--;;){for(let r=0;r<2;r++)if(!e.isReserved(i,s-r)){let n=!1;a<t.length&&(n=1==(t[a]>>>o&1)),e.set(i,s-r,n),o--,-1===o&&(a++,o=7)}if(i+=n,i<0||r<=i){i-=n,n=-n;break}}}(f,p),isNaN(i)&&(i=c.getBestMask(f,g.bind(null,f,r))),c.applyMask(i,f),g(f,r,i),{modules:f,version:t,errorCorrectionLevel:r,maskPattern:i,segments:o}}t.create=function(e,t){if(void 0===e||""===e)throw new Error("No input text");let r,o,a=i.M;return void 0!==t&&(a=i.from(t.errorCorrectionLevel,i.M),r=d.from(t.version),o=c.from(t.maskPattern),t.toSJISFunc&&n.setToSJISFunction(t.toSJISFunc)),b(e,r,a,o)}},(e,t)=>{let r;const n=[0,26,44,70,100,134,172,196,242,292,346,404,466,532,581,655,733,815,901,991,1085,1156,1258,1364,1474,1588,1706,1828,1921,2051,2185,2323,2465,2611,2761,2876,3034,3196,3362,3532,3706];t.getSymbolSize=function(e){if(!e)throw new Error('"version" cannot be null or undefined');if(e<1||e>40)throw new Error('"version" should be in range from 1 to 40');return 4*e+17},t.getSymbolTotalCodewords=function(e){return n[e]},t.getBCHDigit=function(e){let t=0;for(;0!==e;)t++,e>>>=1;return t},t.setToSJISFunction=function(e){if("function"!=typeof e)throw new Error('"toSJISFunc" is not a valid function.');r=e},t.isKanjiModeEnabled=function(){return void 0!==r},t.toSJIS=function(e){return r(e)}},(e,t)=>{t.L={bit:1},t.M={bit:0},t.Q={bit:3},t.H={bit:2},t.isValid=function(e){return e&&void 0!==e.bit&&e.bit>=0&&e.bit<4},t.from=function(e,r){if(t.isValid(e))return e;try{return function(e){if("string"!=typeof e)throw new Error("Param is not a string");switch(e.toLowerCase()){case"l":case"low":return t.L;case"m":case"medium":return t.M;case"q":case"quartile":return t.Q;case"h":case"high":return t.H;default:throw new Error("Unknown EC Level: "+e)}}(e)}catch(e){return r}}},e=>{function t(){this.buffer=[],this.length=0}t.prototype={get:function(e){const t=Math.floor(e/8);return 1==(this.buffer[t]>>>7-e%8&1)},put:function(e,t){for(let r=0;r<t;r++)this.putBit(1==(e>>>t-r-1&1))},getLengthInBits:function(){return this.length},putBit:function(e){const t=Math.floor(this.length/8);this.buffer.length<=t&&this.buffer.push(0),e&&(this.buffer[t]|=128>>>this.length%8),this.length++}},e.exports=t},e=>{function t(e){if(!e||e<1)throw new Error("BitMatrix size must be defined and greater than 0");this.size=e,this.data=new Uint8Array(e*e),this.reservedBit=new Uint8Array(e*e)}t.prototype.set=function(e,t,r,n){const i=e*this.size+t;this.data[i]=r,n&&(this.reservedBit[i]=!0)},t.prototype.get=function(e,t){return this.data[e*this.size+t]},t.prototype.xor=function(e,t,r){this.data[e*this.size+t]^=r},t.prototype.isReserved=function(e,t){return this.reservedBit[e*this.size+t]},e.exports=t},(e,t,r)=>{const n=r(1655).getSymbolSize;t.getRowColCoords=function(e){if(1===e)return[];const t=Math.floor(e/7)+2,r=n(e),i=145===r?26:2*Math.ceil((r-13)/(2*t-2)),o=[r-7];for(let e=1;e<t-1;e++)o[e]=o[e-1]-i;return o.push(6),o.reverse()},t.getPositions=function(e){const r=[],n=t.getRowColCoords(e),i=n.length;for(let e=0;e<i;e++)for(let t=0;t<i;t++)0===e&&0===t||0===e&&t===i-1||e===i-1&&0===t||r.push([n[e],n[t]]);return r}},(e,t,r)=>{const n=r(1655).getSymbolSize;t.getPositions=function(e){const t=n(e);return[[0,0],[t-7,0],[0,t-7]]}},(e,t)=>{t.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};const r=3,n=3,i=40,o=10;function a(e,r,n){switch(e){case t.Patterns.PATTERN000:return(r+n)%2==0;case t.Patterns.PATTERN001:return r%2==0;case t.Patterns.PATTERN010:return n%3==0;case t.Patterns.PATTERN011:return(r+n)%3==0;case t.Patterns.PATTERN100:return(Math.floor(r/2)+Math.floor(n/3))%2==0;case t.Patterns.PATTERN101:return r*n%2+r*n%3==0;case t.Patterns.PATTERN110:return(r*n%2+r*n%3)%2==0;case t.Patterns.PATTERN111:return(r*n%3+(r+n)%2)%2==0;default:throw new Error("bad maskPattern:"+e)}}t.isValid=function(e){return null!=e&&""!==e&&!isNaN(e)&&e>=0&&e<=7},t.from=function(e){return t.isValid(e)?parseInt(e,10):void 0},t.getPenaltyN1=function(e){const t=e.size;let n=0,i=0,o=0,a=null,s=null;for(let l=0;l<t;l++){i=o=0,a=s=null;for(let c=0;c<t;c++){let t=e.get(l,c);t===a?i++:(i>=5&&(n+=r+(i-5)),a=t,i=1),t=e.get(c,l),t===s?o++:(o>=5&&(n+=r+(o-5)),s=t,o=1)}i>=5&&(n+=r+(i-5)),o>=5&&(n+=r+(o-5))}return n},t.getPenaltyN2=function(e){const t=e.size;let r=0;for(let n=0;n<t-1;n++)for(let i=0;i<t-1;i++){const t=e.get(n,i)+e.get(n,i+1)+e.get(n+1,i)+e.get(n+1,i+1);4!==t&&0!==t||r++}return r*n},t.getPenaltyN3=function(e){const t=e.size;let r=0,n=0,o=0;for(let i=0;i<t;i++){n=o=0;for(let a=0;a<t;a++)n=n<<1&2047|e.get(i,a),a>=10&&(1488===n||93===n)&&r++,o=o<<1&2047|e.get(a,i),a>=10&&(1488===o||93===o)&&r++}return r*i},t.getPenaltyN4=function(e){let t=0;const r=e.data.length;for(let n=0;n<r;n++)t+=e.data[n];return Math.abs(Math.ceil(100*t/r/5)-10)*o},t.applyMask=function(e,t){const r=t.size;for(let n=0;n<r;n++)for(let i=0;i<r;i++)t.isReserved(i,n)||t.xor(i,n,a(e,i,n))},t.getBestMask=function(e,r){const n=Object.keys(t.Patterns).length;let i=0,o=1/0;for(let a=0;a<n;a++){r(a),t.applyMask(a,e);const n=t.getPenaltyN1(e)+t.getPenaltyN2(e)+t.getPenaltyN3(e)+t.getPenaltyN4(e);t.applyMask(a,e),n<o&&(o=n,i=a)}return i}},(e,t,r)=>{const n=r(1656),i=[1,1,1,1,1,1,1,1,1,1,2,2,1,2,2,4,1,2,4,4,2,4,4,4,2,4,6,5,2,4,6,6,2,5,8,8,4,5,8,8,4,5,8,11,4,8,10,11,4,9,12,16,4,9,16,16,6,10,12,18,6,10,17,16,6,11,16,19,6,13,18,21,7,14,21,25,8,16,20,25,8,17,23,25,9,17,23,34,9,18,25,30,10,20,27,32,12,21,29,35,12,23,34,37,12,25,34,40,13,26,35,42,14,28,38,45,15,29,40,48,16,31,43,51,17,33,45,54,18,35,48,57,19,37,51,60,19,38,53,63,20,40,56,66,21,43,59,70,22,45,62,74,24,47,65,77,25,49,68,81],o=[7,10,13,17,10,16,22,28,15,26,36,44,20,36,52,64,26,48,72,88,36,64,96,112,40,72,108,130,48,88,132,156,60,110,160,
vendor: 12,132 bytes, line 41
41192,72,130,192,224,80,150,224,264,96,176,260,308,104,198,288,352,120,216,320,384,132,240,360,432,144,280,408,480,168,308,448,532,180,338,504,588,196,364,546,650,224,416,600,700,224,442,644,750,252,476,690,816,270,504,750,900,300,560,810,960,312,588,870,1050,336,644,952,1110,360,700,1020,1200,390,728,1050,1260,420,784,1140,1350,450,812,1200,1440,480,868,1290,1530,510,924,1350,1620,540,980,1440,1710,570,1036,1530,1800,570,1064,1590,1890,600,1120,1680,1980,630,1204,1770,2100,660,1260,1860,2220,720,1316,1950,2310,750,1372,2040,2430];t.getBlocksCount=function(e,t){switch(t){case n.L:return i[4*(e-1)+0];case n.M:return i[4*(e-1)+1];case n.Q:return i[4*(e-1)+2];case n.H:return i[4*(e-1)+3];default:return}},t.getTotalCodewordsCount=function(e,t){switch(t){case n.L:return o[4*(e-1)+0];case n.M:return o[4*(e-1)+1];case n.Q:return o[4*(e-1)+2];case n.H:return o[4*(e-1)+3];default:return}}},(e,t,r)=>{const n=r(1664);function i(e){this.genPoly=void 0,this.degree=e,this.degree&&this.initialize(this.degree)}i.prototype.initialize=function(e){this.degree=e,this.genPoly=n.generateECPolynomial(this.degree)},i.prototype.encode=function(e){if(!this.genPoly)throw new Error("Encoder not initialized");const t=new Uint8Array(e.length+this.degree);t.set(e);const r=n.mod(t,this.genPoly),i=this.degree-r.length;if(i>0){const e=new Uint8Array(this.degree);return e.set(r,i),e}return r},e.exports=i},(e,t,r)=>{const n=r(1665);t.mul=function(e,t){const r=new Uint8Array(e.length+t.length-1);for(let i=0;i<e.length;i++)for(let o=0;o<t.length;o++)r[i+o]^=n.mul(e[i],t[o]);return r},t.mod=function(e,t){let r=new Uint8Array(e);for(;r.length-t.length>=0;){const e=r[0];for(let i=0;i<t.length;i++)r[i]^=n.mul(t[i],e);let i=0;for(;i<r.length&&0===r[i];)i++;r=r.slice(i)}return r},t.generateECPolynomial=function(e){let r=new Uint8Array([1]);for(let i=0;i<e;i++)r=t.mul(r,new Uint8Array([1,n.exp(i)]));return r}},(e,t)=>{const r=new Uint8Array(512),n=new Uint8Array(256);!function(){let e=1;for(let t=0;t<255;t++)r[t]=e,n[e]=t,e<<=1,256&e&&(e^=285);for(let e=255;e<512;e++)r[e]=r[e-255]}(),t.log=function(e){if(e<1)throw new Error("log("+e+")");return n[e]},t.exp=function(e){return r[e]},t.mul=function(e,t){return 0===e||0===t?0:r[n[e]+n[t]]}},(e,t,r)=>{const n=r(1655),i=r(1662),o=r(1656),a=r(1667),s=r(1668),l=n.getBCHDigit(7973);function c(e,t){return a.getCharCountIndicator(e,t)+4}function u(e,t){let r=0;return e.forEach(function(e){const n=c(e.mode,t);r+=n+e.getBitsLength()}),r}t.from=function(e,t){return s.isValid(e)?parseInt(e,10):t},t.getCapacity=function(e,t,r){if(!s.isValid(e))throw new Error("Invalid QR Code version");void 0===r&&(r=a.BYTE);const o=8*(n.getSymbolTotalCodewords(e)-i.getTotalCodewordsCount(e,t));if(r===a.MIXED)return o;const l=o-c(r,e);switch(r){case a.NUMERIC:return Math.floor(l/10*3);case a.ALPHANUMERIC:return Math.floor(l/11*2);case a.KANJI:return Math.floor(l/13);case a.BYTE:default:return Math.floor(l/8)}},t.getBestVersionForData=function(e,r){let n;const i=o.from(r,o.M);if(Array.isArray(e)){if(e.length>1)return function(e,r){for(let n=1;n<=40;n++)if(u(e,n)<=t.getCapacity(n,r,a.MIXED))return n}(e,i);if(0===e.length)return 1;n=e[0]}else n=e;return function(e,r,n){for(let i=1;i<=40;i++)if(r<=t.getCapacity(i,n,e))return i}(n.mode,n.getLength(),i)},t.getEncodedBits=function(e){if(!s.isValid(e)||e<7)throw new Error("Invalid QR Code version");let t=e<<12;for(;n.getBCHDigit(t)-l>=0;)t^=7973<<n.getBCHDigit(t)-l;return e<<12|t}},(e,t,r)=>{const n=r(1668),i=r(1669);t.NUMERIC={id:"Numeric",bit:1,ccBits:[10,12,14]},t.ALPHANUMERIC={id:"Alphanumeric",bit:2,ccBits:[9,11,13]},t.BYTE={id:"Byte",bit:4,ccBits:[8,16,16]},t.KANJI={id:"Kanji",bit:8,ccBits:[8,10,12]},t.MIXED={bit:-1},t.getCharCountIndicator=function(e,t){if(!e.ccBits)throw new Error("Invalid mode: "+e);if(!n.isValid(t))throw new Error("Invalid version: "+t);return t>=1&&t<10?e.ccBits[0]:t<27?e.ccBits[1]:e.ccBits[2]},t.getBestModeForData=function(e){return i.testNumeric(e)?t.NUMERIC:i.testAlphanumeric(e)?t.ALPHANUMERIC:i.testKanji(e)?t.KANJI:t.BYTE},t.toString=function(e){if(e&&e.id)return e.id;throw new Error("Invalid mode")},t.isValid=function(e){return e&&e.bit&&e.ccBits},t.from=function(e,r){if(t.isValid(e))return e;try{return function(e){if("string"!=typeof e)throw new Error("Param is not a string");switch(e.toLowerCase()){case"numeric":return t.NUMERIC;case"alphanumeric":return t.ALPHANUMERIC;case"kanji":return t.KANJI;case"byte":return t.BYTE;default:throw new Error("Unknown mode: "+e)}}(e)}catch(e){return r}}},(e,t)=>{t.isValid=function(e){return!isNaN(e)&&e>=1&&e<=40}},(e,t)=>{const r="[0-9]+";let n="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";n=n.replace(/u/g,"\\u");const i="(?:(?![A-Z0-9 $%*+\\-./:]|"+n+")(?:.|[\r\n]))+";t.KANJI=new RegExp(n,"g"),t.BYTE_KANJI=new RegExp("[^A-Z0-9 $%*+\\-./:]+","g"),t.BYTE=new RegExp(i,"g"),t.NUMERIC=new RegExp(r,"g"),t.ALPHANUMERIC=new RegExp("[A-Z $%*+\\-./:]+","g");const o=new RegExp("^"+n+"$"),a=new RegExp("^"+r+"$"),s=new RegExp("^[A-Z0-9 $%*+\\-./:]+$");t.testKanji=function(e){return o.test(e)},t.testNumeric=function(e){return a.test(e)},t.testAlphanumeric=function(e){return s.test(e)}},(e,t,r)=>{const n=r(1655),i=n.getBCHDigit(1335);t.getEncodedBits=function(e,t){const r=e.bit<<3|t;let o=r<<10;for(;n.getBCHDigit(o)-i>=0;)o^=1335<<n.getBCHDigit(o)-i;return 21522^(r<<10|o)}},(e,t,r)=>{const n=r(1667),i=r(1672),o=r(1673),a=r(1674),s=r(1675),l=r(1669),c=r(1655),u=r(1676);function p(e){return unescape(encodeURIComponent(e)).length}function d(e,t,r){const n=[];let i;for(;null!==(i=e.exec(r));)n.push({data:i[0],index:i.index,mode:t,length:i[0].length});return n}function h(e){const t=d(l.NUMERIC,n.NUMERIC,e),r=d(l.ALPHANUMERIC,n.ALPHANUMERIC,e);let i,o;c.isKanjiModeEnabled()?(i=d(l.BYTE,n.BYTE,e),o=d(l.KANJI,n.KANJI,e)):(i=d(l.BYTE_KANJI,n.BYTE,e),o=[]);return t.concat(r,i,o).sort(function(e,t){return e.index-t.index}).map(function(e){return{data:e.data,mode:e.mode,length:e.length}})}function f(e,t){switch(t){case n.NUMERIC:return i.getBitsLength(e);case n.ALPHANUMERIC:return o.getBitsLength(e);case n.KANJI:return s.getBitsLength(e);case n.BYTE:return a.getBitsLength(e)}}function m(e,t){let r;const l=n.getBestModeForData(e);if(r=n.from(t,l),r!==n.BYTE&&r.bit<l.bit)throw new Error('"'+e+'" cannot be encoded with mode '+n.toString(r)+".\n Suggested mode is: "+n.toString(l));switch(r!==n.KANJI||c.isKanjiModeEnabled()||(r=n.BYTE),r){case n.NUMERIC:return new i(e);case n.ALPHANUMERIC:return new o(e);case n.KANJI:return new s(e);case n.BYTE:return new a(e)}}t.fromArray=function(e){return e.reduce(function(e,t){return"string"==typeof t?e.push(m(t,null)):t.data&&e.push(m(t.data,t.mode)),e},[])},t.fromString=function(e,r){const i=function(e){const t=[];for(let r=0;r<e.length;r++){const i=e[r];switch(i.mode){case n.NUMERIC:t.push([i,{data:i.data,mode:n.ALPHANUMERIC,length:i.length},{data:i.data,mode:n.BYTE,length:i.length}]);break;case n.ALPHANUMERIC:t.push([i,{data:i.data,mode:n.BYTE,length:i.length}]);break;case n.KANJI:t.push([i,{data:i.data,mode:n.BYTE,length:p(i.data)}]);break;case n.BYTE:t.push([{data:i.data,mode:n.BYTE,length:p(i.data)}])}}return t}(h(e,c.isKanjiModeEnabled())),o=function(e,t){const r={},i={start:{}};let o=["start"];for(let a=0;a<e.length;a++){const s=e[a],l=[];for(let e=0;e<s.length;e++){const c=s[e],u=""+a+e;l.push(u),r[u]={node:c,lastCount:0},i[u]={};for(let e=0;e<o.length;e++){const a=o[e];r[a]&&r[a].node.mode===c.mode?(i[a][u]=f(r[a].lastCount+c.length,c.mode)-f(r[a].lastCount,c.mode),r[a].lastCount+=c.length):(r[a]&&(r[a].lastCount=c.length),i[a][u]=f(c.length,c.mode)+4+n.getCharCountIndicator(c.mode,t))}}o=l}for(let e=0;e<o.length;e++)i[o[e]].end=0;return{map:i,table:r}}(i,r),a=u.find_path(o.map,"start","end"),s=[];for(let e=1;e<a.length-1;e++)s.push(o.table[a[e]].node);return t.fromArray(function(e){return e.reduce(function(e,t){const r=e.length-1>=0?e[e.length-1]:null;return r&&r.mode===t.mode?(e[e.length-1].data+=t.data,e):(e.push(t),e)},[])}(s))},t.rawSplit=function(e){return t.fromArray(h(e,c.isKanjiModeEnabled()))}},(e,t,r)=>{const n=r(1667);function i(e){this.mode=n.NUMERIC,this.data=e.toString()}i.getBitsLength=function(e){return 10*Math.floor(e/3)+(e%3?e%3*3+1:0)},i.prototype.getLength=function(){return this.data.length},i.prototype.getBitsLength=function(){return i.getBitsLength(this.data.length)},i.prototype.write=function(e){let t,r,n;for(t=0;t+3<=this.data.length;t+=3)r=this.data.substr(t,3),n=parseInt(r,10),e.put(n,10);const i=this.data.length-t;i>0&&(r=this.data.substr(t),n=parseInt(r,10),e.put(n,3*i+1))},e.exports=i},(e,t,r)=>{const n=r(1667),i=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"," ","$","%","*","+","-",".","/",":"];function o(e){this.mode=n.ALPHANUMERIC,this.data=e}o.getBitsLength=function(e){return 11*Math.floor(e/2)+e%2*6},o.prototype.getLength=function(){return this.data.length},o.prototype.getBitsLength=function(){return o.getBitsLength(this.data.length)},o.prototype.write=function(e){let t;for(t=0;t+2<=this.data.length;t+=2){let r=45*i.indexOf(this.data[t]);r+=i.indexOf(this.data[t+1]),e.put(r,11)}this.data.length%2&&e.put(i.indexOf(this.data[t]),6)},e.exports=o},(e,t,r)=>{const n=r(1667);function i(e){this.mode=n.BYTE,this.data="string"==typeof e?(new TextEncoder).encode(e):new Uint8Array(e)}i.getBitsLength=function(e){return 8*e},i.prototype.getLength=function(){return this.data.length},i.prototype.getBitsLength=function(){return i.getBitsLength(this.data.length)},i.prototype.write=function(e){for(let t=0,r=this.data.length;t<r;t++)e.put(this.data[t],8)},e.exports=i},(e,t,r)=>{const n=r(1667),i=r(1655);function o(e){this.mode=n.KANJI,this.data=e}o.getBitsLength=function(e){return 13*e},o.prototype.getLength=function(){return this.data.length},o.prototype.getBitsLength=function(){return o.getBitsLength(this.data.length)},o.prototype.write=function(e){let t;for(t=0;t<this.data.length;t++){let r=i.toSJIS(this.data[t]);if(r>=33088&&r<=40956)r-=33088;else{if(!(r>=57408&&r<=60351))throw new Error("Invalid SJIS character: "+this.data[t]+"\nMake sure your charset is UTF-8");r-=49472}r=192*(r>>>8&255)+(255&r),e.put(r,13)}},e.exports=o},e=>{"use strict";var t={single_source_shortest_paths:function(e,r,n){var i={},o={};o[r]=0;var a,s,l,c,u,p,d,h=t.PriorityQueue.make();for(h.push(r,0);!h.empty();)for(l in s=(a=h.pop()).value,c=a.cost,u=e[s]||{})u.hasOwnProperty(l)&&(p=c+u[l],d=o[l],(void 0===o[l]||d>p)&&(o[l]=p,h.push(l,p),i[l]=s));if(void 0!==n&&void 0===o[n]){var f=["Could not find a path from ",r," to ",n,"."].join("");throw new Error(f)}return i},extract_shortest_path_from_predecessor_list:function(e,t){for(var r=[],n=t;n;)r.push(n),e[n],n=e[n];return r.reverse(),r},find_path:function(e,r,n){var i=t.single_source_shortest_paths(e,r,n);return t.extract_shortest_path_from_predecessor_list(i,n)},PriorityQueue:{make:function(e){var r,n=t.PriorityQueue,i={};for(r in e=e||{},n)n.hasOwnProperty(r)&&(i[r]=n[r]);return i.queue=[],i.sorter=e.sorter||n.default_sorter,i},default_sorter:function(e,t){return e.cost-t.cost},push:function(e,t){var r={value:e,cost:t};this.queue.push(r),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return 0===this.queue.length}}};e.exports=t},(e,t,r)=>{const n=r(1678);t.render=function(e,t,r){let i=r,o=t;void 0!==i||t&&t.getContext||(i=t,t=void 0),t||(o=function(){try{return document.createElement("canvas")}catch(e){throw new Error("You need to specify a canvas element")}}()),i=n.getOptions(i);const a=n.getImageWidth(e.modules.size,i),s=o.getContext("2d"),l=s.createImageData(a,a);return n.qrToImageData(l.data,e,i),function(e,t,r){e.clearRect(0,0,t.width,t.height),t.style||(t.style={}),t.height=r,t.width=r,t.style.height=r+"px",t.style.width=r+"px"}(s,o,a),s.putImageData(l,0,0),o},t.renderToDataURL=function(e,r,n){let i=n;void 0!==i||r&&r.getContext||(i=r,r=void 0),i||(i={});
41const o=t.render(e,r,i),a=i.type||"image/png",s=i.rendererOpts||{};return o.toDataURL(a,s.quality)}},(e,t)=>{function r(e){if("number"==typeof e&&(e=e.toString()),"string"!=typeof e)throw new Error("Color should be defined as hex string");let t=e.slice().replace("#","").split("");if(t.length<3||5===t.length||t.length>8)throw new Error("Invalid hex color: "+e);3!==t.length&&4!==t.length||(t=Array.prototype.concat.apply([],t.map(function(e){return[e,e]}))),6===t.length&&t.push("F","F");const r=parseInt(t.join(""),16);return{r:r>>24&255,g:r>>16&255,b:r>>8&255,a:255&r,hex:"#"+t.slice(0,6).join("")}}t.getOptions=function(e){e||(e={}),e.color||(e.color={});const t=void 0===e.margin||null===e.margin||e.margin<0?4:e.margin,n=e.width&&e.width>=21?e.width:void 0,i=e.scale||4;return{width:n,scale:n?4:i,margin:t,color:{dark:r(e.color.dark||"#000000ff"),light:r(e.color.light||"#ffffffff")},type:e.type,rendererOpts:e.rendererOpts||{}}},t.getScale=function(e,t){return t.width&&t.width>=e+2*t.margin?t.width/(e+2*t.margin):t.scale},t.getImageWidth=function(e,r){const n=t.getScale(e,r);return Math.floor((e+2*r.margin)*n)},t.qrToImageData=function(e,r,n){const i=r.modules.size,o=r.modules.data,a=t.getScale(i,n),s=Math.floor((i+2*n.margin)*a),l=n.margin*a,c=[n.color.light,n.color.dark];for(let t=0;t<s;t++)for(let r=0;r<s;r++){let u=4*(t*s+r),p=n.color.light;if(t>=l&&r>=l&&t<s-l&&r<s-l){p=c[o[Math.floor((t-l)/a)*i+Math.floor((r-l)/a)]?1:0]}e[u++]=p.r,e[u++]=p.g,e[u++]=p.b,e[u]=p.a}}},(e,t,r)=>{const n=r(1678);function i(e,t){const r=e.a/255,n=t+'="'+e.hex+'"';return r<1?n+" "+t+'-opacity="'+r.toFixed(2).slice(1)+'"':n}function o(e,t,r){let n=e+t;return void 0!==r&&(n+=" "+r),n}t.render=function(e,t,r){const a=n.getOptions(t),s=e.modules.size,l=e.modules.data,c=s+2*a.margin,u=a.color.light.a?"<path "+i(a.color.light,"fill")+' d="M0 0h'+c+"v"+c+'H0z"/>':"",p="<path "+i(a.color.dark,"stroke")+' d="'+function(e,t,r){let n="",i=0,a=!1,s=0;for(let l=0;l<e.length;l++){const c=Math.floor(l%t),u=Math.floor(l/t);c||a||(a=!0),e[l]?(s++,l>0&&c>0&&e[l-1]||(n+=a?o("M",c+r,.5+u+r):o("m",i,0),i=0,a=!1),c+1<t&&e[l+1]||(n+=o("h",s),s=0)):i++}return n}(l,s,a.margin)+'"/>',d='viewBox="0 0 '+c+" "+c+'"',h='<svg xmlns="http://www.w3.org/2000/svg" '+(a.width?'width="'+a.width+'" height="'+a.width+'" ':"")+d+' shape-rendering="crispEdges">'+u+p+"</svg>\n";return"function"==typeof r&&r(null,h),h}},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,e=>{var t=/^\s+|\s+$/g,r=/^[-+]0x[0-9a-f]+$/i,n=/^0b[01]+$/i,i=/^0o[0-7]+$/i,o=parseInt,a="object"==typeof globalThis&&globalThis&&globalThis.Object===Object&&globalThis,s="object"==typeof self&&self&&self.Object===Object&&self,l=a||s||Function("return this")(),c=Object.prototype.toString,u=Math.max,p=Math.min,d=function(){return l.Date.now()};function h(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function f(e){if("number"==typeof e)return e;if(function(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&"[object Symbol]"==c.call(e)}(e))return NaN;if(h(e)){var a="function"==typeof e.valueOf?e.valueOf():e;e=h(a)?a+"":a}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(t,"");var s=n.test(e);return s||i.test(e)?o(e.slice(2),s?2:8):r.test(e)?NaN:+e}e.exports=function(e,t,r){var n,i,o,a,s,l,c=0,m=!1,g=!1,y=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function b(t){var r=n,o=i;return n=i=void 0,c=t,a=e.apply(o,r)}function v(e){var r=e-l;return void 0===l||r>=t||r<0||g&&e-c>=o}function _(){var e=d();if(v(e))return S(e);s=setTimeout(_,function(e){var r=t-(e-l);return g?p(r,o-(e-c)):r}(e))}function S(e){return s=void 0,y&&n?b(e):(n=i=void 0,a)}function E(){var e=d(),r=v(e);if(n=arguments,i=this,l=e,r){if(void 0===s)return function(e){return c=e,s=setTimeout(_,t),m?b(e):a}(l);if(g)return s=setTimeout(_,t),b(l)}return void 0===s&&(s=setTimeout(_,t)),a}return t=f(t)||0,h(r)&&(m=!!r.leading,o=(g="maxWait"in r)?u(f(r.maxWait)||0,t):o,y="trailing"in r?!!r.trailing:y),E.cancel=function(){void 0!==s&&clearTimeout(s),c=0,n=l=i=s=void 0},E.flush=function(){return void 0===s?a:S(d())},E}},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,(e,t,r)=>{"use strict";r.r(t),r.d(t,{AbstractSeries:()=>n.default,ArcSeries:()=>i.default,AreaSeries:()=>o.default,AxisUtils:()=>re.default,Borders:()=>a.default,ChartLabel:()=>s.default,CircularGridLines:()=>l.default,ContentClipPath:()=>ee.default,ContinuousColorLegend:()=>G.default,ContinuousSizeLegend:()=>q.default,ContourSeries:()=>c.default,Crosshair:()=>u.default,CustomSVGSeries:()=>p.default,DecorativeAxis:()=>d.default,DiscreteColorLegend:()=>$.default,FlexibleHeightXYPlot:()=>te.FlexibleHeightXYPlot,FlexibleWidthXYPlot:()=>te.FlexibleWidthXYPlot,FlexibleXYPlot:()=>te.FlexibleXYPlot,GradientDefs:()=>h.default,GridLines:()=>f.default,HeatmapSeries:()=>m.default,HexbinSeries:()=>g.default,Highlight:()=>y.default,Hint:()=>b.default,HorizontalBarSeries:()=>v.default,HorizontalBarSeriesCanvas:()=>_.default,HorizontalGridLines:()=>S.default,HorizontalRectSeries:()=>E.default,HorizontalRectSeriesCanvas:()=>T.default,LabelSeries:()=>w.default,LineMarkSeries:()=>x.default,LineMarkSeriesCanvas:()=>O.default,LineSeries:()=>I.default,LineSeriesCanvas:()=>A.default,MarkSeries:()=>k.default,MarkSeriesCanvas:()=>R.default,ParallelCoordinates:()=>Y.default,PolygonSeries:()=>C.default,RadarChart:()=>K.default,RadialChart:()=>J.default,RectSeries:()=>B.default,RectSeriesCanvas:()=>U.default,Sankey:()=>Q.default,ScaleUtils:()=>ne.default,SearchableDiscreteColorLegend:()=>W.default,Sunburst:()=>X.default,Treemap:()=>Z.default,VerticalBarSeries:()=>P.default,VerticalBarSeriesCanvas:()=>D.default,VerticalGridLines:()=>M.default,VerticalRectSeries:()=>N.default,VerticalRectSeriesCanvas:()=>L.default,Voronoi:()=>F.default,WhiskerSeries:()=>j.default,XAxis:()=>V.default,XYPlot:()=>H.default,YAxis:()=>z.default,makeHeightFlexible:()=>te.makeHeightFlexible,makeVisFlexible:()=>te.makeVisFlexible,makeWidthFlexible:()=>te.makeWidthFlexible});var n=r(2131),i=r(2232),o=r(2241),a=r(2298),s=r(2299),l=r(2300),c=r(2302),u=r(2328),p=r(2329),d=r(2330),h=r(2332),f=r(2333),m=r(2334),g=r(2335),y=r(2338),b=r(2339),v=r(2340),_=r(2342),S=r(2344),E=r(2345),T=r(2347),w=r(2349),x=r(2350),O=r(2353),I=r(2351),A=r(2355),k=r(2352),R=r(2354),C=r(2356),P=r(2357),D=r(2358),M=r(2359),N=r(2360),L=r(2361),F=r(2362),B=r(2346),U=r(2348),j=r(2363),H=r(2364),V=r(2426),z=r(2431),G=r(2432),q=r(2433),$=r(2434),W=r(2436),Y=r(2437),K=r(2438),J=r(2439),Q=r(2440),X=r(2456),Z=r(2475),ee=r(2492),te=r(2493),re=r(2301),ne=r(2172)},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>_});var n=r(782),i=r.n(n),o=r(2132),a=r(341),s=r(2142),l=r(2172);function c(e){return c="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},c(e)}function u(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}
41function p(e,t){return p=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},p(e,t)}function d(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}();return function(){var r,n=f(e);if(t){var i=f(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return function(e,t){if(t&&("object"===c(t)||"function"==typeof t))return t;return h(e)}(this,r)}}function h(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function f(e){return f=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},f(e)}function m(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function g(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?m(Object(r),!0).forEach(function(t){y(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):m(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function y(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var b=g(g(g(g(g(g({},(0,l.getScalePropTypesByAttribute)("x")),(0,l.getScalePropTypesByAttribute)("y")),(0,l.getScalePropTypesByAttribute)("size")),(0,l.getScalePropTypesByAttribute)("opacity")),(0,l.getScalePropTypesByAttribute)("color")),{},{width:i().number,height:i().number,data:i().arrayOf(i().oneOfType([i().object,i().array])),onValueMouseOver:i().func,onValueMouseOut:i().func,onValueClick:i().func,onValueRightClick:i().func,onSeriesMouseOver:i().func,onSeriesMouseOut:i().func,onSeriesClick:i().func,onSeriesRightClick:i().func,onNearestX:i().func,onNearestXY:i().func,style:i().object,animation:s.AnimationPropType,stack:i().bool}),v=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&p(e,t)}(a,e);var t,r,n,i=d(a);function a(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a);for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return y(h(e=i.call.apply(i,[this].concat(r))),"_seriesClickHandler",function(t){var r=e.props.onSeriesClick;r&&r({event:t})}),y(h(e),"_seriesMouseOutHandler",function(t){var r=e.props.onSeriesMouseOut;r&&r({event:t})}),y(h(e),"_seriesMouseOverHandler",function(t){var r=e.props.onSeriesMouseOver;r&&r({event:t})}),y(h(e),"_seriesRightClickHandler",function(t){var r=e.props.onSeriesRightClick;r&&r({event:t})}),y(h(e),"_valueClickHandler",function(t,r){var n=e.props,i=n.onValueClick,o=n.onSeriesClick;i&&i(t,{event:r}),o&&o({event:r})}),y(h(e),"_valueMouseOutHandler",function(t,r){var n=e.props,i=n.onValueMouseOut,o=n.onSeriesMouseOut;i&&i(t,{event:r}),o&&o({event:r})}),y(h(e),"_valueMouseOverHandler",function(t,r){var n=e.props,i=n.onValueMouseOver,o=n.onSeriesMouseOver;i&&i(t,{event:r}),o&&o({event:r})}),y(h(e),"_valueRightClickHandler",function(t,r){var n=e.props,i=n.onValueRightClick,o=n.onSeriesRightClick;i&&i(t,{event:r}),o&&o({event:r})}),e}return t=a,n=[{key:"getParentConfig",value:function(){return{}}},{key:"requiresSVG",get:function(){return!0}}],(r=[{key:"onParentMouseMove",value:function(e){var t=this.props,r=t.onNearestX,n=t.onNearestXY,i=t.data;(r||n)&&i&&(n?this._handleNearestXY(e):this._handleNearestX(e))}},{key:"onParentTouchMove",value:function(e){e.preventDefault(),this.onParentMouseMove(e)}},{key:"onParentTouchStart",value:function(e){e.preventDefault()}},{key:"_getAttr0Functor",value:function(e){return(0,l.getAttr0Functor)(this.props,e)}},{key:"_getAttributeFunctor",value:function(e){return(0,l.getAttributeFunctor)(this.props,e)}},{key:"_getAttributeValue",value:function(e){return(0,l.getAttributeValue)(this.props,e)}},{key:"_getScaleDistance",value:function(e){var t=(0,l.getScaleObjectFromProps)(this.props,e);return t?t.distance:0}},{key:"_getXYCoordinateInContainer",value:function(e){var t=this.props,r=t.marginTop,n=void 0===r?0:r,i=t.marginLeft,o=void 0===i?0:i,a=e.nativeEvent,s=e.currentTarget,l=s.getBoundingClientRect(),c=a.clientX,u=a.clientY;return"touchmove"===a.type&&(c=a.touches[0].pageX,u=a.touches[0].pageY),{x:c-l.left-s.clientLeft-o,y:u-l.top-s.clientTop-n}}},{key:"_handleNearestX",value:function(e){var t=this.props,r=t.onNearestX,n=t.data,i=Number.POSITIVE_INFINITY,o=null,a=null,s=this._getXYCoordinateInContainer(e),l=this._getAttributeFunctor("x");
41n.forEach(function(e,t){var r=l(e),n=Math.abs(s.x-r);n<i&&(i=n,o=e,a=t)}),o&&r(o,{innerX:l(o),index:a,event:e.nativeEvent})}},{key:"_handleNearestXY",value:function(e){var t=this.props,r=t.onNearestXY,n=t.data,i=this._getXYCoordinateInContainer(e),a=this._getAttributeFunctor("x"),s=this._getAttributeFunctor("y"),l=(0,o.voronoi)().x(a).y(s)(n).find(i.x,i.y),c=l.data;c&&r(c,{innerX:l[0],innerY:l[1],index:l.index,event:e.nativeEvent})}}])&&u(t.prototype,r),n&&u(t,n),a}(a.PureComponent);v.displayName="AbstractSeries",v.propTypes=b,v.defaultProps={className:"",stack:!1,style:{}};const _=v},(e,t,r)=>{"use strict";r.r(t),r.d(t,{voronoi:()=>n.default});var n=r(2133)},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>a}),r.dn(a);var n=r(2134),i=r(2135),o=r(2136);function a(){var e=i.x,t=i.y,r=null;function a(n){return new o.default(n.map(function(r,i){var a=[Math.round(e(r,i,n)/o.epsilon)*o.epsilon,Math.round(t(r,i,n)/o.epsilon)*o.epsilon];return a.index=i,a.data=r,a}),r)}return a.polygons=function(e){return a(e).polygons()},a.links=function(e){return a(e).links()},a.triangles=function(e){return a(e).triangles()},a.x=function(t){return arguments.length?(e="function"==typeof t?t:(0,n.default)(+t),a):e},a.y=function(e){return arguments.length?(t="function"==typeof e?e:(0,n.default)(+e),a):t},a.extent=function(e){return arguments.length?(r=null==e?null:[[+e[0][0],+e[0][1]],[+e[1][0],+e[1][1]]],a):r&&[[r[0][0],r[0][1]],[r[1][0],r[1][1]]]},a.size=function(e){return arguments.length?(r=null==e?null:[[0,0],[+e[0],+e[1]]],a):r&&[r[1][0]-r[0][0],r[1][1]-r[0][1]]},a}},(e,t,r)=>{"use strict";function n(e){return function(){return e}}r.r(t),r.d(t,{default:()=>n}),r.dn(n)},(e,t,r)=>{"use strict";function n(e){return e[0]}function i(e){return e[1]}r.r(t),r.d(t,{x:()=>n,y:()=>i})},(e,t,r)=>{"use strict";r.r(t),r.d(t,{beaches:()=>n,cells:()=>i,circles:()=>o,default:()=>g,edges:()=>a,epsilon:()=>d,epsilon2:()=>h});var n,i,o,a,s=r(2137),l=r(2139),c=r(2141),u=r(2140),p=r(2138),d=1e-6,h=1e-12;function f(e,t,r){return(e[0]-r[0])*(t[1]-e[1])-(e[0]-t[0])*(r[1]-e[1])}function m(e,t){return t[1]-e[1]||t[0]-e[0]}function g(e,t){var r,d,h,f=e.sort(m).pop();for(a=[],i=new Array(e.length),n=new p.default,o=new p.default;;)if(h=c.firstCircle,f&&(!h||f[1]<h.y||f[1]===h.y&&f[0]<h.x))f[0]===r&&f[1]===d||((0,s.addBeach)(f),r=f[0],d=f[1]),f=e.pop();else{if(!h)break;(0,s.removeBeach)(h.arc)}if((0,l.sortCellHalfedges)(),t){var g=+t[0][0],y=+t[0][1],b=+t[1][0],v=+t[1][1];(0,u.clipEdges)(g,y,b,v),(0,l.clipCells)(g,y,b,v)}this.edges=a,this.cells=i,n=o=a=i=null}g.prototype={constructor:g,polygons:function(){var e=this.edges;return this.cells.map(function(t){var r=t.halfedges.map(function(r){return(0,l.cellHalfedgeStart)(t,e[r])});return r.data=t.site.data,r})},triangles:function(){var e=[],t=this.edges;return this.cells.forEach(function(r,n){if(o=(i=r.halfedges).length)for(var i,o,a,s=r.site,l=-1,c=t[i[o-1]],u=c.left===s?c.right:c.left;++l<o;)a=u,u=(c=t[i[l]]).left===s?c.right:c.left,a&&u&&n<a.index&&n<u.index&&f(s,a,u)<0&&e.push([s.data,a.data,u.data])}),e},links:function(){return this.edges.filter(function(e){return e.right}).map(function(e){return{source:e.left.data,target:e.right.data}})},find:function(e,t,r){for(var n,i,o=this,a=o._found||0,s=o.cells.length;!(i=o.cells[a]);)if(++a>=s)return null;var l=e-i.site[0],c=t-i.site[1],u=l*l+c*c;
41do{i=o.cells[n=a],a=null,i.halfedges.forEach(function(r){var n=o.edges[r],s=n.left;if(s!==i.site&&s||(s=n.right)){var l=e-s[0],c=t-s[1],p=l*l+c*c;p<u&&(u=p,a=s.index)}})}while(null!==a);return o._found=n,null==r||u<=r*r?i.site:null}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{addBeach:()=>h,removeBeach:()=>d});var n=r(2138),i=r(2139),o=r(2141),a=r(2140),s=r(2136),l=[];function c(){(0,n.RedBlackNode)(this),this.edge=this.site=this.circle=null}function u(e){var t=l.pop()||new c;return t.site=e,t}function p(e){(0,o.detachCircle)(e),s.beaches.remove(e),l.push(e),(0,n.RedBlackNode)(e)}function d(e){var t=e.circle,r=t.x,n=t.cy,i=[r,n],l=e.P,c=e.N,u=[e];p(e);for(var d=l;d.circle&&Math.abs(r-d.circle.x)<s.epsilon&&Math.abs(n-d.circle.cy)<s.epsilon;)l=d.P,u.unshift(d),p(d),d=l;u.unshift(d),(0,o.detachCircle)(d);for(var h=c;h.circle&&Math.abs(r-h.circle.x)<s.epsilon&&Math.abs(n-h.circle.cy)<s.epsilon;)c=h.N,u.push(h),p(h),h=c;u.push(h),(0,o.detachCircle)(h);var f,m=u.length;for(f=1;f<m;++f)h=u[f],d=u[f-1],(0,a.setEdgeEnd)(h.edge,d.site,h.site,i);d=u[0],(h=u[m-1]).edge=(0,a.createEdge)(d.site,h.site,null,i),(0,o.attachCircle)(d),(0,o.attachCircle)(h)}function h(e){for(var t,r,n,l,c=e[0],p=e[1],d=s.beaches._;d;)if((n=f(d,p)-c)>s.epsilon)d=d.L;else{if(!((l=c-m(d,p))>s.epsilon)){n>-s.epsilon?(t=d.P,r=d):l>-s.epsilon?(t=d,r=d.N):t=r=d;break}if(!d.R){t=d;break}d=d.R}(0,i.createCell)(e);var h=u(e);if(s.beaches.insert(t,h),t||r){if(t===r)return(0,o.detachCircle)(t),r=u(t.site),s.beaches.insert(h,r),h.edge=r.edge=(0,a.createEdge)(t.site,h.site),(0,o.attachCircle)(t),void(0,o.attachCircle)(r);if(r){(0,o.detachCircle)(t),(0,o.detachCircle)(r);var g=t.site,y=g[0],b=g[1],v=e[0]-y,_=e[1]-b,S=r.site,E=S[0]-y,T=S[1]-b,w=2*(v*T-_*E),x=v*v+_*_,O=E*E+T*T,I=[(T*x-_*O)/w+y,(v*O-E*x)/w+b];(0,a.setEdgeEnd)(r.edge,g,S,I),h.edge=(0,a.createEdge)(g,e,null,I),r.edge=(0,a.createEdge)(e,S,null,I),(0,o.attachCircle)(t),(0,o.attachCircle)(r)}else h.edge=(0,a.createEdge)(t.site,h.site)}}function f(e,t){var r=e.site,n=r[0],i=r[1],o=i-t;if(!o)return n;var a=e.P;if(!a)return-1/0;var s=(r=a.site)[0],l=r[1],c=l-t;if(!c)return s;var u=s-n,p=1/o-1/c,d=u/c;return p?(-d+Math.sqrt(d*d-2*p*(u*u/(-2*c)-l+c/2+i-o/2)))/p+n:(n+s)/2}function m(e,t){var r=e.N;if(r)return f(r,t);var n=e.site;return n[1]===t?n[0]:1/0}},(e,t,r)=>{"use strict";function n(){this._=null}function i(e){e.U=e.C=e.L=e.R=e.P=e.N=null}function o(e,t){var r=t,n=t.R,i=r.U;i?i.L===r?i.L=n:i.R=n:e._=n,n.U=i,r.U=n,r.R=n.L,r.R&&(r.R.U=r),n.L=r}function a(e,t){var r=t,n=t.L,i=r.U;i?i.L===r?i.L=n:i.R=n:e._=n,n.U=i,r.U=n,r.L=n.R,r.L&&(r.L.U=r),n.R=r}function s(e){for(;e.L;)e=e.L;return e}r.r(t),r.d(t,{RedBlackNode:()=>i,default:()=>l}),n.prototype={constructor:n,insert:function(e,t){var r,n,i;if(e){if(t.P=e,t.N=e.N,e.N&&(e.N.P=t),e.N=t,e.R){for(e=e.R;e.L;)e=e.L;e.L=t}else e.R=t;r=e}else this._?(e=s(this._),t.P=null,t.N=e,e.P=e.L=t,r=e):(t.P=t.N=null,this._=t,r=null);for(t.L=t.R=null,t.U=r,t.C=!0,e=t;r&&r.C;)r===(n=r.U).L?(i=n.R)&&i.C?(r.C=i.C=!1,n.C=!0,e=n):(e===r.R&&(o(this,r),r=(e=r).U),r.C=!1,n.C=!0,a(this,n)):(i=n.L)&&i.C?(r.C=i.C=!1,n.C=!0,e=n):(e===r.L&&(a(this,r),r=(e=r).U),r.C=!1,n.C=!0,o(this,n)),r=e.U;this._.C=!1},remove:function(e){e.N&&(e.N.P=e.P),e.P&&(e.P.N=e.N),e.N=e.P=null;var t,r,n,i=e.U,l=e.L,c=e.R;if(r=l?c?s(c):l:c,i?i.L===e?i.L=r:i.R=r:this._=r,l&&c?(n=r.C,r.C=e.C,r.L=l,l.U=r,r!==c?(i=r.U,r.U=e.U,e=r.R,i.L=e,r.R=c,c.U=r):(r.U=i,i=r,e=r.R)):(n=e.C,e=r),e&&(e.U=i),!n)if(e&&e.C)e.C=!1;else{do{if(e===this._)break;if(e===i.L){if((t=i.R).C&&(t.C=!1,i.C=!0,o(this,i),t=i.R),t.L&&t.L.C||t.R&&t.R.C){t.R&&t.R.C||(t.L.C=!1,t.C=!0,a(this,t),t=i.R),t.C=i.C,i.C=t.R.C=!1,o(this,i),e=this._;break}}else if((t=i.L).C&&(t.C=!1,i.C=!0,a(this,i),t=i.L),t.L&&t.L.C||t.R&&t.R.C){t.L&&t.L.C||(t.R.C=!1,t.C=!0,o(this,t),t=i.L),t.C=i.C,i.C=t.L.C=!1,a(this,i),e=this._;break}t.C=!0,e=i,i=i.U}while(!e.C);e&&(e.C=!1)}}};const l=n},(e,t,r)=>{"use strict";r.r(t),r.d(t,{cellHalfedgeEnd:()=>l,cellHalfedgeStart:()=>s,clipCells:()=>u,createCell:()=>o,sortCellHalfedges:()=>c});var n=r(2140),i=r(2136);function o(e){return i.cells[e.index]={site:e,halfedges:[]}}function a(e,t){var r=e.site,n=t.left,i=t.right;return r===i&&(i=n,n=r),i?Math.atan2(i[1]-n[1],i[0]-n[0]):(r===n?(n=t[1],i=t[0]):(n=t[0],i=t[1]),Math.atan2(n[0]-i[0],i[1]-n[1]))}function s(e,t){return t[+(t.left!==e.site)]}function l(e,t){return t[+(t.left===e.site)]}function c(){for(var e,t,r,n,o=0,s=i.cells.length;o<s;++o)if((e=i.cells[o])&&(n=(t=e.halfedges).length)){var l=new Array(n),c=new Array(n);for(r=0;r<n;++r)l[r]=r,c[r]=a(e,i.edges[t[r]]);for(l.sort(function(e,t){return c[t]-c[e]}),r=0;r<n;++r)c[r]=t[l[r]];for(r=0;r<n;++r)t[r]=c[r]}}function u(e,t,r,o){var a,c,u,p,d,h,f,m,g,y,b,v,_=i.cells.length,S=!0;for(a=0;a<_;++a)if(c=i.cells[a]){for(u=c.site,p=(d=c.halfedges).length;p--;)i.edges[d[p]]||d.splice(p,1);for(p=0,h=d.length;p<h;)b=(y=l(c,i.edges[d[p]]))[0],v=y[1],m=(f=s(c,i.edges[d[++p%h]]))[0],g=f[1],(Math.abs(b-m)>i.epsilon||Math.abs(v-g)>i.epsilon)&&(d.splice(p,0,i.edges.push((0,n.createBorderEdge)(u,y,Math.abs(b-e)<i.epsilon&&o-v>i.epsilon?[e,Math.abs(m-e)<i.epsilon?g:o]:Math.abs(v-o)<i.epsilon&&r-b>i.epsilon?[Math.abs(g-o)<i.epsilon?m:r,o]:Math.abs(b-r)<i.epsilon&&v-t>i.epsilon?[r,Math.abs(m-r)<i.epsilon?g:t]:Math.abs(v-t)<i.epsilon&&b
vendor: 5,338 bytes, line 41
41-e>i.epsilon?[Math.abs(g-t)<i.epsilon?m:e,t]:null))-1),++h);h&&(S=!1)}if(S){var E,T,w,x=1/0;for(a=0,S=null;a<_;++a)(c=i.cells[a])&&(w=(E=(u=c.site)[0]-e)*E+(T=u[1]-t)*T)<x&&(x=w,S=c);if(S){var O=[e,t],I=[e,o],A=[r,o],k=[r,t];S.halfedges.push(i.edges.push((0,n.createBorderEdge)(u=S.site,O,I))-1,i.edges.push((0,n.createBorderEdge)(u,I,A))-1,i.edges.push((0,n.createBorderEdge)(u,A,k))-1,i.edges.push((0,n.createBorderEdge)(u,k,O))-1)}}for(a=0;a<_;++a)(c=i.cells[a])&&(c.halfedges.length||delete i.cells[a])}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{clipEdges:()=>c,createBorderEdge:()=>o,createEdge:()=>i,setEdgeEnd:()=>a});var n=r(2136);function i(e,t,r,i){var o=[null,null],s=n.edges.push(o)-1;return o.left=e,o.right=t,r&&a(o,e,t,r),i&&a(o,t,e,i),n.cells[e.index].halfedges.push(s),n.cells[t.index].halfedges.push(s),o}function o(e,t,r){var n=[t,r];return n.left=e,n}function a(e,t,r,n){e[0]||e[1]?e.left===r?e[1]=n:e[0]=n:(e[0]=n,e.left=t,e.right=r)}function s(e,t,r,n,i){var o,a=e[0],s=e[1],l=a[0],c=a[1],u=0,p=1,d=s[0]-l,h=s[1]-c;if(o=t-l,d||!(o>0)){if(o/=d,d<0){if(o<u)return;o<p&&(p=o)}else if(d>0){if(o>p)return;o>u&&(u=o)}if(o=n-l,d||!(o<0)){if(o/=d,d<0){if(o>p)return;o>u&&(u=o)}else if(d>0){if(o<u)return;o<p&&(p=o)}if(o=r-c,h||!(o>0)){if(o/=h,h<0){if(o<u)return;o<p&&(p=o)}else if(h>0){if(o>p)return;o>u&&(u=o)}if(o=i-c,h||!(o<0)){if(o/=h,h<0){if(o>p)return;o>u&&(u=o)}else if(h>0){if(o<u)return;o<p&&(p=o)}return!(u>0||p<1)||(u>0&&(e[0]=[l+u*d,c+u*h]),p<1&&(e[1]=[l+p*d,c+p*h]),!0)}}}}}function l(e,t,r,n,i){var o=e[1];if(o)return!0;var a,s,l=e[0],c=e.left,u=e.right,p=c[0],d=c[1],h=u[0],f=u[1],m=(p+h)/2,g=(d+f)/2;if(f===d){if(m<t||m>=n)return;if(p>h){if(l){if(l[1]>=i)return}else l=[m,r];o=[m,i]}else{if(l){if(l[1]<r)return}else l=[m,i];o=[m,r]}}else if(s=g-(a=(p-h)/(f-d))*m,a<-1||a>1)if(p>h){if(l){if(l[1]>=i)return}else l=[(r-s)/a,r];o=[(i-s)/a,i]}else{if(l){if(l[1]<r)return}else l=[(i-s)/a,i];o=[(r-s)/a,r]}else if(d<f){if(l){if(l[0]>=n)return}else l=[t,a*t+s];o=[n,a*n+s]}else{if(l){if(l[0]<t)return}else l=[n,a*n+s];o=[t,a*t+s]}return e[0]=l,e[1]=o,!0}function c(e,t,r,i){for(var o,a=n.edges.length;a--;)l(o=n.edges[a],e,t,r,i)&&s(o,e,t,r,i)&&(Math.abs(o[0][0]-o[1][0])>n.epsilon||Math.abs(o[0][1]-o[1][1])>n.epsilon)||delete n.edges[a]}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{attachCircle:()=>l,detachCircle:()=>c,firstCircle:()=>n});var n,i=r(2138),o=r(2136),a=[];function s(){(0,i.RedBlackNode)(this),this.x=this.y=this.arc=this.site=this.cy=null}function l(e){var t=e.P,r=e.N;if(t&&r){var i=t.site,l=e.site,c=r.site;if(i!==c){var u=l[0],p=l[1],d=i[0]-u,h=i[1]-p,f=c[0]-u,m=c[1]-p,g=2*(d*m-h*f);if(!(g>=-o.epsilon2)){var y=d*d+h*h,b=f*f+m*m,v=(m*y-h*b)/g,_=(d*b-f*y)/g,S=a.pop()||new s;S.arc=e,S.site=l,S.x=v+u,S.y=(S.cy=_+p)+Math.sqrt(v*v+_*_),e.circle=S;for(var E=null,T=o.circles._;T;)if(S.y<T.y||S.y===T.y&&S.x<=T.x){if(!T.L){E=T.P;break}T=T.L}else{if(!T.R){E=T;break}T=T.R}o.circles.insert(E,S),E||(n=S)}}}}function c(e){var t=e.circle;t&&(t.P||(n=t.N),o.circles.remove(t),a.push(t),(0,i.RedBlackNode)(t),e.circle=null)}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{AnimationPropType:()=>w,default:()=>T,extractAnimatedPropValues:()=>S});var n=r(341),i=r(782),o=r.n(i),a=r(2143),s=r(2157);function l(e){return l="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},l(e)}function c(){return c=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},c.apply(this,arguments)}function u(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function p(e,t){return p=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},p(e,t)}function d(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}();return function(){var r,n=f(e);if(t){var i=f(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return function(e,t){if(t&&("object"===l(t)||"function"==typeof t))return t;return h(e)}(this,r)}}function h(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function f(e){return f=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},f(e)}function m(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function g(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function y(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};
vendor: 14,322 bytes, line 41
41t%2?g(Object(r),!0).forEach(function(t){b(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):g(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function b(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var v=o().oneOfType([o().string,o().shape({stiffness:o().number,nonAnimatedProps:o().arrayOf(o().string),damping:o().number}),o().bool]),_={animatedProps:o().arrayOf(o().string).isRequired,animation:v,onStart:o().func,onEnd:o().func};function S(e){var t=e.animatedProps,r=m(e,["animatedProps"]);return t.reduce(function(e,t){return Object.prototype.hasOwnProperty.call(r,t)&&(e[t]=r[t]),e},{})}var E=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&p(e,t)}(l,e);var t,r,i,o=d(l);function l(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l),b(h(t=o.call(this,e)),"_motionEndHandler",function(){t.props.onEnd&&t.props.onEnd()}),b(h(t),"_renderChildren",function(e){var r=e.i,i=t.props.children,o=t._interpolator,a=n.default.Children.only(i),s=o?o(r):o,l=s&&s.data||null;return l&&a.props._data&&(l=l.map(function(e,t){var r=a.props._data[t];return y(y({},e),{},{parent:r.parent,children:r.children})})),n.default.cloneElement(a,y(y(y({},a.props),s),{},{data:l||a.props.data||null,_animation:Math.random()}))}),t._updateInterpolator(e),t}return t=l,r=[{key:"UNSAFE_componentWillUpdate",value:function(e){this._updateInterpolator(this.props,e),e.onStart&&e.onStart()}},{key:"_updateInterpolator",value:function(e,t){this._interpolator=(0,a.default)(S(e),t?S(t):null)}},{key:"render",value:function(){var e=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:s.presets.noWobble;if("string"==typeof e)return s.presets[e]||s.presets.noWobble;var t=e.damping,r=e.stiffness;return y(y({},e),{},{damping:t||s.presets.noWobble.damping,stiffness:r||s.presets.noWobble.stiffness})}(this.props.animation),t={i:(0,s.spring)(1,e)},r=Math.random();return n.default.createElement(s.Motion,c({defaultStyle:{i:0},style:t,key:r},{onRest:this._motionEndHandler}),this._renderChildren)}}],r&&u(t.prototype,r),i&&u(t,i),l}(n.PureComponent);E.propTypes=_,E.displayName="Animation";const T=E;var w=v},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>d}),r.dn(d);var n=r(2144),i=r(2146),o=r(2151),a=r(2153),s=r(2154),l=r(2155),c=r(2156),u=r(2150),p=r(2152);function d(e,t){var r,d=typeof t;return null==t||"boolean"===d?(0,u.default)(t):("number"===d?s.default:"string"===d?(r=(0,n.default)(t))?(t=r,i.default):c.default:t instanceof n.default?i.default:t instanceof Date?a.default:(0,p.isNumberArray)(t)?p.default:Array.isArray(t)?o.genericArray:"function"!=typeof t.valueOf&&"function"!=typeof t.toString||isNaN(t)?l.default:s.default)(e,t)}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{Color:()=>i,Rgb:()=>x,brighter:()=>a,darker:()=>o,default:()=>_,hsl:()=>D,hslConvert:()=>P,rgb:()=>w,rgbConvert:()=>T});var n=r(2145);function i(){}var o=.7,a=1/o,s="\\s*([+-]?\\d+)\\s*",l="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",c="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",u=/^#([0-9a-f]{3,8})$/,p=new RegExp(`^rgb\\(${s},${s},${s}\\)$`),d=new RegExp(`^rgb\\(${c},${c},${c}\\)$`),h=new RegExp(`^rgba\\(${s},${s},${s},${l}\\)$`),f=new RegExp(`^rgba\\(${c},${c},${c},${l}\\)$`),m=new RegExp(`^hsl\\(${l},${c},${c}\\)$`),g=new RegExp(`^hsla\\(${l},${c},${c},${l}\\)$`),y={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function b(){return this.rgb().formatHex()}function v(){return this.rgb().formatRgb()}function _(e){var t,r;return e=(e+"").trim().toLowerCase(),(t=u.exec(e))?(r=t[1].length,t=parseInt(t[1],16),6===r?S(t):3===r?new x(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===r?E(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===r?E(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|240&t,((15&t)<<4|15&t)/255):null):(t=p.exec(e))?new x(t[1],t[2],t[3],1):(t=d.exec(e))?new x(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=h.exec(e))?E(t[1],t[2],t[3],t[4]):(t=f.exec(e))?E(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=m.exec(e))?C(t[1],t[2]/100,t[3]/100,1):(t=g.exec(e))?C(t[1],t[2]/100,t[3]/100,t[4]):y.hasOwnProperty(e)?S(y[e]):"transparent"===e?new x(NaN,NaN,NaN,0):null}function S(e){return new x(e>>16&255,e>>8&255,255&e,1)}function E(e,t,r,n){return n<=0&&(e=t=r=NaN),new x(e,t,r,n)}function T(e){return e instanceof i||(e=_(e)),e?new x((e=e.rgb()).r,e.g,e.b,e.opacity):new x}function w(e,t,r,n){return 1===arguments.length?T(e):new x(e,t,r,n??1)}function x(e,t,r,n){this.r=+e,this.g=+t,this.b=+r,this.opacity=+n}function O(){return`#${R(this.r)}${R(this.g)}${R(this.b)}`}function I(){const e=A(this.opacity);return`${1===e?"rgb(":"rgba("}${k(this.r)}, ${k(this.g)}, ${k(this.b)}${1===e?")":`, ${e})`}`}function A(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function k(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function R(e){return((e=k(e))<16?"0":"")+e.toString(16)}function C(e,t,r,n){return n<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new M(e,t,r,n)}function P(e){if(e instanceof M)return new M(e.h,e.s,e.l,e.opacity);if(e instanceof i||(e=_(e)),!e)return new M;if(e instanceof M)return e;var t=(e=e.rgb()).r/255,r=e.g/255,n=e.b/255,o=Math.min(t,r,n),a=Math.max(t,r,n),s=NaN,l=a-o,c=(a+o)/2;return l?(s=t===a?(r-n)/l+6*(r<n):r===a?(n-t)/l+2:(t-r)/l+4,l/=c<.5?a+o:2-a-o,s*=60):l=c>0&&c<1?0:s,new M(s,l,c,e.opacity)}function D(e,t,r,n){return 1===arguments.length?P(e):new M(e,t,r,n??1)}function M(e,t,r,n){this.h=+e,this.s=+t,this.l=+r,this.opacity=+n}function N(e){return(e=(e||0)%360)<0?e+360:e}function L(e){return Math.max(0,Math.min(1,e||0))}function F(e,t,r){return 255*(e<60?t+(r-t)*e/60:e<180?r:e<240?t+(r-t)*(240-e)/60:t)}(0,n.default)(i,_,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:b,formatHex:b,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return P(this).formatHsl()},formatRgb:v,toString:v}),(0,n.default)(x,w,(0,n.extend)(i,{brighter(e){return e=null==e?a:Math.pow(a,e),new x(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?o:Math.pow(o,e),new x(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new x(k(this.r),k(this.g),k(this.b),A(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:O,formatHex:O,formatHex8:function(){return`#${R(this.r)}${R(this.g)}${R(this.b)}${R(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:I,toString:I})),(0,n.default)(M,D,(0,n.extend)(i,{brighter(e){return e=null==e?a:Math.pow(a,e),new M(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?o:Math.pow(o,e),new M(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+360*(this.h<0),t=isNaN(e)||isNaN(this.s)?0:this.s,r=this.l,n=r+(r<.5?r:1-r)*t,i=2*r-n;return new x(F(e>=240?e-240:e+120,i,n),F(e,i,n),F(e<120?e+240:e-120,i,n),this.opacity)},clamp(){return new M(N(this.h),L(this.s),L(this.l),A(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=A(this.opacity);return`${1===e?"hsl(":"hsla("}${N(this.h)}, ${100*L(this.s)}%, ${100*L(this.l)}%${1===e?")":`, ${e})`}`}}))},(e,t,r)=>{"use strict";function n(e,t,r){e.prototype=t.prototype=r,r.constructor=e}function i(e,t){var r=Object.create(e.prototype);for(var n in t)r[n]=t[n];return r}r.r(t),r.d(t,{default:()=>n,extend:()=>i}),r.dn(n)},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>s,rgbBasis:()=>c,rgbBasisClosed:()=>u});var n=r(2144),i=r(2147),o=r(2148),a=r(2149);const s=function e(t){var r=(0,a.gamma)(t);function i(e,t){var i=r((e=(0,n.rgb)(e)).r,(t=(0,n.rgb)(t)).r),o=r(e.g,t.g),s=r(e.b,t.b),l=(0,a.default)(e.opacity,t.opacity);return function(t){return e.r=i(t),e.g=o(t),e.b=s(t),e.opacity=l(t),e+""}}return i.gamma=e,i}(1);function l(e){return function(t){var r,i,o=t.length,a=new Array(o),s=new Array(o),l=new Array(o);for(r=0;r<o;++r)i=(0,n.rgb)(t[r]),a[r]=i.r||0,s[r]=i.g||0,l[r]=i.b||0;return a=e(a),s=e(s),l=e(l),i.opacity=1,function(e){return i.r=a(e),i.g=s(e),i.b=l(e),i+""}}}var c=l(i.default),u=l(o.default)},(e,t,r)=>{"use strict";function n(e,t,r,n,i){var o=e*e,a=o*e;return((1-3*e+3*o-a)*t+(4-6*o+3*a)*r+(1+3*e+3*o-3*a)*n+a*i)/6}function i(e){var t=e.length-1;return function(r){var i=r<=0?r=0:r>=1?(r=1,t-1):Math.floor(r*t),o=e[i],a=e[i+1],s=i>0?e[i-1]:2*o-a,l=i<t-1?e[i+2]:2*a-o;return n((r-i/t)*t,s,o,a,l)}}r.r(t),r.d(t,{basis:()=>n,default:()=>i}),r.dn(i)},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>i}),r.dn(i);var n=r(2147);function i(e){var t=e.length;return function(r){var i=Math.floor(((r%=1)<0?++r:r)*t),o=e[(i+t-1)%t],a=e[i%t],s=e[(i+1)%t],l=e[(i+2)%t];return(0,n.basis)((r-i/t)*t,o,a,s,l)}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>s,gamma:()=>a,hue:()=>o});var n=r(2150);function i(e,t){return function(r){return e+r*t}}function o(e,t){var r=t-e;return r?i(e,r>180||r<-180?r-360*Math.round(r/360):r):(0,n.default)(isNaN(e)?t:e)}function a(e){return 1===(e=+e)?s:function(t,r){return r-t?function(e,t,r){return e=Math.pow(e,r),t=Math.pow(t,r)-e,r=1/r,function(n){return Math.pow(e+n*t,r)}}(t,r,e):(0,n.default)(isNaN(t)?r:t)}}function s(e,t){var r=t-e;return r?i(e,r):(0,n.default)(isNaN(e)?t:e)}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});const n=e=>()=>e;r.dn(n)},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>o,genericArray:()=>a}),r.dn(o);var n=r(2143),i=r(2152);function o(e,t){return((0,i.isNumberArray)(t)?i.default:a)(e,t)}function a(e,t){var r,i=t?t.length:0,o=e?Math.min(i,e.length):0,a=new Array(o),s=new Array(i);for(r=0;r<o;++r)a[r]=(0,n.default)(e[r],t[r]);for(;r<i;++r)s[r]=t[r];return function(e){for(r=0;r<o;++r)s[r]=a[r](e);return s}}},(e,t,r)=>{"use strict";function n(e,t){t||(t=[]);var r,n=e?Math.min(t.length,e.length):0,i=t.slice();return function(o){for(r=0;r<n;++r)i[r]=e[r]*(1-o)+t[r]*o;return i}}function i(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}r.r(t),r.d(t,{default:()=>n,isNumberArray:()=>i}),r.dn(n)},(e,t,r)=>{"use strict";function n(e,t){var r=new Date;return e=+e,t=+t,function(n){return r.setTime(e*(1-n)+t*n),r}}r.r(t),r.d(t,{default:()=>n}),r.dn(n)},(e,t,r)=>{"use strict";function n(e,t){return e=+e,t=+t,function(r){return e*(1-r)+t*r}}r.r(t),r.d(t,{default:()=>n}),r.dn(n)},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>i}),r.dn(i);var n=r(2143);function i(e,t){var r,i={},o={};for(r in null!==e&&"object"==typeof e||(e={}),null!==t&&"object"==typeof t||(t={}),t)r in e?i[r]=(0,n.default)(e[r],t[r]):o[r]=t[r];return function(e){for(r in i)o[r]=i[r](e);return o}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>a}),r.dn(a);var n=r(2154),i=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,o=new RegExp(i.source,"g");function a(e,t){var r,a,s,l=i.lastIndex=o.lastIndex=0,c=-1,u=[],p=[];for(e+="",t+="";(r=i.exec(e))&&(a=o.exec(t));)(s=a.index)>l&&(s=t.slice(l,s),u[c]?u[c]+=s:u[++c]=s),(r=r[0])===(a=a[0])?u[c]?u[c]+=a:u[++c]=a:(u[++c]=null,p.push({i:c,x:(0,n.default)(r,a)})),l=o.lastIndex;return l<t.length&&(s=t.slice(l),u[c]?u[c]+=s:u[++c]=s),u.length<2?p[0]?function(e){return function(t){return e(t)+""}}(p[0].x):function(e){return function(){return e}}(t):(t=p.length,function(e){for(var r,n=0;n<t;++n)u[(r=p[n]).i]=r.x(e);return u.join("")})}},(e,t,r)=>{"use strict";
vendor: 20,285 bytes, line 41
41function n(e){return e&&e.__esModule?e.default:e}t.__esModule=!0;var i=r(2158);t.Motion=n(i);var o=r(2166);t.StaggeredMotion=n(o);var a=r(2167);t.TransitionMotion=n(a);var s=r(2169);t.spring=n(s);var l=r(2170);t.presets=n(l);var c=r(2160);t.stripStyle=n(c);var u=r(2171);t.reorderKeys=n(u)},(e,t,r)=>{"use strict";t.__esModule=!0;var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},i=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}();function o(e){return e&&e.__esModule?e:{default:e}}var a=o(r(2159)),s=o(r(2160)),l=o(r(2161)),c=o(r(2162)),u=o(r(2163)),p=o(r(2165)),d=o(r(341)),h=o(r(782)),f=1e3/60,m=function(e){function t(r){var i=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),e.call(this,r),this.wasAnimating=!1,this.animationID=null,this.prevTime=0,this.accumulatedTime=0,this.unreadPropStyle=null,this.clearUnreadPropStyle=function(e){var t=!1,r=i.state,o=r.currentStyle,a=r.currentVelocity,s=r.lastIdealStyle,l=r.lastIdealVelocity;for(var c in e)if(Object.prototype.hasOwnProperty.call(e,c)){var u=e[c];"number"==typeof u&&(t||(t=!0,o=n({},o),a=n({},a),s=n({},s),l=n({},l)),o[c]=u,a[c]=0,s[c]=u,l[c]=0)}t&&i.setState({currentStyle:o,currentVelocity:a,lastIdealStyle:s,lastIdealVelocity:l})},this.startAnimationIfNecessary=function(){i.animationID=u.default(function(e){var t=i.props.style;if(p.default(i.state.currentStyle,t,i.state.currentVelocity))return i.wasAnimating&&i.props.onRest&&i.props.onRest(),i.animationID=null,i.wasAnimating=!1,void(i.accumulatedTime=0);i.wasAnimating=!0;var r=e||c.default(),n=r-i.prevTime;if(i.prevTime=r,i.accumulatedTime=i.accumulatedTime+n,i.accumulatedTime>10*f&&(i.accumulatedTime=0),0===i.accumulatedTime)return i.animationID=null,void i.startAnimationIfNecessary();var o=(i.accumulatedTime-Math.floor(i.accumulatedTime/f)*f)/f,a=Math.floor(i.accumulatedTime/f),s={},u={},d={},h={};for(var m in t)if(Object.prototype.hasOwnProperty.call(t,m)){var g=t[m];if("number"==typeof g)d[m]=g,h[m]=0,s[m]=g,u[m]=0;else{for(var y=i.state.lastIdealStyle[m],b=i.state.lastIdealVelocity[m],v=0;v<a;v++){var _=l.default(f/1e3,y,b,g.val,g.stiffness,g.damping,g.precision);y=_[0],b=_[1]}var S=l.default(f/1e3,y,b,g.val,g.stiffness,g.damping,g.precision),E=S[0],T=S[1];d[m]=y+(E-y)*o,h[m]=b+(T-b)*o,s[m]=y,u[m]=b}}i.animationID=null,i.accumulatedTime-=a*f,i.setState({currentStyle:d,currentVelocity:h,lastIdealStyle:s,lastIdealVelocity:u}),i.unreadPropStyle=null,i.startAnimationIfNecessary()})},this.state=this.defaultState()}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),i(t,null,[{key:"propTypes",value:{defaultStyle:h.default.objectOf(h.default.number),style:h.default.objectOf(h.default.oneOfType([h.default.number,h.default.object])).isRequired,children:h.default.func.isRequired,onRest:h.default.func},enumerable:!0}]),t.prototype.defaultState=function(){var e=this.props,t=e.defaultStyle,r=e.style,n=t||s.default(r),i=a.default(n);return{currentStyle:n,currentVelocity:i,lastIdealStyle:n,lastIdealVelocity:i}},t.prototype.componentDidMount=function(){this.prevTime=c.default(),this.startAnimationIfNecessary()},t.prototype.componentWillReceiveProps=function(e){null!=this.unreadPropStyle&&this.clearUnreadPropStyle(this.unreadPropStyle),this.unreadPropStyle=e.style,null==this.animationID&&(this.prevTime=c.default(),this.startAnimationIfNecessary())},t.prototype.componentWillUnmount=function(){null!=this.animationID&&(u.default.cancel(this.animationID),this.animationID=null)},t.prototype.render=function(){var e=this.props.children(this.state.currentStyle);return e&&d.default.Children.only(e)},t}(d.default.Component);t.default=m,e.exports=t.default},(e,t)=>{"use strict";t.__esModule=!0,t.default=function(e){var t={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=0);return t},e.exports=t.default},(e,t)=>{"use strict";t.__esModule=!0,t.default=function(e){var t={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]="number"==typeof e[r]?e[r]:e[r].val);return t},e.exports=t.default},(e,t)=>{"use strict";t.__esModule=!0,t.default=function(e,t,n,i,o,a,s){var l=n+(-o*(t-i)+-a*n)*e,c=t+l*e;if(Math.abs(l)<s&&Math.abs(c-i)<s)return r[0]=i,r[1]=0,r;return r[0]=c,r[1]=l,r};var r=[0,0];e.exports=t.default},function(e){(function(){var t,r,n;"undefined"!=typeof performance&&null!==performance&&performance.now?e.exports=function(){return performance.now()}:"undefined"!=typeof process&&null!==process&&process.hrtime?(e.exports=function(){return(t()-n)/1e6},r=process.hrtime,n=(t=function(){var e;return 1e9*(e=r())[0]+e[1]})()):Date.now?(e.exports=function(){return Date.now()-n},n=Date.now()):(e.exports=function(){return(new Date).getTime()-n},n=(new Date).getTime())}).call(this)},(e,t,r)=>{for(var n=r(2164),i="undefined"==typeof window?globalThis:window,o=["moz","webkit"],a="AnimationFrame",s=i["request"+a],l=i["cancel"+a]||i["cancelRequest"+a],c=0;!s&&c<o.length;c++)s=i[o[c]+"Request"+a],l=i[o[c]+"Cancel"+a]||i[o[c]+"CancelRequest"+a];if(!s||!l){var u=0,p=0,d=[],h=1e3/60;s=function(e){if(0===d.length){var t=n(),r=Math.max(0,h-(t-u));u=r+t,setTimeout(function(){var e=d.slice(0);d.length=0;for(var t=0;t<e.length;t++)if(!e[t].cancelled)try{e[t].callback(u)}catch(e){setTimeout(function(){throw e},0)}},Math.round(r))}return d.push({handle:++p,callback:e,cancelled:!1}),p},l=function(e){for(var t=0;t<d.length;t++)d[t].handle===e&&(d[t].cancelled=!0)}}e.exports=function(e){return s.call(i,e)},e.exports.cancel=function(){l.apply(i,arguments)},e.exports.polyfill=function(e){e||(e=i),e.requestAnimationFrame=s,e.cancelAnimationFrame=l}},function(e){(function(){var t,r,n,i,o,a;"undefined"!=typeof performance&&null!==performance&&performance.now?e.exports=function(){return performance.now()}:"undefined"!=typeof process&&null!==process&&process.hrtime?(e.exports=function(){return(t()-o)/1e6},r=process.hrtime,i=(t=function(){var e;return 1e9*(e=r())[0]+e[1]})(),a=1e9*process.uptime(),o=i-a):Date.now?(e.exports=function(){return Date.now()-n},n=Date.now()):(e.exports=function(){return(new Date).getTime()-n},n=(new Date).getTime())}).call(this)},(e,t)=>{"use strict";t.__esModule=!0,t.default=function(e,t,r){for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(0!==r[n])return!1;var i="number"==typeof t[n]?t[n]:t[n].val;if(e[n]!==i)return!1}return!0},e.exports=t.default},(e,t,r)=>{"use strict";t.__esModule=!0;var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},i=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}();function o(e){return e&&e.__esModule?e:{default:e}}var a=o(r(2159)),s=o(r(2160)),l=o(r(2161)),c=o(r(2162)),u=o(r(2163)),p=o(r(2165)),d=o(r(341)),h=o(r(782)),f=1e3/60;var m=function(e){function t(r){var i=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),e.call(this,r),this.animationID=null,this.prevTime=0,this.accumulatedTime=0,this.unreadPropStyles=null,this.clearUnreadPropStyle=function(e){for(var t=i.state,r=t.currentStyles,o=t.currentVelocities,a=t.lastIdealStyles,s=t.lastIdealVelocities,l=!1,c=0;c<e.length;c++){var u=e[c],p=!1;for(var d in u)if(Object.prototype.hasOwnProperty.call(u,d)){var h=u[d];"number"==typeof h&&(p||(p=!0,l=!0,r[c]=n({},r[c]),o[c]=n({},o[c]),a[c]=n({},a[c]),s[c]=n({},s[c])),r[c][d]=h,o[c][d]=0,a[c][d]=h,s[c][d]=0)}}l&&i.setState({currentStyles:r,currentVelocities:o,lastIdealStyles:a,lastIdealVelocities:s})},this.startAnimationIfNecessary=function(){i.animationID=u.default(function(e){var t=i.props.styles(i.state.lastIdealStyles);if(function(e,t,r){for(var n=0;n<e.length;n++)if(!p.default(e[n],t[n],r[n]))return!1;return!0}(i.state.currentStyles,t,i.state.currentVelocities))return i.animationID=null,void(i.accumulatedTime=0);var r=e||c.default(),n=r-i.prevTime;if(i.prevTime=r,i.accumulatedTime=i.accumulatedTime+n,i.accumulatedTime>10*f&&(i.accumulatedTime=0),0===i.accumulatedTime)return i.animationID=null,void i.startAnimationIfNecessary();for(var o=(i.accumulatedTime-Math.floor(i.accumulatedTime/f)*f)/f,a=Math.floor(i.accumulatedTime/f),s=[],u=[],d=[],h=[],m=0;m<t.length;m++){var g=t[m],y={},b={},v={},_={};for(var S in g)if(Object.prototype.hasOwnProperty.call(g,S)){var E=g[S];if("number"==typeof E)y[S]=E,b[S]=0,v[S]=E,_[S]=0;else{for(var T=i.state.lastIdealStyles[m][S],w=i.state.lastIdealVelocities[m][S],x=0;x<a;x++){var O=l.default(f/1e3,T,w,E.val,E.stiffness,E.damping,E.precision);T=O[0],w=O[1]}var I=l.default(f/1e3,T,w,E.val,E.stiffness,E.damping,E.precision),A=I[0],k=I[1];y[S]=T+(A-T)*o,b[S]=w+(k-w)*o,v[S]=T,_[S]=w}}d[m]=y,h[m]=b,s[m]=v,u[m]=_}i.animationID=null,i.accumulatedTime-=a*f,i.setState({currentStyles:d,currentVelocities:h,lastIdealStyles:s,lastIdealVelocities:u}),i.unreadPropStyles=null,i.startAnimationIfNecessary()})},this.state=this.defaultState()}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),i(t,null,[{key:"propTypes",value:{defaultStyles:h.default.arrayOf(h.default.objectOf(h.default.number)),styles:h.default.func.isRequired,children:h.default.func.isRequired},enumerable:!0}]),t.prototype.defaultState=function(){var e=this.props,t=e.defaultStyles,r=e.styles,n=t||r().map(s.default),i=n.map(function(e){return a.default(e)});return{currentStyles:n,currentVelocities:i,lastIdealStyles:n,lastIdealVelocities:i}},t.prototype.componentDidMount=function(){this.prevTime=c.default(),this.startAnimationIfNecessary()},t.prototype.componentWillReceiveProps=function(e){null!=this.unreadPropStyles&&this.clearUnreadPropStyle(this.unreadPropStyles),this.unreadPropStyles=e.styles(this.state.lastIdealStyles),null==this.animationID&&(this.prevTime=c.default(),this.startAnimationIfNecessary())},t.prototype.componentWillUnmount=function(){null!=this.animationID&&(u.default.cancel(this.animationID),this.animationID=null)},t.prototype.render=function(){var e=this.props.children(this.state.currentStyles);return e&&d.default.Children.only(e)},t}(d.default.Component);t.default=m,e.exports=t.default},(e,t,r)=>{"use strict";t.__esModule=!0;var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},i=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}();function o(e){return e&&e.__esModule?e:{default:e}}var a=o(r(2159)),s=o(r(2160)),l=o(r(2161)),c=o(r(2168)),u=o(r(2162)),p=o(r(2163)),d=o(r(2165)),h=o(r(341)),f=o(r(782)),m=1e3/60;function g(e,t,r){var n=t;return null==n?e.map(function(e,t){return{key:e.key,data:e.data,style:r[t]}}):e.map(function(e,t){for(var i=0;i<n.length;i++)if(n[i].key===e.key)return{key:n[i].key,data:n[i].data,style:r[t]};return{key:e.key,data:e.data,style:r[t]}})}function y(e,t,r,n,i,o,s,l,u){for(var p=c.default(n,i,function(e,n){var i=t(n);return null==i||d.default(o[e],i,s[e])?(r({key:n.key,data:n.data}),null):{key:n.key,data:n.data,style:i}}),h=[],f=[],m=[],g=[],y=0;y<p.length;y++){for(var b=p[y],v=null,_=0;_<n.length;_++)if(n[_].key===b.key){v=_;break}if(null==v){var S=e(b);h[y]=S,m[y]=S;var E=a.default(b.style);f[y]=E,g[y]=E}else h[y]=o[v],m[y]=l[v],f[y]=s[v],g[y]=u[v]}return[p,h,f,m,g]}var b=function(e){function t(r){var i=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),e.call(this,r),this.unmounting=!1,this.animationID=null,this.prevTime=0,this.accumulatedTime=0,this.unreadPropStyles=null,this.clearUnreadPropStyle=function(e){for(var t=y(i.props.willEnter,i.props.willLeave,i.props.didLeave,i.state.mergedPropsStyles,e,i.state.currentStyles,i.state.currentVelocities,i.state.lastIdealStyles,i.state.lastIdealVelocities),r=t[0],o=t[1],a=t[2],s=t[3],l=t[4],c=0;c<e.length;c++){var u=e[c].style,p=!1;for(var d in u)if(Object.prototype.hasOwnProperty.call(u,d)){var h=u[d];"number"==typeof h&&(p||(p=!0,o[c]=n({},o[c]),a[c]=n({},a[c]),s[c]=n({},s[c]),l[c]=n({},l[c]),r[c]={key:r[c].key,data:r[c].data,style:n({},r[c].style)}),o[c][d]=h,a[c][d]=0,s[c][d]=h,l[c][d]=0,r[c].style[d]=h)}}i.setState({currentStyles:o,currentVelocities:a,mergedPropsStyles:r,lastIdealStyles:s,lastIdealVelocities:l})},this.startAnimationIfNecessary=function(){i.unmounting||(i.animationID=p.default(function(e){if(!i.unmounting){var t=i.props.styles,r="function"==typeof t?t(g(i.state.mergedPropsStyles,i.unreadPropStyles,i.state.lastIdealStyles)):t;if(function(e,t,r,n){if(n.length!==t.length)return!1;for(var i=0;i<n.length;i++)if(n[i].key!==t[i].key)return!1;for(i=0;i<n.length;i++)if(!d.default(e[i],t[i].style,r[i]))return!1;return!0}(i.state.currentStyles,r,i.state.currentVelocities,i.state.mergedPropsStyles))return i.animationID=null,void(i.accumulatedTime=0);var n=e||u.default(),o=n-i.prevTime;if(i.prevTime=n,i.accumulatedTime=i.accumulatedTime+o,i.accumulatedTime>10*m&&(i.accumulatedTime=0),0===i.accumulatedTime)return i.animationID=null,void i.startAnimationIfNecessary();for(var a=(i.accumulatedTime-Math.floor(i.accumulatedTime/m)*m)/m,s=Math.floor(i.accumulatedTime/m),c=y(i.props.willEnter,i.props.willLeave,i.props.didLeave,i.state.mergedPropsStyles,r,i.state.currentStyles,i.state.currentVelocities,i.state.lastIdealStyles,i.state.lastIdealVelocities),p=c[0],h=c[1],f=c[2],b=c[3],v=c[4],_=0;_<p.length;_++){var S=p[_].style,E={},T={},w={},x={};for(var O in S)if(Object.prototype.hasOwnProperty.call(S,O)){var I=S[O];if("number"==typeof I)E[O]=I,T[O]=0,w[O]=I,x[O]=0;else{for(var A=b[_][O],k=v[_][O],R=0;R<s;R++){var C=l.default(m/1e3,A,k,I.val,I.stiffness,I.damping,I.precision);A=C[0],k=C[1]}var P=l.default(m/1e3,A,k,I.val,I.stiffness,I.damping,I.precision),D=P[0],M=P[1];E[O]=A+(D-A)*a,T[O]=k+(M-k)*a,w[O]=A,x[O]=k}}b[_]=w,v[_]=x,h[_]=E,f[_]=T}i.animationID=null,i.accumulatedTime-=s*m,i.setState({currentStyles:h,currentVelocities:f,lastIdealStyles:b,lastIdealVelocities:v,mergedPropsStyles:p}),i.unreadPropStyles=null,i.startAnimationIfNecessary()}}))},this.state=this.defaultState()}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),i(t,null,[{key:"propTypes",value:{defaultStyles:f.default.arrayOf(f.default.shape({key:f.default.string.isRequired,data:f.default.any,style:f.default.objectOf(f.default.number).isRequired})),styles:f.default.oneOfType([f.default.func,f.default.arrayOf(f.default.shape({key:f.default.string.isRequired,data:f.default.any,style:f.default.objectOf(f.default.oneOfType([f.default.number,f.default.object])).isRequired}))]).isRequired,children:f.default.func.isRequired,willEnter:f.default.func,willLeave:f.default.func,didLeave:f.default.func},enumerable:!0},{key:"defaultProps",value:{willEnter:function(e){return s.default(e.style)},willLeave:function(){return null},didLeave:function(){}},enumerable:!0}]),t.prototype.defaultState=function(){var e=this.props,t=e.defaultStyles,r=e.styles,n=e.willEnter,i=e.willLeave,o=e.didLeave,l="function"==typeof r?r(t):r,c=void 0;c=null==t?l:t.map(function(e){for(var t=0;t<l.length;t++)if(l[t].key===e.key)return l[t];return e});var u=null==t?l.map(function(e){return s.default(e.style)}):t.map(function(e){return s.default(e.style)}),p=null==t?l.map(function(e){return a.default(e.style)}):t.map(function(e){return a.default(e.style)}),d=y(n,i,o,c,l,u,p,u,p),h=d[0];return{currentStyles:d[1],currentVelocities:d[2],lastIdealStyles:d[3],lastIdealVelocities:d[4],mergedPropsStyles:h}},t.prototype.componentDidMount=function(){this.prevTime=u.default(),this.startAnimationIfNecessary()},t.prototype.componentWillReceiveProps=function(e){this.unreadPropStyles&&this.clearUnreadPropStyle(this.unreadPropStyles);var t=e.styles;this.unreadPropStyles="function"==typeof t?t(g(this.state.mergedPropsStyles,this.unreadPropStyles,this.state.lastIdealStyles)):t,null==this.animationID&&(this.prevTime=u.default(),this.startAnimationIfNecessary())},t.prototype.componentWillUnmount=function(){this.unmounting=!0,null!=this.animationID&&(p.default.cancel(this.animationID),this.animationID=null)},t.prototype.render=function(){var e=g(this.state.mergedPropsStyles,this.unreadPropStyles,this.state.currentStyles),t=this.props.children(e);return t&&h.default.Children.only(t)},t}(h.default.Component);t.default=b,e.exports=t.default},(e,t)=>{"use strict";t.__esModule=!0,t.default=function(e,t,r){for(var n={},i=0;i<e.length;i++)n[e[i].key]=i;var o={};for(i=0;i<t.length;i++)o[t[i].key]=i;var a=[];for(i=0;i<t.length;i++)a[i]=t[i];for(i=0;i<e.length;i++)if(!Object.prototype.hasOwnProperty.call(o,e[i].key)){var s=r(i,e[i]);null!=s&&a.push(s)}return a.sort(function(e,r){var i=o[e.key],a=o[r.key],s=n[e.key],l=n[r.key];if(null!=i&&null!=a)return o[e.key]-o[r.key];if(null!=s&&null!=l)return n[e.key]-n[r.key];if(null!=i){for(var c=0;c<t.length;c++){var u=t[c].key;if(Object.prototype.hasOwnProperty.call(n,u)){if(i<o[u]&&l>n[u])return-1;if(i>o[u]&&l<n[u])return 1}}return 1}for(c=0;c<t.length;c++){u=t[c].key;if(Object.prototype.hasOwnProperty.call(n,u)){if(a<o[u]&&s>n[u])return 1;if(a>o[u]&&s<n[u])return-1}}return-1})},e.exports=t.default},(e,t,r)=>{"use strict";t.__esModule=!0;var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e};t.default=function(e,t){return n({},s,t,{val:e})};var i,o=r(2170),a=(i=o)&&i.__esModule?i:{default:i},s=n({},a.default.noWobble,{precision:.01});e.exports=t.default},(e,t)=>{"use strict";t.__esModule=!0,t.default={noWobble:{stiffness:170,damping:26},gentle:{stiffness:120,damping:14},wobbly:{stiffness:180,damping:12},stiff:{stiffness:210,damping:20}},e.exports=t.default},(e,t)=>{"use strict";t.__esModule=!0,t.default=function(){0};e.exports=t.default},(e,t,r)=>{"use strict";r.r(t),r.d(t,{_adjustCategoricalScale:()=>B,_getScaleDistanceAndAdjustedDomain:()=>F,_getSmallestDistanceIndex:()=>D,default:()=>ee,extractScalePropsFromProps:()=>W,getAttr0Functor:()=>G,getAttributeFunctor:()=>z,getAttributeScale:()=>j,getAttributeValue:()=>q,getDomainByAccessor:()=>N,getFontColorFromBackground:()=>J,getMissingScaleProps:()=>Y,getOptionalScaleProps:()=>Z,getScaleFnFromScaleObject:()=>M,getScaleObjectFromProps:()=>U,getScalePropTypesByAttribute:()=>$,getXYPlotValues:()=>Q,literalScale:()=>K});var n,i=r(2173),o=r(2178),a=r(2205),s=r(2176),l=r(2207),c=r(2221),u=r(2222),p=r(2223),d=r(2144),h=r(782),f=r.n(h),m=r(2230),g=r(2231);function y(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function b(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?y(Object(r),!0).forEach(function(t){T(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):y(Object(r)).forEac
41h(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function v(e){return function(e){if(Array.isArray(e))return E(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||S(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var r=[],n=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(n=(a=s.next()).done)&&(r.push(a.value),!t||r.length!==t);n=!0);}catch(e){i=!0,o=e}finally{try{n||null==s.return||s.return()}finally{if(i)throw o}}return r}(e,t)||S(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function S(e,t){if(e){if("string"==typeof e)return E(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?E(e,t):void 0}}function E(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function T(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var w="linear",x="ordinal",O="category",I="literal",A="log",k="time",R=(T(n={},w,o.default),T(n,x,i.point),T(n,O,s.default),T(n,I,K),T(n,A,a.default),T(n,k,l.default),T(n,"time-utc",c.default),n),C=["color","fill","opacity","stroke"];function P(e){return"".concat(e[0].toUpperCase()).concat(e.slice(1))}function D(e,t){var r=M(t),n=0;if(r)for(var i,o,a=r(e[0]),s=1/0,l=1;l<e.length;l++)i=r(e[l]),(o=Math.abs(i-a))<s&&(s=o,n=l),a=i;return n}function M(e){if(!e)return null;var t=e.type,r=e.domain,n=e.range,i=r[0]===r[1]?0===r[0]?[-1,0]:[-r[0],r[0]]:r;if(t===I)return K(n[0]);var o=R[t]().domain(i).range(n);return t===x&&(o.padding(.5),function(e){e.invert||(e.invert=function(t){var r=_(e.range(),2),n=r[0],i=r[1],o=Math.min(n,i),a=Math.max(n,i);if(t<o+e.padding()*e.step())return e.domain()[0];if(t>a-e.padding()*e.step())return e.domain()[e.domain().length-1];var s=Math.floor((t-o-e.padding()*e.step())/e.step());return e.domain()[s]})}(o)),o}function N(e,t,r,n){var i=e.reduce(function(e,n){var i=t(n),o=r(n);return V(i)&&e.push(i),V(o)&&e.push(o),e},[]);return i.length?n!==x&&n!==O?(0,u.default)(i):(0,p.set)(i).values():[]}function L(e,t,r,n,i){return r===I?{type:I,domain:[],range:[t],distance:0,attr:e,baseValue:void 0,isValue:!0,accessor:n,accessor0:i}:void 0===t?null:{type:O,range:[t],domain:[],distance:0,attr:e,baseValue:void 0,isValue:!0,accessor:n,accessor0:i}}function F(e,t){var r=t.domain,n=t.type,i=t.accessor,o=t.accessor0,a=function(e,t,r,n){return n===k&&1===t.length?[r(e[0])].concat(v(t)):t}(e,(0,g.getUniquePropertyValues)(e,i),o,n),s=D(a,t),l=[].concat(r);l[0]-=function(e){return e.length>1?(e[1]-e[0])/2:1===e.length?e[0]-.5:0}(a),l[r.length-1]+=function(e){return e.length>1?(e[e.length-1]-e[e.length-2])/2:1===e.length?e[0]-.5:0}(a),n===A&&r[0]<=0&&(l[0]=Math.min(r[1]/10,1));var c=function(e,t,r,n){if(e.length>1){var i=Math.max(r,1);return Math.abs(n(e[i])-n(e[i-1]))}return 1===e.length?Math.abs(n(t[1])-n(t[0])):0}(a,l,s,M(b(b({},t),{},{domain:l})));return{domain0:l[0],domainN:l[l.length-1],distance:c}}function B(e){var t=M(e),r=e.domain,n=e.range;return r.length>1?e.distance=Math.abs(t(r[1])-t(r[0])):e.distance=Math.abs(n[1]-n[0]),e}function U(e,t){var r=function(e,t){var r,n=e[t],i=e["_".concat(t,"Value")],o=e["".concat(t,"Range")],a=e["".concat(t,"Distance")],s=void 0===a?0:a,l=e["".concat(t,"BaseValue")],c=e["".concat(t,"Type")],u=void 0===c?w:c,p=e["".concat(t,"NoFallBack")],d=e["get".concat(P(t))],h=void 0===d?function(e){return e[t]}:d,f=e["get".concat(P(t),"0")],m=void 0===f?function(e){return e["".concat(t,"0")]}:f,y=e["".concat(t,"Domain")];return p||void 0===n?(void 0!==l&&(y=(0,g.addValueToArray)(y,l)),o&&y&&y.length?{domain:(r={domain:y,range:o,type:u,distance:s,attr:t,baseValue:l,accessor:h,accessor0:m}).domain,range:r.range,type:r.type,distance:r.distance,attr:r.attr,baseValue:r.baseValue,isValue:!1,accessor:r.accessor,accessor0:r.accessor0}:L(t,i,e["".concat(t,"Type")],h,m)):L(t,n,e["".concat(t,"Type")],h,m)}(e,t);if(!r)return null;if(!function(e,t){var r=t.attr,n=e._adjustBy,i=void 0===n?[]:n,o=e._adjustWhat;return(void 0===o?[]:o).length&&i.length&&-1!==i.indexOf(r)}(e,r))return r;var n=r.type;return n===x||n===O?B(r):function(e,t){var r=e._allData,n=e._adjustWhat,i=void 0===n?[]:n,o=t.domain.length,a=t.domain,s=a[0],l=a[o-1],c=t.distance;return r.forEach(function(e,r){if(-1!==i.indexOf(r)&&e&&e.length){var n=F(e,t),o=n.domain0,a=n.domainN,u=n.distance;s=Math.min(s,o),l=Math.max(l,a),c=Math.max(c,u)}}),t.domain=[s].concat(v(a.slice(1,-1)),[l]),t.distance=c,t}(e,r)}function j(e,t){return M(U(e,t))}function H(e,t){return t(e.data?e.data:e)}function V(e){return void 0!==e}function z(e,t){var r=U(e,t);if(r){var n=M(r);return function(e){return n(H(e,r.accessor))}}return null}function G(e,t){var r=U(e,t);if(r){var n=r.domain,i=r.baseValue,o=void 0===i?n[0]:i,a=M(r);return function(e){var t=H(e,r.accessor0);return a(V(t)?t:o)}}return null}function q(e,t){var r=U(e,t);
41return r?(r.isValue||void 0!==e["_".concat(t,"Value")]||(0,m.warning)("[React-vis] Cannot use data defined ".concat(t," for this ")+"series type. Using fallback value instead."),e["_".concat(t,"Value")]||r.range[0]):null}function $(e){var t;return T(t={},"_".concat(e,"Value"),f().any),T(t,"".concat(e,"Domain"),f().array),T(t,"get".concat(P(e)),f().func),T(t,"get".concat(P(e),"0"),f().func),T(t,"".concat(e,"Range"),f().array),T(t,"".concat(e,"Type"),f().oneOf(Object.keys(R))),T(t,"".concat(e,"Distance"),f().number),T(t,"".concat(e,"BaseValue"),f().any),t}function W(e,t){var r={};return Object.keys(e).forEach(function(n){t.find(function(e){var t=0===n.indexOf(e),r=0===n.indexOf("_".concat(e)),i=0===n.indexOf("get".concat(P(e)));return t||r||i})&&(r[n]=e[n])}),r}function Y(e,t,r){var n={};return r.forEach(function(r){e["get".concat(P(r))]||(n["get".concat(P(r))]=function(e){return e[r]}),e["get".concat(P(r),"0")]||(n["get".concat(P(r),"0")]=function(e){return e["".concat(r,"0")]}),e["".concat(r,"Domain")]||(n["".concat(r,"Domain")]=N(t,e["get".concat(P(r))]||n["get".concat(P(r))],e["get".concat(P(r),"0")]||n["get".concat(P(r),"0")],e["".concat(r,"Type")]),e["".concat(r,"Padding")]&&(n["".concat(r,"Domain")]=function(e,t){if(!e)return e;if(isNaN(parseFloat(e[0]))||isNaN(parseFloat(e[1])))return e;var r=_(e,2),n=r[0],i=r[1],o=.01*t*(i-n);return[n-o,i+o]}(n["".concat(r,"Domain")],e["".concat(r,"Padding")])))}),n}function K(e){function t(t){return void 0===t?e:t}function r(){return t}return t.domain=r,t.range=r,t.unknown=r,t.copy=r,t}function J(e){return e?(0,d.hsl)(e).l>.57?"#222":"#fff":null}function Q(e,t){var r=C.reduce(function(t,r){var n=e["".concat(r,"Domain")],i=e["".concat(r,"Range")],o=e["".concat(r,"Type")];return n&&i&&o?b(b({},t),{},T({},r,R[o]().domain(n).range(i))):t},{});return t.map(function(e){return C.reduce(function(t,n){if(e.props&&void 0!==e.props[n]){var i=e.props[n],o=r[n],a=o?o(i):i;return b(b({},t),{},T({},"_".concat(n,"Value"),a))}return t},{})})}var X=["Padding"].map(function(e){return new RegExp("".concat(e,"$"),"i")});function Z(e){return Object.keys(e).reduce(function(t,r){return X.every(function(e){return!r.match(e)})||(t[r]=e[r]),t},{})}const ee={extractScalePropsFromProps:W,getAttributeScale:j,getAttributeFunctor:z,getAttr0Functor:G,getAttributeValue:q,getDomainByAccessor:N,getFontColorFromBackground:J,getMissingScaleProps:Y,getOptionalScaleProps:Z,getScaleObjectFromProps:U,getScalePropTypesByAttribute:$,getXYPlotValues:Q,literalScale:K}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>a,point:()=>l});var n=r(2174),i=r(2175),o=r(2176);function a(){var e,t,r=(0,o.default)().unknown(void 0),s=r.domain,l=r.range,c=0,u=1,p=!1,d=0,h=0,f=.5;function m(){var r=s().length,i=u<c,o=i?u:c,a=i?c:u;e=(a-o)/Math.max(1,r-d+2*h),p&&(e=Math.floor(e)),o+=(a-o-e*(r-d))*f,t=e*(1-d),p&&(o=Math.round(o),t=Math.round(t));var m=(0,n.default)(r).map(function(t){return o+e*t});return l(i?m.reverse():m)}return delete r.unknown,r.domain=function(e){return arguments.length?(s(e),m()):s()},r.range=function(e){return arguments.length?([c,u]=e,c=+c,u=+u,m()):[c,u]},r.rangeRound=function(e){return[c,u]=e,c=+c,u=+u,p=!0,m()},r.bandwidth=function(){return t},r.step=function(){return e},r.round=function(e){return arguments.length?(p=!!e,m()):p},r.padding=function(e){return arguments.length?(d=Math.min(1,h=+e),m()):d},r.paddingInner=function(e){return arguments.length?(d=Math.min(1,e),m()):d},r.paddingOuter=function(e){return arguments.length?(h=+e,m()):h},r.align=function(e){return arguments.length?(f=Math.max(0,Math.min(1,e)),m()):f},r.copy=function(){return a(s(),[c,u]).round(p).paddingInner(d).paddingOuter(h).align(f)},i.initRange.apply(m(),arguments)}function s(e){var t=e.copy;return e.padding=e.paddingOuter,delete e.paddingInner,delete e.paddingOuter,e.copy=function(){return s(t())},e}function l(){return s(a.apply(null,arguments).paddingInner(1))}},(e,t,r)=>{"use strict";function n(e,t,r){e=+e,t=+t,r=(i=arguments.length)<2?(t=e,e=0,1):i<3?1:+r;for(var n=-1,i=0|Math.max(0,Math.ceil((t-e)/r)),o=new Array(i);++n<i;)o[n]=e+n*r;return o}r.r(t),r.d(t,{default:()=>n})},(e,t,r)=>{"use strict";function n(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e)}return this}function i(e,t){switch(arguments.length){case 0:break;case 1:"function"==typeof e?this.interpolator(e):this.range(e);break;default:this.domain(e),"function"==typeof t?this.interpolator(t):this.range(t)}return this}r.r(t),r.d(t,{initInterpolator:()=>i,initRange:()=>n})},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>a,implicit:()=>
vendor: 5,138 bytes, line 41
41o});var n=r(2177),i=r(2175);const o=Symbol("implicit");function a(){var e=new n.InternMap,t=[],r=[],s=o;function l(n){let i=e.get(n);if(void 0===i){if(s!==o)return s;e.set(n,i=t.push(n)-1)}return r[i%r.length]}return l.domain=function(r){if(!arguments.length)return t.slice();t=[],e=new n.InternMap;for(const n of r)e.has(n)||e.set(n,t.push(n)-1);return l},l.range=function(e){return arguments.length?(r=Array.from(e),l):r.slice()},l.unknown=function(e){return arguments.length?(s=e,l):s},l.copy=function(){return a(t,r).unknown(s)},i.initRange.apply(l,arguments),l}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{InternMap:()=>n,InternSet:()=>i});class n extends Map{constructor(e,t=l){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:t}}),null!=e)for(const[t,r]of e)this.set(t,r)}get(e){return super.get(o(this,e))}has(e){return super.has(o(this,e))}set(e,t){return super.set(a(this,e),t)}delete(e){return super.delete(s(this,e))}}class i extends Set{constructor(e,t=l){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:t}}),null!=e)for(const t of e)this.add(t)}has(e){return super.has(o(this,e))}add(e){return super.add(a(this,e))}delete(e){return super.delete(s(this,e))}}function o({_intern:e,_key:t},r){const n=t(r);return e.has(n)?e.get(n):r}function a({_intern:e,_key:t},r){const n=t(r);return e.has(n)?e.get(n):(e.set(n,r),r)}function s({_intern:e,_key:t},r){const n=t(r);return e.has(n)&&(r=e.get(n),e.delete(n)),r}function l(e){return null!==e&&"object"==typeof e?e.valueOf():e}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>l,linearish:()=>s});var n=r(2179),i=r(2180),o=r(2175),a=r(2189);function s(e){var t=e.domain;return e.ticks=function(e){var r=t();return(0,n.default)(r[0],r[r.length-1],e??10)},e.tickFormat=function(e,r){var n=t();return(0,a.default)(n[0],n[n.length-1],e??10,r)},e.nice=function(r){null==r&&(r=10);var i,o,a=t(),s=0,l=a.length-1,c=a[s],u=a[l],p=10;for(u<c&&(o=c,c=u,u=o,o=s,s=l,l=o);p-- >0;){if((o=(0,n.tickIncrement)(c,u,r))===i)return a[s]=c,a[l]=u,t(a);if(o>0)c=Math.floor(c/o)*o,u=Math.ceil(u/o)*o;else{if(!(o<0))break;c=Math.ceil(c*o)/o,u=Math.floor(u*o)/o}i=o}return e},e}function l(){var e=(0,i.default)();return e.copy=function(){return(0,i.copy)(e,l())},o.initRange.apply(e,arguments),s(e)}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>s,tickIncrement:()=>l,tickStep:()=>c});const n=Math.sqrt(50),i=Math.sqrt(10),o=Math.sqrt(2);function a(e,t,r){const s=(t-e)/Math.max(0,r),l=Math.floor(Math.log10(s)),c=s/Math.pow(10,l),u=c>=n?10:c>=i?5:c>=o?2:1;let p,d,h;return l<0?(h=Math.pow(10,-l)/u,p=Math.round(e*h),d=Math.round(t*h),p/h<e&&++p,d/h>t&&--d,h=-h):(h=Math.pow(10,l)*u,p=Math.round(e/h),d=Math.round(t/h),p*h<e&&++p,d*h>t&&--d),d<p&&.5<=r&&r<2?a(e,t,2*r):[p,d,h]}function s(e,t,r){if(!((r=+r)>0))return[];if((e=+e)===(t=+t))return[e];const n=t<e,[i,o,s]=n?a(t,e,r):a(e,t,r);if(!(o>=i))return[];const l=o-i+1,c=new Array(l);if(n)if(s<0)for(let e=0;e<l;++e)c[e]=(o-e)/-s;else for(let e=0;e<l;++e)c[e]=(o-e)*s;else if(s<0)for(let e=0;e<l;++e)c[e]=(i+e)/-s;else for(let e=0;e<l;++e)c[e]=(i+e)*s;return c}function l(e,t,r){return a(e=+e,t=+t,r=+r)[2]}function c(e,t,r){r=+r;const n=(t=+t)<(e=+e),i=n?l(t,e,r):l(e,t,r);return(n?-1:1)*(i<0?1/-i:i)}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{copy:()=>f,default:()=>g,identity:()=>u,transformer:()=>m});var n=r(2181),i=r(2143),o=r(2154),a=r(2186),s=r(2187),l=r(2188),c=[0,1];function u(e){return e}function p(e,t){return(t-=e=+e)?function(r){return(r-e)/t}:(0,s.default)(isNaN(t)?NaN:.5)}function d(e,t,r){var n=e[0],i=e[1],o=t[0],a=t[1];return i<n?(n=p(i,n),o=r(a,o)):(n=p(n,i),o=r(o,a)),function(e){return o(n(e))}}function h(e,t,r){var i=Math.min(e.length,t.length)-1,o=new Array(i),a=new Array(i),s=-1;for(e[i]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++s<i;)o[s]=p(e[s],e[s+1]),a[s]=r(t[s],t[s+1]);return function(t){var r=(0,n.default)(e,t,1,i)-1;return a[r](o[r](t))}}function f(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function m(){var e,t,r,n,s,p,f=c,m=c,g=i.default,y=u;function b(){var e,t,r,i=Math.min(f.length,m.length);return y!==u&&(e=f[0],t=f[i-1],e>t&&(r=e,e=t,t=r),y=function(r){return Math.max(e,Math.min(t,r))}),n=i>2?h:d,s=p=null,v}function v(t){return null==t||isNaN(t=+t)?r:(s||(s=n(f.map(e),m,g)))(e(y(t)))}return v.invert=function(r){return y(t((p||(p=n(m,f.map(e),o.default)))(r)))},v.domain=function(e){return arguments.length?(f=Array.from(e,l.default),b()):f.slice()},v.range=function(e){return arguments.length?(m=Array.from(e),b()):m.slice()},v.rangeRound=function(e){return m=Array.from(e),g=a.default,b()},v.clamp=function(e){return arguments.length?(y=!!e||u,b()):y!==u},v.interpolate=function(e){return arguments.length?(g=e,b()):g},v.unknown=function(e){return arguments.length?(r=e,v):r},function(r,n){return e=r,t=n,b()}}function g(){return m()(u,u)}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{bisectCenter:()=>c,bisectLeft:()=>l,bisectRight:()=>s,default:()=>u});var n=r(2182),i=r(2183),o=r(2185);const a=(0,i.default)(n.default),s=a.right,l=a.left,c=(0,i.default)(o.default).
41center,u=s},(e,t,r)=>{"use strict";function n(e,t){return null==e||null==t?NaN:e<t?-1:e>t?1:e>=t?0:NaN}r.r(t),r.d(t,{default:()=>n})},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>o});var n=r(2182),i=r(2184);function o(e){let t,r,o;function s(e,n,i=0,o=e.length){if(i<o){if(0!==t(n,n))return o;do{const t=i+o>>>1;r(e[t],n)<0?i=t+1:o=t}while(i<o)}return i}return 2!==e.length?(t=n.default,r=(t,r)=>(0,n.default)(e(t),r),o=(t,r)=>e(t)-r):(t=e===n.default||e===i.default?e:a,r=e,o=e),{left:s,center:function(e,t,r=0,n=e.length){const i=s(e,t,r,n-1);return i>r&&o(e[i-1],t)>-o(e[i],t)?i-1:i},right:function(e,n,i=0,o=e.length){if(i<o){if(0!==t(n,n))return o;do{const t=i+o>>>1;r(e[t],n)<=0?i=t+1:o=t}while(i<o)}return i}}}function a(){return 0}},(e,t,r)=>{"use strict";function n(e,t){return null==e||null==t?NaN:t<e?-1:t>e?1:t>=e?0:NaN}r.r(t),r.d(t,{default:()=>n})},(e,t,r)=>{"use strict";function n(e){return null===e?NaN:+e}function*i(e,t){if(void 0===t)for(let t of e)null!=t&&(t=+t)>=t&&(yield t);else{let r=-1;for(let n of e)null!=(n=t(n,++r,e))&&(n=+n)>=n&&(yield n)}}r.r(t),r.d(t,{default:()=>n,numbers:()=>i})},(e,t,r)=>{"use strict";function n(e,t){return e=+e,t=+t,function(r){return Math.round(e*(1-r)+t*r)}}r.r(t),r.d(t,{default:()=>n}),r.dn(n)},(e,t,r)=>{"use strict";function n(e){return function(){return e}}r.r(t),r.d(t,{default:()=>n})},(e,t,r)=>{"use strict";function n(e){return+e}r.r(t),r.d(t,{default:()=>n})},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>c});var n=r(2179),i=r(2190),o=r(2196),a=r(2202),s=r(2203),l=r(2204);function c(e,t,r,c){var u,p=(0,n.tickStep)(e,t,r);switch((c=(0,o.default)(c??",f")).type){case"s":var d=Math.max(Math.abs(e),Math.abs(t));return null!=c.precision||isNaN(u=(0,s.default)(p,d))||(c.precision=u),(0,i.formatPrefix)(c,d);case"":case"e":case"g":case"p":case"r":null!=c.precision||isNaN(u=(0,l.default)(p,Math.max(Math.abs(e),Math.abs(t))))||(c.precision=u-("e"===c.type));break;case"f":case"%":null!=c.precision||isNaN(u=(0,a.default)(p))||(c.precision=u-2*("%"===c.type))}return(0,i.format)(c)}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>s,format:()=>i,formatPrefix:()=>o});var n,i,o,a=r(2191);function s(e){return n=(0,a.default)(e),i=n.format,o=n.formatPrefix,n}s({thousands:",",grouping:[3],currency:["$",""]})},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>h}),r.dn(h);var n=r(2192),i=r(2194),o=r(2195),a=r(2196),s=r(2197),l=r(2198),c=r(2199),u=r(2201),p=Array.prototype.map,d=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function h(e){var t=void 0===e.grouping||void 0===e.thousands?u.default:(0,i.default)(p.call(e.grouping,Number),e.thousands+""),r=void 0===e.currency?"":e.currency[0]+"",h=void 0===e.currency?"":e.currency[1]+"",f=void 0===e.decimal?".":e.decimal+"",m=void 0===e.numerals?u.default:(0,o.default)(p.call(e.numerals,String)),g=void 0===e.percent?"%":e.percent+"",y=void 0===e.minus?"−":e.minus+"",b=void 0===e.nan?"NaN":e.nan+"";function v(e,n){var i=(e=(0,a.default)(e)).fill,o=e.align,u=e.sign,p=e.symbol,v=e.zero,_=e.width,S=e.comma,E=e.precision,T=e.trim,w=e.type;"n"===w?(S=!0,w="g"):l.default[w]||(void 0===E&&(E=12),T=!0,w="g"),(v||"0"===i&&"="===o)&&(v=!0,i="0",o="=");var x=(n&&void 0!==n.prefix?n.prefix:"")+("$"===p?r:"#"===p&&/[boxX]/.test(w)?"0"+w.toLowerCase():""),O=("$"===p?h:/[%p]/.test(w)?g:"")+(n&&void 0!==n.suffix?n.suffix:""),I=l.default[w],A=/[defgprs%]/.test(w);function k(e){var r,n,a,l=x,p=O;if("c"===w)p=I(e)+p,e="";else{var h=(e=+e)<0||1/e<0;
vendor: 5,028 bytes, line 41
41if(e=isNaN(e)?b:I(Math.abs(e),E),T&&(e=(0,s.default)(e)),h&&0===+e&&"+"!==u&&(h=!1),l=(h?"("===u?u:y:"-"===u||"("===u?"":u)+l,p=("s"!==w||isNaN(e)||void 0===c.prefixExponent?"":d[8+c.prefixExponent/3])+p+(h&&"("===u?")":""),A)for(r=-1,n=e.length;++r<n;)if(48>(a=e.charCodeAt(r))||a>57){p=(46===a?f+e.slice(r+1):e.slice(r))+p,e=e.slice(0,r);break}}S&&!v&&(e=t(e,1/0));var g=l.length+e.length+p.length,k=g<_?new Array(_-g+1).join(i):"";switch(S&&v&&(e=t(k+e,k.length?_-p.length:1/0),k=""),o){case"<":e=l+e+p+k;break;case"=":e=l+k+e+p;break;case"^":e=k.slice(0,g=k.length>>1)+l+e+p+k.slice(g);break;default:e=k+l+e+p}return m(e)}return E=void 0===E?6:/[gprs]/.test(w)?Math.max(1,Math.min(21,E)):Math.max(0,Math.min(20,E)),k.toString=function(){return e+""},k}return{format:v,formatPrefix:function(e,t){var r=3*Math.max(-8,Math.min(8,Math.floor((0,n.default)(t)/3))),i=Math.pow(10,-r),o=v(((e=(0,a.default)(e)).type="f",e),{suffix:d[8+r/3]});return function(e){return o(i*e)}}}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>i}),r.dn(i);var n=r(2193);function i(e){return(e=(0,n.formatDecimalParts)(Math.abs(e)))?e[1]:NaN}},(e,t,r)=>{"use strict";function n(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function i(e,t){if(!isFinite(e)||0===e)return null;var r=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"),n=e.slice(0,r);return[n.length>1?n[0]+n.slice(2):n,+e.slice(r+1)]}r.r(t),r.d(t,{default:()=>n,formatDecimalParts:()=>i}),r.dn(n)},(e,t,r)=>{"use strict";function n(e,t){return function(r,n){for(var i=r.length,o=[],a=0,s=e[0],l=0;i>0&&s>0&&(l+s+1>n&&(s=Math.max(1,n-l)),o.push(r.substring(i-=s,i+s)),!((l+=s+1)>n));)s=e[a=(a+1)%e.length];return o.reverse().join(t)}}r.r(t),r.d(t,{default:()=>n}),r.dn(n)},(e,t,r)=>{"use strict";function n(e){return function(t){return t.replace(/[0-9]/g,function(t){return e[+t]})}}r.r(t),r.d(t,{default:()=>n}),r.dn(n)},(e,t,r)=>{"use strict";r.r(t),r.d(t,{FormatSpecifier:()=>o,default:()=>i});var n=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function i(e){if(!(t=n.exec(e)))throw new Error("invalid format: "+e);var t;return new o({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}function o(e){this.fill=void 0===e.fill?" ":e.fill+"",this.align=void 0===e.align?">":e.align+"",this.sign=void 0===e.sign?"-":e.sign+"",this.symbol=void 0===e.symbol?"":e.symbol+"",this.zero=!!e.zero,this.width=void 0===e.width?void 0:+e.width,this.comma=!!e.comma,this.precision=void 0===e.precision?void 0:+e.precision,this.trim=!!e.trim,this.type=void 0===e.type?"":e.type+""}i.prototype=o.prototype,o.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(void 0===this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(void 0===this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type}},(e,t,r)=>{"use strict";function n(e){e:for(var t,r=e.length,n=1,i=-1;n<r;++n)switch(e[n]){case".":i=t=n;break;case"0":0===i&&(i=n),t=n;break;default:if(!+e[n])break e;i>0&&(i=0)}return i>0?e.slice(0,i)+e.slice(t+1):e}r.r(t),r.d(t,{default:()=>n}),r.dn(n)},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>a});var n=r(2193),i=r(2199),o=r(2200);const a={"%":(e,t)=>(100*e).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:n.default,e:(e,t)=>e.toExponential(t),f:(e,t)=>e.toFixed(t),g:(e,t)=>e.toPrecision(t),o:e=>Math.round(e).toString(8),p:(e,t)=>(0,o.default)(100*e,t),r:o.default,s:i.default,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>o,prefixExponent:()=>n}),r.dn(o);var n,i=r(2193);function o(e,t){var r=(0,i.formatDecimalParts)(e,t);if(!r)return n=void 0,e.toPrecision(t);var o=r[0],a=r[1],s=a-(n=3*Math.max(-8,Math.min(8,Math.floor(a/3))))+1,l=o.length;return s===l?o:s>l?o+new Array(s-l+1).join("0"):s>0?o.slice(0,s)+"."+o.slice(s):"0."+new Array(1-s).join("0")+(0,i.formatDecimalParts)(e,Math.max(0,t+s-1))[0]}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>i}),r.dn(i);var n=r(2193);function i(e,t){var r=(0,n.formatDecimalParts)(e,t);if(!r)return e+"";var i=r[0],o=r[1];return o<0?"0."+new Array(-o).join("0")+i:i.length>o+1?i.slice(0,o+1)+"."+i.slice(o+1):i+new Array(o-i.length+2).join("0")}},(e,t,r)=>{"use strict";function n(e){return e}r.r(t),r.d(t,{default:()=>n}),r.dn(n)},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>i}),r.dn(i);var n=r(2192);function i(e){return Math.max(0,-(0,n.default)(Math.abs(e)))}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>i}),r.dn(i);var n=r(2192);function i(e,t){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor((0,n.default)(t)/3)))-(0,n.default)(Math.abs(e)))}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>i}),r.dn(i);var n=r(2192);function i(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,(0,n.default)(t)-(0,n.default)(e))+1}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>g,loggish:()=>m});
vendor: 10,847 bytes, line 41
41var n=r(2179),i=r(2190),o=r(2196),a=r(2206),s=r(2180),l=r(2175);function c(e){return Math.log(e)}function u(e){return Math.exp(e)}function p(e){return-Math.log(-e)}function d(e){return-Math.exp(-e)}function h(e){return isFinite(e)?+("1e"+e):e<0?0:e}function f(e){return(t,r)=>-e(-t,r)}function m(e){const t=e(c,u),r=t.domain;let s,l,m=10;function g(){return s=function(e){return e===Math.E?Math.log:10===e&&Math.log10||2===e&&Math.log2||(e=Math.log(e),t=>Math.log(t)/e)}(m),l=function(e){return 10===e?h:e===Math.E?Math.exp:t=>Math.pow(e,t)}(m),r()[0]<0?(s=f(s),l=f(l),e(p,d)):e(c,u),t}return t.base=function(e){return arguments.length?(m=+e,g()):m},t.domain=function(e){return arguments.length?(r(e),g()):r()},t.ticks=e=>{const t=r();let i=t[0],o=t[t.length-1];const a=o<i;a&&([i,o]=[o,i]);let c,u,p=s(i),d=s(o);const h=null==e?10:+e;let f=[];if(!(m%1)&&d-p<h){if(p=Math.floor(p),d=Math.ceil(d),i>0){for(;p<=d;++p)for(c=1;c<m;++c)if(u=p<0?c/l(-p):c*l(p),!(u<i)){if(u>o)break;f.push(u)}}else for(;p<=d;++p)for(c=m-1;c>=1;--c)if(u=p>0?c/l(-p):c*l(p),!(u<i)){if(u>o)break;f.push(u)}2*f.length<h&&(f=(0,n.default)(i,o,h))}else f=(0,n.default)(p,d,Math.min(d-p,h)).map(l);return a?f.reverse():f},t.tickFormat=(e,r)=>{if(null==e&&(e=10),null==r&&(r=10===m?"s":","),"function"!=typeof r&&(m%1||null!=(r=(0,o.default)(r)).precision||(r.trim=!0),r=(0,i.format)(r)),e===1/0)return r;const n=Math.max(1,m*e/t.ticks().length);return e=>{let t=e/l(Math.round(s(e)));return t*m<m-.5&&(t*=m),t<=n?r(e):""}},t.nice=()=>r((0,a.default)(r(),{floor:e=>l(Math.floor(s(e))),ceil:e=>l(Math.ceil(s(e)))})),t}function g(){const e=m((0,s.transformer)()).domain([1,10]);return e.copy=()=>(0,s.copy)(e,g()).base(e.base()),l.initRange.apply(e,arguments),e}},(e,t,r)=>{"use strict";function n(e,t){var r,n=0,i=(e=e.slice()).length-1,o=e[n],a=e[i];return a<o&&(r=n,n=i,i=r,r=o,o=a,a=r),e[n]=t.floor(o),e[i]=t.ceil(a),e}r.r(t),r.d(t,{default:()=>n})},(e,t,r)=>{"use strict";r.r(t),r.d(t,{calendar:()=>y,default:()=>b});var n=r(2208),i=r(2211),o=r(2212),a=r(2213),s=r(2214),l=r(2215),c=r(2216),u=r(2217),p=r(2219),d=r(2180),h=r(2175),f=r(2206);function m(e){return new Date(e)}function g(e){return e instanceof Date?+e:+new Date(+e)}function y(e,t,r,n,i,o,a,s,l,c){var u=(0,d.default)(),p=u.invert,h=u.domain,b=c(".%L"),v=c(":%S"),_=c("%I:%M"),S=c("%I %p"),E=c("%a %d"),T=c("%b %d"),w=c("%B"),x=c("%Y");function O(e){return(l(e)<e?b:s(e)<e?v:a(e)<e?_:o(e)<e?S:n(e)<e?i(e)<e?E:T:r(e)<e?w:x)(e)}return u.invert=function(e){return new Date(p(e))},u.domain=function(e){return arguments.length?h(Array.from(e,g)):h().map(m)},u.ticks=function(t){var r=h();return e(r[0],r[r.length-1],t??10)},u.tickFormat=function(e,t){return null==t?O:c(t)},u.nice=function(e){var r=h();return e&&"function"==typeof e.range||(e=t(r[0],r[r.length-1],e??10)),e?h((0,f.default)(r,e)):u},u.copy=function(){return(0,d.copy)(u,y(e,t,r,n,i,o,a,s,l,c))},u}function b(){return h.initRange.apply(y(u.timeTicks,u.timeTickInterval,c.timeYear,l.timeMonth,s.timeSunday,a.timeDay,o.timeHour,i.timeMinute,n.second,p.timeFormat).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{second:()=>o,seconds:()=>a});var n=r(2209),i=r(2210);const o=(0,n.timeInterval)(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*i.durationSecond)},(e,t)=>(t-e)/i.durationSecond,e=>e.getUTCSeconds()),a=o.range},(e,t,r)=>{"use strict";r.r(t),r.d(t,{timeInterval:()=>o});const n=new Date,i=new Date;function o(e,t,r,a){function s(t){return e(t=0===arguments.length?new Date:new Date(+t)),t}return s.floor=t=>(e(t=new Date(+t)),t),s.ceil=r=>(e(r=new Date(r-1)),t(r,1),e(r),r),s.round=e=>{const t=s(e),r=s.ceil(e);return e-t<r-e?t:r},s.offset=(e,r)=>(t(e=new Date(+e),null==r?1:Math.floor(r)),e),s.range=(r,n,i)=>{const o=[];if(r=s.ceil(r),i=null==i?1:Math.floor(i),!(r<n&&i>0))return o;let a;do{o.push(a=new Date(+r)),t(r,i),e(r)}while(a<r&&r<n);return o},s.filter=r=>o(t=>{if(t>=t)for(;e(t),!r(t);)t.setTime(t-1)},(e,n)=>{if(e>=e)if(n<0)for(;++n<=0;)for(;t(e,-1),!r(e););else for(;--n>=0;)for(;t(e,1),!r(e););}),r&&(s.count=(t,o)=>(n.setTime(+t),i.setTime(+o),e(n),e(i),Math.floor(r(n,i))),s.every=e=>(e=Math.floor(e),isFinite(e)&&e>0?e>1?s.filter(a?t=>a(t)%e===0:t=>s.count(0,t)%e===0):s:null)),s}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{durationDay:()=>a,durationHour:()=>o,durationMinute:()=>i,durationMonth:()=>l,durationSecond:()=>n,durationWeek:()=>s,durationYear:()=>c});const n=1e3,i=60*n,o=60*i,a=24*o,s=7*a,l=30*a,c=365*a},(e,t,r)=>{"use strict";r.r(t),r.d(t,{timeMinute:()=>o,timeMinutes:()=>a,utcMinute:()=>s,utcMinutes:()=>l});var n=r(2209),i=r(2210);const o=(0,n.timeInterval)(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*i.durationSecond)},(e,t)=>{e.setTime(+e+t*i.durationMinute)},(e,t)=>(t-e)/i.durationMinute,e=>e.getMinutes()),a=o.range,s=(0,n.timeInterval)(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*i.durationMinute)},(e,t)=>(t-e)/i.durationMinute,e=>e.getUTCMinutes()),l=s.range},(e,t,r)=>{"use strict";r.r(t),r.d(t,{timeHour:()=>o,timeHours:()=>a,utcHour:()=>s,utcHours:()=>l});var n=r(2209),i=r(2210);const o=(0,n.timeInterval)(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*i.durationSecond-e.getMinutes()*i.durationMinute)},(e,t)=>{e.setTime(+e+t*i.durationHour)},(e,t)=>(t-e)/i.durationHour,e=>e.getHours()),a=o.range,s=(0,n.timeInterval)(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*i.durationHour)},(e,t)=>(t-e)/i.durationHour,e=>e.getUTCHours()),l=s.range},(e,t,r)=>{"use strict";r.r(t),r.d(t,{timeDay:()=>o,timeDays:()=>a,unixDay:()=>c,unixDays:()=>u,utcDay:()=>s,utcDays:()=>l});var n=r(2209),i=r(2210);const o=(0,n.timeInterval)(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*i.durationMinute)/i.durationDay,e=>e.getDate()-1),a=o.range,s=(0,n.timeInterval)(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/i.durationDay,e=>e.getUTCDate()-1),l=s.range,c=(0,n.timeInterval)(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/i.durationDay,e=>Math.floor(e/i.durationDay)),u=c.range},(e,t,r)=>{"use strict";r.r(t),r.d(t,{timeFriday:()=>p,timeFridays:()=>b,timeMonday:()=>s,timeMondays:()=>f,timeSaturday:()=>d,timeSaturdays:()=>v,timeSunday:()=>a,timeSundays:()=>h,timeThursday:()=>u,timeThursdays:()=>y,timeTuesday:()=>l,timeTuesdays:()=>m,timeWednesday:()=>c,timeWednesdays:()=>g,utcFriday:()=>O,utcFridays:()=>D,utcMonday:()=>E,utcMondays:()=>k,utcSaturday:()=>I,utcSaturdays:()=>M,utcSunday:()=>S,utcSundays:()=>A,utcThursday:()=>x,utcThursdays:()=>P,utcTuesday:()=>T,utcTuesdays:()=>R,utcWednesday:()=>w,utcWednesdays:()=>C});var n=r(2209),i=r(2210);function o(e){return(0,n.timeInterval)(t=>{t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},(e,t)=>{e.setDate(e.getDate()+7*t)},(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*i.durationMinute)/i.durationWeek)}const a=o(0),s=o(1),l=o(2),c=o(3),u=o(4),p=o(5),d=o(6),h=a.range,f=s.range,m=l.range,g=c.range,y=u.range,b=p.range,v=d.range;function _(e){return(0,n.timeInterval)(t=>{t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+7*t)},(e,t)=>(t-e)/i.durationWeek)}const S=_(0),E=_(1),T=_(2),w=_(3),x=_(4),O=_(5),I=_(6),A=S.range,k=E.range,R=T.range,C=w.range,P=x.range,D=O.range,M=I.range},(e,t,r)=>{"use strict";r.r(t),r.d(t,{timeMonth:()=>i,timeMonths:()=>o,utcMonth:()=>a,utcMonths:()=>s});var n=r(2209);const i=(0,n.timeInterval)(e=>{e.setDate(1),e.setHours(0,0,0,0)},(e,t)=>{e.setMonth(e.getMonth()+t)},(e,t)=>t.getMonth()-e.getMonth()+12*(t.getFullYear()-e.getFullYear()),e=>e.getMonth()),o=i.range,a=(0,n.timeInterval)(e=>{e.setUTCDate(1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCMonth(e.getUTCMonth()+t)},(e,t)=>t.getUTCMonth()-e.getUTCMonth()+12*(t.getUTCFullYear()-e.getUTCFullYear()),e=>e.getUTCMonth()),s=a.range},(e,t,r)=>{"use strict";r.r(t),r.d(t,{timeYear:()=>i,timeYears:()=>o,utcYear:()=>a,utcYears:()=>s});var n=r(2209);const i=(0,n.timeInterval)(e=>{e.setMonth(0,1),e.setHours(0,0,0,0)},(e,t)=>{e.setFullYear(e.getFullYear()+t)},(e,t)=>t.getFullYear()-e.getFullYear(),e=>e.getFullYear());i.every=e=>isFinite(e=Math.floor(e))&&e>0?(0,n.timeInterval)(t=>{t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},(t,r)=>{t.setFullYear(t.getFullYear()+r*e)}):null;const o=i.range,a=(0,n.timeInterval)(e=>{e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCFullYear(e.getUTCFullYear()+t)},(e,t)=>t.getUTCFullYear()-e.getUTCFullYear(),e=>e.getUTCFullYear());a.every=e=>isFinite(e=Math.floor(e))&&e>0?(0,n.timeInterval)(t=>{t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,r)=>{t.setUTCFullYear(t.getUTCFullYear()+r*e)}):null;const s=a.range},(e,t,r)=>{"use strict";r.r(t),r.d(t,{timeTickInterval:()=>b,timeTicks:()=>y,utcTickInterval:()=>g,utcTicks:()=>m});var n=r(2183),i=r(2179),o=r(2210),a=r(2218),s=r(2208),l=r(2211),c=r(2212),u=r(2213),p=r(2214),d=r(2215),h=r(2216);function f(e,t,r,l,c,u){const p=[[s.second,1,o.durationSecond],[s.second,5,5*o.durationSecond],[s.second,15,15*o.durationSecond],[s.second,30,30*o.durationSecond],[u,1,o.durationMinute],[u,5,5*o.durationMinute],[u,15,15*o.durationMinute],[u,30,30*o.durationMinute],[c,1,o.durationHour],[c,3,3*o.durationHour],[c,6,6*o.durationHour],[c,12,12*o.durationHour],[l,1,o.durationDay],[l,2,2*o.durationDay],[r,1,o.durationWeek],[t,1,o.durationMonth],[t,3,3*o.durationMonth],[e,1,o.durationYear]];function d(t,r,s){const l=Math.abs(r-t)/s,c=(0,n.default)(([,,e])=>e).right(p,l);if(c===p.length)return e.every((0,i.tickStep)(t/o.durationYear,r/o.durationYear,s));if(0===c)return a.millisecond.every(Math.max((0,i.tickStep)(t,r,s),1));const[u,d]=p[l/p[c-1][2]<p[c][2]/l?c-1:c];return u.every(d)}return[function(e,t,r){const n=t<e;n&&([e,t]=[t,e]);const i=r&&"function"==typeof r.range?r:d(e,t,r),o=i?i.range(e,+t+1):[];return n?o.reverse():o},d]}const[m,g]=f(h.utcYear,d.utcMonth,p.utcSunday,u.unixDay,c.utcHour,l.utcMinute),[y,b]=f(h.timeYear,d.timeMonth,p.timeSunday,u.timeDay,c.timeHour,l.timeMinute)},(e,t,r)=>{"use strict";r.r(t),r.d(t,{millisecond:()=>i,milliseconds:()=>o});var n=r(2209);const i=(0,n.timeInterval)(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);i.every=e=>(e=Math.floor(e),isFinite(e)&&e>0?e>1?(0,n.timeInterval)(t=>{t.setTime(Math.floor(t/e)*e)},(t,r)=>{t.setTime(+t+r*e)},(t,r)=>(r-t)/e):i:null);const o=i.range},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>c,timeFormat:()=>i,timeParse:()=>o,utcFormat:()=>a,utcParse:()=>s});var n,i,o,a,s,l=r(2220);function c(e){return n=(0,l.default)(e),i=n.format,o=n.parse,a=n.utcFormat,s=n.utcParse,n}c({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Frid
41ay","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]})},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>c});var n=r(2213),i=r(2214),o=r(2216);function a(e){if(0<=e.y&&e.y<100){var t=new Date(-1,e.m,e.d,e.H,e.M,e.S,e.L);return t.setFullYear(e.y),t}return new Date(e.y,e.m,e.d,e.H,e.M,e.S,e.L)}function s(e){if(0<=e.y&&e.y<100){var t=new Date(Date.UTC(-1,e.m,e.d,e.H,e.M,e.S,e.L));return t.setUTCFullYear(e.y),t}return new Date(Date.UTC(e.y,e.m,e.d,e.H,e.M,e.S,e.L))}function l(e,t,r){return{y:e,m:t,d:r,H:0,M:0,S:0,L:0}}function c(e){var t=e.dateTime,r=e.date,o=e.time,c=e.periods,p=e.days,d=e.shortDays,h=e.months,f=e.shortMonths,m=g(c),K=y(c),me=g(p),Ie=y(p),Ae=g(d),ke=y(d),Re=g(h),Ce=y(h),Pe=g(f),De=y(f),Me={a:function(e){return d[e.getDay()]},A:function(e){return p[e.getDay()]},b:function(e){return f[e.getMonth()]},B:function(e){return h[e.getMonth()]},c:null,d:B,e:B,f:z,g:ee,G:re,H:U,I:j,j:H,L:V,m:G,M:q,p:function(e){return c[+(e.getHours()>=12)]},q:function(e){return 1+~~(e.getMonth()/3)},Q:xe,s:Oe,S:$,u:W,U:Y,V:J,w:Q,W:X,x:null,X:null,y:Z,Y:te,Z:ne,"%":we},Ne={a:function(e){return d[e.getUTCDay()]},A:function(e){return p[e.getUTCDay()]},b:function(e){return f[e.getUTCMonth()]},B:function(e){return h[e.getUTCMonth()]},c:null,d:ie,e:ie,f:ce,g:_e,G:Ee,H:oe,I:ae,j:se,L:le,m:ue,M:pe,p:function(e){return c[+(e.getUTCHours()>=12)]},q:function(e){return 1+~~(e.getUTCMonth()/3)},Q:xe,s:Oe,S:de,u:he,U:fe,V:ge,w:ye,W:be,x:null,X:null,y:ve,Y:Se,Z:Te,"%":we},Le={a:function(e,t,r){var n=Ae.exec(t.slice(r));return n?(e.w=ke.get(n[0].toLowerCase()),r+n[0].length):-1},A:function(e,t,r){var n=me.exec(t.slice(r));return n?(e.w=Ie.get(n[0].toLowerCase()),r+n[0].length):-1},b:function(e,t,r){var n=Pe.exec(t.slice(r));return n?(e.m=De.get(n[0].toLowerCase()),r+n[0].length):-1},B:function(e,t,r){var n=Re.exec(t.slice(r));return n?(e.m=Ce.get(n[0].toLowerCase()),r+n[0].length):-1},c:function(e,r,n){return Ue(e,t,r,n)},d:A,e:A,f:M,g:w,G:T,H:R,I:R,j:k,L:D,m:I,M:C,p:function(e,t,r){var n=m.exec(t.slice(r));return n?(e.p=K.get(n[0].toLowerCase()),r+n[0].length):-1},q:O,Q:L,s:F,S:P,u:v,U:_,V:S,w:b,W:E,x:function(e,t,n){return Ue(e,r,t,n)},X:function(e,t,r){return Ue(e,o,t,r)},y:w,Y:T,Z:x,"%":N};function Fe(e,t){return function(r){var n,i,o,a=[],s=-1,l=0,c=e.length;for(r instanceof Date||(r=new Date(+r));++s<c;)37===e.charCodeAt(s)&&(a.push(e.slice(l,s)),null!=(i=u[n=e.charAt(++s)])?n=e.charAt(++s):i="e"===n?" ":"0",(o=t[n])&&(n=o(r,i)),a.push(n),l=s+1);return a.push(e.slice(l,s)),a.join("")}}function Be(e,t){return function(r){var o,c,u=l(1900,void 0,1);if(Ue(u,e,r+="",0)!=r.length)return null;if("Q"in u)return new Date(u.Q);if("s"in u)return new Date(1e3*u.s+("L"in u?u.L:0));if(t&&!("Z"in u)&&(u.Z=0),"p"in u&&(u.H=u.H%12+12*u.p),void 0===u.m&&(u.m="q"in u?u.q:0),"V"in u){if(u.V<1||u.V>53)return null;"w"in u||(u.w=1),"Z"in u?(c=(o=s(l(u.y,0,1))).getUTCDay(),o=c>4||0===c?i.utcMonday.ceil(o):(0,i.utcMonday)(o),o=n.utcDay.offset(o,7*(u.V-1)),u.y=o.getUTCFullYear(),u.m=o.getUTCMonth(),u.d=o.getUTCDate()+(u.w+6)%7):(c=(o=a(l(u.y,0,1))).getDay(),o=c>4||0===c?i.timeMonday.ceil(o):(0,i.timeMonday)(o),o=n.timeDay.offset(o,7*(u.V-1)),u.y=o.getFullYear(),u.m=o.getMonth(),u.d=o.getDate()+(u.w+6)%7)}else("W"in u||"U"in u)&&("w"in u||(u.w="u"in u?u.u%7:"W"in u?1:0),c="Z"in u?s(l(u.y,0,1)).getUTCDay():a(l(u.y,0,1)).getDay(),u.m=0,u.d="W"in u?(u.w+6)%7+7*u.W-(c+5)%7:u.w+7*u.U-(c+6)%7);return"Z"in u?(u.H+=u.Z/100|0,u.M+=u.Z%100,s(u)):a(u)}}function Ue(e,t,r,n){for(var i,o,a=0,s=t.length,l=r.length;a<s;){if(n>=l)return-1;if(37===(i=t.charCodeAt(a++))){if(i=t.charAt(a++),!(o=Le[i in u?t.charAt(a++):i])||(n=o(e,r,n))<0)return-1}else if(i!=r.charCodeAt(n++))return-1}return n}return Me.x=Fe(r,Me),Me.X=Fe(o,Me),Me.c=Fe(t,Me),Ne.x=Fe(r,Ne),Ne.X=Fe(o,Ne),Ne.c=Fe(t,Ne),{format:function(e){var t=Fe(e+="",Me);return t.toString=function(){return e},t},parse:function(e){var t=Be(e+="",!1);return t.toString=function(){return e},t},utcFormat:function(e){var t=Fe(e+="",Ne);return t.toString=function(){return e},t},utcParse:function(e){var t=Be(e+="",!0);return t.toString=function(){return e},t}}}var u={"-":"",_:" ",0:"0"},p=/^\s*\d+/,d=/^%/,h=/[\\^$*+?|[\]().{}]/g;function f(e,t,r){var n=e<0?"-":"",i=(n?-e:e)+"",o=i.length;return n+(o<r?new Array(r-o+1).join(t)+i:i)}function m(e){return e.replace(h,"\\$&")}function g(e){return new RegExp("^(?:"+e.map(m).join("|")+")","i")}function y(e){return new Map(e.map((e,t)=>[e.toLowerCase(),t]))}function b(e,t,r){var n=p.exec(t.slice(r,r+1));return n?(e.w=+n[0],r+n[0].length):-1}function v(e,t,r){var n=p.exec(t.slice(r,r+1));return n?(e.u=+n[0],r+n[0].length):-1}function _(e,t,r){var n=p.exec(t.slice(r,r+2));return n?(e.U=+n[0],r+n[0].length):-1}function S(e,t,r){var n=p.exec(t.slice(r,r+2));return n?(e.V=+n[0],r+n[0].length):-1}function E(e,t,r){var n=p.exec(t.slice(r,r+2));return n?(e.W=+n[0],r+n[0].length):-1}function T(e,t,r){var n=p.exec(t.slice(r,r+4));return n?(e.y=+n[0],r+n[0].length):-1}function w(e,t,r){var n=p.exec(t.slice(r,r+2));return n?(e.y=+n[0]+(+n[0]>68?1900:2e3),r+n[0].length):-1}function x(e,t,r){var n=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(r,r+6));return n?(e.Z=n[1]?0:-(n[2]+(n[3]||"00")),r+n[0].length):-1}function O(e,t,r){var n=p.exec(t.slice(r,r+1));return n?(e.q=3*n[0]-3,r+n[0].length):-1}function I(e,t,r){var n=p.exec(t.slice(r,r+2));return n?(e.m=n[0]-1,r+n[0].length):-1}function A(e,t,r){var n=p.exec(t.slice(r,r+2));return n?(e.d=+n[0],r+n[0].length):-1}function k(e,t,r){var n=p.exec(t.slice(r,r+3));return n?(e.m=0,e.d=+n[0],r+n[0].length):-1}function R(e,t,r){var n=p.exec(t.slice(r,r+2));return n?(e.H=+n[0],r+n[0].length):-1}function C(e,t,r){var n=p.exec(t.slice(r,r+2));return n?(e.M=+n[0],r+n[0].length):-1}function P(e,t,r){var n=p.exec(t.slice(r,r+2));return n?(e.S=+n[0],r+n[0].length):-1}function D(e,t,r){var n=p.exec(t.slice(r,r+3));return n?(e.L=+n[0],r+n[0].length):-1}function M(e,t,r){var n=p.exec(t.slice(r,r+6));return n?(e.L=Math.floor(n[0]/1e3),r+n[0].length):-1}function N(e,t,r){var n=d.exec(t.slice(r,r+1));return n?r+n[0].length:-1}function L(e,t,r){var n=p.exec(t.slice(r));return n?(e.Q=+n[0],r+n[0].length):-1}function F(e,t,r){var n=p.exec(t.slice(r));return n?(e.s=+n[0],r+n[0].length):-1}function B(e,t){return f(e.getDate(),t,2)}function U(e,t){return f(e.getHours(),t,2)}function j(e,t){return f(e.getHours()%12||12,t,2)}function H(e,t){return f(1+n.timeDay.count((0,o.timeYear)(e),e),t,3)}function V(e,t){return f(e.getMilliseconds(),t,3)}function z(e,t){return V(e,t)+"000"}function G(e,t){return f(e.getMonth()+1,t,2)}function q(e,t){return f(e.getMinutes(),t,2)}function $(e,t){return f(e.getSeconds(),t,2)}function W(e){var t=e.getDay();return 0===t?7:t}function Y(e,t){return f(i.timeSunday.count((0,o.timeYear)(e)-1,e),t,2)}function K(e){var t=e.getDay();return t>=4||0===t?(0,i.timeThursday)(e):i.timeThursday.ceil(e)}function J(e,t){return e=K(e),f(i.timeThursday.count((0,o.timeYear)(e),e)+(4===(0,o.timeYear)(e).getDay()),t,2)}function Q(e){return e.getDay()}function X(e,t){return f(i.timeMonday.count((0,o.timeYear)(e)-1,e),t,2)}function Z(e,t){return f(e.getFullYear()%100,t,2)}function ee(e,t){return f((e=K(e)).getFullYear()%100,t,2)}function te(e,t){return f(e.getFullYear()%1e4,t,4)}function re(e,t){var r=e.getDay();return f((e=r>=4||0===r?(0,i.timeThursday)(e):i.timeThursday.ceil(e)).getFullYear()%1e4,t,4)}function ne(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+f(t/60|0,"0",2)+f(t%60,"0",2)}function ie(e,t){return f(e.getUTCDate(),t,2)}function oe(e,t){return f(e.getUTCHours(),t,2)}function ae(e,t){return f(e.getUTCHours()%12||12,t,2)}function se(e,t){return f(1+n.utcDay.count((0,o.utcYear)(e),e),t,3)}function le(e,t){return f(e.getUTCMilliseconds(),t,3)}function ce(e,t){return le(e,t)+"000"}function ue(e,t){return f(e.getUTCMonth()+1,t,2)}function pe(e,t){return f(e.getUTCMinutes(),t,2)}function de(e,t){return f(e.getUTCSeconds(),t,2)}function he(e){var t=e.getUTCDay();return 0===t?7:t}function fe(e,t){return f(i.utcSunday.count((0,o.utcYear)(e)-1,e),t,2)}function me(e){var t=e.getUTCDay();return t>=4||0===t?(0,i.utcThursday)(e):i.utcThursday.ceil(e)}function ge(e,t){return e=me(e),f(i.utcThursday.count((0,o.utcYear)(e),e)+(4===(0,o.utcYear)(e).getUTCDay()),t,2)}function ye(e){return e.getUTCDay()}function be(e,t){return f(i.utcMonday.count((0,o.utcYear)(e)-1,e),t,2)}function ve(e,t){return f(e.getUTCFullYear()%100,t,2)}function _e(e,t){return f((e=me(e)).getUTCFullYear()%100,t,2)}function Se(e,t){return f(e.getUTCFullYear()%1e4,t,4)}function Ee(e,t){var r=e.getUTCDay();return f((e=r>=4||0===r?(0,i.utcThursday)(e):i.utcThursday.ceil(e)).getUTCFullYear()%1e4,t,4)}function Te(){return"+0000"}function we(){return"%"}function xe(e){return+e}function Oe(e){return Math.floor(+e/1e3)}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>f});var n=r(2208),i=r(2211),o=r(2212),a=r(2213),s=r(2214),l=r(2215),c=r(2216),u=r(2217),p=r(2219),d=r(2207),h=r(2175);function f(){return h.initRange.apply((0,d.calendar)(u.utcTicks,u.utcTickInterval,c.utcYear,l.utcMonth,s.utcSunday,a.utcDay,o.utcHour,i.utcMinute,n.second,p.utcFormat).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}},(e,t,r)=>{"use strict";function n(e,t){let r,n;if(void 0===t)for(const t of e)null!=t&&(void 0===r?t>=t&&(r=n=t):(r>t&&(r=t),n<t&&(n=t)));else{let i=-1;for(let o of e)null!=(o=t(o,++i,e))&&(void 0===r?o>=o&&(r=n=o):(r>o&&(r=o),n<o&&(n=o)))}return[r,n]}r.r(t),r.d(t,{default:()=>n})},(e,t,r)=>{"use strict";
41r.r(t),r.d(t,{entries:()=>l.default,keys:()=>a.default,map:()=>o.default,nest:()=>n.default,set:()=>i.default,values:()=>s.default});var n=r(2224),i=r(2226),o=r(2225),a=r(2227),s=r(2228),l=r(2229)},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>i}),r.dn(i);var n=r(2225);function i(){var e,t,r,i=[],c=[];function u(r,o,a,s){if(o>=i.length)return null!=e&&r.sort(e),null!=t?t(r):r;for(var l,c,p,d=-1,h=r.length,f=i[o++],m=(0,n.default)(),g=a();++d<h;)(p=m.get(l=f(c=r[d])+""))?p.push(c):m.set(l,[c]);return m.each(function(e,t){s(g,t,u(e,o,a,s))}),g}function p(e,r){if(++r>i.length)return e;var n,o=c[r-1];return null!=t&&r>=i.length?n=e.entries():(n=[],e.each(function(e,t){n.push({key:t,values:p(e,r)})})),null!=o?n.sort(function(e,t){return o(e.key,t.key)}):n}return r={object:function(e){return u(e,0,o,a)},map:function(e){return u(e,0,s,l)},entries:function(e){return p(u(e,0,s,l),0)},key:function(e){return i.push(e),r},sortKeys:function(e){return c[i.length-1]=e,r},sortValues:function(t){return e=t,r},rollup:function(e){return t=e,r}}}function o(){return{}}function a(e,t,r){e[t]=r}function s(){return(0,n.default)()}function l(e,t,r){e.set(t,r)}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>a,prefix:()=>n});var n="$";function i(){}function o(e,t){var r=new i;if(e instanceof i)e.each(function(e,t){r.set(t,e)});else if(Array.isArray(e)){var n,o=-1,a=e.length;if(null==t)for(;++o<a;)r.set(o,e[o]);else for(;++o<a;)r.set(t(n=e[o],o,e),n)}else if(e)for(var s in e)r.set(s,e[s]);return r}i.prototype=o.prototype={constructor:i,has:function(e){return n+e in this},get:function(e){return this[n+e]},set:function(e,t){return this[n+e]=t,this},remove:function(e){var t=n+e;return t in this&&delete this[t]},clear:function(){for(var e in this)e[0]===n&&delete this[e]},keys:function(){var e=[];for(var t in this)t[0]===n&&e.push(t.slice(1));return e},values:function(){var e=[];for(var t in this)t[0]===n&&e.push(this[t]);return e},entries:function(){var e=[];for(var t in this)t[0]===n&&e.push({key:t.slice(1),value:this[t]});return e},size:function(){var e=0;for(var t in this)t[0]===n&&++e;return e},empty:function(){for(var e in this)if(e[0]===n)return!1;return!0},each:function(e){for(var t in this)t[0]===n&&e(this[t],t.slice(1),this)}};const a=o},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>s});var n=r(2225);function i(){}var o=n.default.prototype;function a(e,t){var r=new i;if(e instanceof i)e.each(function(e){r.add(e)});else if(e){var n=-1,o=e.length;if(null==t)for(;++n<o;)r.add(e[n]);else for(;++n<o;)r.add(t(e[n],n,e))}return r}i.prototype=a.prototype={constructor:i,has:o.has,add:function(e){return e+="",this[n.prefix+e]=e,this},remove:o.remove,clear:o.clear,values:o.keys,size:o.size,empty:o.empty,each:o.each};const s=a},(e,t,r)=>{"use strict";function n(e){var t=[];for(var r in e)t.push(r);return t}r.r(t),r.d(t,{default:()=>n}),r.dn(n)},(e,t,r)=>{"use strict";function n(e){var t=[];for(var r in e)t.push(e[r]);return t}r.r(t),r.d(t,{default:()=>n}),r.dn(n)},(e,t,r)=>{"use strict";function n(e){var t=[];for(var r in e)t.push({key:r,value:e[r]});return t}r.r(t),r.d(t,{default:()=>n}),r.dn(n)},(e,t,r)=>{"use strict";function n(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}r.r(t),r.d(t,{getDOMNode:()=>d,isReactDOMSupported:()=>p,warnOnce:()=>g,warning:()=>m});var i,o,a=r(341).default.version.split("."),s=(o=2,function(e){if(Array.isArray(e))return e}(i=a)||function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var r=[],n=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(n=(a=s.next()).done)&&(r.push(a.value),!t||r.length!==t);n=!0);}catch(e){i=!0,o=e}finally{try{n||null==s.return||s.return()}finally{if(i)throw o}}return r}}(i,o)||function(e,t){if(e){if("string"==typeof e)return n(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?n(e,t):void 0}}(i,o)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),l=s[0],c=s[1],u=Number(c)>13||Number(l)>13,p=function(){return u},d=function(e){return p()?e:e&&e.getDOMNode()},h={},f={test:!0,production:!0}
41;function m(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];globalThis.process&&f.production||t&&h[e]||(console.warn(e),h[e]=!0)}function g(e){m(e,!0)}},(e,t,r)=>{"use strict";function n(e,t){var r=new Set(e.map(t));return Array.from(r)}function i(e,t){var r=[].concat(e);return r[0]>t&&(r[0]=t),r[r.length-1]<t&&(r[r.length-1]=t),r}function o(e){return"[object Date]"===Object.prototype.toString.call(e)?e.toDateString():e}r.r(t),r.d(t,{addValueToArray:()=>i,getUniquePropertyValues:()=>n,transformValueToString:()=>o})},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>O});var n=r(341),i=r(782),o=r.n(i),a=r(2142),s=r(2233),l=r(2238),c=r(2131),u=r(2172),p=r(2240);function d(e){return d="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},d(e)}function h(){return h=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},h.apply(this,arguments)}function f(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function m(e,t){return m=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},m(e,t)}function g(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}();return function(){var r,n=y(e);if(t){var i=y(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return function(e,t){if(t&&("object"===d(t)||"function"==typeof t))return t;return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,r)}}function y(e){return y=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},y(e)}function b(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function v(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?b(Object(r),!0).forEach(function(t){_(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):b(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function _(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var S="rv-xy-plot__series rv-xy-plot__series--arc",E=["radius","angle"],T=v(v({},c.default.defaultProps),{},{center:{x:0,y:0},arcClassName:"",className:"",style:{},padAngle:0});function w(e){var t=e.radius,r=e.angle,n=e.angle0,i=-1*r+Math.PI/2,o=-1*n+Math.PI/2;return v(v({},e),{},{x:t*Math.cos(i),y:t*Math.sin(i),angle:i,angle0:o})}var x=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&m(e,t)}(c,e);var t,r,i,o=g(c);function c(e){var t;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,c);var r=(t=o.call(this,e))._getAllScaleProps(e);return t.state={scaleProps:r},t}return t=c,(r=[{key:"UNSAFE_componentWillReceiveProps",value:function(e){this.setState({scaleProps:this._getAllScaleProps(e)})}},{key:"_getAllScaleProps",value:function(e){var t=this._getDefaultScaleProps(e),r=(0,u.extractScalePropsFromProps)(e,E),n=(0,u.getMissingScaleProps)(v(v({},t),r),e.data,E);return v(v(v({},t),r),n)}},{key:"_getDefaultScaleProps",value:function(e){var t=e.innerWidth,r=e.innerHeight,n=Math.min(t/2,r/2);return{radiusRange:[0,n],_radiusValue:n,angleType:"literal"}}},{key:"render",value:function(){var e=this,t=this.props,r=t.arcClassName,i=t.animation,o=t.className,d=t.center,f=t.data,m=t.disableSeries,g=t.hideSeries,y=t.marginLeft,b=t.marginTop,_=t.padAngle,E=t.style;if(!f)return null;if(i){var T=f.map(function(e){return v({},e)});return n.default.createElement("g",{className:"rv-xy-plot__series--arc__animation-wrapper"},n.default.createElement(a.default,h({},this.props,{animatedProps:l.ANIMATED_SERIES_PROPS,data:T}),n.default.createElement(c,h({},this.props,{animation:null,disableSeries:!0,data:T}))),n.default.createElement(c,h({},this.props,{animation:null,hideSeries:!0,style:{stroke:"red"}})))}var x=this.state.scaleProps,O=x.radiusDomain,I=(0,u.getAttributeFunctor)(x,"radius"),A=(0,u.getAttr0Functor)(x,"radius"),k=(0,u.getAttributeFunctor)(x,"angle"),R=(0,u.getAttr0Functor)(x,"angle"),C=this._getAttributeFunctor("fill")||this._getAttributeFunctor("color"),P=this._getAttributeFunctor("stroke")||this._getAttributeFunctor("color"),D=this._getAttributeFunctor("op
41acity"),M=this._getAttributeFunctor("x"),N=this._getAttributeFunctor("y");return n.default.createElement("g",{className:(0,p.getCombinedClassName)(S,o),onMouseOver:this._seriesMouseOverHandler,onMouseOut:this._seriesMouseOutHandler,onClick:this._seriesClickHandler,onContextMenu:this._seriesRightClickHandler,opacity:g?0:1,pointerEvents:m?"none":"all",transform:"translate(".concat(y+M(d),",").concat(b+N(d),")")},f.map(function(t,i){var o={innerRadius:O[1]===O[0]?0:A(t),outerRadius:I(t),startAngle:R(t)||0,endAngle:k(t)},a=(0,s.default)().padAngle(_),l=t.style||{},c=t.className||"";return n.default.createElement("path",{key:"path-".concat(i),style:v(v({opacity:D&&D(t),stroke:P&&P(t),fill:C&&C(t)},E),l),onClick:function(r){return e._valueClickHandler(w(t),r)},onContextMenu:function(r){return e._valueRightClickHandler(w(t),r)},onMouseOver:function(r){return e._valueMouseOverHandler(w(t),r)},onMouseOut:function(r){return e._valueMouseOutHandler(w(t),r)},className:"".concat(S,"-path ").concat(r," ").concat(c),d:a(o)})}))}}])&&f(t.prototype,r),i&&f(t,i),c}(c.default);x.propTypes=v(v(v(v({},c.default.propTypes),(0,u.getScalePropTypesByAttribute)("radius")),(0,u.getScalePropTypesByAttribute)("angle")),{},{center:o().shape({x:o().number,y:o().number}),arcClassName:o().string,padAngle:o().oneOfType([o().func,o().number])}),x.defaultProps=T,x.displayName="ArcSeries";const O=x},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>d}),r.dn(d);var n=r(2234),i=r(2235),o=r(2236);function a(e){return e.innerRadius}function s(e){return e.outerRadius}function l(e){return e.startAngle}function c(e){return e.endAngle}function u(e){return e&&e.padAngle}function p(e,t,r,n,o,a,s){var l=e-r,c=t-n,u=(s?a:-a)/(0,i.sqrt)(l*l+c*c),p=u*c,d=-u*l,h=e+p,f=t+d,m=r+p,g=n+d,y=(h+m)/2,b=(f+g)/2,v=m-h,_=g-f,S=v*v+_*_,E=o-a,T=h*g-m*f,w=(_<0?-1:1)*(0,i.sqrt)((0,i.max)(0,E*E*S-T*T)),x=(T*_-v*w)/S,O=(-T*v-_*w)/S,I=(T*_+v*w)/S,A=(-T*v+_*w)/S,k=x-y,R=O-b,C=I-y,P=A-b;return k*k+R*R>C*C+P*P&&(x=I,O=A),{cx:x,cy:O,x01:-p,y01:-d,x11:x*(o/E-1),y11:O*(o/E-1)}}function d(){var e=a,t=s,r=(0,n.default)(0),d=null,h=l,f=c,m=u,g=null,y=(0,o.withPath)(b);function b(){var n,o,a=+e.apply(this,arguments),s=+t.apply(this,arguments),l=h.apply(this,arguments)-i.halfPi,c=f.apply(this,arguments)-i.halfPi,u=(0,i.abs)(c-l),b=c>l;if(g||(g=n=y()),s<a&&(o=s,s=a,a=o),s>i.epsilon)if(u>i.tau-i.epsilon)g.moveTo(s*(0,i.cos)(l),s*(0,i.sin)(l)),g.arc(0,0,s,l,c,!b),a>i.epsilon&&(g.moveTo(a*(0,i.cos)(c),a*(0,i.sin)(c)),g.arc(0,0,a,c,l,b));else{var v,_,S=l,E=c,T=l,w=c,x=u,O=u,I=m.apply(this,arguments)/2,A=I>i.epsilon&&(d?+d.apply(this,arguments):(0,i.sqrt)(a*a+s*s)),k=(0,i.min)((0,i.abs)(s-a)/2,+r.apply(this,arguments)),R=k,C=k;if(A>i.epsilon){var P=(0,i.asin)(A/a*(0,i.sin)(I)),D=(0,i.asin)(A/s*(0,i.sin)(I));(x-=2*P)>i.epsilon?(T+=P*=b?1:-1,w-=P):(x=0,T=w=(l+c)/2),(O-=2*D)>i.epsilon?(S+=D*=b?1:-1,E-=D):(O=0,S=E=(l+c)/2)}var M=s*(0,i.cos)(S),N=s*(0,i.sin)(S),L=a*(0,i.cos)(w),F=a*(0,i.sin)(w);if(k>i.epsilon){var B,U=s*(0,i.cos)(E),j=s*(0,i.sin)(E),H=a*(0,i.cos)(T),V=a*(0,i.sin)(T);if(u<i.pi)if(B=function(e,t,r,n,o,a,s,l){var c=r-e,u=n-t,p=s-o,d=l-a,h=d*c-p*u;if(!(h*h<i.epsilon))return[e+(h=(p*(t-a)-d*(e-o))/h)*c,t+h*u]}(M,N,H,V,U,j,L,F)){var z=M-B[0],G=N-B[1],q=U-B[0],$=j-B[1],W=1/(0,i.sin)((0,i.acos)((z*q+G*$)/((0,i.sqrt)(z*z+G*G)*(0,i.sqrt)(q*q+$*$)))/2),Y=(0,i.sqrt)(B[0]*B[0]+B[1]*B[1]);R=(0,i.min)(k,(a-Y)/(W-1)),C=(0,i.min)(k,(s-Y)/(W+1))}else R=C=0}O>i.epsilon?C>i.epsilon?(v=p(H,V,M,N,s,C,b),_=p(U,j,L,F,s,C,b),g.moveTo(v.cx+v.x01,v.cy+v.y01),C<k?g.arc(v.cx,v.cy,C,(0,i.atan2)(v.y01,v.x01),(0,i.atan2)(_.y01,_.x01),!b):(g.arc(v.cx,v.cy,C,(0,i.atan2)(v.y01,v.x01),(0,i.atan2)(v.y11,v.x11),!b),g.arc(0,0,s,(0,i.atan2)(v.cy+v.y11,v.cx+v.x11),(0,i.atan2)(_.cy+_.y11,_.cx+_.x11),!b),g.arc(_.cx,_.cy,C,(0,i.atan2)(_.y11,_.x11),(0,i.atan2)(_.y01,_.x01),!b))):(g.moveTo(M,N),g.arc(0,0,s,S,E,!b)):g.moveTo(M,N),a>i.epsilon&&x>i.epsilon?R>i.epsilon?(v=p(L,F,U,j,a,-R,b),_=p(M,N,H,V,a,-R,b),g.lineTo(v.cx+v.x01,v.cy+v.y01),R<k?g.arc(v.cx,v.cy,R,(0,i.atan2)(v.y01,v.x01),(0,i.atan2)(_.y01,_.x01),!b):(g.arc(v.cx,v.cy,R,(0,i.atan2)(v.y01,v.x01),(0,i.atan2)(v.y11,v.x11),!b),g.arc(0,0,a,(0,i.atan2)(v.cy+v.y11,v.cx+v.x11),(0,i.atan2)(_.cy+_.y11,_.cx+_.x11),b),g.arc(_.cx,_.cy,R,(0,i.atan2)(_.y11,_.x11),(0,i.atan2)(_.y01,_.x01),!b))):g.arc(0,0,a,w,T,b):g.lineTo(L,F)}else g.moveTo(0,0);if(g.closePath(),n)return g=null,n+""||null}return b.centroid=function(){var r=(+e.apply(this,arguments)+ +t.apply(this,arguments))/2,n=(+h.apply(this,arguments)+ +f.apply(this,arguments))/2-i.pi/2;return[(0,i.cos)(n)*r,(0,i.sin)(n)*r]},b.innerRadius=function(t){return arguments.length?(e="function"==typeof t?t:(0,n.default)(+t),b):e},b.outerRadius=function(e){return arguments.length?(t="function"==typeof e?e:(0,n.default)(+e),b):t},b.cornerRadius=function(e){return arguments.length?(r="function"==typeof e?e:(0,n.default)(+e),b):r},b.padRadius=function(e){return arguments.length?(d=null==e?null:"function"==typeof e?e:(0,n.default)(+e),b):d},b.startAngle=function(e){return arguments.length?(h="function"==typeof e?e:(0,n.default)(+e),b):h},b.endAngle=function(e){return arguments.length?(f="function"==typeof e?e:(0,n.default)(+e),b):f},b.padAngle=function(e){return arguments.length?(m="function"==typeof e?e:(0,n.default)(+e),b):m},b.context=function(e){return arguments.length?(g=e??null,b):g},b}},(e,t,r)=>{"use strict";function n(e){return function(){return e}}r.r(t),r.d(t,{default:()=>n}),r.dn(n)},(e,t,r)=>{"use strict";r.r(t),r.d(t,{abs:()=>n,acos:()=>f,asin:()=>m,atan2:()=>i,cos:()=>o,epsilon:()=>u,halfPi:()=>d,max:()=>a,min:()=>s,pi:()=>p,sin:()=>l,sqrt:()=>c,tau:()=>h});const n=Math.abs,i=Math.atan2,o=Math.cos,a=Math.max,s=Math.min,l=Math.sin,c=Math.sqrt,u=1e-12,p=Math.PI,d=p/2,h=2*p;function f(e){return e>1?0:e<-1?p:Math.acos(e)}function m(e){return e>=1?d:e<=-1?-d:Math.asin(e)}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{withPath:()=>i});var n=r(2237);function i(e){let t=3;return e.digits=function(r){if(!arguments.length)return t;if(null==r)t=null;else{const e=Math.floor(r);if(!(e>=0))throw new RangeError(`invalid digits: ${r}`);t=e}return e},()=>new n.Path(t)}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{Path:()=>l,path:()=>c,pathRound:()=>u});const n=Math.PI,i=2*n,o=1e-6,a=i-o;function s(e){this._+=e[0];for(let t=1,r=e.length;t<r;++t)this._+=arguments[t]+e[t]}class l{constructor(e){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=null==e?s:function(e){let t=Math.floor(e);if(!(t>=0))throw new Error(`invalid digits: ${e}`);if(t>15)return s;const r=10**t;return function(e){this._+=e[0];for(let t=1,n=e.length;t<n;++t)this._+=Math.round(arguments[t]*r)/r+e[t]}}(e)}moveTo(e,t){this._append`M${this._x0=this._x1=+e},${this._y0=this._y1=+t}`}closePath(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(e,t){this._append`L${this._x1=+e},${this._y1=+t}`}quadraticCurveTo(e,t,r,n){this._append`Q${+e},${+t},${this._x1=+r},${this._y1=+n}`}bezierCurveTo(e,t,r,n,i,o){this._append`C${+e},${+t},${+r},${+n}
41,${this._x1=+i},${this._y1=+o}`}arcTo(e,t,r,i,a){if(e=+e,t=+t,r=+r,i=+i,(a=+a)<0)throw new Error(`negative radius: ${a}`);let s=this._x1,l=this._y1,c=r-e,u=i-t,p=s-e,d=l-t,h=p*p+d*d;if(null===this._x1)this._append`M${this._x1=e},${this._y1=t}`;else if(h>o)if(Math.abs(d*c-u*p)>o&&a){let f=r-s,m=i-l,g=c*c+u*u,y=f*f+m*m,b=Math.sqrt(g),v=Math.sqrt(h),_=a*Math.tan((n-Math.acos((g+h-y)/(2*b*v)))/2),S=_/v,E=_/b;Math.abs(S-1)>o&&this._append`L${e+S*p},${t+S*d}`,this._append`A${a},${a},0,0,${+(d*f>p*m)},${this._x1=e+E*c},${this._y1=t+E*u}`}else this._append`L${this._x1=e},${this._y1=t}`;else;}arc(e,t,r,s,l,c){if(e=+e,t=+t,c=!!c,(r=+r)<0)throw new Error(`negative radius: ${r}`);let u=r*Math.cos(s),p=r*Math.sin(s),d=e+u,h=t+p,f=1^c,m=c?s-l:l-s;null===this._x1?this._append`M${d},${h}`:(Math.abs(this._x1-d)>o||Math.abs(this._y1-h)>o)&&this._append`L${d},${h}`,r&&(m<0&&(m=m%i+i),m>a?this._append`A${r},${r},0,1,${f},${e-u},${t-p}A${r},${r},0,1,${f},${this._x1=d},${this._y1=h}`:m>o&&this._append`A${r},${r},0,${+(m>=n)},${f},${this._x1=e+r*Math.cos(l)},${this._y1=t+r*Math.sin(l)}`)}rect(e,t,r,n){this._append`M${this._x0=this._x1=+e},${this._y0=this._y1=+t}h${r=+r}v${+n}h${-r}Z`}toString(){return this._}}function c(){return new l}function u(e=3){return new l(+e)}c.prototype=l.prototype},(e,t,r)=>{"use strict";r.r(t),r.d(t,{ANIMATED_SERIES_PROPS:()=>f,getRadialDomain:()=>h,getSeriesChildren:()=>u,getSeriesPropsFromChildren:()=>d,getStackParams:()=>m,getStackedData:()=>p,isSeriesChild:()=>c});var n=r(341),i=r(2131),o=r(2239);function a(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function s(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?a(Object(r),!0).forEach(function(t){l(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):a(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function l(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function c(e){return e.type.prototype instanceof i.default}function u(e){return n.default.Children.toArray(e).filter(function(e){return e&&c(e)})}function p(e,t){var r=e.some(function(e){return e&&e.props.stack}),n={};return e.reduce(function(e,i){if(!i)return e.push(null),e;var o=i.type.displayName,a=i.props,c=a.data,u=a.cluster,p=void 0===u?"default":u,d=a.stack,h=function(e){return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return!!e&&e.some(function(e){return e.radius&&e.angle})}(e)?e.map(function(e){return s(s({},e),{},{x:e.radius*Math.cos(e.angle),y:e.radius*Math.sin(e.angle)})}):e}(c);if(!t||!h||!h.length||r&&!d)return e.push(h),e;var f="".concat(t,"0"),m="y"===t?"x":"y";return e.push(h.map(function(e){var r,i;n[p]||(n[p]={}),n[p][o]||(n[p][o]={});var a,c=n[p][o][e[m]];if(!c)return n[p][o][e[m]]=(l(a={},f,e[f]),l(a,t,e[t]),a),s({},e);var u=s(s({},e),{},(l(r={},f,c[t]),l(r,t,c[t]+e[t]-(e[f]||0)),r));return n[p][o][e[m]]=(l(i={},f,u[f]),l(i,t,u[t]),i),u})),e},[])}function d(e){var t=[],r=function(e){var t={};return e.filter(c).forEach(function(e){var r=e.type.displayName,n=e.props.cluster;t[r]||(t[r]={sameTypeTotal:0,sameTypeIndex:0,clusters:new Set}),t[r].clusters.add(n),t[r].sameTypeTotal++}),t}(e),n=0,i=o.DEFAULT_OPACITY;return e.forEach(function(e){var a;if(c(e)){var l=r[e.type.displayName],u=o.DISCRETE_COLOR_RANGE[n%o.DISCRETE_COLOR_RANGE.length];a=s(s({},l),{},{seriesIndex:n,_colorValue:u,_opacityValue:i}),l.sameTypeIndex++,n++,e.props.cluster&&(a.cluster=e.props.cluster,a.clusters=Array.from(l.clusters),a.sameTypeTotal=a.clusters.length,a.sameTypeIndex=a.clusters.indexOf(e.props.cluster))}t.push(a)}),t}function h(e){return e.reduce(function(e,t){return Math.max(t.radius,e)},0)}var f=["xRange","xDomain","x","yRange","yDomain","y","colorRange","colorDomain","color","opacityRange","opacityDomain","opacity","strokeRange","strokeDomain","stroke","fillRange","fillDomain","fill","width","height","marginLeft","marginTop","marginRight","marginBottom","data","angleDomain","angleRange","angle","radiusDomain","radiusRange","radius","innerRadiusDomain","innerRadiusRange","innerRadius"];function m(e){var t=e._stackBy,r=e.valuePosAttr,n=e.cluster,i=e.sameTypeTotal,o=void 0===i?1:i,a=e.sameTypeIndex,s=void 0===a?0:a;return t!==r||n||(o=1,s=0),{sameTypeTotal:o,sameTypeIndex:s}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{CONTINUOUS_COLOR_RANGE:()=>o,DEFAULT_COLOR:()=>p,DEFAULT_OPACITY:()=>c,DEFAULT_SIZE:()=>u,DEFAULT_TICK_SIZE:()=>d,DISCRETE_COLOR_RANGE:()=>n,EXTENDED_DISCRETE_COLOR_RANGE:()=>i,OPACITY_RANGE:()=>s,OPACITY_TYPE:()=>l,SIZE_RANGE:()=>a});var n=["#12939A","#79C7E3","#1A3177","#FF9833","#EF5D28"],i=["#19CDD7","#DDB27C","#88572C","#F
41F991F","#F15C17","#223F9A","#DA70BF","#125C77","#4DC19C","#776E57","#12939A","#17B8BE","#F6D18A","#B7885E","#FFCB99","#F89570","#829AE3","#E79FD5","#1E96BE","#89DAC1","#B3AD9E"],o=["#EF5D28","#FF9833"],a=[1,10],s=[.1,1],l="literal",c=1,u=5,p=n[0],d=7},(e,t,r)=>{"use strict";function n(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return t.filter(function(e){return e&&"string"==typeof e}).join(" ")}r.r(t),r.d(t,{getCombinedClassName:()=>n})},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>w});var n=r(341),i=r(782),o=r.n(i),a=r(2242),s=r(2243),l=r(2142),c=r(2239),u=r(2238),p=r(2230),d=r(2240),h=r(2131);function f(e){return f="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},f(e)}function m(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function g(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?m(Object(r),!0).forEach(function(t){y(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):m(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function y(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function b(){return b=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},b.apply(this,arguments)}function v(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function _(e,t){return _=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},_(e,t)}function S(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}();return function(){var r,n=E(e);if(t){var i=E(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return function(e,t){if(t&&("object"===f(t)||"function"==typeof t))return t;return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,r)}}function E(e){return E=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},E(e)}var T=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&_(e,t)}(h,e);var t,r,i,o=S(h);function h(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,h),o.apply(this,arguments)}return t=h,(r=[{key:"_renderArea",value:function(e,t,r,n,i,o){var l=s.default();return null!==i&&("string"==typeof i&&a[i]?l=l.curve(a[i]):"function"==typeof i&&(l=l.curve(i))),(l=(l=l.defined(o)).x(t).y0(r).y1(n))(e)}},{key:"render",value:function(){var e=this.props,t=e.animation,r=e.className,i=e.curve,o=e.data,a=e.marginLeft,s=e.marginTop,f=e.style;if(this.props.nullAccessor&&(0,p.warning)("nullAccessor has been renamed to getNull",!0),!o)return null;if(t)return n.default.createElement(l.default,b({},this.props,{animatedProps:u.ANIMATED_SERIES_PROPS}),n.default.createElement(h,b({},this.props,{animation:null})));var m=this._getAttributeFunctor("x"),y=this._getAttributeFunctor("y"),v=this._getAttr0Functor("y"),_=this._getAttributeValue("stroke")||this._getAttributeValue("color"),S=this._getAttributeValue("fill")||this._getAttributeValue("color"),E=this._getAttributeValue("opacity"),T=Number.isFinite(E)?E:c.DEFAULT_OPACITY,w=this.props.nullAccessor||this.props.getNull,x=this._renderArea(o,m,v,y,i,w);return n.default.createElement("path",{d:x,className:(0,d.getCombinedClassName)("rv-xy-plot__series rv-xy-plot__series--line",r),transform:"translate(".concat(a,",").concat(s,")"),onMouseOver:this._seriesMouseOverHandler,onMouseOut:this._seriesMouseOutHandler,onClick:this._seriesClickHandler,onContextMenu:this._seriesRightClickHandler,style:g({opacity:T,stroke:_,fill:S},f)})}}])&&v(t.prototype,r),i&&v(t,i),h}(h.default);T.displayName="AreaSeries",T.propTypes=g(g({}
41,h.default.propTypes),{},{getNull:o().func}),T.defaultProps=g(g({},h.default.defaultProps),{},{getNull:function(){return!0}});const w=T},(e,t,r)=>{"use strict";r.r(t),r.d(t,{arc:()=>n.default,area:()=>i.default,areaRadial:()=>s.default,curveBasis:()=>I.default,curveBasisClosed:()=>x.default,curveBasisOpen:()=>O.default,curveBumpX:()=>A.bumpX,curveBumpY:()=>A.bumpY,curveBundle:()=>k.default,curveCardinal:()=>P.default,curveCardinalClosed:()=>R.default,curveCardinalOpen:()=>C.default,curveCatmullRom:()=>N.default,curveCatmullRomClosed:()=>D.default,curveCatmullRomOpen:()=>M.default,curveLinear:()=>F.default,curveLinearClosed:()=>L.default,curveMonotoneX:()=>B.monotoneX,curveMonotoneY:()=>B.monotoneY,curveNatural:()=>U.default,curveStep:()=>j.default,curveStepAfter:()=>j.stepAfter,curveStepBefore:()=>j.stepBefore,line:()=>o.default,lineRadial:()=>l.default,link:()=>u.link,linkHorizontal:()=>u.linkHorizontal,linkRadial:()=>u.linkRadial,linkVertical:()=>u.linkVertical,pie:()=>a.default,pointRadial:()=>c.default,radialArea:()=>s.default,radialLine:()=>l.default,stack:()=>H.default,stackOffsetDiverging:()=>z.default,stackOffsetExpand:()=>V.default,stackOffsetNone:()=>G.default,stackOffsetSilhouette:()=>q.default,stackOffsetWiggle:()=>$.default,stackOrderAppearance:()=>W.default,stackOrderAscending:()=>Y.default,stackOrderDescending:()=>K.default,stackOrderInsideOut:()=>J.default,stackOrderNone:()=>Q.default,stackOrderReverse:()=>X.default,symbol:()=>p.default,symbolAsterisk:()=>d.default,symbolCircle:()=>h.default,symbolCross:()=>f.default,symbolDiamond:()=>m.default,symbolDiamond2:()=>g.default,symbolPlus:()=>y.default,symbolSquare:()=>b.default,symbolSquare2:()=>v.default,symbolStar:()=>_.default,symbolTimes:()=>w.default,symbolTriangle:()=>S.default,symbolTriangle2:()=>E.default,symbolWye:()=>T.default,symbolX:()=>w.default,symbols:()=>p.symbolsFill,symbolsFill:()=>p.symbolsFill,symbolsStroke:()=>p.symbolsStroke});var n=r(2233),i=r(2243),o=r(2246),a=r(2248),s=r(2251),l=r(2253),c=r(2254),u=r(2255),p=r(2257),d=r(2258),h=r(2259),f=r(2260),m=r(2261),g=r(2262),y=r(2263),b=r(2264),v=r(2265),_=r(2266),S=r(2267),E=r(2268),T=r(2269),w=r(2270),x=r(2271),O=r(2274),I=r(2273),A=r(2256),k=r(2275),R=r(2276),C=r(2278),P=r(2277),D=r(2279),M=r(2281),N=r(2280),L=r(2282),F=r(2245),B=r(2283),U=r(2284),j=r(2285),H=r(2286),V=r(2289),z=r(2290),G=r(2287),q=r(2291),$=r(2292),W=r(2293),Y=r(2294),K=r(2295),J=r(2296),Q=r(2288),X=r(2297)},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>c}),r.dn(c);var n=r(2244),i=r(2234),o=r(2245),a=r(2246),s=r(2236),l=r(2247);function c(e,t,r){var c=null,u=(0,i.default)(!0),p=null,d=o.default,h=null,f=(0,s.withPath)(m);function m(i){var o,a,s,l,m,g=(i=(0,n.default)(i)).length,y=!1,b=new Array(g),v=new Array(g);for(null==p&&(h=d(m=f())),o=0;o<=g;++o){if(!(o<g&&u(l=i[o],o,i))===y)if(y=!y)a=o,h.areaStart(),h.lineStart();else{for(h.lineEnd(),h.lineStart(),s=o-1;s>=a;--s)h.point(b[s],v[s]);h.lineEnd(),h.areaEnd()}y&&(b[o]=+e(l,o,i),v[o]=+t(l,o,i),h.point(c?+c(l,o,i):b[o],r?+r(l,o,i):v[o]))}if(m)return h=null,m+""||null}function g(){return(0,a.default)().defined(u).curve(d).context(p)}return e="function"==typeof e?e:void 0===e?l.x:(0,i.default)(+e),t="function"==typeof t?t:void 0===t?(0,i.default)(0):(0,i.default)(+t),r="function"==typeof r?r:void 0===r?l.y:(0,i.default)(+r),m.x=function(t){return arguments.length?(e="function"==typeof t?t:(0,i.default)(+t),c=null,m):e},m.x0=function(t){return arguments.length?(e="function"==typeof t?t:(0,i.default)(+t),m):e},m.x1=function(e){return arguments.length?(c=null==e?null:"function"==typeof e?e:(0,i.default)(+e),m):c},m.y=function(e){return arguments.length?(t="function"==typeof e?e:(0,i.default)(+e),r=null,m):t},m.y0=function(e){return arguments.length?(t="function"==typeof e?e:(0,i.default)(+e),m):t},m.y1=function(e){return arguments.length?(r=null==e?null:"function"==typeof e?e:(0,i.default)(+e),m):r},m.lineX0=m.lineY0=function(){return g().x(e).y(t)},m.lineY1=function(){return g().x(e).y(r)},m.lineX1=function(){return g().x(c).y(t)},m.defined=function(e){return arguments.length?(u="function"==typeof e?e:(0,i.default)(!!e),m):u},m.curve=function(e){return arguments.length?(d=e,null!=p&&(h=d(p)),m):d},m.context=function(e){return arguments.length?(null==e?p=h=null:h=d(p=e),m):p},m}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>i,slice:()=>n}),r.dn(i);var n=Array.prototype.slice;function i(e){return"object"==typeof e&&"length"in e?e:Array.from(e)}},(e,t,r)=>{"use strict";function n(e){this._context=e}function i(e){return new n(e)}r.r(t),r.d(t,{default:()=>i}),r.dn(i),n.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._context.lineTo(e,t)}}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>l}),r.dn(l);var n=r(2244),i=r(2234),o=r(2245),a=r(2236),s=r(2247);function l(e,t){var r=(0,i.default)(!0),l=null,c=o.default,u=null,p=(0,a.withPath)(d);function d(i){var o,a,s,d=(i=(0,n.default)(i)).length,h=!1;for(null==l&&(u=c(s=p())),o=0;o<=d;++o)!(o<d&&r(a=i[o],o,i))===h&&((h=!h)?u.lineStart():u.lineEnd()),h&&u.point(+e(a,o,i),+t(a,o,i));if(s)return u=null,s+""||null}return e="function"==typeof e?e:void 0===e?s.x:(0,i.default)(e),t="function"==typeof t?t:void 0===t?s.y:(0,i.default)(t),d.x=function(t){return arguments.length?(e="function"==typeof t?t:(0,i.default)(+t),d):e},d.y=function(e){return arguments.length?(t="function"==typeof e?e:(0,i.default)(+e),d):t},d.defined=function(e){return arguments.length?(r="function"==typeof e?e:(0,i.default)(!!e),d):r},d.curve=function(e){return arguments.length?(c=e,null!=l&&(u=c(l)),d):c},d.context=function(e){return arguments.length?(null==e?l=u=null:u=c(l=e),d):l},d}},(e,t,r)=>{"use strict";function n(e){return e[0]}function i(e){return e[1]}r.r(t),r.d(t,{x:()=>n,y:()=>i})},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>l}),r.dn(l);var n=r(2244),i=r(2234),o=r(2249),a=r(2250),s=r(2235);function l(){var e=a.default,t=o.default,r=null,l=(0,i.default)(0),c=(0,i.default)(s.tau),u=(0,i.default)(0);function p(i){var o,a,p,d,h,f=(i=(0,n.default)(i)).length,m=0,g=new Array(f),y=new Array(f),b=+l.apply(this,arguments),v=Math.min(s.tau,Math.max(-s.tau,c.apply(this,arguments)-b)),_=Math.min(Math.abs(v)/f,u.apply(this,arguments)),S=_*(v<0?-1:1);for(o=0;o<f;++o)(h=y[g[o]=o]=+e(i[o],o,i))>0&&(m+=h);for(null!=t?g.sort(function(e,r){return t(y[e],y[r])}):null!=r&&g.sort(function(e,t){return r(i[e],i[t])}),o=0,p=m?(v-f*S)/m:0;o<f;++o,b=d)a=g[o],d=b+((h=y[a])>0?h*p:0)+S,y[a]={data:i[a],index:o,value:h,startAngle:b,endAngle:d,padAngle:_};return y}return p.value=function(t){return arguments.length?(e="function"==typeof t?t:(0,i.default)(+t),p):e},p.sortValues=function(e){return arguments.length?(t=e,r=null,p):t},p.sort=function(e){return arguments.length?(r=e,t=null,p):r},p.startAngle=function(e){return arguments.length?(l="function"==typeof e?e:(0,i.default)(+e),p):l},p.endAngle=function(e){return arguments.length?(c="function"==typeof e?e:(0,i.default)(+e),p):c},p.padAngle=function(e){return arguments.length?(u="function"==typeof e?e:(0,i.default)(+e),p):u},p}},(e,t,r)=>{"use strict";function n(e,t){return t<e?-1:t>e?1:t>=e?0:NaN}r.r(t),r.d(t,{default:()=>n}),r.dn(n)},(e,t,r)=>{"use strict";function n(e){return e}r.r(t),r.d(t,{default:()=>n}),r.dn(n)},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>a}),r.dn(a);var n=r(2252),i=r(2243),o=r(2253);function a(){var e=(0,i.default)().curve(n.curveRadialLinear),t=e.curve,r=e.lineX0,a=e.lineX1,s=e.lineY0,l=e.lineY1;return e.angle=e.x,delete e.x,e.startAngle=e.x0,delete e.x0,e.endAngle=e.x1,delete e.x1,e.radius=e.y,delete e.y,e.innerRadius=e.y0,delete e.y0,e.outerRadius=e.y1,delete e.y1,e.lineStartAngle=function(){return(0,o.lineRadial)(r())},delete e.lineX0,e.lineEndAngle=function(){return(0,o.lineRadial)(a())},delete e.lineX1,e.lineInnerRadius=function(){return(0,o.lineRadial)(s())},delete e.lineY0,e.lineOuterRadius=function(){return(0,o.lineRadial)(l())},delete e.lineY1,e.curve=function(e){return arguments.length?t((0,n.default)(e)):t()._curve},e}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{curveRadialLinear:()=>n,default:()=>o});var n=o(r(2245).default);function i(e){this._curve=e}function o(e){function t(t){return new i(e(t))}return t._curve=e,t}i.prototype={areaStart:function(){this._curve.areaStart()},areaEnd:function(){this._curve.areaEnd()},lineStart:function(){this._curve.lineStart()},lineEnd:function(){this._curve.lineEnd()},point:function(e,t){this._curve.point(t*Math.sin(e),t*-Math.cos(e))}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>a,lineRadial:()=>o}),r.dn(a);var n=r(2252),i=r(2246);function o(e){var t=e.curve;return e.angle=e.x,delete e.x,e.radius=e.y,delete e.y,e.curve=function(e){return arguments.length?t((0,n.default)(e)):t()._curve},e}function a(){return o((0,i.default)().curve(n.curveRadialLinear))}},(e,t,r)=>{"use strict";function n(e,t){return[(t=+t)*Math.cos(e-=Math.PI/2),t*Math.sin(e)]}r.r(t),r.d(t,{default:()=>n}),r.dn(n)},(e,t,r)=>{"use strict";r.r(t),r.d(t,{link:()=>u,linkHorizontal:()=>p,linkRadial:()=>h,linkVertical:()=>d});var n=r(2244),i=r(2234),o=r(2256),a=r(2236),s=r(2247);function l(e){return e.source}function c(e){return e.target}function u(e){let t=l,r=c,o=s.x,u=s.y,p=null,d=null,h=(0,a.withPath)(f);function f(){let i;const a=n.slice.call(arguments),s=t.apply(this,a),l=r.apply(this,a);if(null==p&&(d=e(i=h())),d.lineStart(),a[0]=s,d.point(+o.apply(this,a),+u.apply(this,a)),a[0]=l,d.point(+o.apply(this,a),+u.apply(this,a)),d.lineEnd(),i)return d=null,i+""||null}return f.source=function(e){return arguments.length?(t=e,f):t},f.target=function(e){return arguments.length?(r=e,f):r},f.x=function(e){return arguments.length?(o="function"==typeof e?e:(0,i.default)(+e),f):o},f.y=function(e){return arguments.length?(u="function"==typeof e?e:(0,i.default)(+e),f):u},f.context=function(t){return arguments.length?(null==t?p=d=null:d=e(p=t),f):p},f}function p(){return u(o.bumpX)}function d(){return u(o.bumpY)}function h(){const e=u(o.bumpRadial);return e.angle=e.x,delete e.x,e.radius=e.y,delete e.y,e}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{bumpRadial:()=>l,bumpX:()=>a,bumpY:()=>s});var n=r(2254);class i{constructor(e,t){this._context=e,this._x=t}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line}point(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._x?this._context.bezierCurveTo(this._x0=(this._x0+e)/2,this._y0,this._x0,t,e,t):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+t)/2,e,this._y0,e,t)}this._x0=e,this._y0=t}}class o{constructor(e){this._context=e}lineStart(){this._point=0}lineEnd(){}point(e,t){if(e=+e,t=+t,0===this._point)this._point=1;else{const r=(0,n.default)(this._x0,this._y0),i=(0,n.default)(this._x0,this._y0=(this._y0+t)/2),o=(0,n.default)(e,this._y0),a=(0,n.default)(e,t);this._context.moveTo(...r),this._context.bezierCurveTo(...i,...o,...a)}this._x0=e,this._y0=t}}function a(e){return new i(e,!0)}function s(e){return new i(e,!1)}function l(e){return new o(e)}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>_,symbolsFill:()=>b,symbolsStroke:()=>v});var n=r(2234),i=r(2236),o=r(2258),a=r(2259),s=r(2260),l=r(2261),c=r(2262),u=r(2263),p=r(2264),d=r(2265),h=r(2266),f=r(2267),m=r(2268),g=r(2269),y=r(2270);const b=[a.default,s.default,l.default,p.default,h.default,f.default,g.default],v=[a.default,u.default,y.default,m.default,o.default,d.default,c.default];function _(e,t){let r=null,o=(0,i.withPath)(s);function s(){let n;if(r||(r=n=o()),e.apply(this,arguments).draw(r,+t.apply(this,arguments)),n)return r=null,n+""||null}return e="function"==typeof e?e:(0,n.default)(e||a.default),t="function"==typeof t?t:(0,n.default)(void 0===t?64:+t),s.type=function(t){return arguments.length?(e="function"==typeof t?t:(0,n.default)(t),s):e},s.size=function(e){return arguments.length?(t="function"==typeof e?e:(0,n.default)(+e),s):t},s.context=function(e){return arguments.length?(r=e??null,s):r},s}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>o});var n=r(2235);const i=(0,n.sqrt)(3),o={draw(e,t){const r=.59436*(0,n.sqrt)(t+(0,n.min)(t/28,.75)),o=r/2,a=o*i;e.moveTo(0,r),e.lineTo(0,-r),e.moveTo(-a,-o),e.lineTo(a,o),e.moveTo(-a,o),e.lineTo(a,-o)}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>i});var n=r(2235);const i={draw(e,t){const r=(0,n.sqrt)(t/n.pi);e.moveTo(r,0),e.arc(0,0,r,0,n.tau)}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>i});var n=r(2235);const i={draw(e,t){const r=(0,n.sqrt)(t/5)/2;e.moveTo(-3*r,-r),e.lineTo(-r,-r),e.lineTo(-r,-3*r),e.lineTo(r,-3*r),e.lineTo(r,-r),e.lineTo(3*r,-r),e.lineTo(3*r,r),e.lineTo(r,r),e.lineTo(r,3*r),e.lineTo(-r,3*r),e.lineTo(-r,r),e.lineTo(-3*r,r),e.closePath()}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>a});var n=r(2235);const i=(0,n.sqrt)(1/3),o=2*i,a={draw(e,t){const r=(0,n.sqrt)(t/o),a=r*i;e.moveTo(0,-r),e.lineTo(a,0),e.lineTo(0,r),e.lineTo(-a,0),e.closePath()}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>i});var n=r(2235);const i={draw(e,t){const r=.62625*(0,n.sqrt)(t);e.moveTo(0,-r),e.lineTo(r,0),e.lineTo(0,r),e.lineTo(-r,0),e.closePath()}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>i});var n=r(2235);const i={draw(e,t){const r=.87559*(0,n.sqrt)(t-(0,n.min)(t/7,2));e.moveTo(-r,0),e.lineTo(r,0),e.moveTo(0,r),e.lineTo(0,-r)}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>i});var n=r(2235);const i={draw(e,t){const r=(0,n.sqrt)(t),i=-r/2;e.rect(i,i,r,r)}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>i});var n=r(2235);const i={draw(e,t){const r=.4431*(0,n.sqrt)(t);e.moveTo(r,r),e.lineTo(r,-r),e.lineTo(-r,-r),e.lineTo(-r,r),e.closePath()}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>s});var n=r(2235);const i=(0,n.sin)(n.pi/10)/(0,n.sin)(7*n.pi/10),o=(0,n.sin)(n.tau/10)
vendor: 20,273 bytes, line 41
41*i,a=-(0,n.cos)(n.tau/10)*i,s={draw(e,t){const r=(0,n.sqrt)(.8908130915292852*t),i=o*r,s=a*r;e.moveTo(0,-r),e.lineTo(i,s);for(let t=1;t<5;++t){const o=n.tau*t/5,a=(0,n.cos)(o),l=(0,n.sin)(o);e.lineTo(l*r,-a*r),e.lineTo(a*i-l*s,l*i+a*s)}e.closePath()}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>o});var n=r(2235);const i=(0,n.sqrt)(3),o={draw(e,t){const r=-(0,n.sqrt)(t/(3*i));e.moveTo(0,2*r),e.lineTo(-i*r,-r),e.lineTo(i*r,-r),e.closePath()}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>o});var n=r(2235);const i=(0,n.sqrt)(3),o={draw(e,t){const r=.6824*(0,n.sqrt)(t),o=r/2,a=r*i/2;e.moveTo(0,-r),e.lineTo(a,o),e.lineTo(-a,o),e.closePath()}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>l});var n=r(2235);const i=-.5,o=(0,n.sqrt)(3)/2,a=1/(0,n.sqrt)(12),s=3*(a/2+1),l={draw(e,t){const r=(0,n.sqrt)(t/s),l=r/2,c=r*a,u=l,p=r*a+r,d=-u,h=p;e.moveTo(l,c),e.lineTo(u,p),e.lineTo(d,h),e.lineTo(i*l-o*c,o*l+i*c),e.lineTo(i*u-o*p,o*u+i*p),e.lineTo(i*d-o*h,o*d+i*h),e.lineTo(i*l+o*c,i*c-o*l),e.lineTo(i*u+o*p,i*p-o*u),e.lineTo(i*d+o*h,i*h-o*d),e.closePath()}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>i});var n=r(2235);const i={draw(e,t){const r=.6189*(0,n.sqrt)(t-(0,n.min)(t/6,1.7));e.moveTo(-r,-r),e.lineTo(r,r),e.moveTo(-r,r),e.lineTo(r,-r)}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>a}),r.dn(a);var n=r(2272),i=r(2273);function o(e){this._context=e}function a(e){return new o(e)}o.prototype={areaStart:n.default,areaEnd:n.default,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x2,this._y2),this._context.closePath();break;case 2:this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break;case 3:this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4)}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x2=e,this._y2=t;break;case 1:this._point=2,this._x3=e,this._y3=t;break;case 2:this._point=3,this._x4=e,this._y4=t,this._context.moveTo((this._x0+4*this._x1+e)/6,(this._y0+4*this._y1+t)/6);break;default:(0,i.point)(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}}},(e,t,r)=>{"use strict";function n(){}r.r(t),r.d(t,{default:()=>n}),r.dn(n)},(e,t,r)=>{"use strict";function n(e,t,r){e._context.bezierCurveTo((2*e._x0+e._x1)/3,(2*e._y0+e._y1)/3,(e._x0+2*e._x1)/3,(e._y0+2*e._y1)/3,(e._x0+4*e._x1+t)/6,(e._y0+4*e._y1+r)/6)}function i(e){this._context=e}function o(e){return new i(e)}r.r(t),r.d(t,{Basis:()=>i,default:()=>o,point:()=>n}),r.dn(o),i.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:n(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:n(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>o}),r.dn(o);var n=r(2273);function i(e){this._context=e}function o(e){return new i(e)}i.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var r=(this._x0+4*this._x1+e)/6,i=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(r,i):this._context.moveTo(r,i);break;case 3:this._point=4;default:(0,n.point)(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>o});var n=r(2273);function i(e,t){this._basis=new n.Basis(e),this._beta=t}i.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var e=this._x,t=this._y,r=e.length-1;if(r>0)for(var n,i=e[0],o=t[0],a=e[r]-i,s=t[r]-o,l=-1;++l<=r;)n=l/r,this._basis.point(this._beta*e[l]+(1-this._beta)*(i+n*a),this._beta*t[l]+(1-this._beta)*(o+n*s));this._x=this._y=null,this._basis.lineEnd()},point:function(e,t){this._x.push(+e),this._y.push(+t)}};const o=function e(t){function r(e){return 1===t?new n.Basis(e):new i(e,t)}return r.beta=function(t){return e(+t)},r}(.85)},(e,t,r)=>{"use strict";r.r(t),r.d(t,{CardinalClosed:()=>o,default:()=>a});var n=r(2272),i=r(2277);function o(e,t){this._context=e,this._k=(1-t)/6}o.prototype={areaStart:n.default,areaEnd:n.default,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:(0,i.point)(this,e,t)}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const a=function e(t){function r(e){return new o(e,t)}return r.tension=function(t){return e(+t)},r}(0)},(e,t,r)=>{"use strict";function n(e,t,r){e._context.bezierCurveTo(e._x1+e._k*(e._x2-e._x0),e._y1+e._k*(e._y2-e._y0),e._x2+e._k*(e._x1-t),e._y2+e._k*(e._y1-r),e._x2,e._y2)}function i(e,t){this._context=e,this._k=(1-t)/6}r.r(t),r.d(t,{Cardinal:()=>i,default:()=>o,point:()=>n}),i.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:n(this,this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2,this._x1=e,this._y1=t;break;case 2:this._point=3;default:n(this,e,t)}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const o=function e(t){function r(e){return new i(e,t)}return r.tension=function(t){return e(+t)},r}(0)},(e,t,r)=>{"use strict";r.r(t),r.d(t,{CardinalOpen:()=>i,default:()=>o});var n=r(2277);function i(e,t){this._context=e,this._k=(1-t)/6}i.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:(0,n.point)(this,e,t)}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const o=function e(t){function r(e){return new i(e,t)}return r.tension=function(t){return e(+t)},r}(0)},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>s});var n=r(2276),i=r(2272),o=r(2280);function a(e,t){this._context=e,this._alpha=t}a.prototype={areaStart:i.default,areaEnd:i.default,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(e,t){if(e=+e,t=+t,this._point){var r=this._x2-e,n=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(r*r+n*n,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:(0,o.point)(this,e,t)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const s=function e(t){function r(e){return t?new a(e,t):new n.CardinalClosed(e,0)}return r.alpha=function(t){return e(+t)},r}(.5)},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>s,point:()=>o});var n=r(2235),i=r(2277);function o(e,t,r){var i=e._x1,o=e._y1,a=e._x2,s=e._y2;if(e._l01_a>n.epsilon){var l=2*e._l01_2a+3*e._l01_a*e._l12_a+e._l12_2a,c=3*e._l01_a*(e._l01_a+e._l12_a);i=(i*l-e._x0*e._l12_2a+e._x2*e._l01_2a)/c,o=(o*l-e._y0*e._l12_2a+e._y2*e._l01_2a)/c}if(e._l23_a>n.epsilon){var u=2*e._l23_2a+3*e._l23_a*e._l12_a+e._l12_2a,p=3*e._l23_a*(e._l23_a+e._l12_a);a=(a*u+e._x1*e._l23_2a-t*e._l12_2a)/p,s=(s*u+e._y1*e._l23_2a-r*e._l12_2a)/p}e._context.bezierCurveTo(i,o,a,s,e._x2,e._y2)}function a(e,t){this._context=e,this._alpha=t}a.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){if(e=+e,t=+t,this._point){var r=this._x2-e,n=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(r*r+n*n,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3;default:o(this,e,t)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const s=function e(t){function r(e){return t?new a(e,t):new i.Cardinal(e,0)}return r.alpha=function(t){return e(+t)},r}(.5)},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>a});var n=r(2278),i=r(2280);function o(e,t){this._context=e,this._alpha=t}o.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){if(e=+e,t=+t,this._point){var r=this._x2-e,n=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(r*r+n*n,this._alpha))}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:(0,i.point)(this,e,t)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const a=function e(t){function r(e){return t?new o(e,t):new n.CardinalOpen(e,0)}return r.alpha=function(t){return e(+t)},r}(.5)},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>o}),r.dn(o);var n=r(2272);function i(e){this._context=e}function o(e){return new i(e)}i.prototype={areaStart:n.default,areaEnd:n.default,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(e,t){e=+e,t=+t,this._point?this._context.lineTo(e,t):(this._point=1,this._context.moveTo(e,t))}}},(e,t,r)=>{"use strict";function n(e){return e<0?-1:1}function i(e,t,r){var i=e._x1-e._x0,o=t-e._x1,a=(e._y1-e._y0)/(i||o<0&&-0),s=(r-e._y1)/(o||i<0&&-0),l=(a*o+s*i)/(i+o);return(n(a)+n(s))*Math.min(Math.abs(a),Math.abs(s),.5*Math.abs(l))||0}function o(e,t){var r=e._x1-e._x0;return r?(3*(e._y1-e._y0)/r-t)/2:t}function a(e,t,r){var n=e._x0,i=e._y0,o=e._x1,a=e._y1,s=(o-n)/3;e._context.bezierCurveTo(n+s,i+s*t,o-s,a-s*r,o,a)}function s(e){this._context=e}function l(e){this._context=new c(e)}function c(e){this._context=e}function u(e){return new s(e)}function p(e){return new l(e)}r.r(t),r.d(t,{monotoneX:()=>u,monotoneY:()=>p}),s.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:a(this,this._t0,o(this,this._t0))}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){var r=NaN;if(t=+t,(e=+e)!==this._x1||t!==this._y1){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,a(this,o(this,r=i(this,e,t)),r);break;default:a(this,this._t0,r=i(this,e,t))}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=r}}},(l.prototype=Object.create(s.prototype)).point=function(e,t){s.prototype.point.call(this,t,e)},c.prototype={moveTo:function(e,t){this._context.moveTo(t,e)},closePath:function(){this._context.closePath()},lineTo:function(e,t){this._context.lineTo(t,e)},bezierCurveTo:function(e,t,r,n,i,o){this._context.bezierCurveTo(t,e,n,r,o,i)}}},(e,t,r)=>{"use strict";function n(e){this._context=e}function i(e){var t,r,n=e.length-1,i=new Array(n),o=new Array(n),a=new Array(n);for(i[0]=0,o[0]=2,a[0]=e[0]+2*e[1],t=1;t<n-1;++t)i[t]=1,o[t]=4,a[t]=4*e[t]+2*e[t+1];for(i[n-1]=2,o[n-1]=7,a[n-1]=8*e[n-1]+e[n],t=1;t<n;++t)r=i[t]/o[t-1],o[t]-=r,a[t]-=r*a[t-1];for(i[n-1]=a[n-1]/o[n-1],t=n-2;t>=0;--t)i[t]=(a[t]-i[t+1])/o[t];for(o[n-1]=(e[n]+i[n-1])/2,t=0;t<n-1;++t)o[t]=2*e[t+1]-i[t+1];return[i,o]}function o(e){return new n(e)}r.r(t),r.d(t,{default:()=>o}),r.dn(o),n.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var e=this._x,t=this._y,r=e.length;if(r)if(this._line?this._context.lineTo(e[0],t[0]):this._context.moveTo(e[0],t[0]),2===r)this._context.lineTo(e[1],t[1]);else for(var n=i(e),o=i(t),a=0,s=1;s<r;++a,++s)this._context.bezierCurveTo(n[0][a],o[0][a],n[1][a],o[1][a],e[s],t[s]);(this._line||0!==this._line&&1===r)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(e,t){this._x.push(+e),this._y.push(+t)}}},(e,t,r)=>{"use strict";function n(e,t){this._context=e,this._t=t}function i(e){return new n(e,.5)}function o(e){return new n(e,0)}function a(e){return new n(e,1)}r.r(t),r.d(t,{default:()=>i,stepAfter:()=>a,stepBefore:()=>o}),r.dn(i),n.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&2===this._point&&this._context.lineTo(this._x,this._y),(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var r=this._x*(1-this._t)+e*this._t;this._context.lineTo(r,this._y),this._context.lineTo(r,t)}}this._x=e,this._y=t}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>c}),r.dn(c);var n=r(2244),i=r(2234),o=r(2287),a=r(2288);function s(e,t){return e[t]}function l(e){const t=[];return t.key=e,t}function c(){var e=(0,i.default)([]),t=a.default,r=o.default,c=s;function u(i){var o,a,s=Array.from(e.apply(this,arguments),l),u=s.length,p=-1;for(const e of i)for(o=0,++p;o<u;++o)(s[o][p]=[0,+c(e,s[o].key,p,i)]).data=e;for(o=0,a=(0,n.default)(t(s));o<u;++o)s[a[o]].index=o;return r(s,a),s}return u.keys=function(t){return arguments.length?(e="function"==typeof t?t:(0,i.default)(Array.from(t)),u):e},u.value=function(e){return arguments.length?(c="function"==typeof e?e:(0,i.default)(+e),u):c},u.order=function(e){return arguments.length?(t=null==e?a.default:"function"==typeof e?e:(0,i.default)(Array.from(e)),u):t},u.offset=function(e){return arguments.length?(r=e??o.default,u):r},u}},(e,t,r)=>{"use strict";function n(e,t){if((i=e.length)>1)for(var r,n,i,o=1,a=e[t[0]],s=a.length;o<i;++o)for(n=a,a=e[t[o]],r=0;r<s;++r)a[r][1]+=a[r][0]=isNaN(n[r][1])?n[r][0]:n[r][1]}r.r(t),r.d(t,{default:()=>n}),r.dn(n)},(e,t,r)=>{"use strict";function n(e){for(var t=e.length,r=new Array(t);--t>=0;)r[t]=t;return r}r.r(t),r.d(t,{default:()=>n}),r.dn(n)},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>i}),r.dn(i);var n=r(2287);function i(e,t){if((i=e.length)>0){for(var r,i,o,a=0,s=e[0].length;a<s;++a){for(o=r=0;r<i;++r)o+=e[r][a][1]||0;if(o)for(r=0;r<i;++r)e[r][a][1]/=o}(0,n.default)(e,t)}}},(e,t,r)=>{"use strict";function n(e,t){if((s=e.length)>0)for(var r,n,i,o,a,s,l=0,c=e[t[0]].length;l<c;++l)for(o=a=0,r=0;r<s;++r)(i=(n=e[t[r]][l])[1]-n[0])>0?(n[0]=o,n[1]=o+=i):i<0?(n[1]=a,n[0]=a+=i):(n[0]=0,n[1]=i)}r.r(t),r.d(t,{default:()=>n}),r.dn(n)},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>i}),r.dn(i);var n=r(2287);function i(e,t){if((r=e.length)>0){for(var r,i=0,o=e[t[0]],a=o.length;i<a;++i){for(var s=0,l=0;s<r;++s)l+=e[s][i][1]||0;o[i][1]+=o[i][0]=-l/2}(0,n.default)(e,t)}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>i}),r.dn(i);var n=r(2287);function i(e,t){if((o=e.length)>0&&(i=(r=e[t[0]]).length)>0){for(var r,i,o,a=0,s=1;s<i;++s){for(var l=0,c=0,u=0;l<o;++l){for(var p=e[t[l]],d=p[s][1]||0,h=(d-(p[s-1][1]||0))/2,f=0;f<l;++f){var m=e[t[f]];h+=(m[s][1]||0)-(m[s-1][1]||0)}c+=d,u+=h*d}r[s-1][1]+=r[s-1][0]=a,c&&(a-=u/c)}r[s-1][1]+=r[s-1][0]=a,(0,n.default)(e,t)}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>i}),r.dn(i);var n=r(2288);function i(e){var t=e.map(o);return(0,n.default)(e).sort(function(e,r){return t[e]-t[r]})}function o(e){for(var t,r=-1,n=0,i=e.length,o=-1/0;++r<i;)(t=+e[r][1])>o&&(o=t,n=r);return n}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>i,sum:()=>o}),r.dn(i);var n=r(2288);function i(e){var t=e.map(o);return(0,n.default)(e).sort(function(e,r){return t[e]-t[r]})}function o(e){for(var t,r=0,n=-1,i=e.length;++n<i;)(t=+e[n][1])&&(r+=t);return r}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>i}),r.dn(i);var n=r(2294);function i(e){return(0,n.default)(e).reverse()}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>o}),r.dn(o);var n=r(2293),i=r(2294);function o(e){var t,r,o=e.length,a=e.map(i.sum),s=(0,n.default)(e),l=0,c=0,u=[],p=[];for(t=0;t<o;++t)r=s[t],l<c?(l+=a[r],u.push(r)):(c+=a[r],p.push(r));return p.reverse().concat(u)}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>i}),r.dn(i);var n=r(2288);function i(e){return(0,n.default)(e).reverse()}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>y});var n=r(341),i=r(782),o=r.n(i),a=r(2240);function s(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function l(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};
41t%2?s(Object(r),!0).forEach(function(t){c(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):s(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function c(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var u={style:o().shape({bottom:o().object,left:o().object,right:o().object,top:o().object}),marginTop:o().number,marginBottom:o().number,marginLeft:o().number,marginRight:o().number,innerWidth:o().number,innerHeight:o().number},p="rv-xy-plot__borders-bottom",d="rv-xy-plot__borders",h="rv-xy-plot__borders-left",f="rv-xy-plot__borders-right",m="rv-xy-plot__borders-top";function g(e){var t=e.marginTop,r=e.marginBottom,i=e.marginLeft,o=e.marginRight,s=e.innerWidth,c=e.innerHeight,u=e.style,g=e.className,y=c+t+r,b=s+i+o;return n.default.createElement("g",{className:(0,a.getCombinedClassName)(d,g)},n.default.createElement("rect",{className:(0,a.getCombinedClassName)(p,"".concat(g,"-bottom")),style:l(l({},u.all),u.bottom),x:0,y:y-r,width:b,height:r}),n.default.createElement("rect",{className:(0,a.getCombinedClassName)(h,"".concat(g,"-left")),style:l(l({},u.all),u.left),x:0,y:0,width:i,height:y}),n.default.createElement("rect",{className:(0,a.getCombinedClassName)(f,"".concat(g,"-right")),style:l(l({},u.all),u.right),x:b-o,y:0,width:o,height:y}),n.default.createElement("rect",{className:(0,a.getCombinedClassName)(m,"".concat(g,"-top")),style:l(l({},u.all),u.top),x:0,y:0,width:b,height:t}))}g.displayName="Borders",g.defaultProps={className:"",style:{all:{},bottom:{},left:{},right:{},top:{}}},g.propTypes=u,g.requiresSVG=!0;const y=g},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>h});var n=r(341),i=r(782),o=r.n(i),a=r(2240);function s(e){return s="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},s(e)}function l(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function c(e,t){return c=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},c(e,t)}function u(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}();return function(){var r,n=p(e);if(t){var i=p(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return function(e,t){if(t&&("object"===s(t)||"function"==typeof t))return t;return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,r)}}function p(e){return p=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},p(e)}var d=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&c(e,t)}(s,e);var t,r,i,o=u(s);function s(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,s),o.apply(this,arguments)}return t=s,i=[{key:"requiresSVG",get:function(){return!0}}],(r=[{key:"render",value:function(){var e=this.props,t=e.innerHeight,r=e.innerWidth,i=e.marginBottom,o=e.marginLeft,s=e.marginRight,l=e.marginTop,c=e.className,u=e.includeMargin,p=e.style,d=e.text,h=(r+(u?o+s:0))*e.xPercent+(u?0:o),f=(t+(u?l+i:0))*e.yPercent+(u?l:0);return n.default.createElement("g",{transform:"translate(".concat(h,", ").concat(f,")"),className:(0,a.getCombinedClassName)("rv-xy-plot__axis__title",c)},n.default.createElement("text",p,d))}}])&&l(t.prototype,r),i&&l(t,i),s}(n.default.PureComponent);d.displayName="ChartLabel",d.propTypes={className:o().string,includeMargin:o().bool,style:o().object,text:o().string.isRequired,xPercent:o().number.isRequired,yPercent:o().number.isRequired},d.defaultProps={className:"",includeMargin:!0,text:"",xPercent:0,yPercent:0,style:{}};const h=d},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>_});var n=r(341),i=r(782),o=r.n(i),a=r(2172),s=r(2142),l=r(2301);function c(e){return c="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},c(e)}function u(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function p(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};
41t%2?u(Object(r),!0).forEach(function(t){d(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):u(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function d(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function h(){return h=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},h.apply(this,arguments)}function f(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function m(e,t){return m=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},m(e,t)}function g(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}();return function(){var r,n=y(e);if(t){var i=y(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return function(e,t){if(t&&("object"===c(t)||"function"==typeof t))return t;return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,r)}}function y(e){return y=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},y(e)}var b=["xRange","yRange","xDomain","yDomain","width","height","marginLeft","marginTop","marginRight","marginBottom","tickTotal"],v=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&m(e,t)}(c,e);var t,r,i,o=g(c);function c(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,c),o.apply(this,arguments)}return t=c,(r=[{key:"_getDefaultProps",value:function(){var e=this.props,t=e.innerWidth,r=e.innerHeight,n=e.marginTop;return{left:e.marginLeft,top:n,width:t,height:r,style:{},tickTotal:(0,l.getTicksTotalFromSize)(Math.min(t,r))}}},{key:"render",value:function(){var e=this.props,t=e.animation,r=e.centerX,i=e.centerY;if(t)return n.default.createElement(s.default,h({},this.props,{animatedProps:b}),n.default.createElement(c,h({},this.props,{animation:null})));var o=p(p({},this._getDefaultProps()),this.props),u=o.tickTotal,d=o.tickValues,f=o.marginLeft,m=o.marginTop,g=o.rRange,y=o.style,v=(0,a.getAttributeScale)(o,"x"),_=(0,a.getAttributeScale)(o,"y"),S=(0,l.getTickValues)(v,u,d);return n.default.createElement("g",{transform:"translate(".concat(v(r)+f,",").concat(_(i)+m,")"),className:"rv-xy-plot__circular-grid-lines"},S.reduce(function(e,t,r){var i=v(t);return g&&(i<g[0]||i>g[1])?e:e.concat([n.default.createElement("circle",h({cx:0,cy:0,r:i},{key:r,className:"rv-xy-plot__circular-grid-lines__line",style:y}))])},[]))}}])&&f(t.prototype,r),i&&f(t,i),c}(n.PureComponent);v.displayName="CircularGridLines",v.propTypes={centerX:o().number,centerY:o().number,width:o().number,height:o().number,top:o().number,left:o().number,rRange:o().arrayOf(o().number),style:o().object,tickValues:o().arrayOf(o().number),tickTotal:o().number,animation:s.AnimationPropType,marginTop:o().number,marginBottom:o().number,marginLeft:o().number,marginRight:o().number,innerWidth:o().number,innerHeight:o().number},v.defaultProps={centerX:0,centerY:0},v.requiresSVG=!0;const _=v},(e,t,r)=>{"use strict";r.r(t),r.d(t,{DIRECTION:()=>a,ORIENTATION:()=>o,default:()=>d,generateFit:()=>c,generatePoints:()=>u,getAxisAngle:()=>p,getTickValues:()=>l,getTicksTotalFromSize:()=>s});var n=r(2174),i=r(2178),o={TOP:"top",LEFT:"left",RIGHT:"right",BOTTOM:"bottom",VERTICAL:"vertical",HORIZONTAL:"horizontal"},a={VERTICAL:"vertical",HORIZONTAL:"horizontal"};function s(e){return e<700?e>300?10:5:20}function l(e,t,r){return r||(e.ticks?e.ticks(t):e.domain())}function c(e,t){if(e.x===t.x)return{left:e.y,right:t.y,slope:0,offset:e.x};var r=(e.y-t.y)/(e.x-t.x);return{left:e.x,right:t.x,slope:r,offset:e.y-r*e.x}}function u(e){var t=e.axisStart,r=e.axisEnd,o=e.numberOfTicks,a=e.axisDomain,s=c(t,r),l=s.left,u=s.right,p=s.slope,d=s.offset,h=(u-l)/o,f=(0,i.default)().domain([l,u]).range(a),m=t.x===r.x;return{slope:m?1/0:p,points:(0,n.default)(l,u+h,h).map(function(e){return m?{y:e,x:p*e+d,text:f(e)}:{x:e,y:p*e+d,text:f(e)}}).slice(0,o+1)}}function p(e,t){return e.x===t.x?t.y>e.y?Math.PI/2:3*Math.PI/2:Math.atan((t.y-e.y)/(t.x-e.x))}const d={DIRECTION:a,ORIENTATION:o,getTicksTotalFromSize:s,getTickValues:l}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>w});var n=r(341),i=r(782),o=r.n(i),a=r(2303),s=r(2316),l=r(2178),c=r(2131),u=r(2142),p=r(2238),d=r(2240),h=r(2239);function f(e){return f="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},f(e)}function m(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function g(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};
41t%2?m(Object(r),!0).forEach(function(t){y(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):m(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function y(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function b(){return b=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},b.apply(this,arguments)}function v(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function _(e,t){return _=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},_(e,t)}function S(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}();return function(){var r,n=E(e);if(t){var i=E(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return function(e,t){if(t&&("object"===f(t)||"function"==typeof t))return t;return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,r)}}function E(e){return E=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},E(e)}var T=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&_(e,t)}(c,e);var t,r,i,o=S(c);function c(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,c),o.apply(this,arguments)}return t=c,(r=[{key:"render",value:function(){var e=this.props,t=e.animation,r=e.bandwidth,i=e.className,o=e.colorRange,f=e.data,m=e.innerHeight,y=e.innerWidth,v=e.marginLeft,_=e.marginTop,S=e.style;if(!f||!y||!m)return null;if(t)return n.default.createElement(u.default,b({},this.props,{animatedProps:p.ANIMATED_SERIES_PROPS}),n.default.createElement(c,b({},this.props,{animation:null})));var E=this._getAttributeFunctor("x"),T=this._getAttributeFunctor("y"),w=(0,a.default)().x(function(e){return E(e)}).y(function(e){return T(e)}).size([y,m]).bandwidth(r)(f),x=(0,s.default)(),O=function(e){return e.reduce(function(e,t){return{min:Math.min(e.min,t.value),max:Math.max(e.max,t.value)}},{min:1/0,max:-1/0})}(w),I=O.min,A=O.max,k=(0,l.default)().domain([I,A]).range(o||h.CONTINUOUS_COLOR_RANGE);return n.default.createElement("g",{className:(0,d.getCombinedClassName)("rv-xy-plot__series rv-xy-plot__series--contour",i),transform:"translate(".concat(v,",").concat(_,")")},w.map(function(e,t){return n.default.createElement("path",{className:"rv-xy-plot__series--contour-line",key:"rv-xy-plot__series--contour-line-".concat(t),d:x(e),style:g({fill:k(e.value)},S)})}))}}])&&v(t.prototype,r),i&&v(t,i),c}(c.default);T.propTypes=g(g({},c.default.propTypes),{},{animation:o().bool,bandwidth:o().number,className:o().string,marginLeft:o().number,marginTop:o().number,style:o().object}),T.defaultProps=g(g({},c.default.defaultProps),{},{bandwidth:40,style:{}});const w=T},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>d}),r.dn(d);var n=r(2304),i=r(2305),o=r(2179),a=r(2306),s=r(2307),l=r(2308);function c(e){return e[0]}function u(e){return e[1]}function p(){return 1}function d(){var e=c,t=u,r=p,d=960,h=500,f=20,m=2,g=3*f,y=d+2*g>>m,b=h+2*g>>m,v=(0,s.default)(20);function _(i){var o=new Float32Array(y*b),a=Math.pow(2,-m),s=-1;for(const n of i){var l=(e(n,++s,i)+g)*a,c=(t(n,s,i)+g)*a,u=+r(n,s,i);if(u&&l>=0&&l<y&&c>=0&&c<b){var p=Math.floor(l),d=Math.floor(c),h=l-p-.5,v=c-d-.5;o[p+d*y]+=(1-h)*(1-v)*u,o[p+1+d*y]+=h*(1-v)*u,o[p+1+(d+1)*y]+=h*v*u,o[p+(d+1)*y]+=(1-h)*v*u}}return(0,n.blur2)({data:o,width:y,height:b},f*a),o}function S(e){var t=_(e),r=v(t),n=Math.pow(2,2*m);return Array.isArray(r)||(r=(0,o.default)(Number.MIN_VALUE,(0,i.default)(t)/n,r)),(0,l.default)().size([y,b]).thresholds(r.map(e=>e*n))(t).map((e,t)=>(e.value=+r[t],E(e)))}
vendor: 2,022 bytes, line 41
41function E(e){return e.coordinates.forEach(T),e}function T(e){e.forEach(w)}function w(e){e.forEach(x)}function x(e){e[0]=e[0]*Math.pow(2,m)-g,e[1]=e[1]*Math.pow(2,m)-g}function O(){return y=d+2*(g=3*f)>>m,b=h+2*g>>m,S}return S.contours=function(e){var t=_(e),r=(0,l.default)().size([y,b]),n=Math.pow(2,2*m),o=e=>{e=+e;var i=E(r.contour(t,e*n));return i.value=e,i};return Object.defineProperty(o,"max",{get:()=>(0,i.default)(t)/n}),o},S.x=function(t){return arguments.length?(e="function"==typeof t?t:(0,s.default)(+t),S):e},S.y=function(e){return arguments.length?(t="function"==typeof e?e:(0,s.default)(+e),S):t},S.weight=function(e){return arguments.length?(r="function"==typeof e?e:(0,s.default)(+e),S):r},S.size=function(e){if(!arguments.length)return[d,h];var t=+e[0],r=+e[1];if(!(t>=0&&r>=0))throw new Error("invalid size");return d=t,h=r,O()},S.cellSize=function(e){if(!arguments.length)return 1<<m;if(!((e=+e)>=1))throw new Error("invalid cell size");return m=Math.floor(Math.log(e)/Math.LN2),O()},S.thresholds=function(e){return arguments.length?(v="function"==typeof e?e:Array.isArray(e)?(0,s.default)(a.slice.call(e)):(0,s.default)(e),S):v},S.bandwidth=function(e){if(!arguments.length)return Math.sqrt(f*(f+1));if(!((e=+e)>=0))throw new Error("invalid bandwidth");return f=(Math.sqrt(4*e*e+1)-1)/2,O()},S}},(e,t,r)=>{"use strict";function n(e,t){if(!((t=+t)>=0))throw new RangeError("invalid r");let r=e.length;if(!((r=Math.floor(r))>=0))throw new RangeError("invalid length");if(!r||!t)return e;const n=c(t),i=e.slice();return n(e,i,0,r,1),n(i,e,0,r,1),n(e,i,0,r,1),e}r.r(t),r.d(t,{blur:()=>n,blur2:()=>i,blurImage:()=>o});const i=a(c),o=a(function(e){const t=c(e);return(e,r,n,i,o)=>{t(e,r,(n<<=2)+0,(i<<=2)+0,o<<=2),t(e,r,n+1,i+1,o),t(e,r,n+2,i+2,o),t(e,r,n+3,i+3,o)}});function a(e){return function(t,r,n=r){if(!((r=+r)>=0))throw new RangeError("invalid rx");if(!((n=+n)>=0))throw new RangeError("invalid ry");let{data:i,width:o,height:a}=t;if(!((o=Math.floor(o))>=0))throw new RangeError("invalid width");
vendor: 5,193 bytes, line 41
41if(!((a=Math.floor(void 0!==a?a:i.length/o))>=0))throw new RangeError("invalid height");if(!o||!a||!r&&!n)return t;const c=r&&e(r),u=n&&e(n),p=i.slice();return c&&u?(s(c,p,i,o,a),s(c,i,p,o,a),s(c,p,i,o,a),l(u,i,p,o,a),l(u,p,i,o,a),l(u,i,p,o,a)):c?(s(c,i,p,o,a),s(c,p,i,o,a),s(c,i,p,o,a)):u&&(l(u,i,p,o,a),l(u,p,i,o,a),l(u,i,p,o,a)),t}}function s(e,t,r,n,i){for(let o=0,a=n*i;o<a;)e(t,r,o,o+=n,1)}function l(e,t,r,n,i){for(let o=0,a=n*i;o<n;++o)e(t,r,o,o+a,n)}function c(e){const t=Math.floor(e);if(t===e)return function(e){const t=2*e+1;return(r,n,i,o,a)=>{if(!((o-=a)>=i))return;let s=e*n[i];const l=a*e;for(let e=i,t=i+l;e<t;e+=a)s+=n[Math.min(o,e)];for(let e=i,c=o;e<=c;e+=a)s+=n[Math.min(o,e+l)],r[e]=s/t,s-=n[Math.max(i,e-l)]}}(e);const r=e-t,n=2*e+1;return(e,i,o,a,s)=>{if(!((a-=s)>=o))return;let l=t*i[o];const c=s*t,u=c+s;for(let e=o,t=o+c;e<t;e+=s)l+=i[Math.min(a,e)];for(let t=o,p=a;t<=p;t+=s)l+=i[Math.min(a,t+c)],e[t]=(l+r*(i[Math.max(o,t-u)]+i[Math.min(a,t+u)]))/n,l-=i[Math.max(o,t-c)]}}},(e,t,r)=>{"use strict";function n(e,t){let r;if(void 0===t)for(const t of e)null!=t&&(r<t||void 0===r&&t>=t)&&(r=t);else{let n=-1;for(let i of e)null!=(i=t(i,++n,e))&&(r<i||void 0===r&&i>=i)&&(r=i)}return r}r.r(t),r.d(t,{default:()=>n})},(e,t,r)=>{"use strict";r.r(t),r.d(t,{slice:()=>n});var n=Array.prototype.slice},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});const n=e=>()=>e;r.dn(n)},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>f}),r.dn(f);var n=r(2222),i=r(2309),o=r(2311),a=r(2179),s=r(2306),l=r(2312),c=r(2313),u=r(2307),p=r(2314),d=r(2315),h=[[],[[[1,1.5],[.5,1]]],[[[1.5,1],[1,1.5]]],[[[1.5,1],[.5,1]]],[[[1,.5],[1.5,1]]],[[[1,1.5],[.5,1]],[[1,.5],[1.5,1]]],[[[1,.5],[1,1.5]]],[[[1,.5],[.5,1]]],[[[.5,1],[1,.5]]],[[[1,1.5],[1,.5]]],[[[.5,1],[1,.5]],[[1.5,1],[1,1.5]]],[[[1.5,1],[1,.5]]],[[[.5,1],[1.5,1]]],[[[1,1.5],[1.5,1]]],[[[.5,1],[1,1.5]]],[]];function f(){var e=1,t=1,r=i.default,f=E;function v(e){var t=r(e);if(Array.isArray(t))t=t.slice().sort(l.default);else{const r=(0,n.default)(e,m);for(t=(0,a.default)(...(0,o.default)(r[0],r[1],t),t);t[t.length-1]>=r[1];)t.pop();for(;t[1]<r[0];)t.shift()}return t.map(t=>_(e,t))}function _(r,n){const i=null==n?NaN:+n;if(isNaN(i))throw new Error(`invalid value: ${n}`);var o=[],a=[];return function(r,n,i){var o,a,s,l,c,u,p=new Array,d=new Array;o=a=-1,l=g(r[0],n),h[l<<1].forEach(f);for(;++o<e-1;)s=l,l=g(r[o+1],n),h[s|l<<1].forEach(f);h[l|0].forEach(f);for(;++a<t-1;){for(o=-1,l=g(r[a*e+e],n),c=g(r[a*e],n),h[l<<1|c<<2].forEach(f);++o<e-1;)s=l,l=g(r[a*e+e+o+1],n),u=c,c=g(r[a*e+o+1],n),h[s|l<<1|c<<2|u<<3].forEach(f);h[l|c<<3].forEach(f)}o=-1,c=r[a*e]>=n,h[c<<2].forEach(f);for(;++o<e-1;)u=c,c=g(r[a*e+o+1],n),h[c<<2|u<<3].forEach(f);function f(e){var t,r,n=[e[0][0]+o,e[0][1]+a],s=[e[1][0]+o,e[1][1]+a],l=S(n),c=S(s);(t=d[l])?(r=p[c])?(delete d[t.end],delete p[r.start],t===r?(t.ring.push(s),i(t.ring)):p[t.start]=d[r.end]={start:t.start,end:r.end,ring:t.ring.concat(r.ring)}):(delete d[t.end],t.ring.push(s),d[t.end=c]=t):(t=p[c])?(r=d[l])?(delete p[t.start],delete d[r.end],t===r?(t.ring.push(s),i(t.ring)):p[r.start]=d[t.end]={start:r.start,end:t.end,ring:r.ring.concat(t.ring)}):(delete p[t.start],t.ring.unshift(n),p[t.start=l]=t):p[l]=d[c]={start:l,end:c,ring:[n,s]}}h[c<<3].forEach(f)}(r,i,function(e){f(e,r,i),(0,c.default)(e)>0?o.push([e]):a.push(e)}),a.forEach(function(e){for(var t,r=0,n=o.length;r<n;++r)if(-1!==(0,p.default)((t=o[r])[0],e))return void t.push(e)}),{type:"MultiPolygon",value:n,coordinates:o}}function S(t){return 2*t[0]+t[1]*(e+1)*4}function E(r,n,i){r.forEach(function(r){var o=r[0],a=r[1],s=0|o,l=0|a,c=y(n[l*e+s]);o>0&&o<e&&s===o&&(r[0]=b(o,y(n[l*e+s-1]),c,i)),a>0&&a<t&&l===a&&(r[1]=b(a,y(n[(l-1)*e+s]),c,i))})}return v.contour=_,v.size=function(r){if(!arguments.length)return[e,t];var n=Math.floor(r[0]),i=Math.floor(r[1]);if(!(n>=0&&i>=0))throw new Error("invalid size");return e=n,t=i,v},v.thresholds=function(e){return arguments.length?(r="function"==typeof e?e:Array.isArray(e)?(0,u.default)(s.slice.call(e)):(0,u.default)(e),v):r},v.smooth=function(e){return arguments.length?(f=e?E:d.default,v):f===E},v}function m(e){return isFinite(e)?e:NaN}function g(e,t){return null!=e&&+e>=t}function y(e){return null==e||isNaN(e=+e)?-1/0:e}function b(e,t,r,n){const i=n-t,o=r-t,a=isFinite(i)||isFinite(o)?i/o:Math.sign(i)/Math.sign(o);return isNaN(a)?e:e+a-.5}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>i});var n=r(2310);function i(e){return Math.max(1,Math.ceil(Math.log((0,n.default)(e))/Math.LN2)+1)}},(e,t,r)=>{"use strict";function n(e,t){let r=0;if(void 0===t)for(let t of e)null!=t&&(t=+t)>=t&&++r;else{let n=-1;for(let i of e)null!=(i=t(i,++n,e))&&(i=+i)>=i&&++r}return r}r.r(t),r.d(t,{default:()=>n})},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>i});var n=r(2179);function i(e,t,r){let i;for(;;){const o=(0,n.tickIncrement)(e,t,r);if(o===i||0===o||!isFinite(o))return[e,t];o>0?(e=Math.floor(e/o)*o,t=Math.ceil(t/o)*o):o<0&&(e=Math.ceil(e*o)/o,t=Math.floor(t*o)/o),i=o}}},(e,t,r)=>{"use strict";function n(e,t){return e-t}r.r(t),r.d(t,{default:()=>n}),r.dn(n)},(e,t,r)=>{"use strict";function n(e){for(var t=0,r=e.length,n=e[r-1][1]*e[0][0]-e[r-1][0]*e[0][1];++t<r;
vendor: 9,013 bytes, line 41
41)n+=e[t-1][1]*e[t][0]-e[t-1][0]*e[t][1];return n}r.r(t),r.d(t,{default:()=>n}),r.dn(n)},(e,t,r)=>{"use strict";function n(e,t){for(var r,n=-1,o=t.length;++n<o;)if(r=i(e,t[n]))return r;return 0}function i(e,t){for(var r=t[0],n=t[1],i=-1,a=0,s=e.length,l=s-1;a<s;l=a++){var c=e[a],u=c[0],p=c[1],d=e[l],h=d[0],f=d[1];if(o(c,d,t))return 0;p>n!=f>n&&r<(h-u)*(n-p)/(f-p)+u&&(i=-i)}return i}function o(e,t,r){var n,i,o,a;return function(e,t,r){return(t[0]-e[0])*(r[1]-e[1])===(r[0]-e[0])*(t[1]-e[1])}(e,t,r)&&(i=e[n=+(e[0]===t[0])],o=r[n],a=t[n],i<=o&&o<=a||a<=o&&o<=i)}r.r(t),r.d(t,{default:()=>n}),r.dn(n)},(e,t,r)=>{"use strict";function n(){}r.r(t),r.d(t,{default:()=>n}),r.dn(n)},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>p}),r.dn(p);var n=r(2317),i=r(2318),o=r(2319),a=r(2323),s=r(2324),l=r(2325),c=r(2326),u=r(2327);function p(e,t){let r,p,d=3,h=4.5;function f(e){return e&&("function"==typeof h&&p.pointRadius(+h.apply(this,arguments)),(0,i.default)(e,r(p))),p.result()}return f.area=function(e){return(0,i.default)(e,r(o.default)),o.default.result()},f.measure=function(e){return(0,i.default)(e,r(c.default)),c.default.result()},f.bounds=function(e){return(0,i.default)(e,r(a.default)),a.default.result()},f.centroid=function(e){return(0,i.default)(e,r(s.default)),s.default.result()},f.projection=function(t){return arguments.length?(r=null==t?(e=null,n.default):(e=t).stream,f):e},f.context=function(e){return arguments.length?(p=null==e?(t=null,new u.default(d)):new l.default(t=e),"function"!=typeof h&&p.pointRadius(h),f):t},f.pointRadius=function(e){return arguments.length?(h="function"==typeof e?e:(p.pointRadius(+e),+e),f):h},f.digits=function(e){if(!arguments.length)return d;if(null==e)d=null;else{const t=Math.floor(e);if(!(t>=0))throw new RangeError(`invalid digits: ${e}`);d=t}return null===t&&(p=new u.default(d)),f},f.projection(e).digits(d).context(t)}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});const n=e=>e;r.dn(n)},(e,t,r)=>{"use strict";function n(e,t){e&&o.hasOwnProperty(e.type)&&o[e.type](e,t)}r.r(t),r.d(t,{default:()=>l}),r.dn(l);var i={Feature:function(e,t){n(e.geometry,t)},FeatureCollection:function(e,t){for(var r=e.features,i=-1,o=r.length;++i<o;)n(r[i].geometry,t)}},o={Sphere:function(e,t){t.sphere()},Point:function(e,t){e=e.coordinates,t.point(e[0],e[1],e[2])},MultiPoint:function(e,t){for(var r=e.coordinates,n=-1,i=r.length;++n<i;)e=r[n],t.point(e[0],e[1],e[2])},LineString:function(e,t){a(e.coordinates,t,0)},MultiLineString:function(e,t){for(var r=e.coordinates,n=-1,i=r.length;++n<i;)a(r[n],t,0)},Polygon:function(e,t){s(e.coordinates,t)},MultiPolygon:function(e,t){for(var r=e.coordinates,n=-1,i=r.length;++n<i;)s(r[n],t)},GeometryCollection:function(e,t){for(var r=e.geometries,i=-1,o=r.length;++i<o;)n(r[i],t)}};function a(e,t,r){var n,i=-1,o=e.length-r;for(t.lineStart();++i<o;)n=e[i],t.point(n[0],n[1],n[2]);t.lineEnd()}function s(e,t){var r=-1,n=e.length;for(t.polygonStart();++r<n;)a(e[r],t,1);t.polygonEnd()}function l(e,t){e&&i.hasOwnProperty(e.type)?i[e.type](e,t):n(e,t)}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>y});var n,i,o,a,s=r(2320),l=r(2321),c=r(2322),u=new s.Adder,p=new s.Adder,d={point:c.default,lineStart:c.default,lineEnd:c.default,polygonStart:function(){d.lineStart=h,d.lineEnd=g},polygonEnd:function(){d.lineStart=d.lineEnd=d.point=c.default,u.add((0,l.abs)(p)),p=new s.Adder},result:function(){var e=u/2;return u=new s.Adder,e}};function h(){d.point=f}function f(e,t){d.point=m,n=o=e,i=a=t}function m(e,t){p.add(a*e-o*t),o=e,a=t}function g(){m(n,i)}const y=d},(e,t,r)=>{"use strict";r.r(t),r.d(t,{Adder:()=>n,fcumsum:()=>o,fsum:()=>i});class n{constructor(){this._partials=new Float64Array(32),this._n=0}add(e){const t=this._partials;let r=0;for(let n=0;n<this._n&&n<32;n++){const i=t[n],o=e+i,a=Math.abs(e)<Math.abs(i)?e-(o-i):i-(o-e);a&&(t[r++]=a),e=o}return t[r]=e,this._n=r+1,this}valueOf(){const e=this._partials;let t,r,n,i=this._n,o=0;if(i>0){for(o=e[--i];i>0&&(t=o,r=e[--i],o=t+r,n=r-(o-t),!n););i>0&&(n<0&&e[i-1]<0||n>0&&e[i-1]>0)&&(r=2*n,t=o+r,r==t-o&&(o=t))}return o}}function i(e,t){const r=new n;if(void 0===t)for(let t of e)(t=+t)&&r.add(t);else{let n=-1;for(let i of e)(i=+t(i,++n,e))&&r.add(i)}return+r}function o(e,t){const r=new n;let i=-1;return Float64Array.from(e,void 0===t?e=>r.add(+e||0):n=>r.add(+t(n,++i,e)||0))}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{abs:()=>p,acos:()=>x,asin:()=>O,atan:()=>d,atan2:()=>h,ceil:()=>m,cos:()=>f,degrees:()=>c,epsilon:()=>n,epsilon2:()=>i,exp:()=>g,floor:()=>y,halfPi:()=>a,haversin:()=>I,hypot:()=>b,log:()=>v,pi:()=>o,pow:()=>_,quarterPi:()=>s,radians:()=>u,sign:()=>E,sin:()=>S,sqrt:()=>T,tan:()=>w,tau:()=>l});var n=1e-6,i=1e-12,o=Math.PI,a=o/2,s=o/4,l=2*o,c=180/o,u=o/180,p=Math.abs,d=Math.atan,h=Math.atan2,f=Math.cos,m=Math.ceil,g=Math.exp,y=Math.floor,b=Math.hypot,v=Math.log,_=Math.pow,S=Math.sin,E=Math.sign||function(e){return e>0?1:e<0?-1:0},T=Math.sqrt,w=Math.tan;function x(e){return e>1?0:e<-1?o:Math.acos(e)}function O(e){return e>1?a:e<-1?-a:Math.asin(e)}function I(e){return(e=S(e/2))*e}},(e,t,r)=>{"use strict";function n(){}r.r(t),r.d(t,{default:()=>n})},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>l});var n=r(2322),i=1/0,o=i,a=-i,s=a;const l={point:function(e,t){e<i&&(i=e);e>a&&(a=e);t<o&&(o=t);t>s&&(s=t)},lineStart:n.default,lineEnd:n.default,polygonStart:n.default,polygonEnd:n.default,result:function(){var e=[[i,o],[a,s]];return a=s=-(o=i=1/0),e}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>I});var n,i,o,a,s=r(2321),l=0,c=0,u=0,p=0,d=0,h=0,f=0,m=0,g=0,y={point:b,lineStart:v,lineEnd:E,polygonStart:function(){y.lineStart=T,y.lineEnd=w},polygonEnd:function(){y.point=b,y.lineStart=v,y.lineEnd=E},result:function(){var e=g?[f/g,m/g]:h?[p/h,d/h]:u?[l/u,c/u]:[NaN,NaN];return l=c=u=p=d=h=f=m=g=0,e}};function b(e,t){l+=e,c+=t,++u}function v(){y.point=_}function _(e,t){y.point=S,b(o=e,a=t)}function S(e,t){var r=e-o,n=t-a,i=(0,s.sqrt)(r*r+n*n);p+=i*(o+e)/2,d+=i*(a+t)/2,h+=i,b(o=e,a=t)}function E(){y.point=b}function T(){y.point=x}function w(){O(n,i)}function x(e,t){y.point=O,b(n=o=e,i=a=t)}function O(e,t){var r=e-o,n=t-a,i=(0,s.sqrt)(r*r+n*n);p+=i*(o+e)/2,d+=i*(a+t)/2,h+=i,f+=(i=a*e-o*t)*(o+e),m+=i*(a+t),g+=3*i,b(o=e,a=t)}const I=y},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>o});var n=r(2321),i=r(2322);function o(e){this._context=e}o.prototype={_radius:4.5,pointRadius:function(e){return this._radius=e,this},polygonStart:function(){this._line=0},polygonEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){0===this._line&&this._context.closePath(),this._point=NaN},point:function(e,t){switch(this._point){case 0:this._context.moveTo(e,t),this._point=1;break;case 1:this._context.lineTo(e,t);break;default:this._context.moveTo(e+this._radius,t),this._context.arc(e,t,this._radius,0,n.tau)}},result:i.default}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>m});var n,i,o,a,s,l=r(2320),c=r(2321),u=r(2322),p=new l.Adder,d={point:u.default,lineStart:function(){d.point=h},lineEnd:function(){n&&f(i,o),d.point=u.default},polygonStart:function(){n=!0},polygonEnd:function(){n=null},result:function(){var e=+p;return p=new l.Adder,e}};function h(e,t){d.point=f,i=a=e,o=s=t}function f(e,t){a-=e,s-=t,p.add((0,c.sqrt)(a*a+s*s)),a=e,s=t}const m=d},(e,t,r)=>{"use strict";let n,i,o,a;r.r(t),r.d(t,{default:()=>s});class s{constructor(e){this._append=null==e?l:function(e){const t=Math.floor(e);if(!(t>=0))throw new RangeError(`invalid digits: ${e}`);if(t>15)return l;if(t!==n){const e=10**t;n=t,i=function(t){let r=1;this._+=t[0];for(const n=t.length;r<n;++r)this._+=Math.round(arguments[r]*e)/e+t[r]}}return i}(e),this._radius=4.5,this._=""}pointRadius(e){return this._radius=+e,this}polygonStart(){this._line=0}polygonEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){0===this._line&&(this._+="Z"),this._point=NaN}point(e,t){switch(this._point){case 0:this._append`M${e},${t}`,this._point=1;break;case 1:this._append`L${e},${t}`;break;default:if(this._append`M${e},${t}`,this._radius!==o||this._append!==i){const e=this._radius,t=this._;this._="",this._append`m0,${e}a${e},${e} 0 1,1 0,${-2*e}a${e},${e} 0 1,1 0,${2*e}z`,o=e,i=this._append,a=this._,this._=t}this._+=a}}result(){const e=this._;return this._="",e.length?e:null}}function l(e){let t=1;this._+=e[0];for(const r=e.length;t<r;++t)this._+=arguments[t]+e[t]}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>S});var n=r(341),i=r(782),o=r.n(i),a=r(2231),s=r(2172),l=r(2240);function c(e){return c="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},c(e)}function u(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function p(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};
41t%2?u(Object(r),!0).forEach(function(t){d(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):u(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function d(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function h(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function f(e,t){return f=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},f(e,t)}function m(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}();return function(){var r,n=g(e);if(t){var i=g(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return function(e,t){if(t&&("object"===c(t)||"function"==typeof t))return t;return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,r)}}function g(e){return g=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},g(e)}function y(e){var t=v(e);if(t)return{title:"x",value:(0,a.transformValueToString)(t.x)}}function b(e){return e.map(function(e,t){if(e)return{value:e.y,title:t}})}function v(e){return(e||[]).find(function(e){return Boolean(e)})}var _=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&f(e,t)}(c,e);var t,r,i,a=m(c);function c(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,c),a.apply(this,arguments)}return t=c,i=[{key:"defaultProps",get:function(){return{titleFormat:y,itemsFormat:b,style:{line:{},title:{},box:{}}}}},{key:"propTypes",get:function(){return{className:o().string,values:o().arrayOf(o().oneOfType([o().number,o().string,o().object,o().bool])),series:o().object,innerWidth:o().number,innerHeight:o().number,marginLeft:o().number,marginTop:o().number,orientation:o().oneOf(["left","right"]),itemsFormat:o().func,titleFormat:o().func,style:o().shape({line:o().object,title:o().object,box:o().object})}}}],(r=[{key:"_renderCrosshairItems",value:function(){var e=this.props,t=e.values,r=(0,e.itemsFormat)(t);return r?r.filter(function(e){return e}).map(function(e,t){return n.default.createElement("div",{className:"rv-crosshair__item",key:"item".concat(t)},n.default.createElement("span",{className:"rv-crosshair__item__title"},e.title),": ",n.default.createElement("span",{className:"rv-crosshair__item__value"},e.value))}):null}},{key:"_renderCrosshairTitle",value:function(){var e=this.props,t=e.values,r=e.titleFormat,i=e.style,o=r(t);return o?n.default.createElement("div",{className:"rv-crosshair__title",key:"title",style:i.title},n.default.createElement("span",{className:"rv-crosshair__title__title"},o.title),": ",n.default.createElement("span",{className:"rv-crosshair__title__value"},o.value)):null}},{key:"render",value:function(){var e=this.props,t=e.children,r=e.className,i=e.values,o=e.marginTop,a=e.marginLeft,c=e.innerWidth,u=e.innerHeight,d=e.style,h=v(i);if(!h)return null;var f=(0,s.getAttributeFunctor)(this.props,"x")(h),m=this.props.orientation,g=a+f,y=o,b="rv-crosshair__inner rv-crosshair__inner--".concat(void 0===m?f>c/2?"left":"right":m);return n.default.createElement("div",{className:(0,l.getCombinedClassName)("rv-crosshair",r),style:{left:"".concat(g,"px"),top:"".concat(y,"px")}},n.default.createElement("div",{className:"rv-crosshair__line",style:p({height:"".concat(u,"px")},d.line)}),n.default.createElement("div",{className:b},t||n.default.createElement("div",{className:"rv-crosshair__inner__content",style:d.box},n.default.createElement("div",null,this._renderCrosshairTitle(),this._renderCrosshairItems())
41)))}}])&&h(t.prototype,r),i&&h(t,i),c}(n.PureComponent);_.displayName="Crosshair";const S=_},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>w});var n=r(341),i=r(782),o=r.n(i),a=r(2131),s=r(2142),l=r(2238),c=r(2240);function u(e){return u="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},u(e)}function p(){return p=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},p.apply(this,arguments)}function d(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function h(e,t){return h=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},h(e,t)}function f(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}();return function(){var r,n=m(e);if(t){var i=m(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return function(e,t){if(t&&("object"===u(t)||"function"==typeof t))return t;return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,r)}}function m(e){return m=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},m(e)}function g(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function y(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?g(Object(r),!0).forEach(function(t){b(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):g(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function b(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function v(e){return function(e){if(Array.isArray(e))return _(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return _(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return _(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var S={stroke:"blue",fill:"blue"};function E(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:S;switch(e){case"diamond":return n.default.createElement("polygon",{style:r,points:"0 0 ".concat(t/2," ").concat(t/2," 0 ").concat(t," ").concat(-t/2," ").concat(t/2," 0 0")});case"star":var i=v(new Array(5)).map(function(e,r){var n=r/5*Math.PI*2,i=n+Math.PI/10,o=n-Math.PI/10,a=t/2.61;return"\n        ".concat(Math.cos(o)*t," ").concat(Math.sin(o)*t,"\n        ").concat(Math.cos(i)*a," ").concat(Math.sin(i)*a,"\n      ")}).join(" ");return n.default.createElement("polygon",{points:i,x:"0",y:"0",height:t,width:t,style:r});case"square":return n.default.createElement("rect",{x:"".concat(-t/2),y:"".concat(-t/2),height:t,width:t,style:r});default:return n.default.createElement("circle",{cx:"0",cy:"0",r:t/2,style:r})}}var T=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&h(e,t)}(a,e);var t,r,i,o=f(a);function a(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),o.apply(this,arguments)}return t=a,(r=[{key:"render",value:function(){var e=this,t=this.props,r=t.animation,i=t.className,o=t.customComponent,u=t.data,d=t.innerHe
41ight,h=t.innerWidth,f=t.marginLeft,m=t.marginTop,g=t.style,b=t.size;if(!u||!h||!d)return null;if(r)return n.default.createElement(s.default,p({},this.props,{animatedProps:l.ANIMATED_SERIES_PROPS}),n.default.createElement(a,p({},this.props,{animation:!1})));var v=this._getAttributeFunctor("x"),_=this._getAttributeFunctor("y"),S=u.map(function(t,r){var i={x:v(t),y:_(t)},a=function(e){var t=e.customComponent,r=e.defaultType,n=e.positionInPixels,i=e.positionFunctions,o=e.style,a=e.propsSize,s=t.size,l=y(y({},o),t.style||{}),c=t.customComponent;return c||"string"!=typeof r?c?"string"==typeof c?E(c||r,s,l):c(t,n,l,i):r(t,n,l,i):E(r,s||a,l)}({customComponent:t,positionInPixels:i,defaultType:o,positionFunctions:{x:v,y:_},style:g,propsSize:b});return n.default.createElement("g",{className:"rv-xy-plot__series--custom-svg",key:"rv-xy-plot__series--custom-svg-".concat(r),transform:"translate(".concat(i.x,",").concat(i.y,")"),onMouseEnter:function(r){return e._valueMouseOverHandler(t,r)},onMouseLeave:function(r){return e._valueMouseOutHandler(t,r)}},a)});return n.default.createElement("g",{className:(0,c.getCombinedClassName)("rv-xy-plot__series rv-xy-plot__series--custom-svg-wrapper",i),transform:"translate(".concat(f,",").concat(m,")")},S)}}])&&d(t.prototype,r),i&&d(t,i),a}(a.default);T.propTypes={animation:o().bool,className:o().string,customComponent:o().oneOfType([o().string,o().func]),data:o().arrayOf(o().shape({x:o().oneOfType([o().string,o().number]).isRequired,y:o().oneOfType([o().string,o().number]).isRequired})).isRequired,marginLeft:o().number,marginTop:o().number,style:o().object,size:o().number,onValueMouseOver:o().func,onValueMouseOut:o().func},T.defaultProps=y(y({},a.default.defaultProps),{},{animation:!1,customComponent:"circle",style:{},size:2});const w=T},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>T});var n=r(341),i=r(2190),o=r(782),a=r.n(o),s=r(2131),l=r(2331),c=r(2142),u=r(2240);function p(e){return p="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},p(e)}function d(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function h(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?d(Object(r),!0).forEach(function(t){f(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):d(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function f(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function m(){return m=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},m.apply(this,arguments)}function g(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function y(e,t){return y=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},y(e,t)}function b(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}();return function(){var r,n=v(e);if(t){var i=v(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return function(e,t){if(t&&("object"===p(t)||"function"==typeof t))return t;return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,r)}}function v(e){return v=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},v(e)}var _=["xRange","yRange","xDomain","yDomain","width","height","marginLeft","marginTop","marginRight","marginBottom","tickSize","t
41ickTotal","tickSizeInner","tickSizeOuter"],S=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&y(e,t)}(a,e);var t,r,i,o=b(a);function a(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),o.apply(this,arguments)}return t=a,(r=[{key:"render",value:function(){var e=this.props,t=e.animation,r=e.className,i=e.marginLeft,o=e.marginTop,s=e.axisStart,p=e.axisEnd,d=e.axisDomain,f=e.numberOfTicks,g=e.tickValue,y=e.tickSize,b=e.style;if(t)return n.default.createElement(c.default,m({},this.props,{animatedProps:_}),n.default.createElement(a,m({},this.props,{animation:null})));var v=this._getAttributeFunctor("x"),S=this._getAttributeFunctor("y");return n.default.createElement("g",{className:(0,u.getCombinedClassName)("rv-xy-manipulable-axis rv-xy-plot__axis",r),transform:"translate(".concat(i,",").concat(o,")")},n.default.createElement("line",m({},h({x1:v({x:s.x}),x2:v({x:p.x}),y1:S({y:s.y}),y2:S({y:p.y})},b.line),{className:"rv-xy-plot__axis__line"})),n.default.createElement("g",{className:"rv-xy-manipulable-axis__ticks"},(0,l.default)({axisDomain:d,axisEnd:{x:v(p),y:S(p)},axisStart:{x:v(s),y:S(s)},numberOfTicks:f,tickValue:g,tickSize:y,style:b})))}}])&&g(t.prototype,r),i&&g(t,i),a}(s.default),E=(0,i.format)(".2r");S.defaultProps={className:"",numberOfTicks:10,tickValue:function(e){return E(e)},tickSize:5,style:{line:{strokeWidth:1},ticks:{strokeWidth:2},text:{}}},S.propTypes=h(h({},s.default.propTypes),{},{axisDomain:a().arrayOf(a().number).isRequired,axisEnd:a().shape({x:a().oneOfType([a().number,a().string]),y:a().oneOfType([a().number,a().string])}).isRequired,axisStart:a().shape({x:a().oneOfType([a().number,a().string]),y:a().oneOfType([a().number,a().string])}).isRequired,className:a().string,numberOfTicks:a().number,tickValue:a().func,tickSize:a().number,style:a().shape({line:a().object,ticks:a().object,text:a().object})}),S.displayName="DecorativeAxis";const T=S},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>c});var n=r(341),i=r(2301);function o(){return o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},o.apply(this,arguments)}function a(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function s(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?a(Object(r),!0).forEach(function(t){l(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):a(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function l(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function c(e){var t=e.axisDomain,r=e.numberOfTicks,a=e.axisStart,l=e.axisEnd,c=e.tickValue,u=e.tickSize,p=e.style,d=(0,i.generatePoints)({axisStart:a,axisEnd:l,numberOfTicks:r,axisDomain:t}).points,h=(0,i.getAxisAngle)(a,l)+Math.PI/2;return d.map(function(e,t){var r=s({x1:0,y1:0,x2:u*Math.cos(h),y2:u*Math.sin(h)},p.ticks),i=s({x:u*Math.cos(h),y:u*Math.sin(h),textAnchor:"start"},p.text);return n.default.createElement("g",{key:t,transform:"translate(".concat(e.x,", ").concat(e.y,")"),className:"rv-xy-plot__axis__tick"},n.default.createElement("line",o({},r,{className:"rv-xy-plot__axis__tick__line"})),n.default.createElement("text",o({},i,{className:"rv-xy-plot__axis__tick__text"}),c(e.text)))})}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>l});var n=r(341),i=r(782),o=r.n(i),a=r(2240);function s(e){var t=e.className;return n.default.createElement("defs",{className:(0,a.getCombinedClassName)("rv-gradient-defs",t)},e.children)}s.displayName="GradientDefs",s.requiresSVG=!0,s.propTypes={className:o().string},s.defaultProps={className:""};const l=s},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>x});
41var n=r(341),i=r(782),o=r.n(i),a=r(2172),s=r(2240),l=r(2142),c=r(2301);function u(e){return u="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},u(e)}function p(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function d(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?p(Object(r),!0).forEach(function(t){h(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):p(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function h(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function f(){return f=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},f.apply(this,arguments)}function m(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function g(e,t){return g=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},g(e,t)}function y(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}();return function(){var r,n=b(e);if(t){var i=b(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return function(e,t){if(t&&("object"===u(t)||"function"==typeof t))return t;return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,r)}}function b(e){return b=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},b(e)}var v=c.DIRECTION.VERTICAL,_=c.DIRECTION.HORIZONTAL,S={direction:o().oneOf([v,_]),attr:o().string.isRequired,width:o().number,height:o().number,top:o().number,left:o().number,style:o().object,tickValues:o().arrayOf(o().oneOfType([o().number,o().string])),tickTotal:o().number,animation:l.AnimationPropType,marginTop:o().number,marginBottom:o().number,marginLeft:o().number,marginRight:o().number,innerWidth:o().number,innerHeight:o().number},E={direction:v},T=["xRange","yRange","xDomain","yDomain","width","height","marginLeft","marginTop","marginRight","marginBottom","tickTotal"],w=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&g(e,t)}(u,e);var t,r,i,o=y(u);function u(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,u),o.apply(this,arguments)}return t=u,(r=[{key:"_getDefaultProps",value:function(){var e=this.props,t=e.innerWidth,r=e.innerHeight,n=e.marginTop,i=e.marginLeft,o=e.direction;return{left:i,top:n,width:t,height:r,tickTotal:(0,c.getTicksTotalFromSize)(o===v?t:r)}}},{key:"render",value:function(){var e=this.props,t=e.animation,r=e.className;if(t)return n.default.createElement(l.default,f({},this.props,{animatedProps:T}),n.default.createElement(u,f({},this.props,{animation:null})));var i=d(d({},this._getDefaultProps()),this.props),o=i.attr,p=i.direction,m=i.width,g=i.height,y=i.style,b=i.tickTotal,_=i.tickValues,S=i.top,E=i.left,w=p===v,x=w?"y":"x",O=w?"x":"y",I=w?g:m,A=(0,a.getAttributeScale)(i,o),k=(0,c.getTickValues)(A,b,_);return n.default.createElement("g",{transform:"translate(".concat(E,",").concat(S,")"),className:(0,s.getCombinedClassName)("rv-xy-plot__grid-lines",r)},k.map(function(e,t){var r,i=A(e),o=(h(r={},"".concat(O,"1"),i),h(r,"".concat(O,"2"),i),h(r,"".concat(x,"1"),0),h(r,"".concat(x,"2"),I),r);return n.default.createElement("line",f({},o,{key:t,className:"rv-xy-plot__grid-lines__line",style:y}))}
41))}}])&&m(t.prototype,r),i&&m(t,i),u}(n.PureComponent);w.displayName="GridLines",w.defaultProps=E,w.propTypes=S,w.requiresSVG=!0;const x=w},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>b});var n=r(341),i=r(2142),o=r(2238),a=r(2240),s=r(2131);function l(e){return l="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},l(e)}function c(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function u(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?c(Object(r),!0).forEach(function(t){p(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):c(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function p(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function d(){return d=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},d.apply(this,arguments)}function h(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function f(e,t){return f=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},f(e,t)}function m(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}();return function(){var r,n=g(e);if(t){var i=g(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return function(e,t){if(t&&("object"===l(t)||"function"==typeof t))return t;return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,r)}}function g(e){return g=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},g(e)}var y=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&f(e,t)}(c,e);var t,r,s,l=m(c);function c(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,c),l.apply(this,arguments)}return t=c,s=[{key:"getParentConfig",value:function(e){return{isDomainAdjustmentNeeded:"x"===e||"y"===e}}}],(r=[{key:"render",value:function(){var e=this,t=this.props,r=t.animation,s=t.className,l=t.data,p=t.marginLeft,h=t.marginTop,f=t.style;if(!l)return null;if(r)return n.default.createElement(i.default,d({},this.props,{animatedProps:o.ANIMATED_SERIES_PROPS}),n.default.createElement(c,d({},this.props,{animation:null})));var m=u({rectStyle:{}},f).rectStyle,g=this._getAttributeFunctor("x"),y=this._getAttributeFunctor("y"),b=this._getAttributeFunctor("opacity"),v=this._getAttributeFunctor("fill")||this._getAttributeFunctor("color"),_=this._getAttributeFunctor("stroke")||this._getAttributeFunctor("color"),S=this._getScaleDistance("x"),E=this._getScaleDistance("y");return n.default.createElement("g",{className:(0,a.getCombinedClassName)("rv-xy-plot__series rv-xy-plot__series--heatmap",s),transform:"translate(".concat(p,",").concat(h,")")},l.map(function(t,r){var i=u(u({style:u({stroke:_&&_(t),fill:v&&v(t),opacity:b&&b(t)},f)},m),{},{x:g(t)-S/2,y:y(t)-E/2,width:S,height:E,onClick:function(r){return e._valueClickHandler(t,r)},onContextMenu:function(r){return e._valueRightClickHandler(t,r)},onMouseOver:function(r){return e._valueMouseOverHandler(t,r)},onMouseOut:function(r){return e._valueMouseOutHandler(t,r)}});return n.default.createElement("rect",d({key:r},i))}))}}])&&h(t.prototype,r),s&&h(t,s),c}(s.default);y.propTypes=u({}
41,s.default.propTypes),y.displayName="HeatmapSeries";const b=y},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>x});var n=r(341),i=r(782),o=r.n(i),a=r(2142),s=r(2336),l=r(2178),c=r(2238),u=r(2240),p=r(2239),d=r(2131);function h(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function f(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?h(Object(r),!0).forEach(function(t){m(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):h(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function m(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function g(e){return g="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},g(e)}function y(){return y=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},y.apply(this,arguments)}function b(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function v(e,t){return v=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},v(e,t)}function _(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}();return function(){var r,n=S(e);if(t){var i=S(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return function(e,t){if(t&&("object"===g(t)||"function"==typeof t))return t;return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,r)}}function S(e){return S=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},S(e)}function E(e){return function(e){if(Array.isArray(e))return T(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return T(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return T(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function T(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var w=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&v(e,t)}(p,e);var t,r,i,o=_(p);function p(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,p),o.apply(this,arguments)}return t=p,(r=[{key:"render",value:function(){var e=this,t=this.props,r=t.animation,i=t.className,o=t.colorRange,d=t.data,h=t.innerHeight,f=t.innerWidth,m=t.marginLeft,g=t.marginTop,b=t.radius,v=t.sizeHexagonsWithCount,_=t.style,S=t.xOffset,T=t.yOffset;if(!d)return null;if(r)return n.default.createElement(a.default,y({},this.props,{animatedProps:c.ANIMATED_SERIES_PROPS}),n.default.createElement(p,y({},this.props,{animation:null})));var w=this._getAttributeFunctor("x"),x=this._getAttributeFunctor("y"),O=(0,s.hexbin)().x(function(e){return w(e)+S}).y(function(e){return x(e)+T}).radius(b).size([f,h]),I=O.hexagon(),A=O(d),k=function(e,t){var r=e.countDomain;return r||[0,Math.max.apply(Math,E(t.map(function(e){return e.length})))]}(this.props,A),R=(0,l.default)().domain(k).range(o),C=(0,l.default)().domain(k).range([0,b]);return n.default.createElement("g",{className:(0,u.getCombinedClassName)("rv-xy-plot__series rv-xy-plot__series--hexbin",i),transform:"translate(".concat(m,",").concat(g,")")},A.map(function(t,r){var i={style:_,d:v?O.hexagon(C(t.length)):I,fill:R(t.length),transform:"translate(".concat(t.x,", ").concat(t.y,")"),onClick:function(r){return e._valueClickHandler(t,r)},onContextMenu:function(r){return e._valueRightClickHandler(t,r)},onMouseOver:function(r){return e._valueMouseOverHandler(t,r)},onMouseOut:function(r){return e._valueMouseOutHandler(t,r)}};return n.default.createElement("path",y({key:String(r)},i))}))}}])&&b(t.prototype,r),i&&b(t,i),p}(d.default);w.propTypes=f(f({}
41,d.default.propTypes),{},{radius:o().number}),w.defaultProps={radius:20,colorRange:p.CONTINUOUS_COLOR_RANGE,xOffset:0,yOffset:0},w.displayName="HexbinSeries";const x=w},(e,t,r)=>{"use strict";r.r(t),r.d(t,{hexbin:()=>n.default});var n=r(2337)},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>s}),r.dn(s);var n=Math.PI/3,i=[0,n,2*n,3*n,4*n,5*n];function o(e){return e[0]}function a(e){return e[1]}function s(){var e,t,r,s=0,l=0,c=1,u=1,p=o,d=a;function h(e){var n,i={},o=[],a=e.length;for(n=0;n<a;++n)if(!isNaN(l=+p.call(null,s=e[n],n,e))&&!isNaN(c=+d.call(null,s,n,e))){var s,l,c,u=Math.round(c/=r),h=Math.round(l=l/t-(1&u)/2),f=c-u;if(3*Math.abs(f)>1){var m=l-h,g=h+(l<h?-1:1)/2,y=u+(c<u?-1:1),b=l-g,v=c-y;m*m+f*f>b*b+v*v&&(h=g+(1&u?1:-1)/2,u=y)}var _=h+"-"+u,S=i[_];S?S.push(s):(o.push(S=i[_]=[s]),S.x=(h+(1&u)/2)*t,S.y=u*r)}return o}function f(e){var t=0,r=0;return i.map(function(n){var i=Math.sin(n)*e,o=-Math.cos(n)*e,a=i-t,s=o-r;return t=i,r=o,[a,s]})}return h.hexagon=function(t){return"m"+f(null==t?e:+t).join("l")+"z"},h.centers=function(){for(var n=[],i=Math.round(l/r),o=Math.round(s/t),a=i*r;a<u+e;a+=r,++i)for(var p=o*t+(1&i)*t/2;p<c+t/2;p+=t)n.push([p,a]);return n},h.mesh=function(){var t=f(e).slice(0,4).join("l");return h.centers().map(function(e){return"M"+e+"m"+t}).join("")},h.x=function(e){return arguments.length?(p=e,h):p},h.y=function(e){return arguments.length?(d=e,h):d},h.radius=function(i){return arguments.length?(t=2*(e=+i)*Math.sin(n),r=1.5*e,h):e},h.size=function(e){return arguments.length?(s=l=0,c=+e[0],u=+e[1],h):[c-s,u-l]},h.extent=function(e){return arguments.length?(s=+e[0][0],l=+e[0][1],c=+e[1][0],u=+e[1][1],h):[[s,l],[c,u]]},h.radius(1)}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>_});var n=r(341),i=r(782),o=r.n(i),a=r(2131),s=r(2172),l=r(2240);function c(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function u(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?c(Object(r),!0).forEach(function(t){y(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):c(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function p(e){return p="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},p(e)}function d(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function h(e,t){return h=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},h(e,t)}function f(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}();return function(){var r,n=g(e);if(t){var i=g(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return function(e,t){if(t&&("object"===p(t)||"function"==typeof t))return t;return m(e)}(this,r)}}function m(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function g(e){return g=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},g(e)}function y(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function b(e){return{xLoc:"touchstart"===e.type?e.pageX:e.offsetX,yLoc:"touchstart"===e.type?e.pageY:e.offsetY}}var v=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&h(e,t)}(a,e);var t,r,i,o=f(a);function a(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a);for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return y(m(e=o.call.apply(o,[this].concat(r))),"state",{dragging:!1,brushArea:{top:0,right:0,bottom:0,left:0},brushing:!1,startLocX:0,startLocY:0,dragArea:null}),e}return t=a,(r=[{key:"_getDrawArea",value:function(e,t){var r=this.state,n=r.startLocX,i=r.startLocY,o=this.props,a=o.enableX,s=o.enableY,l=o.highlightWidth,c=o.highlightHeight,u=o.innerWidth,p=o.innerHeight,d=o.marginLeft,h=o.marginRight,f=o.marginBottom,m=o.marginTop,g=l||u+d+h,y=c||p+m+f;return{bottom:s?Math.max(i,t):y,right:a?Math.max(n,e):g,left:a?Math.min(e,n):0,top:s?Math.min(t,i):0}}},{key:"_getDragArea",value:function(e,t){var r=this.props,n=r.enableX,i=r.enableY,o=this.state,a=o.startLocX,s=o.startLocY,l=o.dragArea;return{bottom:l.bottom+(i?t-s:0),left:l.left+(n?e-a:0),right:l.right+(n?e-a:0),top:l.top+(i?t-s:0)}}},{key:"_clickedOutsideDrag",value:function(e,t){var r=this.props,n=r.enableX,i=r.enableY,o=this.state,a=o.dragArea,s=o.brushArea,l=s.left,c=s.right,u=s.top,p=s.bottom,d=a&&(e<l||e>c),h=a&&(t<u||t>p);return n&&i?d||h:n?d:!i||h}},{key:"_convertAreaToCoordinates",value:function(e){var t=this.props,r=t.enableX,n=t.enableY,i=t.marginLeft,o=t.marginTop,a=(0,s.getAttributeScale)(this.props,"x"),l=(0,s.getAttributeScale)(this.props,"y");return r&&n?{bottom:l.invert(e.bottom),left:a.invert(e.left-i),right:a.invert(e.right-i),top:l.invert(e.top)}:n?{bottom:l.invert(e.bottom-o),top:l.invert(e.top-o)}:r?{left:a.invert(e.left-i),right:a.invert(e.right-i)}:{}}},{key:"startBrushing",value:function(e){var t=this,r=this.props,n=r.onBrushStart,i=r.onDragStart,o=r.drag,a=this.state.dragArea,s=b(e.nativeEvent),l=s.xLoc,c=s.yLoc,u=function(e,r){var n={bottom:c,left:l,right:l,top:c};t.setState({dragging:e,brushArea:a&&!r?a:n,brushing:!e,startLocX:l,startLocY:c})},p=this._clickedOutsideDrag(l,c);if(o&&!a||!o||p)return u(!1,p),void(n&&n(e));o&&a&&(u(!0,p),i&&i(e))}},{key:"stopBrushing",value:function(){var e=this.state,t=e.brushing,r=e.dragging,n=e.brushArea;if(t||r){var i=this.props,o=i.onBrushEnd,a=i.onDragEnd,s=i.drag,l=Math.abs(n.right-n.left)<5,c=Math.abs(n.top-n.bottom)<5||l;this.setState({brushing:!1,dragging:!1,brushArea:s?n:{top:0,right:0,bottom:0,left:0},startLocX:0,startLocY:0,dragArea:s&&!c&&n}),t&&o&&o(c?null:this._convertAreaToCoordinates(n)),s&&a&&a(c?null:this._convertAreaToCoordinates(n))}}},{key:"onBrush",value:function(e){var t=this.props,r=t.onBrush,n=t.onDrag,i=t.drag,o=this.state,a=o.brushing,s=o.dragging,l=b(e.nativeEvent),c=l.xLoc,u=l.yLoc;if(a){var p=this._getDrawArea(c,u);this.setState({brushArea:p}),r&&r(this._convertAreaToCoordinates(p))}if(i&&s){var d=this._getDragArea(c,u);this.setState({brushArea:d}),n&&n(this._convertAreaToCoordinates(d))}}},{key:"render",value:function(){var e=this,t=this.props,r=t.color,i=t.className,o=t.highlightHeight,a=t.highlightWidth,c=t.highlightX,u=t.highlightY,p=t.innerWidth,d=t.innerHe
41ight,h=t.marginLeft,f=t.marginRight,m=t.marginTop,g=t.marginBottom,y=t.opacity,b=this.state.brushArea,v=b.left,_=b.right,S=b.top,E=b.bottom,T=0;c&&(T=(0,s.getAttributeScale)(this.props,"x")(c));var w=0;u&&(w=(0,s.getAttributeScale)(this.props,"y")(u));var x=a||h+f+p,O=o||m+g+d;return n.default.createElement("g",{transform:"translate(".concat(T,", ").concat(w,")"),className:(0,l.getCombinedClassName)(i,"rv-highlight-container")},n.default.createElement("rect",{className:"rv-mouse-target",fill:"black",opacity:"0",x:"0",y:"0",width:Math.max(x,0),height:Math.max(O,0),onMouseDown:function(t){return e.startBrushing(t)},onMouseMove:function(t){return e.onBrush(t)},onMouseUp:function(t){return e.stopBrushing(t)},onMouseLeave:function(t){return e.stopBrushing(t)},onTouchEnd:function(t){t.preventDefault(),e.stopBrushing(t)},onTouchCancel:function(t){t.preventDefault(),e.stopBrushing(t)},onContextMenu:function(e){return e.preventDefault()},onContextMenuCapture:function(e){return e.preventDefault()}}),n.default.createElement("rect",{className:"rv-highlight",pointerEvents:"none",opacity:y,fill:r,x:v,y:S,width:Math.min(Math.max(0,_-v),x),height:Math.min(Math.max(0,E-S),O)}))}}])&&d(t.prototype,r),i&&d(t,i),a}(a.default);v.displayName="HighlightOverlay",v.defaultProps={color:"rgb(77, 182, 172)",className:"",enableX:!0,enableY:!0,opacity:.3},v.propTypes=u(u({},a.default.propTypes),{},{enableX:o().bool,enableY:o().bool,highlightHeight:o().number,highlightWidth:o().number,highlightX:o().oneOfType([o().string,o().number]),highlightY:o().oneOfType([o().string,o().number]),onBrushStart:o().func,onDragStart:o().func,onBrush:o().func,onDrag:o().func,onBrushEnd:o().func,onDragEnd:o().func});const _=v},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>S});var n=r(341),i=r(782),o=r.n(i),a=r(2231),s=r(2172),l=r(2240);function c(e){return c="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},c(e)}function u(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function p(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?u(Object(r),!0).forEach(function(t){d(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):u(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function d(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function h(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function f(e,t){return f=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},f(e,t)}function m(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}();return function(){var r,n=g(e);if(t){var i=g(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return function(e,t){if(t&&("object"===c(t)||"function"==typeof t))return t;return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,r)}}function g(e){return g=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},g(e)}var y={AUTO:"auto",LEFT:"left",RIGHT:"right",LEFT_EDGE:"leftEdge",RIGHT_EDGE:"rightEdge",BOTTOM:"bottom",TOP:"top",BOTTOM_EDGE:"bottomEdge",TOP_EDGE:"topEdge"},b={BOTTOM_LEFT:"bottomleft",BOTTOM_RIGHT:"bottomright",TOP_LEFT:"topleft",TOP_RIGHT:"topright"};function v(e){return Object.keys(e).map(function(t){return{title:t,value:(0,a.transformValueToString)(e[t])}})}var _=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&f(e,t)}(c,e);var t,r,i,a=m(c);function c(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,c),a.apply(this,arguments)}return t=c,i=[{key:"defaultProps",get:function(){return{format:v,align:{horizontal:y.AUTO,vertical:y.AUTO},style:{}}}},{key:"propTypes",get:function(){return{marginTop:o().number,marginLeft:o().number,innerWidth:o().number,innerHe
41ight:o().number,scales:o().object,value:o().object,format:o().func,style:o().object,className:o().string,align:o().shape({horizontal:o().oneOf([y.AUTO,y.LEFT,y.RIGHT,y.LEFT_EDGE,y.RIGHT_EDGE]),vertical:o().oneOf([y.AUTO,y.BOTTOM,y.TOP,y.BOTTOM_EDGE,y.TOP_EDGE])}),getAlignStyle:o().func,orientation:o().oneOf([b.BOTTOM_LEFT,b.BOTTOM_RIGHT,b.TOP_LEFT,b.TOP_RIGHT])}}}],(r=[{key:"_getAlign",value:function(e,t){var r=this.props,n=r.innerWidth,i=r.innerHeight,o=r.orientation,a=r.align,s=a.horizontal,l=a.vertical,c=o?this._mapOrientationToAlign(o):{horizontal:s,vertical:l};return s===y.AUTO&&(c.horizontal=e>n/2?y.LEFT:y.RIGHT),l===y.AUTO&&(c.vertical=t>i/2?y.TOP:y.BOTTOM),c}},{key:"_getAlignClassNames",value:function(e){var t=this.props.orientation,r=t?"rv-hint--orientation-".concat(t):"";return"".concat(r," rv-hint--horizontalAlign-").concat(e.horizontal,"\n     rv-hint--verticalAlign-").concat(e.vertical)}},{key:"_getAlignStyle",value:function(e,t,r){return p(p({},this._getXCSS(e.horizontal,t)),this._getYCSS(e.vertical,r))}},{key:"_getCSSBottom",value:function(e){if(null==e)return{bottom:0};var t=this.props,r=t.innerHeight;return{bottom:t.marginBottom+r-e}}},{key:"_getCSSLeft",value:function(e){return null==e?{left:0}:{left:this.props.marginLeft+e}}},{key:"_getCSSRight",value:function(e){if(null==e)return{right:0};var t=this.props,r=t.innerWidth;return{right:t.marginRight+r-e}}},{key:"_getCSSTop",value:function(e){return null==e?{top:0}:{top:this.props.marginTop+e}}},{key:"_getPositionInfo",value:function(){var e=this.props,t=e.value,r=e.getAlignStyle,n=(0,s.getAttributeFunctor)(this.props,"x")(t),i=(0,s.getAttributeFunctor)(this.props,"y")(t),o=this._getAlign(n,i);return{position:r?r(o,n,i):this._getAlignStyle(o,n,i),positionClassName:this._getAlignClassNames(o)}}},{key:"_getXCSS",value:function(e,t){switch(e){case y.LEFT_EDGE:return this._getCSSLeft(null);case y.RIGHT_EDGE:return this._getCSSRight(null);case y.LEFT:return this._getCSSRight(t);default:return this._getCSSLeft(t)}}},{key:"_getYCSS",value:function(e,t){switch(e){case y.TOP_EDGE:return this._getCSSTop(null);case y.BOTTOM_EDGE:return this._getCSSBottom(null);case y.BOTTOM:return this._getCSSTop(t);default:return this._getCSSBottom(t)}}},{key:"_mapOrientationToAlign",value:function(e){switch(e){case b.BOTTOM_LEFT:return{horizontal:y.LEFT,vertical:y.BOTTOM};case b.BOTTOM_RIGHT:return{horizontal:y.RIGHT,vertical:y.BOTTOM};case b.TOP_LEFT:return{horizontal:y.LEFT,vertical:y.TOP};case b.TOP_RIGHT:return{horizontal:y.RIGHT,vertical:y.TOP}}}},{key:"render",value:function(){var e=this.props,t=e.value,r=e.format,i=e.children,o=e.style,a=e.className,s=this._getPositionInfo(),c=s.position,u=s.positionClassName;return n.default.createElement("div",{className:(0,l.getCombinedClassName)("rv-hint",u,a),style:p(p(p({},o),c),{},{position:"absolute"})},i||n.default.createElement("div",{className:"rv-hint__content",style:o.content},r(t).map(function(e,t){return n.default.createElement("div",{key:"rv-hint".concat(t),style:o.row},n.default.createElement("span",{className:"rv-hint__title",style:o.title},e.title),": ",n.default.createElement("span",{className:"rv-hint__value",style:o.value},e.value))})))}}])&&h(t.prototype,r),i&&h(t,i),c}(n.PureComponent);_.displayName="Hint",_.ORIENTATION=b,_.ALIGN=y;const S=_},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>h});var n=r(341),i=r(2131),o=r(2341);function a(e){return a="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},a(e)}function s(){return s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},s.apply(this,arguments)}function l(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function c(e,t){return c=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},c(e,t)}function u(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}();return function(){var r,n=p(e);if(t){var i=p(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return function(e,t){if(t&&("object"===a(t)||"function"==typeof t))return t;return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,r)}}
41function p(e){return p=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},p(e)}var d=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&c(e,t)}(p,e);var t,r,i,a=u(p);function p(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,p),a.apply(this,arguments)}return t=p,i=[{key:"getParentConfig",value:function(e){return{isDomainAdjustmentNeeded:"y"===e,zeroBaseValue:"x"===e}}}],(r=[{key:"render",value:function(){return n.default.createElement(o.default,s({},this.props,{linePosAttr:"y",valuePosAttr:"x",lineSizeAttr:"height",valueSizeAttr:"width"}))}}])&&l(t.prototype,r),i&&l(t,i),p}(i.default);d.displayName="HorizontalBarSeries";const h=d},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>_});var n=r(341),i=r(782),o=r.n(i),a=r(2142),s=r(2238),l=r(2240),c=r(2131);function u(e){return u="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},u(e)}function p(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function d(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?p(Object(r),!0).forEach(function(t){h(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):p(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function h(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function f(){return f=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},f.apply(this,arguments)}function m(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function g(e,t){return g=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},g(e,t)}function y(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}();return function(){var r,n=b(e);if(t){var i=b(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return function(e,t){if(t&&("object"===u(t)||"function"==typeof t))return t;return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,r)}}function b(e){return b=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},b(e)}var v=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&g(e,t)}(p,e);var t,r,i,u=y(p);function p(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,p),u.apply(this,arguments)}return t=p,i=[{key:"propTypes",get:function(){return d(d({},c.default.propTypes),{},{linePosAttr:o().string,valuePosAttr:o().string,lineSizeAttr:o().string,valueSizeAttr:o().string,cluster:o().string,barWidth:o().number})}},{key:"defaultProps",get:function(){return{barWidth:.85}}}],(r=[{key:"render",value:function(){var e=this,t=this.props,r=t.animation,i=t.className,o=t.data,c=t.linePosAttr,u=t.lineSizeAttr,m=t.marginLeft,g=t.marginTop,y=t.style,b=t.valuePosAttr,v=t.valueSizeAttr,_=t.barWidth;if(!o)return null;if(r)return n.default.createElement(a.default,f({},this.props,{animatedProps:s.ANIMATED_SERIES_PROPS}),n.default.createElement(p,f({},this.props,{animation:null})));var S=(0,s.getStackParams)(this.props),E=S.sameTypeTotal,T=S.sameTypeIndex,w=this._getScaleDistance(c),x=this._getAttributeFunctor(c),O=this._getAttributeFunctor(b),I=this._getAttr0Functor(b),A=this._getAttributeFunctor("fill")||this._getAttributeFunctor("color"),k=this._getAttributeFunctor("stroke")||this._getAttributeFunctor("color"),R=this._getAttributeFunctor("op
41acity"),C=w/2*_;return n.default.createElement("g",{className:(0,l.getCombinedClassName)("rv-xy-plot__series rv-xy-plot__series--bar",i),transform:"translate(".concat(m,",").concat(g,")")},o.map(function(t,r){var i,o=2*C,a=x(t),s=o/E-(E-1)/E,l=a-C+s*T+T,p=(h(i={style:d({opacity:R&&R(t),stroke:k&&k(t),fill:A&&A(t)},y)},c,l),h(i,u,s),h(i,b,Math.min(I(t),O(t))),h(i,v,Math.abs(-I(t)+O(t))),h(i,"onClick",function(r){return e._valueClickHandler(t,r)}),h(i,"onContextMenu",function(r){return e._valueRightClickHandler(t,r)}),h(i,"onMouseOver",function(r){return e._valueMouseOverHandler(t,r)}),h(i,"onMouseOut",function(r){return e._valueMouseOutHandler(t,r)}),i);return n.default.createElement("rect",f({key:"".concat(r)},p))}))}}])&&m(t.prototype,r),i&&m(t,i),p}(c.default);v.displayName="BarSeries";const _=v},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>f});var n=r(2131),i=r(2343);function o(e){return o="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},o(e)}function a(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function s(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?a(Object(r),!0).forEach(function(t){l(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):a(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function l(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function c(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function u(e,t){return u=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},u(e,t)}function p(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}();return function(){var r,n=d(e);if(t){var i=d(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return function(e,t){if(t&&("object"===o(t)||"function"==typeof t))return t;return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,r)}}function d(e){return d=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},d(e)}var h=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&u(e,t)}(a,e);var t,r,n,o=p(a);function a(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),o.apply(this,arguments)}return t=a,n=[{key:"getParentConfig",value:function(e){return{isDomainAdjustmentNeeded:"y"===e,zeroBaseValue:"x"===e}}},{key:"renderLayer",value:function(e,t){i.default.renderLayer(s(s({},e),{},{linePosAttr:"y",valuePosAttr:"x",lineSizeAttr:"height",valueSizeAttr:"width"}),t)}},{key:"requiresSVG",get:function(){return!1}},{key:"isCanvas",get:function(){return!0}}],(r=[{key:"render",value:function(){return null}}])&&c(t.prototype,r),n&&c(t,n),a}(n.default);h.displayName="HorizontalBarSeriesCanvas",h.propTypes=s({},n.default.propTypes);const f=h},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>v});var n=r(782),i=r.n(n),o=r(2144),a=r(2239),s=r(2172),l=r(2238),c=r(2131);function u(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function p(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};
41t%2?u(Object(r),!0).forEach(function(t){d(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):u(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function d(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function h(e){return h="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},h(e)}function f(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function m(e,t){return m=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},m(e,t)}function g(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}();return function(){var r,n=y(e);if(t){var i=y(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return function(e,t){if(t&&("object"===h(t)||"function"==typeof t))return t;return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,r)}}function y(e){return y=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},y(e)}var b=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&m(e,t)}(c,e);var t,r,n,i=g(c);function c(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,c),i.apply(this,arguments)}return t=c,n=[{key:"renderLayer",value:function(e,t){var r=e.data,n=e.linePosAttr,i=e.lineSizeAttr,c=e.valuePosAttr,u=e.marginTop,p=e.marginBottom;if(r&&0!==r.length){var d=function(e,t){var r=(0,s.getScaleObjectFromProps)(e,t);return r?r.distance:0}(e,n),h=(0,s.getAttributeFunctor)(e,n),f=(0,s.getAttributeFunctor)(e,c),m=(0,s.getAttr0Functor)(e,c),g=(0,s.getAttributeFunctor)(e,"fill")||(0,s.getAttributeFunctor)(e,"color"),y=(0,s.getAttributeFunctor)(e,"stroke")||(0,s.getAttributeFunctor)(e,"color"),b=(0,s.getAttributeFunctor)(e,"opacity"),v=d/2*.85,_=2*v,S=(0,l.getStackParams)(e),E=S.sameTypeTotal,T=S.sameTypeIndex;r.forEach(function(e){var r=h(e)-v,n=_/E-(E-1)/E,s=(0,o.rgb)(g(e)),l=(0,o.rgb)(y(e)),d=b(e)||a.DEFAULT_OPACITY,S=r+n*T+T,w=Math.min(m(e),f(e)),x="x"===c?w:S,O="y"===c?w:S,I=Math.abs(-m(e)+f(e)),A="height"===i?n:I,k="width"===i?n:I;t.beginPath(),t.rect(x+p,O+u,k,A),t.fillStyle="rgba(".concat(s.r,", ").concat(s.g,", ").concat(s.b,", ").concat(d,")"),t.fill(),t.strokeStyle="rgba(".concat(l.r,", ").concat(l.g,", ").concat(l.b,", ").concat(d,")"),t.stroke()})}}},{key:"requiresSVG",get:function(){return!1}},{key:"isCanvas",get:function(){return!0}}],(r=[{key:"render",value:function(){return null}}])&&f(t.prototype,r),n&&f(t,n),c}(c.default);b.displayName="BarSeriesCanvas",b.defaultProps=p(p({},c.default.defaultProps),{},{linePosAttr:i().string.isRequired,valuePosAttr:i().string.isRequired,lineSizeAttr:i().string.isRequired,valueSizeAttr:i().string.isRequired}),b.propTypes=p({},c.default.propTypes);const v=b},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>m});var n=r(341),i=r(782),o=r.n(i),a=r(2301),s=r(2333);function l(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function c(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?l(Object(r),!0).forEach(function(t){u(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):l(Object(r)).forEac
41h(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function u(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var p=a.DIRECTION.HORIZONTAL,d=c(c({},s.default.propTypes),{},{direction:o().oneOf([p])}),h={direction:p,attr:"y"};function f(e){return n.default.createElement(s.default,e)}f.displayName="HorizontalGridLines",f.propTypes=d,f.defaultProps=h,f.requiresSVG=!0;const m=f},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>h});var n=r(341),i=r(2131),o=r(2346);function a(e){return a="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},a(e)}function s(){return s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},s.apply(this,arguments)}function l(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function c(e,t){return c=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},c(e,t)}function u(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}();return function(){var r,n=p(e);if(t){var i=p(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return function(e,t){if(t&&("object"===a(t)||"function"==typeof t))return t;return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,r)}}function p(e){return p=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},p(e)}var d=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&c(e,t)}(p,e);var t,r,i,a=u(p);function p(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,p),a.apply(this,arguments)}return t=p,i=[{key:"getParentConfig",value:function(e){return{isDomainAdjustmentNeeded:!1,zeroBaseValue:"x"===e}}}],(r=[{key:"render",value:function(){return n.default.createElement(o.default,s({},this.props,{linePosAttr:"y",valuePosAttr:"x",lineSizeAttr:"height",valueSizeAttr:"width"}))}}])&&l(t.prototype,r),i&&l(t,i),p}(i.default);d.displayName="HorizontalRectSeries";const h=d},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>_});var n=r(341),i=r(782),o=r.n(i),a=r(2142),s=r(2238),l=r(2240),c=r(2131);function u(e){return u="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},u(e)}function p(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function d(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?p(Object(r),!0).forEach(function(t){h(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):p(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function h(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function f(){return f=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},f.apply(this,arguments)}function m(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function g(e,t){return g=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},g(e,t)}function y(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}();return function(){var r,n=b(e);if(t){var i=b(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return function(e,t){if(t&&("object"===u(t)||"function"==typeof t))return t;return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,r)}}function b(e){return b=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},b(e)}var v=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&g(e,t)}(p,e);var t,r,i,u=y(p);function p(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,p),u.apply(this,arguments)}return t=p,i=[{key:"propTypes",get:function(){return d(d({}
41,c.default.propTypes),{},{linePosAttr:o().string,valuePosAttr:o().string,lineSizeAttr:o().string,valueSizeAttr:o().string})}}],(r=[{key:"render",value:function(){var e=this,t=this.props,r=t.animation,i=t.className,o=t.data,c=t.linePosAttr,u=t.lineSizeAttr,m=t.marginLeft,g=t.marginTop,y=t.style,b=t.valuePosAttr,v=t.valueSizeAttr;if(!o)return null;if(r)return n.default.createElement(a.default,f({},this.props,{animatedProps:s.ANIMATED_SERIES_PROPS}),n.default.createElement(p,f({},this.props,{animation:null})));var _=this._getAttributeFunctor(c),S=this._getAttr0Functor(c),E=this._getAttributeFunctor(b),T=this._getAttr0Functor(b),w=this._getAttributeFunctor("fill")||this._getAttributeFunctor("color"),x=this._getAttributeFunctor("stroke")||this._getAttributeFunctor("color"),O=this._getAttributeFunctor("opacity");return n.default.createElement("g",{className:(0,l.getCombinedClassName)("rv-xy-plot__series rv-xy-plot__series--rect",i),transform:"translate(".concat(m,",").concat(g,")")},o.map(function(t,r){var i,o=(h(i={style:d({opacity:O&&O(t),stroke:x&&x(t),fill:w&&w(t)},y)},c,S(t)),h(i,u,Math.abs(_(t)-S(t))),h(i,b,Math.min(T(t),E(t))),h(i,v,Math.abs(-T(t)+E(t))),h(i,"onClick",function(r){return e._valueClickHandler(t,r)}),h(i,"onContextMenu",function(r){return e._valueRightClickHandler(t,r)}),h(i,"onMouseOver",function(r){return e._valueMouseOverHandler(t,r)}),h(i,"onMouseOut",function(r){return e._valueMouseOutHandler(t,r)}),i);return n.default.createElement("rect",f({key:String(r)},o))}))}}])&&m(t.prototype,r),i&&m(t,i),p}(c.default);v.displayName="RectSeries";const _=v},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>f});var n=r(2131),i=r(2348);function o(e){return o="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},o(e)}function a(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function s(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?a(Object(r),!0).forEach(function(t){l(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):a(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function l(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function c(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function u(e,t){return u=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},u(e,t)}function p(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}();return function(){var r,n=d(e);if(t){var i=d(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return function(e,t){if(t&&("object"===o(t)||"function"==typeof t))return t;return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,r)}}function d(e){return d=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},d(e)}var h=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&u(e,t)}(a,e);var t,r,n,o=p(a);function a(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),o.apply(this,arguments)}return t=a,n=[{key:"getParentConfig",value:function(e){return{isDomainAdjustmentNeeded:!1,zeroBaseValue:"x"===e}}},{key:"renderLayer",value:function(e,t){i.default.renderLayer(s(s({},e),{},{linePosAttr:"y",valuePosAttr:"x",lineSizeAttr:"height",valueSizeAttr:"width"}),t)}},{key:"requiresSVG",get:function(){return!1}},{key:"isCanvas",get:function(){return!0}}],(r=[{key:"render",value:function(){return null}}])&&c(t.prototype,r),n&&c(t,n),a}(n.default);h.displayName="HorizontalRectSeriesCanvas",h.propTypes=s({}
41,n.default.propTypes);const f=h},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>b});var n=r(782),i=r.n(n),o=r(2144),a=r(2239),s=r(2172),l=r(2131);function c(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function u(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?c(Object(r),!0).forEach(function(t){p(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):c(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function p(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function d(e){return d="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},d(e)}function h(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function f(e,t){return f=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},f(e,t)}function m(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}();return function(){var r,n=g(e);if(t){var i=g(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return function(e,t){if(t&&("object"===d(t)||"function"==typeof t))return t;return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,r)}}function g(e){return g=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},g(e)}var y=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&f(e,t)}(l,e);var t,r,n,i=m(l);function l(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l),i.apply(this,arguments)}return t=l,n=[{key:"renderLayer",value:function(e,t){var r=e.data,n=e.linePosAttr,i=e.lineSizeAttr,l=e.marginLeft,c=e.marginTop,u=e.valuePosAttr;if(r&&0!==r.length){var p=(0,s.getAttributeFunctor)(e,n),d=(0,s.getAttr0Functor)(e,n),h=(0,s.getAttributeFunctor)(e,u),f=(0,s.getAttr0Functor)(e,u),m=(0,s.getAttributeFunctor)(e,"fill")||(0,s.getAttributeFunctor)(e,"color"),g=(0,s.getAttributeFunctor)(e,"stroke")||(0,s.getAttributeFunctor)(e,"color"),y=(0,s.getAttributeFunctor)(e,"opacity");r.forEach(function(e){var r=(0,o.rgb)(m(e)),n=(0,o.rgb)(g(e)),s=y(e)||a.DEFAULT_OPACITY,b=d(e),v=Math.min(f(e),h(e)),_="x"===u?v:b,S="y"===u?v:b,E=Math.abs(p(e)-d(e)),T=Math.abs(-f(e)+h(e)),w="height"===i?E:T,x="width"===i?E:T;t.beginPath(),t.rect(_+l,S+c,x,w),t.fillStyle="rgba(".concat(r.r,", ").concat(r.g,", ").concat(r.b,", ").concat(s,")"),t.fill(),t.strokeStyle="rgba(".concat(n.r,", ").concat(n.g,", ").concat(n.b,", ").concat(s,")"),t.stroke()})}}},{key:"requiresSVG",get:function(){return!1}},{key:"isCanvas",get:function(){return!0}}],(r=[{key:"render",value:function(){return null}}])&&h(t.prototype,r),n&&h(t,n),l}(l.default);y.displayName="RectSeriesCanvas",y.defaultProps=u(u({},l.default.defaultProps),{},{linePosAttr:i().string.isRequired,valuePosAttr:i().string.isRequired,lineSizeAttr:i().string.isRequired,valueSizeAttr:i().string.isRequired}),y.propTypes=u({},l.default.propTypes);const b=y},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>E});var n=r(341),i=r(782),o=r.n(i),a=r(2131),s=r(2142),l=r(2238),c=r(2240);function u(e){return u="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},u(e)}function p(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function d(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};
41t%2?p(Object(r),!0).forEach(function(t){h(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):p(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function h(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function f(){return f=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},f.apply(this,arguments)}function m(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function g(e,t){return g=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},g(e,t)}function y(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}();return function(){var r,n=b(e);if(t){var i=b(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return function(e,t){if(t&&("object"===u(t)||"function"==typeof t))return t;return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,r)}}function b(e){return b=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},b(e)}var v=function(e,t){return e||(t?"start":"end")},_=function(e,t){return e||(t?"text-before-edge":"text-after-edge")},S=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&g(e,t)}(a,e);var t,r,i,o=y(a);function a(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),o.apply(this,arguments)}return t=a,(r=[{key:"render",value:function(){var e=this,t=this.props,r=t.animation,i=t.allowOffsetToBeReversed,o=t.className,u=t.data,p=t._data,h=t.getLabel,m=t.marginLeft,g=t.marginTop,y=t.rotation,b=t.style,S=t.xRange,E=t.yRange,T=t.labelAnchorX,w=t.labelAnchorY;if(!u)return null;if(r)return n.default.createElement(s.default,f({},this.props,{animatedProps:l.ANIMATED_SERIES_PROPS}),n.default.createElement(a,f({},this.props,{animation:null,_data:u})));var x=this._getAttributeFunctor("x"),O=this._getAttributeFunctor("y");return n.default.createElement("g",{className:(0,c.getCombinedClassName)("rv-xy-plot__series rv-xy-plot__series--label",o),transform:"translate(".concat(m,",").concat(g,")"),style:b},u.reduce(function(t,r,o){var a=r.style,s=r.xOffset,l=r.yOffset;if(!h(r))return t;var c=x(r),u=O(r),m=c<(S[1]-S[0])/2,g=u<Math.abs(E[1]-E[0])/2,b=c+(i&&m?-1:1)*(s||0),I=u+(i&&g?-1:1)*(l||0),A=0===r.rotation||r.rotation?r.rotation:y,k=d({dominantBaseline:_(w,g),className:"rv-xy-plot__series--label-text",onClick:function(t){return e._valueClickHandler(r,t)},onContextMenu:function(t){return e._valueRightClickHandler(r,t)},onMouseOver:function(t){return e._valueMouseOverHandler(r,t)},onMouseOut:function(t){return e._valueMouseOutHandler(r,t)},textAnchor:v(T,m),x:b,y:I,transform:"rotate(".concat(A,",").concat(b,",").concat(I,")")},a),R=h(p?p[o]:r);return t.concat([n.default.createElement("text",f({key:String(o)},k),R)])},[]))}}])&&m(t.prototype,r),i&&m(t,i),a}(a.default);S.propTypes={animation:o().bool,allowOffsetToBeReversed:o().bool,className:o().string,data:o().arrayOf(o().shape({x:o().oneOfType([o().number,o().string]),y:o().oneOfType([o().number,o().string]),angle:o().number,radius:o().number,label:o().string,xOffset:o().number,yOffset:o().number,style:o().object})).isRequired,marginLeft:o().number,marginTop:o().number,rotation:o().number,style:o().object,xRange:o().arrayOf(o().number),yRange:o().arrayOf(o().number),labelAnchorX:o().string,labelAnchorY:o().string},S.defaultProps=d(d({},a.default.defaultProps),{},{animation:!1,rotation:0,getLabel:function(e){return e.label}}),S.displayName="LabelSeries";const E=S},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>_});var n=r(341),i=r(782),o=r.n(i),a=r(2131),s=r(2351),l=r(2352);function c(e){return c="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},c(e)}function u(){return u=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];
41for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},u.apply(this,arguments)}function p(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function d(e,t){return d=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},d(e,t)}function h(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}();return function(){var r,n=f(e);if(t){var i=f(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return function(e,t){if(t&&("object"===c(t)||"function"==typeof t))return t;return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,r)}}function f(e){return f=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},f(e)}function m(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function g(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?m(Object(r),!0).forEach(function(t){y(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):m(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function y(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var b=g(g({},s.default.propTypes),{},{lineStyle:o().object,markStyle:o().object}),v=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&d(e,t)}(a,e);var t,r,i,o=h(a);function a(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),o.apply(this,arguments)}return t=a,i=[{key:"defaultProps",get:function(){return g(g({},s.default.defaultProps),{},{lineStyle:{},markStyle:{}})}}],(r=[{key:"render",value:function(){var e=this.props,t=e.lineStyle,r=e.markStyle,i=e.style;return n.default.createElement("g",{className:"rv-xy-plot__series rv-xy-plot__series--linemark"},n.default.createElement(s.default,u({},this.props,{style:g(g({},i),t)})),n.default.createElement(l.default,u({},this.props,{style:g(g({},i),r)})))}}])&&p(t.prototype,r),i&&p(t,i),a}(a.default);v.displayName="LineMarkSeries",v.propTypes=b;const _=v},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>x});var n=r(341),i=r(782),o=r.n(i),a=r(2242),s=r(2246),l=r(2142),c=r(2239),u=r(2238),p=r(2230),d=r(2240),h=r(2131);function f(e){return f="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},f(e)}function m(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function g(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?m(Object(r),!0).forEach(function(t){y(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):m(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function y(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function b(){return b=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},b.apply(this,arguments)}function v(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function _(e,t){return _=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},_(e,t)}function S(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}();return function(){var r,n=E(e);if(t){var i=E(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return function(e,t){if(t&&("object"===f(t)||"function"==typeof t))return t;return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,r)}}
41function E(e){return E=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},E(e)}var T={dashed:"6, 2",solid:null},w=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&_(e,t)}(h,e);var t,r,i,o=S(h);function h(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,h),o.apply(this,arguments)}return t=h,(r=[{key:"_renderLine",value:function(e,t,r,n,i){var o=s.default();return null!==n&&("string"==typeof n&&a[n]?o=o.curve(a[n]):"function"==typeof n&&(o=o.curve(n))),(o=(o=o.defined(i)).x(t).y(r))(e)}},{key:"render",value:function(){var e=this.props,t=e.animation,r=e.className,i=e.data;if(this.props.nullAccessor&&(0,p.warning)("nullAccessor has been renamed to getNull",!0),!i)return null;if(t)return n.default.createElement(l.default,b({},this.props,{animatedProps:u.ANIMATED_SERIES_PROPS}),n.default.createElement(h,b({},this.props,{animation:null})));var o=this.props,a=o.curve,s=o.marginLeft,f=o.marginTop,m=o.strokeDasharray,y=o.strokeStyle,v=o.strokeWidth,_=o.style,S=this._getAttributeFunctor("x"),E=this._getAttributeFunctor("y"),w=this._getAttributeValue("stroke")||this._getAttributeValue("color"),x=this._getAttributeValue("opacity"),O=Number.isFinite(x)?x:c.DEFAULT_OPACITY,I=this.props.nullAccessor||this.props.getNull,A=this._renderLine(i,S,E,a,I);return n.default.createElement("path",{d:A,className:(0,d.getCombinedClassName)("rv-xy-plot__series rv-xy-plot__series--line",r),transform:"translate(".concat(s,",").concat(f,")"),onMouseOver:this._seriesMouseOverHandler,onMouseOut:this._seriesMouseOutHandler,onClick:this._seriesClickHandler,onContextMenu:this._seriesRightClickHandler,style:g({opacity:O,strokeDasharray:T[y]||m,strokeWidth:v,stroke:w},_)})}}])&&v(t.prototype,r),i&&v(t,i),h}(h.default);w.displayName="LineSeries",w.propTypes=g(g({},h.default.propTypes),{},{strokeStyle:o().oneOf(Object.keys(T)),curve:o().oneOfType([o().string,o().func]),getNull:o().func}),w.defaultProps=g(g({},h.default.defaultProps),{},{strokeStyle:"solid",style:{},opacity:1,curve:null,className:"",getNull:function(){return!0}});const x=w},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>E});var n=r(341),i=r(782),o=r.n(i),a=r(2142),s=r(2238),l=r(2230),c=r(2240),u=r(2239),p=r(2131);function d(e){return d="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},d(e)}function h(){return h=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},h.apply(this,arguments)}function f(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function m(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?f(Object(r),!0).forEach(function(t){g(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):f(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function g(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function y(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function b(e,t){return b=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},b(e,t)}function v(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}();return function(){var r,n=_(e);if(t){var i=_(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return function(e,t){if(t&&("object"===d(t)||"function"==typeof t))return t;return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,r)}}function _(e){return _=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},_(e)}var S=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&b(e,t)}(p,e);var t,r,i,o=v(p);function p(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,p),o.apply(this,arguments)}return t=p,(r=[{key:"_renderCircle",value:function(e,t,r,i,o){var a=this,s=o.fill,l=o.opacity,c=o.size,p=o.stroke,d=o.x,h=o.y,f={r:c?c(e):u.DEFAULT_SIZE,cx:d(e),cy:h(e),style:m({opacity:l?l(e):u.DEFAULT_OPACITY,stroke:p&&p(e),fill:s&&s(e),strokeWidth:r||1},i),key:t,onClick:function(t){return a._valueClickHandler(e,t)},onContextMenu:function(t){return a._valueRightClickHandler(e,t)},onMouseOver:function(t){return a._valueMouseOverHandler(e,t)},onMouseOut:function(t){return a._valueMouseOutHandler(e,t)}};return n.default.createElement("circle",f)}},{key:"render",value:function(){var e=this,t=this.props,r=t.animation,i=t.className,o=t.data,u=t.marginLeft,d=t.marginTop,f=t.strokeWidth,m=t.style;this.props.nullAccessor&&(0,l.warning)("nullAccessor has been renamed to getNull",!0);var g=this.props.nullAccessor||this.props.getNull;if(!o)return null;if(r)return n.default.createElement(a.default,h({},this.props,{animatedProps:s.ANIMATED_SERIES_PROPS}),n.default.createElement(p,h({},this.props,{animation:null})));var y={fill:this._getAttributeFunctor("fill")||this._getAttributeFunctor("color"),opacity:this._getAttributeFunctor("op
41acity"),size:this._getAttributeFunctor("size"),stroke:this._getAttributeFunctor("stroke")||this._getAttributeFunctor("color"),x:this._getAttributeFunctor("x"),y:this._getAttributeFunctor("y")};return n.default.createElement("g",{className:(0,c.getCombinedClassName)("rv-xy-plot__series rv-xy-plot__series--mark",i),transform:"translate(".concat(u,",").concat(d,")")},o.map(function(t,r){return g(t)&&e._renderCircle(t,r,f,m,y)}))}}])&&y(t.prototype,r),i&&y(t,i),p}(p.default);S.displayName="MarkSeries",S.propTypes=m(m({},p.default.propTypes),{},{getNull:o().func,strokeWidth:o().number}),S.defaultProps={getNull:function(){return!0}};const E=S},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>f});var n=r(2131),i=r(2354),o=r(2355);function a(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function s(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function l(e){return l="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},l(e)}function c(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function u(e,t){return u=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},u(e,t)}function p(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}();return function(){var r,n=d(e);if(t){var i=d(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return function(e,t){if(t&&("object"===l(t)||"function"==typeof t))return t;return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,r)}}function d(e){return d=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},d(e)}var h=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&u(e,t)}(s,e);var t,r,n,a=p(s);function s(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,s),a.apply(this,arguments)}return t=s,n=[{key:"renderLayer",value:function(e,t){o.default.renderLayer(e,t),i.default.renderLayer(e,t)}},{key:"requiresSVG",get:function(){return!1}},{key:"isCanvas",get:function(){return!0}}],(r=[{key:"render",value:function(){return null}}])&&c(t.prototype,r),n&&c(t,n),s}(n.default);h.displayName="LineMarkSeriesCanvas",h.propTypes=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?a(Object(r),!0).forEach(function(t){s(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):a(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}({},n.default.propTypes);const f=h},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>m});var n=r(2144),i=r(2239),o=r(2172),a=r(2131);function s(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function l(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function c(e){return c="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},c(e)}function u(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}
41function p(e,t){return p=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},p(e,t)}function d(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}();return function(){var r,n=h(e);if(t){var i=h(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return function(e,t){if(t&&("object"===c(t)||"function"==typeof t))return t;return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,r)}}function h(e){return h=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},h(e)}var f=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&p(e,t)}(l,e);var t,r,a,s=d(l);function l(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l),s.apply(this,arguments)}return t=l,a=[{key:"renderLayer",value:function(e,t){var r=e.data,a=e.marginLeft,s=e.marginTop,l=(0,o.getAttributeFunctor)(e,"x"),c=(0,o.getAttributeFunctor)(e,"y"),u=(0,o.getAttributeFunctor)(e,"size")||function(){return i.DEFAULT_SIZE},p=(0,o.getAttributeFunctor)(e,"fill")||(0,o.getAttributeFunctor)(e,"color"),d=(0,o.getAttributeFunctor)(e,"stroke")||(0,o.getAttributeFunctor)(e,"color"),h=(0,o.getAttributeFunctor)(e,"opacity");r.forEach(function(e){var r=(0,n.rgb)(p(e)),o=(0,n.rgb)(d(e)),f=h(e)||i.DEFAULT_OPACITY;t.beginPath(),t.arc(l(e)+a,c(e)+s,u(e),0,2*Math.PI),t.fillStyle="rgba(".concat(r.r,", ").concat(r.g,", ").concat(r.b,", ").concat(f,")"),t.fill(),t.strokeStyle="rgba(".concat(o.r,", ").concat(o.g,", ").concat(o.b,", ").concat(f,")"),t.stroke()})}},{key:"requiresSVG",get:function(){return!1}},{key:"isCanvas",get:function(){return!0}}],(r=[{key:"render",value:function(){return null}}])&&u(t.prototype,r),a&&u(t,a),l}(a.default);f.displayName="MarkSeriesCanvas",f.propTypes=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?s(Object(r),!0).forEach(function(t){l(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):s(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}({},a.default.propTypes);const m=f},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>S});var n=r(782),i=r.n(n),o=r(2144),a=r(2242),s=r(2246),l=r(341),c=r(2239),u=r(2172),p=r(2131);function d(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function h(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?d(Object(r),!0).forEach(function(t){f(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):d(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function f(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function m(e){return m="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},m(e)}function g(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function y(e,t){return y=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},y(e,t)}function b(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}();return function(){var r,n=v(e);if(t){var i=v(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return function(e,t){if(t&&("object"===m(t)||"function"==typeof t))return t;return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,r)}}function v(e){return v=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},v(e)}var _=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&y(e,t)}(p,e);var t,r,n,i=b(p);function p(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,p),i.apply(this,arguments)}return t=p,n=[{key:"renderLayer",value:function(e,t){var r=e.curve,
41n=e.data,i=e.marginLeft,l=e.marginTop,p=e.strokeWidth,d=e.strokeDasharray;if(n&&0!==n.length){var h=(0,u.getAttributeFunctor)(e,"x"),f=(0,u.getAttributeFunctor)(e,"y"),m=(0,u.getAttributeValue)(e,"stroke")||(0,u.getAttributeValue)(e,"color"),g=(0,o.rgb)(m),y=(0,u.getAttributeValue)(e,"opacity"),b=Number.isFinite(y)?y:c.DEFAULT_OPACITY,v=s.default().x(function(e){return h(e)+i}).y(function(e){return f(e)+l});"string"==typeof r&&a[r]?v=v.curve(a[r]):"function"==typeof r&&(v=v.curve(r)),t.beginPath(),t.strokeStyle="rgba(".concat(g.r,", ").concat(g.g,", ").concat(g.b,", ").concat(b,")"),t.lineWidth=p,d&&t.setLineDash(d),v.context(t)(n),t.stroke(),t.closePath(),t.lineWidth=1,t.setLineDash([])}}},{key:"requiresSVG",get:function(){return!1}},{key:"isCanvas",get:function(){return!0}}],(r=[{key:"render",value:function(){return l.default.createElement("div",null)}}])&&g(t.prototype,r),n&&g(t,n),p}(p.default);_.displayName="LineSeriesCanvas",_.defaultProps=h(h({},p.default.defaultProps),{},{strokeWidth:2}),_.propTypes=h(h({},p.default.propTypes),{},{strokeWidth:i().number});const S=_},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>b});var n=r(341),i=r(2142),o=r(2238),a=r(2240),s=r(2131);function l(e){return l="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},l(e)}function c(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function u(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function p(){return p=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},p.apply(this,arguments)}function d(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function h(e,t){return h=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},h(e,t)}function f(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}();return function(){var r,n=m(e);if(t){var i=m(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return function(e,t){if(t&&("object"===l(t)||"function"==typeof t))return t;return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,r)}}function m(e){return m=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},m(e)}var g=function(e,t,r){return"".concat(e.reduce(function(e,n,i){return"".concat(e," ").concat(i?"L":"M").concat(t(n)," ").concat(r(n))},"")," Z")},y=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&h(e,t)}(y,e);var t,r,l,m=f(y);function y(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,y),m.apply(this,arguments)}return t=y,l=[{key:"propTypes",get:function(){return function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?c(Object(r),!0).forEach(function(t){u(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):c(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}({},s.default.propTypes)}}],(r=[{key:"render",value:function(){var e=this,t=this.props,r=t.animation,s=t.color,l=t.className,c=t.data,u=t.marginLeft,d=t.marginTop,h=t.style;if(!c)return null;if(r)return n.default.createElement(i.default,p({},this.props,{animatedProps:o.ANIMATED_SERIES_PROPS}),n.default.createElement(y,p({},this.props,{animation:null})));var f=this._getAttributeFunctor("x"),m=this._getAttributeFunctor("y");return n.default.createElement("path",{className:(0,a.getCombinedClassName)("rv-xy-plot__series rv-xy-plot__series--polygon",l),onMouseOver:function(t){return e._seriesMouseOverHandler(c,t)},onMouseOut:function(t){return e._seriesMouseOutHandler(c,t)},onClick:this._seriesClickHandler,onContextMenu:this._seriesRightClickHandler,fill:s||"#12939A",style:h,d:g(c,f,m),transform:"translate(".concat(u,",").concat(d,")")})}}])&&d(t.prototype,r),l&&d(t,l),y}(s.default);y.displayName="PolygonSeries";const b=y},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>h});var n=r(341),i=r(2131),o=r(2341);function a(e){return a="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},a(e)}function s(){return s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];
41for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},s.apply(this,arguments)}function l(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function c(e,t){return c=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},c(e,t)}function u(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}();return function(){var r,n=p(e);if(t){var i=p(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return function(e,t){if(t&&("object"===a(t)||"function"==typeof t))return t;return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,r)}}function p(e){return p=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},p(e)}var d=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&c(e,t)}(p,e);var t,r,i,a=u(p);function p(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,p),a.apply(this,arguments)}return t=p,i=[{key:"getParentConfig",value:function(e){return{isDomainAdjustmentNeeded:"x"===e,zeroBaseValue:"y"===e}}}],(r=[{key:"render",value:function(){return n.default.createElement(o.default,s({},this.props,{linePosAttr:"x",valuePosAttr:"y",lineSizeAttr:"width",valueSizeAttr:"height"}))}}])&&l(t.prototype,r),i&&l(t,i),p}(i.default);d.displayName="VerticalBarSeries";const h=d},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>f});var n=r(2131),i=r(2343);function o(e){return o="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},o(e)}function a(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function s(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?a(Object(r),!0).forEach(function(t){l(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):a(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function l(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function c(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function u(e,t){return u=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},u(e,t)}function p(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}();return function(){var r,n=d(e);if(t){var i=d(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return function(e,t){if(t&&("object"===o(t)||"function"==typeof t))return t;return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,r)}}function d(e){return d=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},d(e)}var h=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&u(e,t)}(a,e);var t,r,n,o=p(a);function a(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),o.apply(this,arguments)}return t=a,n=[{key:"getParentConfig",value:function(e){return{isDomainAdjustmentNeeded:"x"===e,zeroBaseValue:"y"===e}}},{key:"renderLayer",value:function(e,t){i.default.renderLayer(s(s({},e),{},{linePosAttr:"x",valuePosAttr:"y",lineSizeAttr:"width",valueSizeAttr:"height"}),t)}},{key:"requiresSVG",get:function(){return!1}},{key:"isCanvas",get:function(){return!0}}],(r=[{key:"render",value:function(){return null}}])&&c(t.prototype,r),n&&c(t,n),a}(n.default);h.displayName="HorizontalBarSeriesCanvas",h.propTypes=s({}
41,n.default.propTypes);const f=h},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>f});var n=r(341),i=r(782),o=r.n(i),a=r(2333);function s(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function l(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?s(Object(r),!0).forEach(function(t){c(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):s(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function c(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var u=r(2301).DIRECTION.VERTICAL,p=l(l({},a.default.propTypes),{},{direction:o().oneOf([u])}),d={direction:u,attr:"x"};function h(e){return n.default.createElement(a.default,e)}h.displayName="VerticalGridLines",h.propTypes=p,h.defaultProps=d,h.requiresSVG=!0;const f=h},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>h});var n=r(341),i=r(2131),o=r(2346);function a(e){return a="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},a(e)}function s(){return s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},s.apply(this,arguments)}function l(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function c(e,t){return c=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},c(e,t)}function u(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}();return function(){var r,n=p(e);if(t){var i=p(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return function(e,t){if(t&&("object"===a(t)||"function"==typeof t))return t;return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,r)}}function p(e){return p=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},p(e)}var d=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&c(e,t)}(p,e);var t,r,i,a=u(p);function p(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,p),a.apply(this,arguments)}return t=p,i=[{key:"getParentConfig",value:function(e){return{isDomainAdjustmentNeeded:!1,zeroBaseValue:"y"===e}}}],(r=[{key:"render",value:function(){return n.default.createElement(o.default,s({},this.props,{linePosAttr:"x",valuePosAttr:"y",lineSizeAttr:"width",valueSizeAttr:"height"}))}}])&&l(t.prototype,r),i&&l(t,i),p}(i.default);d.displayName="VerticalRectSeries";const h=d},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>f});var n=r(2131),i=r(2348);function o(e){return o="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},o(e)}function a(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function s(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?a(Object(r),!0).forEach(function(t){l(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):a(Object(r)).forEac
41h(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function l(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function c(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function u(e,t){return u=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},u(e,t)}function p(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}();return function(){var r,n=d(e);if(t){var i=d(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return function(e,t){if(t&&("object"===o(t)||"function"==typeof t))return t;return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,r)}}function d(e){return d=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},d(e)}var h=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&u(e,t)}(a,e);var t,r,n,o=p(a);function a(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),o.apply(this,arguments)}return t=a,n=[{key:"getParentConfig",value:function(e){return{isDomainAdjustmentNeeded:!1,zeroBaseValue:"y"===e}}},{key:"renderLayer",value:function(e,t){i.default.renderLayer(s(s({},e),{},{linePosAttr:"x",valuePosAttr:"y",lineSizeAttr:"width",valueSizeAttr:"height"}),t)}},{key:"requiresSVG",get:function(){return!1}},{key:"isCanvas",get:function(){return!0}}],(r=[{key:"render",value:function(){return null}}])&&c(t.prototype,r),n&&c(t,n),a}(n.default);h.displayName="HorizontalRectSeriesCanvas",h.propTypes=s({},n.default.propTypes);const f=h},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>f});var n=r(341),i=r(782),o=r.n(i),a=r(2132),s=r(2172),l=r(2240);function c(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function u(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?c(Object(r),!0).forEach(function(t){p(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):c(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function p(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var d=function(e){return e};function h(e){var t,r,i,o,c,p=e.className,d=e.extent,h=e.nodes,f=e.onBlur,m=e.onClick,g=e.onMouseUp,y=e.onMouseDown,b=e.onHover,v=e.polygonStyle,_=e.style,S=e.x,E=e.y,T=(0,a.voronoi)().x(S||(0,s.getAttributeFunctor)(e,"x")).y(E||(0,s.getAttributeFunctor)(e,"y")).extent(d||(r=(t=e).innerWidth,i=t.innerHeight,o=t.marginLeft,c=t.marginTop,[[o,c],[r+o,i+c]])).polygons(h),w=function(e){return function(t){t.preventDefault();var r=function(e){var t=e.nativeEvent,r=t.pageX,n=t.pageY,i=document.elementFromPoint(r,n);if(!i)return-1;var o=i.parentNode;return Array.prototype.indexOf.call(o.childNodes,i)}(t);if(r>-1&&r<T.length){var n=T[r];e(n.data)}}};return n.default.createElement("g",{className:(0,l.getCombinedClassName)(p,"rv-voronoi"),style:_,onTouchEnd:w(g),onTouchStart:w(y),onTouchMove:w(b),onTouchCancel:w(f)},T.map(function(e,t){return n.default.createElement("path",{className:"rv-voronoi__cell ".concat(e.data&&e.data.className||""),d:"M".concat(e.join("L"),"Z"),onClick:function(){return m(e.data)},onMouseUp:function(){return g(e.data)},onMouseDown:function(){return y(e.data)},onMouseOver:function(){return b(e.data)},onMouseOut:function(){return f(e.data)},fill:"none",style:u(u({pointerEvents:"all"},v),e.data&&e.data.style),key:t})}))}h.requiresSVG=!0,h.displayName="Voronoi",h.defaultProps={className:"",onBlur:d,onClick:d,onHover:d,onMouseDown:d,onMouseUp:d},h.propTypes={className:o().string,extent:o().arrayOf(o().arrayOf(o().number)),nodes:o().arrayOf(o().object).isRequired,onBlur:o().func,onClick:o().func,onHover:o().func,onMouseDown:o().func,onMouseUp:o().func,x:o().func,y:o().func};const f=h},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>S});var n=r(341),i=r(782),o=r.n(i),a=r(2142),s=r(2238),l=r(2240),c=r(2239),u=r(2131);function p(e){return p="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},p(e)}function d(){return d=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];
41for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},d.apply(this,arguments)}function h(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function f(e,t){return f=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},f(e,t)}function m(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}();return function(){var r,n=g(e);if(t){var i=g(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return function(e,t){if(t&&("object"===p(t)||"function"==typeof t))return t;return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,r)}}function g(e){return g=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},g(e)}function y(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function b(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?y(Object(r),!0).forEach(function(t){v(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):y(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function v(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var _=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&f(e,t)}(u,e);var t,r,i,o=m(u);function u(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,u),o.apply(this,arguments)}return t=u,(r=[{key:"render",value:function(){var e=this.props,t=e.animation,r=e.className,i=e.crossBarWidth,o=e.data,p=e.marginLeft,h=e.marginTop,f=e.strokeWidth,m=e.style;if(!o)return null;if(t)return n.default.createElement(a.default,d({},this.props,{animatedProps:s.ANIMATED_SERIES_PROPS}),n.default.createElement(u,d({},this.props,{animation:null})));var g={crossBarWidth:i,opacityFunctor:this._getAttributeFunctor("opacity"),sizeFunctor:this._getAttributeFunctor("size"),strokeFunctor:this._getAttributeFunctor("stroke")||this._getAttributeFunctor("color"),strokeWidth:f,style:m,xFunctor:this._getAttributeFunctor("x"),yFunctor:this._getAttributeFunctor("y"),valueClickHandler:this._valueClickHandler,valueRightClickHandler:this._valueRightClickHandler,valueMouseOverHandler:this._valueMouseOverHandler,valueMouseOutHandler:this._valueMouseOutHandler};return n.default.createElement("g",{className:(0,l.getCombinedClassName)("rv-xy-plot__series rv-xy-plot__series--whisker",r),transform:"translate(".concat(p,",").concat(h,")")},o.map(function(e){return function(t,r){var i=e.crossBarWidth,o=e.opacityFunctor,a=e.sizeFunctor,s=e.strokeFunctor,l=e.strokeWidth,u=e.style,p=e.valueClickHandler,d=e.valueMouseOutHandler,h=e.valueMouseOverHandler,f=e.valueRightClickHandler,m=e.xFunctor,g=e.yFunctor,y=a?a(t):0,v=m(t),_=g(t),S=m({x:t.x+t.xVariance/2}),E=m({x:t.x-t.xVariance/2}),T=g({y:t.y+t.yVariance/2}),w=g({y:t.y-t.yVariance/2}),x=S&&v+y<S,O=T&&_-y>T;if(!x&&!O)return null;var I=b({opacity:o?o(t):c.DEFAULT_OPACITY,stroke:s&&s(t),strokeWidth:l||1},u),A=i/2,k={x1:v+y,y1:_,x2:S,y2:_,style:I},R={x1:v-y,y1:_,x2:E,y2:_,style:I},C={x1:S,y1:_-A,x2:S,y2:_+A,style:I},P={x1:E,y1:_-A,x2:E,y2:_+A,style:I},D={x1:v,y1:_-y,x2:v,y2:T,style:I},M={x1:v,y1:_+y,x2:v,y2:w,style:I},N={x1:v-A,y1:T,x2:v+A,y2:T,style:I},L={x1:v-A,y1:w,x2:v+A,y2:w,style:I};return n.default.createElement("g",{className:"mark-whiskers",key:r,onClick:function(e){return p(t,e)},onContextMenu:function(e){return f(t,e)},onMouseOver:function(e){return h(t,e)},onMouseOut:function(e){return d(t,e)}},x?n.default.createElement("g",{className:"x-whiskers"},n.default.createElement("line",k),n.default.createElement("line",R),n.default.createElement("line",C),n.default.createElement("line",P)):null,O?n.default.createElement("g",{className:"y-whiskers"},n.default.createElement("line",D),n.default.createElement("line",M),n.default.createElement("line",N),n.default.createElement("line",L)):null)}}(g)))}}])&&h(t.prototype,r),i&&h(t,i),u}(u.default);_.displayName="WhiskerSeries",_.propTypes=b(b({}
41,u.default.propTypes),{},{strokeWidth:o().number}),_.defaultProps=b(b({},u.default.defaultProps),{},{crossBarWidth:6,size:0,strokeWidth:1});const S=_},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>R});var n=r(341),i=r(782),o=r.n(i),a=r(2365),s=r.n(a),l=r(2240),c=r(2172),u=r(2238),p=r(2424),d=r(2142),h=r(2239),f=r(2425);function m(e){return m="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},m(e)}function g(e){return function(e){if(Array.isArray(e))return y(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return y(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return y(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function y(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function b(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function v(e,t,r){return t&&b(e.prototype,t),r&&b(e,r),e}function _(e,t){return _=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},_(e,t)}function S(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}();return function(){var r,n=T(e);if(t){var i=T(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return function(e,t){if(t&&("object"===m(t)||"function"==typeof t))return t;return E(e)}(this,r)}}function E(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function T(e){return T=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},T(e)}function w(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function x(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?w(Object(r),!0).forEach(function(t){O(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):w(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function O(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var I=["x","y","radius","angle","color","fill","stroke","opacity","size"];function A(e){return e.map(function(e){return Array.isArray(e)?e.map(function(e){return x(x({},e),{},{parent:null})}):e})}var k=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&_(e,t)}(r,e);var t=S(r);function r(e){var n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,r),O(E(n=t.call(this,e)),"_clickHandler",function(e){var t=n.props.onClick;t&&t(e)}),O(E(n),"_doubleClickHandler",function(e){var t=n.props.onDoubleClick;t&&t(e)}),O(E(n),"_mouseDownHandler",function(e){var t=n.props,r=t.onMouseDown,i=t.children;r&&r(e),(0,u.getSeriesChildren)(i).forEach(function(t,r){var i=n["series".concat(r)];i&&i.onParentMouseDown&&i.onParentMouseDown(e)})}),O(E(n),"_mouseEnterHandler",function(e){var t=n.props,r=t.onMouseEnter,i=t.children;
41r&&r(e),(0,u.getSeriesChildren)(i).forEach(function(t,r){var i=n["series".concat(r)];i&&i.onParentMouseEnter&&i.onParentMouseEnter(e)})}),O(E(n),"_mouseLeaveHandler",function(e){var t=n.props,r=t.onMouseLeave,i=t.children;r&&r(e),(0,u.getSeriesChildren)(i).forEach(function(t,r){var i=n["series".concat(r)];i&&i.onParentMouseLeave&&i.onParentMouseLeave(e)})}),O(E(n),"_mouseMoveHandler",function(e){var t=n.props,r=t.onMouseMove,i=t.children;r&&r(e),(0,u.getSeriesChildren)(i).forEach(function(t,r){var i=n["series".concat(r)];i&&i.onParentMouseMove&&i.onParentMouseMove(e)})}),O(E(n),"_mouseUpHandler",function(e){var t=n.props,r=t.onMouseUp,i=t.children;r&&r(e),(0,u.getSeriesChildren)(i).forEach(function(t,r){var i=n["series".concat(r)];i&&i.onParentMouseUp&&i.onParentMouseUp(e)})}),O(E(n),"_touchCancelHandler",function(e){var t=n.props.onTouchCancel;t&&t(e)}),O(E(n),"_touchEndHandler",function(e){var t=n.props.onTouchEnd;t&&t(e)}),O(E(n),"_touchMoveHandler",function(e){var t=n.props,r=t.onTouchMove,i=t.children;r&&r(e),(0,u.getSeriesChildren)(i).forEach(function(t,r){var i=n["series".concat(r)];i&&i.onParentTouchMove&&i.onParentTouchMove(e)})}),O(E(n),"_touchStartHandler",function(e){var t=n.props,r=t.onTouchStart,i=t.children;r&&r(e),(0,u.getSeriesChildren)(i).forEach(function(t,r){var i=n["series".concat(r)];i&&i.onParentTouchStart&&i.onParentTouchStart(e)})});var i=e.stackBy,o=(0,u.getSeriesChildren)(e.children),a=(0,u.getStackedData)(o,i);return n.state={scaleMixins:n._getScaleMixins(a,e),data:a},n}return v(r,null,[{key:"defaultProps",get:function(){return{className:""}}},{key:"propTypes",get:function(){return{animation:d.AnimationPropType,className:o().string,dontCheckIfEmpty:o().bool,height:o().number.isRequired,margin:p.MarginPropType,onClick:o().func,onDoubleClick:o().func,onMouseDown:o().func,onMouseUp:o().func,onMouseEnter:o().func,onMouseLeave:o().func,onMouseMove:o().func,onTouchStart:o().func,onTouchMove:o().func,onTouchEnd:o().func,onTouchCancel:o().func,onWheel:o().func,stackBy:o().oneOf(I),style:o().object,width:o().number.isRequired}}}]),v(r,[{key:"UNSAFE_componentWillReceiveProps",value:function(e){var t=(0,u.getSeriesChildren)(e.children),r=(0,u.getStackedData)(t,e.stackBy),n=this.state.scaleMixins,i=this._getScaleMixins(r,e);(function(e,t,r){var n=x(x({},e),{},{_allData:r?A(e._allData):e._allData}),i=x(x({},t),{},{_allData:r?A(t._allData):t._allData});return s()(n,i)})(i,n,e.hasTreeStructure)||this.setState({scaleMixins:i,data:r})}},{key:"_getClonedChildComponents",value:function(){var e=this,t=this.props,r=this.props.animation,i=this.state,o=i.scaleMixins,a=i.data,s=(0,p.getInnerDimensions)(this.props,p.DEFAULT_MARGINS),l=n.default.Children.toArray(this.props.children),d=(0,u.getSeriesPropsFromChildren)(l),h=(0,c.getXYPlotValues)(t,l);return l.map(function(t,i){var l=null;if(d[i]){var c=d[i].seriesIndex;l={data:a[c]}}return n.default.cloneElement(t,x(x(x(x(x(x(x({},s),{},{animation:r},l&&t.type.prototype&&t.type.prototype.render?{ref:function(t){return e["series".concat(d[i].seriesIndex)]=t}}:{}),d[i]),o),t.props),h[i]),l))})}},{key:"_getDefaultScaleProps",value:function(e){var t=(0,p.getInnerDimensions)(e,p.DEFAULT_MARGINS),r=t.innerWidth,n=t.innerHeight,i=["color","fill","stroke"].reduce(function(t,r){var n="category"===e["".concat(r,"Type")]?h.EXTENDED_DISCRETE_COLOR_RANGE:h.CONTINUOUS_COLOR_RANGE;return x(x({},t),{},O({},"".concat(r,"Range"),n))},{});return x(x({xRange:[0,r],yRange:[n,0]},i),{},{opacityType:h.OPACITY_TYPE,sizeRange:h.SIZE_RANGE})}}
41,{key:"_getScaleMixins",value:function(e,t){var r,n=e.filter(function(e){return e}),i=(r=[]).concat.apply(r,g(n)),o=this._getDefaultScaleProps(t),a=(0,c.getOptionalScaleProps)(t),s=(0,c.extractScalePropsFromProps)(t,I),l=(0,c.getMissingScaleProps)(x(x(x({},o),a),s),i,I),p=(0,u.getSeriesChildren)(t.children),d={},h=new Set,f=new Set;return p.forEach(function(r,n){r&&e[n]&&I.forEach(function(e){var i=r.type.getParentConfig(e,r.props),o=i.isDomainAdjustmentNeeded,a=i.zeroBaseValue;if(o&&(h.add(e),f.add(n)),a){var s=t["".concat(e,"Domain")];d["".concat(e,"BaseValue")]=s?s[0]:0}})}),x(x(x(x(x({},o),d),s),l),{},{_allData:e,_adjustBy:Array.from(h),_adjustWhat:Array.from(f),_stackBy:t.stackBy})}},{key:"_isPlotEmpty",value:function(){var e=this.state.data;return!e||!e.length||!e.some(function(e){return e&&e.some(function(e){return e})})}},{key:"renderCanvasComponents",value:function(e){var t=e.filter(function(e){return e&&!e.type.requiresSVG&&e.type.isCanvas});if(0===t.length)return null;var r=t[0].props,i=r.marginLeft,o=r.marginTop,a=r.marginBottom,s=r.marginRight,l=r.innerHeight,c=r.innerWidth;return n.default.createElement(f.default,{innerHeight:l,innerWidth:c,marginLeft:i,marginTop:o,marginBottom:a,marginRight:s},t)}},{key:"render",value:function(){var e=this.props,t=e.className,r=e.dontCheckIfEmpty,i=e.style,o=e.width,a=e.height,s=e.onWheel;if(!r&&this._isPlotEmpty())return n.default.createElement("div",{className:(0,l.getCombinedClassName)("rv-xy-plot",t),style:x({width:"".concat(o,"px"),height:"".concat(a,"px")},this.props.style)});var c=this._getClonedChildComponents();return n.default.createElement("div",{style:{width:"".concat(o,"px"),height:"".concat(a,"px")},className:(0,l.getCombinedClassName)("rv-xy-plot",t)},n.default.createElement("svg",{className:"rv-xy-plot__inner",width:o,height:a,style:i,onClick:this._clickHandler,onDoubleClick:this._doubleClickHandler,onMouseDown:this._mouseDownHandler,onMouseUp:this._mouseUpHandler,onMouseMove:this._mouseMoveHandler,onMouseLeave:this._mouseLeaveHandler,onMouseEnter:this._mouseEnterHandler,onTouchStart:this._mouseDownHandler,onTouchMove:this._touchMoveHandler,onTouchEnd:this._touchEndHandler,onTouchCancel:this._touchCancelHandler,onWheel:s},c.filter(function(e){return e&&e.type.requiresSVG})),this.renderCanvasComponents(c),c.filter(function(e){return e&&!e.type.requiresSVG&&!e.type.isCanvas}))}}]),r}(n.default.Component);k.displayName="XYPlot";const R=k},(e,t,r)=>{var n=r(2366),i=r(2369),o=r(2406),a=r(2416),s=r(2417),l=r(2423),c=Date.prototype.getTime;function u(e,t,r){var h=r||{};return!!(h.strict?o(e,t):e===t)||(!e||!t||"object"!=typeof e&&"object"!=typeof t?h.strict?o(e,t):e==t:function(e,t,r){var o,h;if(typeof e!=typeof t)return!1;if(p(e)||p(t))return!1;if(e.prototype!==t.prototype)return!1;if(i(e)!==i(t))return!1;var f=a(e),m=a(t);if(f!==m)return!1;if(f||m)return e.source===t.source&&s(e)===s(t);if(l(e)&&l(t))return c.call(e)===c.call(t);var g=d(e),y=d(t);if(g!==y)return!1;if(g||y){if(e.length!==t.length)return!1;for(o=0;o<e.length;o++)if(e[o]!==t[o])return!1;return!0}if(typeof e!=typeof t)return!1;try{var b=n(e),v=n(t)}catch(e){return!1}if(b.length!==v.length)return!1;for(b.sort(),v.sort(),o=b.length-1;o>=0;o--)if(b[o]!=v[o])return!1;for(o=b.length-1;o>=0;o--)if(!u(e[h=b[o]],t[h],r))return!1;return!0}(e,t,h))}function p(e){return null==e}function d(e){return!(!e||"object"!=typeof e||"number"!=typeof e.length)&&("function"==typeof e.copy&&"function"==typeof e.slice&&!(e.length>0&&"number"!=typeof e[0]))}e.exports=u},(e,t,r)=>{"use strict";var n=Array.prototype.slice,i=r(2367),o=Object.keys,a=o?function(e){return o(e)}:r(2368),s=Object.keys;a.shim=function(){if(Object.keys){var e=function(){var e=Object.keys(arguments);return e&&e.length===arguments.length}(1,2);e||(Object.keys=function(e){return i(e)?s(n.call(e)):s(e)})}else Object.keys=a;return Object.keys||a},e.exports=a},e=>{"use strict";var t=Object.prototype.toString;e.exports=function(e){var r=t.call(e),n="[object Arguments]"===r;return n||(n="[object Array]"!==r&&null!==e&&"object"==typeof e&&"number"==typeof e.length&&e.length>=0&&"[object Function]"===t.call(e.callee)),n}},(e,t,r)=>{"use strict";var n;if(!Object.keys){var i=Object.prototype.hasOwnProperty,o=Object.prototype.toString,a=r(2367),s=Object.prototype.propertyIsEnumerable,l=!s.call({toString:null},"toString"),c=s.call(function(){}
vendor: 4,914 bytes, line 41
41,"prototype"),u=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],p=function(e){var t=e.constructor;return t&&t.prototype===e},d={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},h=function(){if("undefined"==typeof window)return!1;for(var e in window)try{if(!d["$"+e]&&i.call(window,e)&&null!==window[e]&&"object"==typeof window[e])try{p(window[e])}catch(e){return!0}}catch(e){return!0}return!1}();n=function(e){var t=null!==e&&"object"==typeof e,r="[object Function]"===o.call(e),n=a(e),s=t&&"[object String]"===o.call(e),d=[];if(!t&&!r&&!n)throw new TypeError("Object.keys called on a non-object");var f=c&&r;if(s&&e.length>0&&!i.call(e,0))for(var m=0;m<e.length;++m)d.push(String(m));if(n&&e.length>0)for(var g=0;g<e.length;++g)d.push(String(g));else for(var y in e)f&&"prototype"===y||!i.call(e,y)||d.push(String(y));if(l)for(var b=function(e){if("undefined"==typeof window||!h)return p(e);try{return p(e)}catch(e){return!1}}(e),v=0;v<u.length;++v)b&&"constructor"===u[v]||!i.call(e,u[v])||d.push(u[v]);return d}}e.exports=n},(e,t,r)=>{"use strict";var n=r(2370)(),i=r(2372)("Object.prototype.toString"),o=function(e){return!(n&&e&&"object"==typeof e&&Symbol.toStringTag in e)&&"[object Arguments]"===i(e)},a=function(e){return!!o(e)||null!==e&&"object"==typeof e&&"length"in e&&"number"==typeof e.length&&e.length>=0&&"[object Array]"!==i(e)&&"callee"in e&&"[object Function]"===i(e.callee)},s=function(){return o(arguments)}();o.isLegacyArguments=a,e.exports=s?o:a},(e,t,r)=>{"use strict";var n=r(2371);e.exports=function(){return n()&&!!Symbol.toStringTag}},e=>{"use strict";e.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),r=Object(t);if("string"==typeof t)return!1;if("[object Symbol]"!==Object.prototype.toString.call(t))return!1;if("[object Symbol]"!==Object.prototype.toString.call(r))return!1;for(var n in e[t]=42,e)return!1;if("function"==typeof Object.keys&&0!==Object.keys(e).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var i=Object.getOwnPropertySymbols(e);if(1!==i.length||i[0]!==t)return!1;if(!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var o=Object.getOwnPropertyDescriptor(e,t);if(42!==o.value||!0!==o.enumerable)return!1}return!0}},(e,t,r)=>{"use strict";var n=r(2373),i=r(2398),o=i([n("%String.prototype.indexOf%")]);e.exports=function(e,t){var r=n(e,!!t);return"function"==typeof r&&o(e,".prototype.")>-1?i([r]):r}},(e,t,r)=>{"use strict";var n,i=r(2374),o=r(2375),a=r(2376),s=r(2377),l=r(2378),c=r(2379),u=r(2380),p=r(2381),d=r(2382),h=r(2383),f=r(2384),m=r(2385),g=r(2386),y=r(2387),b=r(2388),v=Function,_=function(e){try{return v('"use strict"; return ('+e+").constructor;")()}catch(e){}},S=r(2390),E=r(2392),T=function(){throw new u},w=S?function(){try{return T}catch(e){try{return S(arguments,"callee").get}catch(e){return T}}}():T,x=r(2393)(),O=r(2394),I=r(2396),A=r(2395),k=r(2403),R=r(2401),C={},P="undefined"!=typeof Uint8Array&&O?O(Uint8Array):n,D={__proto__:null,"%AggregateError%":"undefined"==typeof AggregateError?n:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?n:ArrayBuffer,"%ArrayIteratorPrototype%":x&&O?O([][Symbol.iterator]()):n,"%AsyncFromSyncIteratorPrototype%":n,"%AsyncFunction%":C,"%AsyncGenerator%":C,"%AsyncGeneratorFunction%":C,"%AsyncIteratorPrototype%":C,"%Atomics%":"undefined"==typeof Atomics?n:Atomics,"%BigInt%":"undefined"==typeof BigInt?n:BigInt,"%BigInt64Array%":"undefined"==typeof BigInt64Array?n:BigInt64Array,"%BigUint64Array%":"undefined"==typeof BigUint64Array?n:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?n:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":o,"%eval%":eval,"%EvalError%":a,"%Float16Array%":"undefined"==typeof Float16Array?n:Float16Array,"%Float32Array%":"undefined"==typeof Float32Array?n:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?n:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?n:FinalizationRegistry,"%Function%":v,"%GeneratorFunction%":C,"%Int8Array%":"undefined"==typeof Int8Array?n:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?n:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?n:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%
41IteratorPrototype%":x&&O?O(O([][Symbol.iterator]())):n,"%JSON%":"object"==typeof JSON?JSON:n,"%Map%":"undefined"==typeof Map?n:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&x&&O?O((new Map)[Symbol.iterator]()):n,"%Math%":Math,"%Number%":Number,"%Object%":i,"%Object.getOwnPropertyDescriptor%":S,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?n:Promise,"%Proxy%":"undefined"==typeof Proxy?n:Proxy,"%RangeError%":s,"%ReferenceError%":l,"%Reflect%":"undefined"==typeof Reflect?n:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?n:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&x&&O?O((new Set)[Symbol.iterator]()):n,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?n:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":x&&O?O(""[Symbol.iterator]()):n,"%Symbol%":x?Symbol:n,"%SyntaxError%":c,"%ThrowTypeError%":w,"%TypedArray%":P,"%TypeError%":u,"%Uint8Array%":"undefined"==typeof Uint8Array?n:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?n:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?n:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?n:Uint32Array,"%URIError%":p,"%WeakMap%":"undefined"==typeof WeakMap?n:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?n:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?n:WeakSet,"%Function.prototype.call%":R,"%Function.prototype.apply%":k,"%Object.defineProperty%":E,"%Object.getPrototypeOf%":I,"%Math.abs%":d,"%Math.floor%":h,"%Math.max%":f,"%Math.min%":m,"%Math.pow%":g,"%Math.round%":y,"%Math.sign%":b,"%Reflect.getPrototypeOf%":A};if(O)try{null.error}catch(e){var M=O(O(e));D["%Error.prototype%"]=M}var N=function e(t){var r;if("%AsyncFunction%"===t)r=_("async function () {}");else if("%GeneratorFunction%"===t)r=_("function* () {}");else if("%AsyncGeneratorFunction%"===t)r=_("async function* () {}");else if("%AsyncGenerator%"===t){var n=e("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if("%AsyncIteratorPrototype%"===t){var i=e("%AsyncGenerator%");i&&O&&(r=O(i.prototype))}return D[t]=r,r},L={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]}
vendor: 4,469 bytes, line 41
41,F=r(2399),B=r(2405),U=F.call(R,Array.prototype.concat),j=F.call(k,Array.prototype.splice),H=F.call(R,String.prototype.replace),V=F.call(R,String.prototype.slice),z=F.call(R,RegExp.prototype.exec),G=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,q=/\\(\\)?/g,$=function(e,t){var r,n=e;if(B(L,n)&&(n="%"+(r=L[n])[0]+"%"),B(D,n)){var i=D[n];if(i===C&&(i=N(n)),void 0===i&&!t)throw new u("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:r,name:n,value:i}}throw new c("intrinsic "+e+" does not exist!")};e.exports=function(e,t){if("string"!=typeof e||0===e.length)throw new u("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof t)throw new u('"allowMissing" argument must be a boolean');if(null===z(/^%?[^%]*%?$/,e))throw new c("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var r=function(e){var t=V(e,0,1),r=V(e,-1);if("%"===t&&"%"!==r)throw new c("invalid intrinsic syntax, expected closing `%`");if("%"===r&&"%"!==t)throw new c("invalid intrinsic syntax, expected opening `%`");var n=[];return H(e,G,function(e,t,r,i){n[n.length]=r?H(i,q,"$1"):t||e}),n}(e),n=r.length>0?r[0]:"",i=$("%"+n+"%",t),o=i.name,a=i.value,s=!1,l=i.alias;l&&(n=l[0],j(r,U([0,1],l)));for(var p=1,d=!0;p<r.length;p+=1){var h=r[p],f=V(h,0,1),m=V(h,-1);if(('"'===f||"'"===f||"`"===f||'"'===m||"'"===m||"`"===m)&&f!==m)throw new c("property names with quotes must have matching quotes");if("constructor"!==h&&d||(s=!0),B(D,o="%"+(n+="."+h)+"%"))a=D[o];else if(null!=a){if(!(h in a)){if(!t)throw new u("base intrinsic for "+e+" exists, but the property is not available.");return}if(S&&p+1>=r.length){var g=S(a,h);a=(d=!!g)&&"get"in g&&!("originalValue"in g.get)?g.get:a[h]}else d=B(a,h),a=a[h];d&&!s&&(D[o]=a)}}return a}},e=>{"use strict";e.exports=Object},e=>{"use strict";e.exports=Error},e=>{"use strict";e.exports=EvalError},e=>{"use strict";e.exports=RangeError},e=>{"use strict";e.exports=ReferenceError},e=>{"use strict";e.exports=SyntaxError},e=>{"use strict";e.exports=TypeError},e=>{"use strict";e.exports=URIError},e=>{"use strict";e.exports=Math.abs},e=>{"use strict";e.exports=Math.floor},e=>{"use strict";e.exports=Math.max},e=>{"use strict";e.exports=Math.min},e=>{"use strict";e.exports=Math.pow},e=>{"use strict";e.exports=Math.round},(e,t,r)=>{"use strict";var n=r(2389);e.exports=function(e){return n(e)||0===e?e:e<0?-1:1}},e=>{"use strict";e.exports=Number.isNaN||function(e){return e!=e}},(e,t,r)=>{"use strict";var n=r(2391);if(n)try{n([],"length")}catch(e){n=null}e.exports=n},e=>{"use strict";e.exports=Object.getOwnPropertyDescriptor},e=>{"use strict";var t=Object.defineProperty||!1;if(t)try{t({},"a",{value:1})}catch(e){t=!1}e.exports=t},(e,t,r)=>{"use strict";var n="undefined"!=typeof Symbol&&Symbol,i=r(2371);e.exports=function(){return"function"==typeof n&&("function"==typeof Symbol&&("symbol"==typeof n("foo")&&("symbol"==typeof Symbol("bar")&&i())))}},(e,t,r)=>{"use strict";var n=r(2395),i=r(2396),o=r(2397);e.exports=n?function(e){return n(e)}:i?function(e){if(!e||"object"!=typeof e&&"function"!=typeof e)throw new TypeError("getProto: not an object");return i(e)}:o?function(e){return o(e)}:null},e=>{"use strict";e.exports="undefined"!=typeof Reflect&&Reflect.getPrototypeOf||null},(e,t,r)=>{"use strict";var n=r(2374);e.exports=n.getPrototypeOf||null},(e,t,r)=>{"use strict";var n,i=r(2398),o=r(2390);try{n=[].__proto__===Array.prototype}catch(e){if(!e||"object"!=typeof e||!("code"in e)||"ERR_PROTO_ACCESS"!==e.code)throw e}var a=!!n&&o&&o(Object.prototype,"__proto__"),s=Object,l=s.getPrototypeOf;e.exports=a&&"function"==typeof a.get?i([a.get]):"function"==typeof l&&function(e){return l(null==e?e:s(e))}},(e,t,r)=>{"use strict";var n=r(2399),i=r(2380),o=r(2401),a=r(2402);e.exports=function(e){if(e.length<1||"function"!=typeof e[0])throw new i("a function is required");return a(n,o,e)}},(e,t,r)=>{"use strict";var n=r(2400);e.exports=Function.prototype.bind||n},e=>{"use strict";var t=Object.prototype.toString,r=Math.max,n=function(e,t){for(var r=[],n=0;n<e.length;n+=1)r[n]=e[n];for(var i=0;i<t.length;i+=1)r[i+e.length]=t[i];return r};e.exports=function(e){var i=this;if("function"!=typeof i||"[object Function]"!==t.apply(i))throw new TypeError("Function.prototype.bind called on incompatible "+i);for(var o,a=function(e,t){for(var r=[],n=t||0,i=0;n<e.length;n+=1,i+=1)r[i]=e[n];return r}
vendor: 4,775 bytes, line 41
41(arguments,1),s=r(0,i.length-a.length),l=[],c=0;c<s;c++)l[c]="$"+c;if(o=Function("binder","return function ("+function(e,t){for(var r="",n=0;n<e.length;n+=1)r+=e[n],n+1<e.length&&(r+=t);return r}(l,",")+"){ return binder.apply(this,arguments); }")(function(){if(this instanceof o){var t=i.apply(this,n(a,arguments));return Object(t)===t?t:this}return i.apply(e,n(a,arguments))}),i.prototype){var u=function(){};u.prototype=i.prototype,o.prototype=new u,u.prototype=null}return o}},e=>{"use strict";e.exports=Function.prototype.call},(e,t,r)=>{"use strict";var n=r(2399),i=r(2403),o=r(2401),a=r(2404);e.exports=a||n.call(o,i)},e=>{"use strict";e.exports=Function.prototype.apply},e=>{"use strict";e.exports="undefined"!=typeof Reflect&&Reflect&&Reflect.apply},(e,t,r)=>{"use strict";var n=Function.prototype.call,i=Object.prototype.hasOwnProperty,o=r(2399);e.exports=o.call(n,i)},(e,t,r)=>{"use strict";var n=r(2407),i=r(2410),o=r(2413),a=r(2414),s=r(2415),l=i(a(),Object);n(l,{getPolyfill:a,implementation:o,shim:s}),e.exports=l},(e,t,r)=>{"use strict";var n=r(2366),i="function"==typeof Symbol&&"symbol"==typeof Symbol("foo"),o=Object.prototype.toString,a=Array.prototype.concat,s=r(2408),l=r(2409)(),c=function(e,t,r,n){if(t in e)if(!0===n){if(e[t]===r)return}else if("function"!=typeof(i=n)||"[object Function]"!==o.call(i)||!n())return;var i;l?s(e,t,r,!0):s(e,t,r)},u=function(e,t){var r=arguments.length>2?arguments[2]:{},o=n(t);i&&(o=a.call(o,Object.getOwnPropertySymbols(t)));for(var s=0;s<o.length;s+=1)c(e,o[s],t[o[s]],r[o[s]])};u.supportsDescriptors=!!l,e.exports=u},(e,t,r)=>{"use strict";var n=r(2392),i=r(2379),o=r(2380),a=r(2390);e.exports=function(e,t,r){if(!e||"object"!=typeof e&&"function"!=typeof e)throw new o("`obj` must be an object or a function`");if("string"!=typeof t&&"symbol"!=typeof t)throw new o("`property` must be a string or a symbol`");if(arguments.length>3&&"boolean"!=typeof arguments[3]&&null!==arguments[3])throw new o("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&"boolean"!=typeof arguments[4]&&null!==arguments[4])throw new o("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&"boolean"!=typeof arguments[5]&&null!==arguments[5])throw new o("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&"boolean"!=typeof arguments[6])throw new o("`loose`, if provided, must be a boolean");var s=arguments.length>3?arguments[3]:null,l=arguments.length>4?arguments[4]:null,c=arguments.length>5?arguments[5]:null,u=arguments.length>6&&arguments[6],p=!!a&&a(e,t);if(n)n(e,t,{configurable:null===c&&p?p.configurable:!c,enumerable:null===s&&p?p.enumerable:!s,value:r,writable:null===l&&p?p.writable:!l});else{if(!u&&(s||l||c))throw new i("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");e[t]=r}}},(e,t,r)=>{"use strict";var n=r(2392),i=function(){return!!n};i.hasArrayLengthDefineBug=function(){if(!n)return null;try{return 1!==n([],"length",{value:1}).length}catch(e){return!0}},e.exports=i},(e,t,r)=>{"use strict";var n=r(2411),i=r(2392),o=r(2398),a=r(2412);e.exports=function(e){var t=o(arguments),r=1+e.length-(arguments.length-1);return n(t,r>0?r:0,!0)},i?i(e.exports,"apply",{value:a}):e.exports.apply=a},(e,t,r)=>{"use strict";var n=r(2373),i=r(2408),o=r(2409)(),a=r(2390),s=r(2380),l=n("%Math.floor%");e.exports=function(e,t){if("function"!=typeof e)throw new s("`fn` is not a function");if("number"!=typeof t||t<0||t>4294967295||l(t)!==t)throw new s("`length` must be a positive 32-bit integer");var r=arguments.length>2&&!!arguments[2],n=!0,c=!0;if("length"in e&&a){var u=a(e,"length");u&&!u.configurable&&(n=!1),u&&!u.writable&&(c=!1)}return(n||c||!r)&&(o?i(e,"length",t,!0,!0):i(e,"length",t)),e}},(e,t,r)=>{"use strict";var n=r(2399),i=r(2403),o=r(2402);e.exports=function(){return o(n,i,arguments)}},e=>{"use strict";var t=function(e){return e!=e};e.exports=function(e,r){return 0===e&&0===r?1/e==1/r:e===r||!(!t(e)||!t(r))}},(e,t,r)=>{"use strict";var n=r(2413);e.exports=function(){return"function"==typeof Object.is?Object.is:n}},(e,t,r)=>{"use strict";var n=r(2414),i=r(2407);e.exports=function(){var e=n();return i(Object,{is:e},{is:function(){return Object.is!==e}}),e}},(e,t,r)=>{"use strict";var n,i=r(2372),o=r(2370)(),a=r(2405),s=r(2390);if(o){var l=i("RegExp.prototype.exec"),c={},u=function(){throw c},p={toString:u,valueOf:u};"symbol"==typeof Symbol.toPrimitive&&(p[Symbol.toPrimitive]=u),n=function(e){if(!e||"object"!=typeof e)return!1;var t=s(e,"lastIndex");if(!(t&&a(t,"value")))return!1;try{l(e,p)}catch(e){return e===c}}}else{var d=i("Object.prototype.toString");n=function(e){return!(!e||"object"!=typeof e&&"function"!=typeof e)&&"[object RegExp]"===d(e)}}
41e.exports=n},(e,t,r)=>{"use strict";var n=r(2407),i=r(2410),o=r(2418),a=r(2421),s=r(2422),l=i(a());n(l,{getPolyfill:a,implementation:o,shim:s}),e.exports=l},(e,t,r)=>{"use strict";var n=r(2419),i=r(2380),o=Object;e.exports=n(function(){if(null==this||this!==o(this))throw new i("RegExp.prototype.flags getter called on non-object");var e="";return this.hasIndices&&(e+="d"),this.global&&(e+="g"),this.ignoreCase&&(e+="i"),this.multiline&&(e+="m"),this.dotAll&&(e+="s"),this.unicode&&(e+="u"),this.unicodeSets&&(e+="v"),this.sticky&&(e+="y"),e},"get flags",!0)},(e,t,r)=>{"use strict";var n=r(2408),i=r(2409)(),o=r(2420).functionsHaveConfigurableNames(),a=r(2380);e.exports=function(e,t){if("function"!=typeof e)throw new a("`fn` is not a function");return arguments.length>2&&!!arguments[2]&&!o||(i?n(e,"name",t,!0,!0):n(e,"name",t)),e}},e=>{"use strict";var t=function(){return"string"==typeof function(){}.name},r=Object.getOwnPropertyDescriptor;if(r)try{r([],"length")}catch(e){r=null}t.functionsHaveConfigurableNames=function(){if(!t()||!r)return!1;var e=r(function(){},"name");return!!e&&!!e.configurable};var n=Function.prototype.bind;t.boundFunctionsHaveNames=function(){return t()&&"function"==typeof n&&""!==function(){}.bind().name},e.exports=t},(e,t,r)=>{"use strict";var n=r(2418),i=r(2407).supportsDescriptors,o=Object.getOwnPropertyDescriptor;e.exports=function(){if(i&&"gim"===/a/gim.flags){var e=o(RegExp.prototype,"flags");if(e&&"function"==typeof e.get&&"dotAll"in RegExp.prototype&&"hasIndices"in RegExp.prototype){var t="",r={};if(Object.defineProperty(r,"hasIndices",{get:function(){t+="d"}}),Object.defineProperty(r,"sticky",{get:function(){t+="y"}}),e.get.call(r),"dy"===t)return e.get}}return n}},(e,t,r)=>{"use strict";var n=r(2407).supportsDescriptors,i=r(2421),o=r(2390),a=Object.defineProperty,s=r(2375),l=r(2394),c=/a/;e.exports=function(){if(!n||!l)throw new s("RegExp.prototype.flags requires a true ES5 environment that supports property descriptors");var e=i(),t=l(c),r=o(t,"flags");return r&&r.get===e||a(t,"flags",{configurable:!0,enumerable:!1,get:e}),e}},(e,t,r)=>{"use strict";var n=r(2372),i=n("Date.prototype.getDay"),o=n("Object.prototype.toString"),a=r(2370)();e.exports=function(e){return"object"==typeof e&&null!==e&&(a?function(e){try{return i(e),!0}catch(e){return!1}}(e):"[object Date]"===o(e))}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{DEFAULT_MARGINS:()=>p,MarginPropType:()=>u,getInnerDimensions:()=>l,getRadialLayoutMargin:()=>c});var n=r(782),i=r.n(n);function o(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function a(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?o(Object(r),!0).forEach(function(t){s(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):o(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function s(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function l(e,t){var r=e.margin,n=e.width,i=e.height,o=a(a({},t),"number"==typeof r?{left:r,right:r,top:r,bottom:r}:r),s=o.left,l=void 0===s?0:s,c=o.top,u=void 0===c?0:c,p=o.right,d=void 0===p?0:p,h=o.bottom,f=void 0===h?0:h;return{marginLeft:l,marginTop:u,marginRight:d,marginBottom:f,innerHeight:i-f-u,innerWidth:n-l-d}}function c(e,t,r){var n=e/2-r,i=t/2-r;return{bottom:i,left:n,right:n,top:i}}var u=i().oneOfType([i().shape({left:i().number,top:i().number,right:i().number,bottom:i().number}),i().number]),p={left:40,right:10,top:10,bottom:40}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>v});var n=r(341),i=r(782),o=r.n(i),a=r(2143),s=r(2142),l=r(2238);function c(e){return c="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},c(e)}function u(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}
41function p(e,t){return p=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},p(e,t)}function d(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}();return function(){var r,n=h(e);if(t){var i=h(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return function(e,t){if(t&&("object"===c(t)||"function"==typeof t))return t;return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,r)}}function h(e){return h=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},h(e)}function f(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function m(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?f(Object(r),!0).forEach(function(t){g(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):f(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function g(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function y(e,t,r,n,i){e.clearRect(0,0,r,t),n.forEach(function(t){var r=t.interpolator,n=t.newProps,o=t.animation?r?r(i/30):r:function(){return{}};t.renderLayer(m(m({},n),o),e)})}var b=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&p(e,t)}(c,e);var t,r,i,o=d(c);function c(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,c),o.apply(this,arguments)}return t=c,i=[{key:"defaultProps",get:function(){return{pixelRatio:window&&window.devicePixelRatio||1}}}],(r=[{key:"componentDidMount",value:function(){var e=this.canvas.getContext("2d");if(e){var t=this.props.pixelRatio;e&&(e.scale(t,t),this.drawChildren(null,this.props,e))}}},{key:"componentDidUpdate",value:function(e){this.drawChildren(e,this.props,this.canvas.getContext("2d"))}},{key:"drawChildren",value:function(e,t,r){var n=t.children,i=t.innerHeight,o=t.innerWidth,c=t.marginBottom,u=t.marginLeft,p=t.marginRight,d=t.marginTop;if(r){var h,f,g=n.find(function(e){return e.props.animation}),b=i+d+c,v=o+u+p,_=(h=t.children,f=e?e.children:[],h.map(function(e,t){var r=f[t]?f[t].props:{},n=e.props,i=(0,s.extractAnimatedPropValues)(m(m({},r),{},{animatedProps:l.ANIMATED_SERIES_PROPS})),o=n?(0,s.extractAnimatedPropValues)(m(m({},n),{},{animatedProps:l.ANIMATED_SERIES_PROPS})):null,c=(0,a.default)(i,o);return{renderLayer:e.type.renderLayer,newProps:e.props,animation:e.props.animation,interpolator:c}}));g?function(e,t,r,n){var i=0,o=setInterval(function(){e?(y(e,t,r,n,i),i>30&&clearInterval(o),i+=1):clearInterval(o)},1)}(r,b,v,_):y(r,b,v,_)}}},{key:"render",value:function(){var e=this,t=this.props,r=t.innerHeight,i=t.innerWidth,o=t.marginBottom,a=t.marginLeft,s=t.marginRight,l=t.marginTop,c=t.pixelRatio,u=r+l+o,p=i+a+s;return n.default.createElement("div",{style:{left:0,top:0},className:"rv-xy-canvas"},n.default.createElement("canvas",{className:"rv-xy-canvas-element",height:u*c,width:p*c,style:{height:"".concat(u,"px"),width:"".concat(p,"px")},ref:function(t){return e.canvas=t}}),this.props.children)}}])&&u(t.prototype,r),i&&u(t,i),c}(n.Component);b.displayName="CanvasWrapper",b.propTypes={marginBottom:o().number.isRequired,marginLeft:o().number.isRequired,marginRight:o().number.isRequired,marginTop:o().number.isRequired,innerHeight:o().number.isRequired,innerWidth:o().number.isRequired,pixelRatio:o().number.isRequired};const v=b},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>g});var n=r(341),i=r(782),o=r.n(i),a=r(2301),s=r(2427);function l(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function c(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};
41t%2?l(Object(r),!0).forEach(function(t){u(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):l(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function u(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var p=a.ORIENTATION.TOP,d=a.ORIENTATION.BOTTOM,h=c(c({},s.default.propTypes),{},{orientation:o().oneOf([p,d])}),f={orientation:d,attr:"x",attrAxis:"y"};function m(e){return n.default.createElement(s.default,e)}m.displayName="XAxis",m.propTypes=h,m.defaultProps=f,m.requiresSVG=!0;const g=m},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>R});var n=r(341),i=r(782),o=r.n(i),a=r(2142),s=r(2301),l=r(2172),c=r(2240),u=r(2428),p=r(2429),d=r(2430);function h(e){return h="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},h(e)}function f(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function m(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?f(Object(r),!0).forEach(function(t){g(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):f(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function g(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function y(){return y=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},y.apply(this,arguments)}function b(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function v(e,t){return v=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},v(e,t)}function _(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}();return function(){var r,n=S(e);if(t){var i=S(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return function(e,t){if(t&&("object"===h(t)||"function"==typeof t))return t;return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,r)}}function S(e){return S=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},S(e)}var E=["xRange","yRange","xDomain","yDomain","width","height","marginLeft","marginTop","marginRight","marginBottom","tickSize","tickTotal","tickSizeInner","tickSizeOuter"],T=s.ORIENTATION.LEFT,w=s.ORIENTATION.RIGHT,x=s.ORIENTATION.TOP,O=s.ORIENTATION.BOTTOM,I={orientation:o().oneOf([T,w,x,O]),attr:o().string.isRequired,attrAxis:o().string,width:o().number,height:o().number,top:o().number,left:o().number,title:o().string,style:o().object,className:o().string,hideTicks:o().bool,hideLine:o().bool,on0:o().bool,tickLabelAngle:o().number,tickSize:o().number,tickSizeInner:o().number,tickSizeOuter:o().number,tickPadding:o().number,tickValues:o().arrayOf(o().oneOfType([o().number,o().string])),tickFormat:o().func,tickTotal:o().number,marginTop:o().number,marginBottom:o().number,marginLeft:o().number,marginRight:o().number,innerWidth:o().number,innerHeight:o().number},A={className:"",on0:!1,style:{},tickSize:6,tickPadding:8,orientation:O},k=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&v(e,t)}(h,e);var t,r,i,o=_(h);function h(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,h),o.apply(this,arguments)}return t=h,(r=[{key:"_getDefaultAxisProps",value:function(){var e=this.props,t=e.innerWidth,r=e.innerHe
41ight,n=e.marginTop,i=e.marginBottom,o=e.marginLeft,a=e.marginRight,l=e.orientation;return l===O?{tickTotal:(0,s.getTicksTotalFromSize)(t),top:r+n,left:o,width:t,height:i}:l===x?{tickTotal:(0,s.getTicksTotalFromSize)(t),top:0,left:o,width:t,height:n}:l===T?{tickTotal:(0,s.getTicksTotalFromSize)(r),top:n,left:0,width:o,height:r}:{tickTotal:(0,s.getTicksTotalFromSize)(r),top:n,left:o+t,width:a,height:r}}},{key:"render",value:function(){var e=this.props.animation;if(e){var t=e.nonAnimatedProps?E.filter(function(t){return e.nonAnimatedProps.indexOf(t)<0}):E;return n.default.createElement(a.default,y({},this.props,{animatedProps:t}),n.default.createElement(h,y({},this.props,{animation:null})))}var r=m(m({},this._getDefaultAxisProps()),this.props),i=r.attrAxis,o=r.className,s=r.height,f=r.hideLine,g=r.hideTicks,b=r.left,v=r.marginTop,_=r.on0,S=r.orientation,x=r.position,O=r.style,I=r.title,A=r.top,k=r.width,R=[T,w].indexOf(S)>-1,C=R?"rv-xy-plot__axis--vertical":"rv-xy-plot__axis--horizontal",P=b,D=A;if(_){var M=(0,l.getAttributeScale)(r,i);R?P=M(0):D=v+M(0)}return n.default.createElement("g",{transform:"translate(".concat(P,",").concat(D,")"),className:(0,c.getCombinedClassName)("rv-xy-plot__axis",C,o),style:O},!f&&n.default.createElement(u.default,{height:s,width:k,orientation:S,style:m(m({},O),O.line)}),!g&&n.default.createElement(p.default,y({},r,{style:m(m({},O),O.ticks)})),I?n.default.createElement(d.default,{position:x,title:I,height:s,width:k,style:m(m({},O),O.title),orientation:S}):null)}}])&&b(t.prototype,r),i&&b(t,i),h}(n.PureComponent);k.displayName="Axis",k.propTypes=I,k.defaultProps=A,k.requiresSVG=!0;const R=k},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>f});var n=r(341),i=r(782),o=r.n(i),a=r(2301);function s(){return s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},s.apply(this,arguments)}var l=a.ORIENTATION.LEFT,c=a.ORIENTATION.RIGHT,u=a.ORIENTATION.TOP,p=a.ORIENTATION.BOTTOM,d={height:o().number.isRequired,style:o().object,orientation:o().oneOf([l,c,u,p]).isRequired,width:o().number.isRequired};function h(e){var t,r=e.orientation,i=e.width,o=e.height,a=e.style;return t=r===l?{x1:i,x2:i,y1:0,y2:o}:r===c?{x1:0,x2:0,y1:0,y2:o}:r===u?{x1:0,x2:i,y1:o,y2:o}:{x1:0,x2:i,y1:0,y2:0},n.default.createElement("line",s({},t,{className:"rv-xy-plot__axis__line",style:a}))}h.defaultProps={style:{}},h.displayName="AxisLine",h.propTypes=d;const f=h},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>T});var n=r(341),i=r(782),o=r.n(i),a=r(2301),s=r(2172);function l(e){return l="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},l(e)}function c(){return c=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},c.apply(this,arguments)}function u(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function p(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?u(Object(r),!0).forEach(function(t){d(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):u(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function d(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function h(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function f(e,t){return f=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},f(e,t)}function m(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}();return function(){var r,n=g(e);if(t){var i=g(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return function(e,t){if(t&&("object"===l(t)||"function"==typeof t))return t;return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,r)}}function g(e){return g=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},g(e)}var y=a.ORIENTATION.LEFT,b=a.ORIENTATION.RIGHT,v=a.ORIENTATION.TOP,_=a.ORIENTATION.BOTTOM,S={height:o().number.isRequired,orientation:o().oneOf([y,b,v,_]).isRequired,style:o().object,width:o().number.isRequired};var E=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&f(e,t)}(l,e);var t,r,i,o=m(l);function l(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l),o.apply(this,arguments)}return t=l,(r=[{key:"_areTicksWrapped",value:function(){var e=this.props.orientation;return e===y||e===v}},{key:"_getTickContainerPropsGetterFn",value:function(){return this._isAxisVertical()?function(e){return{transform:"translate(0, ".concat(e,")")}}:function(e){return{transform:"translate(".concat(e,", 0)")}}}},{key:"_getTickLabelProps",value:function(){var e,t=this.props,r=t.orientation,n=t.tickLabelAngle,i=t.tickSize,o=t.tickSizeOuter,a=void 0===o?i:o,s=t.tickPadding,l=void 0===s?i:s;e=r===y||r===_&&n?"end":r===b||r===v&&n?"start":"middle";var c=this._isAxisVertical(),u=(this._areTicksWrapped()?-1:1)*(a+l),p=(c?"translate(".concat(u,", 0)"):"translate(0, ".concat(u,")"))+(n?" rotate(".concat(n,")"):"");return{textAnchor:e,dy:r===v||n?"0":r===_?"0.72em":"0.32em",transform:p}}},{key:"_getTickLineProps",value:function(){var e,t=this.props,r=t.tickSize,n=t.tickSizeOuter,i=void 0===n?r:n,o=t.tickSizeInner,a=void 0===o?r:o,s=this._isAxisVertical(),l=s?"y":"x",c=s?"x":"y",u=this._areTicksWrapped()?-1:1;return d(e={},"".concat(l,"1"),0),d(e,"".concat(l,"2"),0),d(e,"".concat(c,"1"),-u*a),d(e,"".concat(c,"2"),u*i),e}},{key:"_isAxisVertical",value:function(){var e=this.props.orientation;return e===y||e===b}},{key:"render",value:function(){var e=this.props,t=e.attr,r=e.orientation,i=e.width,o=e.height,l=e.style,u=e.tickFormat,d=e.tickTotal,h=e.tickValues,f=r===y?i:0,m=r===v?o:0,g=(0,s.getAttributeScale)(this.props,t),b=(0,a.getTickValues)(g,d,h),_=function(e,t,r){return r||(e.tickFormat?e.tickFormat(t):function(e){return e})}(g,d,u),S=this._getTickContainerPropsGetterFn(),E=this._getTickLineProps(),T=this._getTickLabelProps(),w=b.map(function(e,t){var r=g(e),o=_(e,t,g,d),a=n.default.isValidElement(o)&&!["tspan","textPath"].includes(o.type),s=o&&"string"!=typeof o.type;return n.default.createElement("g",c({key:t},S(r,0),{className:"rv-xy-plot__axis__tick",style:l}),n.default.createElement("line",c({},E,{className:"rv-xy-plot__axis__tick__line",style:p(p({},l),l.line)})),a?n.default.cloneElement(o,s?p(p({},T),{},{containerWidth:i,tickCount:b.length}):void 0):n.default.createElement("text",c({},T,{className:"rv-xy-plot__axis__tick__text",style:p(p({},l),l.text)}),o))});return n.default.createElement("g",{transform:"translate(".concat(f,", ").concat(m,")"),className:"rv-xy-plot__axis__ticks"},w)}}])&&h(t.prototype,r),i&&h(t,i),l}(n.default.Component);E.defaultProps={style:{}},E.displayName="AxisTicks",E.propTypes=S,E.requiresSVG=!0;const T=E},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>y});var n=r(341),i=r(782),o=r.n(i),a=r(2301);function s(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function l(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};
41t%2?s(Object(r),!0).forEach(function(t){c(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):s(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function c(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var u=16,p=a.ORIENTATION.LEFT,d=a.ORIENTATION.RIGHT,h=a.ORIENTATION.TOP,f=a.ORIENTATION.BOTTOM,m={width:o().number.isRequired,height:o().number.isRequired,orientation:o().oneOf([p,d,h,f]).isRequired,style:o().object,title:o().string.isRequired};function g(e){var t=e.orientation,r=e.position,i=e.width,o=e.height,a=e.style,s=e.title,m=t===h?o:0,g="translate(".concat(t===p?i:0,", ").concat(m,")"),y=function(e,t){var r;return c(r={},p,{end:{x:u,y:6,rotation:-90,textAnchor:"end"},middle:{x:u,y:t/2-6,rotation:-90,textAnchor:"middle"},start:{x:u,y:t-6,rotation:-90,textAnchor:"start"}}),c(r,d,{end:{x:-8,y:6,rotation:-90,textAnchor:"end"},middle:{x:-8,y:t/2-6,rotation:-90,textAnchor:"middle"},start:{x:-8,y:t-6,rotation:-90,textAnchor:"start"}}),c(r,h,{start:{x:6,y:u,rotation:0,textAnchor:"start"},middle:{x:e/2-6,y:u,rotation:0,textAnchor:"middle"},end:{x:e-6,y:u,rotation:0,textAnchor:"end"}}),c(r,f,{start:{x:6,y:-6,rotation:0,textAnchor:"start"},middle:{x:e/2-6,y:-6,rotation:0,textAnchor:"middle"},end:{x:e-6,y:-6,rotation:0,textAnchor:"end"}}),r}(i,o)[t][r],b=y.x,v=y.y,_=y.rotation,S=y.textAnchor,E="translate(".concat(b,", ").concat(v,") rotate(").concat(_,")");return n.default.createElement("g",{transform:g,className:"rv-xy-plot__axis__title"},n.default.createElement("g",{style:l({textAnchor:S},a),transform:E},n.default.createElement("text",{style:a},s)))}g.displayName="AxisTitle",g.propTypes=m,g.defaultProps={position:"end"};const y=g},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>g});var n=r(341),i=r(782),o=r.n(i),a=r(2301),s=r(2427);function l(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function c(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?l(Object(r),!0).forEach(function(t){u(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):l(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function u(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var p=a.ORIENTATION.LEFT,d=a.ORIENTATION.RIGHT,h=c(c({},s.default.propTypes),{},{orientation:o().oneOf([p,d])}),f={orientation:p,attr:"y",attrAxis:"x"};function m(e){return n.default.createElement(s.default,e)}m.displayName="YAxis",m.propTypes=h,m.defaultProps=f,m.requiresSVG=!0;const g=m},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>p});var n=r(341),i=r(782),o=r.n(i),a=r(2239),s=r(2240),l={className:o().string,height:o().number,endColor:o().string,endTitle:o().oneOfType([o().number,o().string]).isRequired,midColor:o().string,midTitle:o().oneOfType([o().number,o().string]),startColor:o().string,startTitle:o().oneOfType([o().number,o().string]).isRequired,width:o().number},c={className:"",startColor:a.CONTINUOUS_COLOR_RANGE[0],endColor:a.CONTINUOUS_COLOR_RANGE[1]};function u(e){var t=e.startColor,r=e.midColor,i=e.endColor,o=e.startTitle,a=e.midTitle,l=e.endTitle,c=e.height,u=e.width,p=e.className,d=[t];return r&&d.push(r),d.push(i),n.default.createElement("div",{className:(0,s.getCombinedClassName)("rv-continuous-color-legend",p),style:{width:u,height:c}},n.default.createElement("div",{className:"rv-gradient",style:{background:"linear-gradient(to right, ".concat(d.join(","),")")}}),n.default.createElement("div",{className:"rv-legend-titles"},n.default.createElement("span",{className:"rv-legend-titles__left"},o),n.default.createElement("span",{className:"rv-legend-titles__right"},l),a?n.default.createElement("span",{className:"rv-legend-titles__center"},a):null))}
41u.displayName="ContinuousColorLegend",u.propTypes=l,u.defaultProps=c;const p=u},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>c});var n=r(341),i=r(782),o=r.n(i),a=r(2240),s={className:o().string,circlesTotal:o().number,endSize:o().number,endTitle:o().oneOfType([o().number,o().string]).isRequired,height:o().number,startSize:o().number,startTitle:o().oneOfType([o().number,o().string]).isRequired,width:o().number};function l(e){for(var t=e.startTitle,r=e.endTitle,i=e.startSize,o=e.endSize,s=e.circlesTotal,l=e.height,c=e.width,u=e.className,p=[],d=(o-i)/(s-1),h=0;h<s;h++){var f=d*h+i;p.push(n.default.createElement("div",{key:h,className:"rv-bubble",style:{width:f,height:f,borderRadius:f/2}})),p.push(" ")}return n.default.createElement("div",{className:(0,a.getCombinedClassName)("rv-continuous-size-legend",u),style:{width:c,height:l}},n.default.createElement("div",{className:"rv-bubbles",style:{height:o}},p,n.default.createElement("div",{className:"rv-spacer"})),n.default.createElement("div",{className:"rv-legend-titles"},n.default.createElement("span",{className:"rv-legend-titles__left"},t),n.default.createElement("span",{className:"rv-legend-titles__right"},r)))}l.displayName="ContinuousSizeLegend",l.propTypes=s,l.defaultProps={circlesTotal:10,className:"",endSize:20,startSize:2};const c=l},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>h});var n=r(341),i=r(782),o=r.n(i),a=r(2435),s=r(2239),l=r(2240);function c(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function u(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?c(Object(r),!0).forEach(function(t){p(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):c(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function p(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function d(e){var t=e.className,r=e.colors,i=e.height,o=e.items,s=e.onItemClick,c=e.onItemMouseEnter,p=e.onItemMouseLeave,d=e.orientation,h=e.style,f=e.width;return n.default.createElement("div",{className:(0,l.getCombinedClassName)("rv-discrete-color-legend",d,t),style:u({width:f,height:i},h)},o.map(function(e,t){return n.default.createElement(a.default,{title:e.title?e.title:e,color:e.color?e.color:r[t%r.length],strokeDasharray:e.strokeDasharray,strokeStyle:e.strokeStyle,strokeWidth:e.strokeWidth,disabled:Boolean(e.disabled),orientation:d,key:t,onClick:s?function(r){return s(e,t,r)}:null,onMouseEnter:c?function(r){return c(e,t,r)}:null,onMouseLeave:c?function(r){return p(e,t,r)}:null})}))}d.displayName="DiscreteColorLegendItem",d.propTypes={className:o().string,items:o().arrayOf(o().oneOfType([o().shape({title:o().oneOfType([o().string,o().element]).isRequired,color:o().string,disabled:o().bool}),o().string.isRequired,o().element])).isRequired,onItemClick:o().func,onItemMouseEnter:o().func,onItemMouseLeave:o().func,height:o().number,width:o().number,orientation:o().oneOf(["vertical","horizontal"])},d.defaultProps={className:"",colors:s.DISCRETE_COLOR_RANGE,orientation:"vertical"};const h=d},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>p});var n=r(341),i=r(782),o=r.n(i);function a(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function s(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?a(Object(r),!0).forEach(function(t){l(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):a(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function l(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var c={dashed:"6, 2",solid:null};function u(e){var t=e.color,r=e.strokeDasharray,i=e.strokeStyle,o=e.strokeWidth,a=e.disabled,l=e.onClick,u=e.orientation,p=e.onMouseEnter,d=e.onMouseLeave,h=e.title,f="rv-discrete-color-legend-item ".concat(u);a&&(f+=" disabled"),l&&(f+=" clickable");var m=c[i]||r;return n.default.createElement("div",{className:f,onClick:l,onMouseEnter:p,onMouseLeave:d},n.default.createElement("svg",{className:"rv-discrete-color-legend-item__color",height:2,width:14},n.default.createElement("path",{className:"rv-discrete-color-legend-item__color__path",d:"M 0, 1 L 14, 1",style:s(s(s({},o?{strokeWidth:o}:{}),m?{strokeDasharray:m}:{}),{},{stroke:a?null:t})})),n.default.createElement("span",{className:"rv-discrete-color-legend-item__title"},h))}
41u.propTypes={color:o().string.isRequired,disabled:o().bool,title:o().oneOfType([o().string,o().element]).isRequired,onClick:o().func,onMouseEnter:o().func,onMouseLeave:o().func,orientation:o().oneOf(["vertical","horizontal"]).isRequired,strokeDasharray:o().string,strokeWidth:o().number,strokeStyle:o().oneOf(Object.keys(c))},u.defaultProps={disabled:!1,strokeStyle:"solid"},u.displayName="DiscreteColorLegendItem";const p=u},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>f});var n=r(341),i=r(782),o=r.n(i),a=r(2434),s=r(2240);function l(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function c(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?l(Object(r),!0).forEach(function(t){u(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):l(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function u(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var p=c(c({},a.default.propTypes),{},{searchText:o().string,onSearchChange:o().func,searchPlaceholder:o().string,searchFn:o().func}),d={className:"",searchText:"",searchFn:function(e,t){return e.filter(function(e){return-1!==String(e.title||e).toLowerCase().indexOf(t)})}};function h(e){var t=e.className,r=e.colors,i=e.height,o=e.items,l=e.onItemClick,c=e.onItemMouseEnter,u=e.onItemMouseLeave,p=e.onSearchChange,d=e.orientation,h=e.searchFn,f=e.searchPlaceholder,m=e.searchText,g=e.width,y=p?function(e){var t=e.target.value;return p(t)}:null,b=h(o,m);return n.default.createElement("div",{className:(0,s.getCombinedClassName)("rv-search-wrapper",t),style:{width:g,height:i}},n.default.createElement("form",{className:"rv-search-wrapper__form"},n.default.createElement("input",{type:"search",placeholder:f,className:"rv-search-wrapper__form__input",value:m,onChange:y})),n.default.createElement("div",{className:"rv-search-wrapper__contents"},n.default.createElement(a.default,{colors:r,items:b,onItemClick:l,onItemMouseEnter:c,onItemMouseLeave:u,orientation:d})))}h.propTypes=p,h.defaultProps=d,h.displayName="SearchableDiscreteColorLegend";const f=h},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>C});var n=r(341),i=r(782),o=r.n(i),a=r(2178),s=r(2190),l=r(2142),c=r(2364),u=r(2239),p=r(2424),d=r(2240),h=r(2351),f=r(2350),m=r(2349),g=r(2330),y=r(2338);function b(e){return b="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},b(e)}function v(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function _(e,t){return _=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},_(e,t)}function S(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}();return function(){var r,n=T(e);if(t){var i=T(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return function(e,t){if(t&&("object"===b(t)||"function"==typeof t))return t;return E(e)}(this,r)}}function E(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function T(e){return T=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},T(e)}function w(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function x(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};
41t%2?w(Object(r),!0).forEach(function(t){O(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):w(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function O(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var I="rv-parallel-coordinates-chart",A=(0,s.format)(".2r");function k(e){var t=e.domains,r=e.style;return t.map(function(e){return{x:e.name,y:1.1,label:e.name,style:r}})}var R=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&_(e,t)}(s,e);var t,r,i,o=S(s);function s(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,s);for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return O(E(e=o.call.apply(o,[this].concat(r))),"state",{brushFilters:{}}),e}return t=s,(r=[{key:"render",value:function(){var e=this,t=this.state.brushFilters,r=this.props,i=r.animation,o=r.brushing,s=r.className,l=r.children,u=r.colorRange,b=r.data,v=r.domains,_=r.height,S=r.hideInnerMostValues,E=r.margin,T=r.onMouseLeave,w=r.onMouseEnter,A=r.showMarks,R=r.style,C=r.tickFormat,P=r.width,D=function(e){var t=e.animation,r=e.domains,i=e.style,o=e.tickFormat;return r.map(function(e,r){var a=e.domain;return n.default.createElement(g.default,{animation:t,key:"".concat(r,"-axis"),axisStart:{x:e.name,y:0},axisEnd:{x:e.name,y:1},axisDomain:a,numberOfTicks:5,tickValue:function(t){return e.tickFormat?e.tickFormat(t):o(t)},style:i.axes})})}({domains:v,animation:i,hideInnerMostValues:S,style:R,tickFormat:C}),M=function(e){var t=e.animation,r=e.brushFilters,i=e.colorRange,o=e.domains,s=e.data,l=e.style,c=e.showMarks,u=o.reduce(function(e,t){var r=t.domain;return e[t.name]=(0,a.default)().domain(r).range([0,1]),e},{});return s.map(function(e,a){var s=!0,p=o.map(function(t){var n=t.getValue,i=t.name,o=u[i](n?n(e):e[i]),a=r[i];return a&&(o<a.min||o>a.max)&&(s=!1),{x:i,y:o}}),d="".concat(I,"-line"),m="".concat(d," ").concat(I,"-line-unselected"),g={animation:t,className:s?d:m,key:"".concat(a,"-polygon"),data:p,color:e.color||i[a%i.length],style:x(x({},l.lines),e.style||{})};return s||(g.style=x(x({},g.style),l.deselectedLineStyle)),c?n.default.createElement(f.default,g):n.default.createElement(h.default,g)})}({animation:i,brushFilters:t,colorRange:u,domains:v,data:b,showMarks:A,style:R}),N=n.default.createElement(m.default,{animation:!0,key:s,className:"".concat(I,"-label"),data:k({domains:v,style:R.labels})}),L=(0,p.getInnerDimensions)(this.props,p.DEFAULT_MARGINS),F=L.marginLeft,B=L.marginRight;return n.default.createElement(c.default,{height:_,width:P,margin:E,dontCheckIfEmpty:!0,className:(0,d.getCombinedClassName)(s,I),onMouseLeave:T,onMouseEnter:w,xType:"ordinal",yDomain:[0,1]},l,D.concat(M).concat(N),o&&v.map(function(r){var i=function(n){e.setState({brushFilters:x(x({},t),{},O({},r.name,n?{min:n.bottom,max:n.top}:null))})};return n.default.createElement(y.default,{key:r.name,drag:!0,highlightX:r.name,onBrushEnd:i,onDragEnd:i,highlightWidth:(P-F-B)/v.length,enableX:!1})}))}}])&&v(t.prototype,r),i&&v(t,i),s}(n.Component);R.displayName="ParallelCoordinates",R.propTypes={animation:l.AnimationPropType,brushing:o().bool,className:o().string,colorType:o().string,colorRange:o().arrayOf(o().string),data:o().arrayOf(o().object).isRequired,domains:o().arrayOf(o().shape({name:o().string.isRequired,domain:o().arrayOf(o().number).isRequired,tickFormat:o().func})).isRequired,height:o().number.isRequired,margin:p.MarginPropType,style:o().shape({axes:o().object,labels:o().object,lines:o().object}),showMarks:o().bool,tickFormat:o().func,width:o().number.isRequired},R.defaultProps={className:"",colorType:"category",colorRange:u.DISCRETE_COLOR_RANGE,style:{axes:{line:{},ticks:{},text:{}},labels:{fontSize:10,textAnchor:"middle"},lines:{strokeWidth:1,strokeOpacity:1},deselectedLineStyle:{strokeOpacity:.1}},tickFormat:A};const C=R},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>x});
41var n=r(341),i=r(782),o=r.n(i),a=r(2178),s=r(2190),l=r(2142),c=r(2364),u=r(2239),p=r(2424),d=r(2240),h=r(2352),f=r(2356),m=r(2349),g=r(2330);function y(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function b(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?y(Object(r),!0).forEach(function(t){v(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):y(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function v(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var _="rv-radar-chart",S=(0,s.format)(".2r");function E(e){var t=1e-12;return Math.abs(e)<=t?e=0:e>0?Math.abs(e-.5)<=t&&(e=.5):e<0&&Math.abs(e+.5)<=t&&(e=-.5),e}function T(e){var t=e.domains,r=e.startingAngle,n=e.style;return t.map(function(e,i){var o=e.name,a=i/t.length*Math.PI*2+r;return{x:1.2*Math.cos(a),y:1.2*Math.sin(a),label:o,style:n}})}function w(e){var t=e.animation,r=e.className,i=e.children,o=e.colorRange,s=e.data,l=e.domains,u=e.height,p=e.hideInnerMostValues,y=e.margin,v=e.onMouseLeave,S=e.onMouseEnter,w=e.startingAngle,x=e.style,O=e.tickFormat,I=e.width,A=e.renderAxesOverPolygons,k=e.onValueMouseOver,R=e.onValueMouseOut,C=e.onSeriesMouseOver,P=e.onSeriesMouseOut,D=function(e){var t=e.animation,r=e.domains,i=e.startingAngle,o=e.style,a=e.tickFormat,s=e.hideInnerMostValues;return r.map(function(e,l){var c=l/r.length*Math.PI*2+i,u=e.domain;return n.default.createElement(g.default,{animation:t,key:"".concat(l,"-axis"),axisStart:{x:0,y:0},axisEnd:{x:E(Math.cos(c)),y:E(Math.sin(c))},axisDomain:u,numberOfTicks:5,tickValue:function(t){return s&&t===u[0]?"":e.tickFormat?e.tickFormat(t):a(t)},style:o.axes})})}({domains:l,animation:t,hideInnerMostValues:p,startingAngle:w,style:x,tickFormat:O}),M=function(e){var t=e.animation,r=e.colorRange,i=e.domains,o=e.data,s=e.style,l=e.startingAngle,c=e.onSeriesMouseOver,u=e.onSeriesMouseOut,p=i.reduce(function(e,t){var r=t.domain;return e[t.name]=(0,a.default)().domain(r).range([0,1]),e},{});return o.map(function(e,o){var a=i.map(function(t,r){var n=t.name,o=t.getValue,a=o?o(e):e[n],s=r/i.length*Math.PI*2+l,c=Math.max(p[n](a),0);return{x:c*Math.cos(s),y:c*Math.sin(s),name:e.name}});return n.default.createElement(f.default,{animation:t,className:"".concat(_,"-polygon"),key:"".concat(o,"-polygon"),data:a,style:b({stroke:e.color||e.stroke||r[o%r.length],fill:e.color||e.fill||r[o%r.length]},s.polygons),onSeriesMouseOver:c,onSeriesMouseOut:u})})}({animation:t,colorRange:o,domains:l,data:s,startingAngle:w,style:x,onSeriesMouseOver:C,onSeriesMouseOut:P}),N=function(e){var t=e.animation,r=e.domains,i=e.data,o=e.startingAngle,s=e.style,l=e.onValueMouseOver,c=e.onValueMouseOut;if(l){var u=r.reduce(function(e,t){var r=t.domain;return e[t.name]=(0,a.default)().domain(r).range([0,1]),e},{});return i.map(function(e,i){var a=r.map(function(t,n){var i=t.name,a=t.getValue,s=a?a(e):e[i],l=n/r.length*Math.PI*2+o,c=Math.max(u[i](s),0);return{x:c*Math.cos(l),y:c*Math.sin(l),domain:i,value:s,dataName:e.name}});return n.default.createElement(h.default,{animation:t,className:"".concat(_,"-polygonPoint"),key:"".concat(i,"-polygonPoint"),data:a,size:10,style:b(b({},s.polygons),{},{fill:"transparent",stroke:"transparent"}),onValueMouseOver:l,onValueMouseOut:c})})}}({animation:t,colorRange:o,domains:l,data:s,startingAngle:w,style:x,onValueMouseOver:k,onValueMouseOut:R}),L=n.default.createElement(m.default,{animation:t,key:r,className:"".concat(_,"-label"),data:T({domains:l,style:x.labels,startingAngle:w})});return n.default.createElement(c.default,{height:u,width:I,margin:y,dontCheckIfEmpty:!0,className:(0,d.getCombinedClassName)(r,_),onMouseLeave:v,onMouseEnter:S,xDomain:[-1,1],yDomain:[-1,1]},i,!A&&D.concat(M).concat(L).concat(N),A&&M.concat(L).concat(D).concat(N))}w.displayName="RadarChart",w.propTypes={animation:l.AnimationPropType,className:o().string,colorType:o().string,colorRange:o().arrayOf(o().string),data:o().arrayOf(o().object).isRequired,domains:o().arrayOf(o().shape({name:o().string.isRequired,domain:o().arrayOf(o().number).isRequired,tickFormat:o().func})).isRequired,height:o().number.isRequired,hideInnerMostValues:o().bool,margin:p.MarginPropType,startingAngle:o().number,style:o().shape({axes:o().object,labels:o().object,polygons:o().object}),tickFormat:o().func,width:o().number.isRequired,renderAxesOverPolygons:o().bool,onValueMouseOver:o().func,onValueMouseOut:o().func,onSeriesM
41ouseOver:o().func,onSeriesMouseOut:o().func},w.defaultProps={className:"",colorType:"category",colorRange:u.DISCRETE_COLOR_RANGE,hideInnerMostValues:!0,startingAngle:Math.PI/2,style:{axes:{line:{},ticks:{},text:{}},labels:{fontSize:10,textAnchor:"middle"},polygons:{strokeWidth:.5,strokeOpacity:1,fillOpacity:.1}},tickFormat:S,renderAxesOverPolygons:!1};const x=w},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>_});var n=r(341),i=r(782),o=r.n(i),a=r(2248),s=r(2142),l=r(2232),c=r(2349),u=r(2364),p=r(2239),d=r(2424),h=r(2238),f=r(2240);function m(){return m=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},m.apply(this,arguments)}function g(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function y(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?g(Object(r),!0).forEach(function(t){b(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):g(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function b(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function v(e){var t=e.animation,r=e.className,i=e.children,o=e.colorType,s=e.data,p=e.getAngle,g=e.getLabel,b=e.getSubLabel,v=e.height,_=e.hideRootNode,S=e.innerRadius,E=e.labelsAboveChildren,T=e.labelsRadiusMultiplier,w=e.labelsStyle,x=e.margin,O=e.onMouseLeave,I=e.onMouseEnter,A=e.radius,k=e.showLabels,R=e.style,C=e.width,P=function(e){var t=e.data,r=e.getAngle;return(0,a.default)().sort(null).value(r)(t).reverse().map(function(e,t){return y(y({},e.data),{},{angle0:e.startAngle,angle:e.endAngle,radius0:e.data.innerRadius||0,radius:e.data.radius||1,color:e.data.color||t})})}({data:s,height:v,hideRootNode:_,width:C,getAngle:p}),D=(0,h.getRadialDomain)(P),M=y(y({colorType:o},e),{},{animation:t,radiusDomain:[0,D],data:P,radiusNoFallBack:!0,style:R,arcClassName:"rv-radial-chart__series--pie__slice"});A&&(M.radiusDomain=[0,1],M.radiusRange=[S||0,A],M.radiusType="linear");var N=A||function(e,t){return Math.min(e,t)/2-15}(C,v),L=(0,d.getRadialLayoutMargin)(C,v,N),F=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1.1,n=t.getLabel,i=t.getSubLabel;return e.reduce(function(e,t){var o=t.angle,a=t.angle0,s=t.radius,l=(o+a)/2*-1+Math.PI/2,c=[];return n(t)&&c.push({angle:l,radius:s*r,label:n(t)}),i(t)&&c.push({angle:l,radius:s*r,label:i(t),style:{fontSize:10},yOffset:12}),e.concat(c)},[])}(P,{getLabel:g,getSubLabel:b},T);return n.default.createElement(u.default,{height:v,width:C,margin:y(y({},L),x),className:(0,f.getCombinedClassName)(r,"rv-radial-chart"),onMouseLeave:O,onMouseEnter:I,xDomain:[-D,D],yDomain:[-D,D]},n.default.createElement(l.default,m({},M,{getAngle:function(e){return e.angle}})),k&&!E&&n.default.createElement(c.default,{data:F,style:w}),i,k&&E&&n.default.createElement(c.default,{data:F,style:w}))}v.displayName="RadialChart",v.propTypes={animation:s.AnimationPropType,className:o().string,colorType:o().string,data:o().arrayOf(o().shape({angle:o().number,className:o().string,label:o().string,radius:o().number,style:o().object})).isRequired,getAngle:o().func,getAngle0:o().func,padAngle:o().oneOfType([o().func,o().number]),getRadius:o().func,getRadius0:o().func,getLabel:o().func,height:o().number.isRequired,labelsAboveChildren:o().bool,labelsStyle:o().object,margin:d.MarginPropType,onValueClick:o().func,onValueMouseOver:o().func,onValueMouseOut:o().func,showLabels:o().bool,style:o().object,subLabel:o().func,width:o().number.isRequired},v.defaultProps={className:"",colorType:"category",colorRange:p.DISCRETE_COLOR_RANGE,padAngle:0,getAngle:function(e){return e.angle},getAngle0:function(e){return e.angle0},getRadius:function(e){return e.radius},getRadius0:function(e){return e.radius0},getLabel:function(e){return e.label},getSubLabel:function(e){return e.subLabel}};const _=v},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>x});var n=r(341),i=r(782),o=r.n(i),a=r(2441),s=r(2364),l=r(2424),c=r(2240),u=r(2360),p=r(2349),d=r(2362),h=r(2239),f=r(2455);function m(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function g(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};
41t%2?m(Object(r),!0).forEach(function(t){y(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):m(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function y(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function b(e){return function(e){if(Array.isArray(e))return v(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return v(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return v(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function v(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function _(){return _=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},_.apply(this,arguments)}var S=function(e){return e},E={justify:a.sankeyJustify,center:a.sankeyCenter,left:a.sankeyLeft,right:a.sankeyRight},T={top:20,left:20,right:20,bottom:20};function w(e){var t=e.align,r=e.animation,i=e.children,o=e.className,m=e.hasVoronoi,y=e.height,v=e.hideLabels,S=e.labelRotation,w=e.layout,x=e.links,O=e.linkOpacity,I=e.margin,A=e.nodePadding,k=e.nodes,R=e.nodeWidth,C=e.onValueClick,P=e.onValueMouseOver,D=e.onValueMouseOut,M=e.onLinkClick,N=e.onLinkMouseOver,L=e.onLinkMouseOut,F=e.style,B=e.width;if(0===k.length)return n.default.createElement(s.default,_({},e,{yType:"literal",className:(0,c.getCombinedClassName)("rv-sankey",o)}));var U=b(new Array(k.length)).map(function(e,t){return g({},k[t])}),j=b(new Array(x.length)).map(function(e,t){return g({},x[t])}),H=(0,l.getInnerDimensions)({margin:I,height:y,width:B},T),V=H.marginLeft,z=H.marginTop,G=H.marginRight,q=H.marginBottom,$=(0,a.sankey)().extent([[V,z],[B-G,y-q-z]]).nodeWidth(R).nodePadding(A).nodes(U).links(j).nodeAlign(E[t]).iterations(w);$(U);var W=$.nodeWidth(),Y=(0,a.sankeyLinkHorizontal)();return n.default.createElement(s.default,_({},e,{yType:"literal",className:(0,c.getCombinedClassName)("rv-sankey",o)}),j.map(function(e,t){return n.default.createElement(f.default,{style:F.links,data:Y(e),opacity:e.opacity||O,color:e.color,onLinkClick:M,onLinkMouseOver:N,onLinkMouseOut:L,strokeWidth:Math.max(e.width,1),node:e,nWidth:W,key:"link-".concat(t)})}),n.default.createElement(u.default,{animation:r,className:(0,c.getCombinedClassName)(o,"rv-sankey__node"),data:U.map(function(e){return g(g({},e),{},{y:e.y1-z,y0:e.y0-z,x:e.x1,x0:e.x0,color:e.color||h.DISCRETE_COLOR_RANGE[0],sourceLinks:null,targetLinks:null})}),style:F.rects,onValueClick:C,onValueMouseOver:P,onValueMouseOut:D,colorType:"literal"}),!v&&n.default.createElement(p.default,{animation:r,className:o,rotation:S,labelAnchorY:"text-before-edge",data:U.map(function(e,t){return g({x:e.x0+(e.x0<B/2?W+10:-10),y:(e.y0+e.y1)/2-z,label:e.name,style:g({textAnchor:e.x0<B/2?"start":"end",dy:"-.5em"},F.labels)},k[t])})}),m&&n.default.createElement(d.default,{className:"rv-sankey__voronoi",extent:[[-V,-z],[B+G,y+q]],nodes:U,onClick:C,onHover:P,onBlur:D,x:function(e){return e.x0+(e.x1-e.x0)/2},y:function(e){return e.y0+(e.y1-e.y0)/2}}),i)}w.defaultProps={align:"justify",className:"",hasVoronoi:!1,hideLabels:!1,labelRotation:0,layout:50,margin:T,nodePadding:10,nodeWidth:10,onValueMouseOver:S,onValueClick:S,onValueMouseOut:S,onLinkClick:S,onLinkMouseOver:S,onLinkMouseOut:S,style:{links:{},rects:{},labels:{}}},w.propTypes={align:o().oneOf(["justify","left","right","center"]),className:o().string,hasVoronoi:o().bool,height:o().number.isRequired,hideLabels:o().bool,labelRotation:o().number,layout:o().number,links:o().arrayOf(o().shape({source:o().oneOfType([o().number,o().object]).isRequired,target:o().oneOfType([o().number,o().object]).isRequired})).isRequired,margin:l.MarginPropType,nodePadding:o().number,nodes:o().arrayOf(o().object).isRequired,nodeWidth:o().number,onValueMouseOver:o().func,onValueClick:o().func,onValueMouseOut:o().func,onLinkClick:o().func,onLinkMouseOver:o().func,onLinkMouseOut:o().func,style:o().shape({links:o().object,rects:o().object,labels:o().object}),width:o().number.isRequired};const x=w},(e,t,r)=>{"use strict";r.r(t),r.d(t,{sankey:()=>n.default,sankeyCenter:()=>i.center,sankeyJustify:()=>i.justify,sankeyLeft:()=>i.left,sankeyLinkHorizontal:()=>o.default,sankeyRight:()=>i.right});var n=r(2442),i=r(2446),o=r(2448)},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>y});var n=r(2443),i=r(2444),o=r(2445),a=r(2446),s=r(2447);function l(e,t){return u(e.source,t.source)||e.index-t.index}function c(e,t){return u(e.target,t.target)||e.index-t.index}function u(e,t){return e.y0-t.y0}function p(e){return e.value}function d(e){return e.index}
vendor: 4,560 bytes, line 41
41function h(e){return e.nodes}function f(e){return e.links}function m(e,t){const r=e.get(t);if(!r)throw new Error("missing: "+t);return r}function g({nodes:e}){for(const t of e){let e=t.y0,r=e;for(const r of t.sourceLinks)r.y0=e+r.width/2,e+=r.width;for(const e of t.targetLinks)e.y1=r+e.width/2,r+=e.width}}function y(){let e,t,r,y=0,b=0,v=1,_=1,S=24,E=8,T=d,w=a.justify,x=h,O=f,I=6;function A(){const a={nodes:x.apply(null,arguments),links:O.apply(null,arguments)};return function({nodes:e,links:t}){for(const[t,r]of e.entries())r.index=t,r.sourceLinks=[],r.targetLinks=[];const n=new Map(e.map((t,r)=>[T(t,r,e),t]));for(const[e,r]of t.entries()){r.index=e;let{source:t,target:i}=r;"object"!=typeof t&&(t=r.source=m(n,t)),"object"!=typeof i&&(i=r.target=m(n,i)),t.sourceLinks.push(r),i.targetLinks.push(r)}if(null!=r)for(const{sourceLinks:t,targetLinks:n}of e)t.sort(r),n.sort(r)}(a),function({nodes:e}){for(const t of e)t.value=void 0===t.fixedValue?Math.max((0,o.default)(t.sourceLinks,p),(0,o.default)(t.targetLinks,p)):t.fixedValue}(a),function({nodes:e}){const t=e.length;let r=new Set(e),n=new Set,i=0;for(;r.size;){for(const e of r){e.depth=i;for(const{target:t}of e.sourceLinks)n.add(t)}if(++i>t)throw new Error("circular link");r=n,n=new Set}}(a),function({nodes:e}){const t=e.length;let r=new Set(e),n=new Set,i=0;for(;r.size;){for(const e of r){e.height=i;for(const{source:t}of e.targetLinks)n.add(t)}if(++i>t)throw new Error("circular link");r=n,n=new Set}}(a),function(r){const a=function({nodes:e}){const r=(0,n.default)(e,e=>e.depth)+1,i=(v-y-S)/(r-1),o=new Array(r);for(const t of e){const e=Math.max(0,Math.min(r-1,Math.floor(w.call(null,t,r))));t.layer=e,t.x0=y+e*i,t.x1=t.x0+S,o[e]?o[e].push(t):o[e]=[t]}if(t)for(const e of o)e.sort(t);return o}(r);e=Math.min(E,(_-b)/((0,n.default)(a,e=>e.length)-1)),function(t){const r=(0,i.default)(t,t=>(_-b-(t.length-1)*e)/(0,o.default)(t,p));for(const n of t){let t=b;for(const i of n){i.y0=t,i.y1=t+i.value*r,t=i.y1+e;for(const e of i.sourceLinks)e.width=e.value*r}t=(_-t+e)/(n.length+1);for(let e=0;e<n.length;++e){const r=n[e];r.y0+=t*(e+1),r.y1+=t*(e+1)}N(n)}}(a);for(let e=0;e<I;++e){const t=Math.pow(.99,e),r=Math.max(1-t,(e+1)/I);R(a,t,r),k(a,t,r)}}(a),g(a),a}function k(e,r,n){for(let i=1,o=e.length;i<o;++i){const o=e[i];for(const e of o){let t=0,n=0;for(const{source:r,value:i}of e.targetLinks){let o=i*(e.layer-r.layer);t+=L(r,e)*o,n+=o}if(!(n>0))continue;let i=(t/n-e.y0)*r;e.y0+=i,e.y1+=i,M(e)}void 0===t&&o.sort(u),C(o,n)}}function R(e,r,n){for(let i=e.length-2;i>=0;--i){const o=e[i];for(const e of o){let t=0,n=0;for(const{target:r,value:i}of e.sourceLinks){let o=i*(r.layer-e.layer);t+=F(e,r)*o,n+=o}if(!(n>0))continue;let i=(t/n-e.y0)*r;e.y0+=i,e.y1+=i,M(e)}void 0===t&&o.sort(u),C(o,n)}}function C(t,r){const n=t.length>>1,i=t[n];D(t,i.y0-e,n-1,r),P(t,i.y1+e,n+1,r),D(t,_,t.length-1,r),P(t,b,0,r)}function P(t,r,n,i){for(;n<t.length;++n){const o=t[n],a=(r-o.y0)*i;a>1e-6&&(o.y0+=a,o.y1+=a),r=o.y1+e}}function D(t,r,n,i){for(;n>=0;--n){const o=t[n],a=(o.y1-r)*i;a>1e-6&&(o.y0-=a,o.y1-=a),r=o.y0-e}}function M({sourceLinks:e,targetLinks:t}){if(void 0===r){for(const{source:{sourceLinks:e}}of t)e.sort(c);for(const{target:{targetLinks:t}}of e)t.sort(l)}}function N(e){if(void 0===r)for(const{sourceLinks:t,targetLinks:r}of e)t.sort(c),r.sort(l)}function L(t,r){let n=t.y0-(t.sourceLinks.length-1)*e/2;for(const{target:i,width:o}of t.sourceLinks){if(i===r)break;n+=o+e}for(const{source:e,width:i}of r.targetLinks){if(e===t)break;n-=i}return n}function F(t,r){let n=r.y0-(r.targetLinks.length-1)*e/2;for(const{source:i,width:o}of r.targetLinks){if(i===t)break;n+=o+e}for(const{target:e,width:i}of t.sourceLinks){if(e===r)break;n-=i}return n}return A.update=function(e){return g(e),e},A.nodeId=function(e){return arguments.length?(T="function"==typeof e?e:(0,s.default)(e),A):T},A.nodeAlign=function(e){return arguments.length?(w="function"==typeof e?e:(0,s.default)(e),A):w},A.nodeSort=function(e){return arguments.length?(t=e,A):t},A.nodeWidth=function(e){return arguments.length?(S=+e,A):S},A.nodePadding=function(t){return arguments.length?(E=e=+t,A):E},A.nodes=function(e){return arguments.length?(x="function"==typeof e?e:(0,s.default)(e),A):x},A.links=function(e){return arguments.length?(O="function"==typeof e?e:(0,s.default)(e),A):O},A.linkSort=function(e){return arguments.length?(r=e,A):r},A.size=function(e){return arguments.length?(y=b=0,v=+e[0],_=+e[1],A):[v-y,_-b]},A.extent=function(e){return arguments.length?(y=+e[0][0],v=+e[1][0],b=+e[0][1],_=+e[1][1],A):[[y,b],[v,_]
vendor: 5,240 bytes, line 41
41]},A.iterations=function(e){return arguments.length?(I=+e,A):I},A}},(e,t,r)=>{"use strict";function n(e,t){let r;if(void 0===t)for(const t of e)null!=t&&(r<t||void 0===r&&t>=t)&&(r=t);else{let n=-1;for(let i of e)null!=(i=t(i,++n,e))&&(r<i||void 0===r&&i>=i)&&(r=i)}return r}r.r(t),r.d(t,{default:()=>n})},(e,t,r)=>{"use strict";function n(e,t){let r;if(void 0===t)for(const t of e)null!=t&&(r>t||void 0===r&&t>=t)&&(r=t);else{let n=-1;for(let i of e)null!=(i=t(i,++n,e))&&(r>i||void 0===r&&i>=i)&&(r=i)}return r}r.r(t),r.d(t,{default:()=>n})},(e,t,r)=>{"use strict";function n(e,t){let r=0;if(void 0===t)for(let t of e)(t=+t)&&(r+=t);else{let n=-1;for(let i of e)(i=+t(i,++n,e))&&(r+=i)}return r}r.r(t),r.d(t,{default:()=>n})},(e,t,r)=>{"use strict";r.r(t),r.d(t,{center:()=>l,justify:()=>s,left:()=>o,right:()=>a});var n=r(2444);function i(e){return e.target.depth}function o(e){return e.depth}function a(e,t){return t-1-e.height}function s(e,t){return e.sourceLinks.length?e.depth:t-1}function l(e){return e.targetLinks.length?e.depth:e.sourceLinks.length?(0,n.default)(e.sourceLinks,i)-1:0}},(e,t,r)=>{"use strict";function n(e){return function(){return e}}r.r(t),r.d(t,{default:()=>n})},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>a}),r.dn(a);var n=r(2449);function i(e){return[e.source.x1,e.y0]}function o(e){return[e.target.x0,e.y1]}function a(){return(0,n.linkHorizontal)().source(i).target(o)}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{linkHorizontal:()=>f,linkRadial:()=>g,linkVertical:()=>m});var n=r(2450),i=r(2451),o=r(2452),a=r(2453),s=r(2454);function l(e){return e.source}function c(e){return e.target}function u(e){var t=l,r=c,s=a.x,u=a.y,p=null;function d(){var o,a=i.slice.call(arguments),l=t.apply(this,a),c=r.apply(this,a);if(p||(p=o=(0,n.default)()),e(p,+s.apply(this,(a[0]=l,a)),+u.apply(this,a),+s.apply(this,(a[0]=c,a)),+u.apply(this,a)),o)return p=null,o+""||null}return d.source=function(e){return arguments.length?(t=e,d):t},d.target=function(e){return arguments.length?(r=e,d):r},d.x=function(e){return arguments.length?(s="function"==typeof e?e:(0,o.default)(+e),d):s},d.y=function(e){return arguments.length?(u="function"==typeof e?e:(0,o.default)(+e),d):u},d.context=function(e){return arguments.length?(p=e??null,d):p},d}function p(e,t,r,n,i){e.moveTo(t,r),e.bezierCurveTo(t=(t+n)/2,r,t,i,n,i)}function d(e,t,r,n,i){e.moveTo(t,r),e.bezierCurveTo(t,r=(r+i)/2,n,r,n,i)}function h(e,t,r,n,i){var o=(0,s.default)(t,r),a=(0,s.default)(t,r=(r+i)/2),l=(0,s.default)(n,r),c=(0,s.default)(n,i);e.moveTo(o[0],o[1]),e.bezierCurveTo(a[0],a[1],l[0],l[1],c[0],c[1])}function f(){return u(p)}function m(){return u(d)}function g(){var e=u(h);return e.angle=e.x,delete e.x,e.radius=e.y,delete e.y,e}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>c});var n=Math.PI,i=2*n,o=1e-6,a=i-o;function s(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function l(){return new s}s.prototype=l.prototype={constructor:s,moveTo:function(e,t){this._+="M"+(this._x0=this._x1=+e)+","+(this._y0=this._y1=+t)},closePath:function(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},lineTo:function(e,t){this._+="L"+(this._x1=+e)+","+(this._y1=+t)},quadraticCurveTo:function(e,t,r,n){this._+="Q"+ +e+","+ +t+","+(this._x1=+r)+","+(this._y1=+n)},bezierCurveTo:function(e,t,r,n,i,o){this._+="C"+ +e+","+ +t+","+ +r+","+ +n+","+(this._x1=+i)+","+(this._y1=+o)},arcTo:function(e,t,r,i,a){e=+e,t=+t,r=+r,i=+i,a=+a;var s=this._x1,l=this._y1,c=r-e,u=i-t,p=s-e,d=l-t,h=p*p+d*d;if(a<0)throw new Error("negative radius: "+a);if(null===this._x1)this._+="M"+(this._x1=e)+","+(this._y1=t);else if(h>o)if(Math.abs(d*c-u*p)>o&&a){var f=r-s,m=i-l,g=c*c+u*u,y=f*f+m*m,b=Math.sqrt(g),v=Math.sqrt(h),_=a*Math.tan((n-Math.acos((g+h-y)/(2*b*v)))/2),S=_/v,E=_/b;Math.abs(S-1)>o&&(this._+="L"+(e+S*p)+","+(t+S*d)),this._+="A"+a+","+a+",0,0,"+ +(d*f>p*m)+","+(this._x1=e+E*c)+","+(this._y1=t+E*u)}else this._+="L"+(this._x1=e)+","+(this._y1=t);else;},arc:function(e,t,r,s,l,c){e=+e,t=+t,c=!!c;var u=(r=+r)*Math.cos(s),p=r*Math.sin(s),d=e+u,h=t+p,f=1^c,m=c?s-l:l-s;if(r<0)throw new Error("negative radius: "+r);null===this._x1?this._+="M"+d+","+h:(Math.abs(this._x1-d)>o||Math.abs(this._y1-h)>o)&&(this._+="L"+d+","+h),r&&(m<0&&(m=m%i+i),m>a?this._+="A"+r+","+r+",0,1,"+f+","+(e-u)+","+(t-p)+"A"+r+","+r+",0,1,"+f+","+(this._x1=d)+","+(this._y1=h):m>o&&(this._+="A"+r+","+r+",0,"+ +(m>=n)+","+f+","+(this._x1=e+r*Math.cos(l))+","+(this._y1=t+r*Math.sin(l))))},rect:function(e,t,r,n){this._+="M"+(this._x0=this._x1=+e)+","+(this._y0=this._y1=+t)+"h"+ +r+"v"+ +n+"h"+-r+"Z"},toString:function(){return this._}};const c=l},(e,t,r)=>{"use strict";r.r(t),r.d(t,{slice:()=>n});var n=Array.prototype.slice},(e,t,r)=>{"use strict";function n(e){return function(){return e}}r.r(t),r.d(t,{default:()=>n}),r.dn(n)},(e,t,r)=>{"use strict";function n(e){return e[0]}function i(e){return e[1]}r.r(t),r.d(t,{x:()=>n,y:()=>i})},(e,t,r)=>{"use strict";function n(e,t){return[(t=+t)*Math.cos(e-=Math.PI/2),t*Math.sin(e)]}r.r(t),r.d(t,{default:()=>n}),r.dn(n)},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>u});var n=r(341),i=r(2239),o=r(2142),a=r(2238);function s(){return s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];
41for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},s.apply(this,arguments)}var l=i.DISCRETE_COLOR_RANGE[1];function c(e){var t=e.animation,r=e.data,i=e.node,u=e.opacity,p=e.color,d=e.strokeWidth,h=e.style,f=e.onLinkClick,m=e.onLinkMouseOver,g=e.onLinkMouseOut;return t?n.default.createElement(o.default,s({},e,{animatedProps:a.ANIMATED_SERIES_PROPS}),n.default.createElement(c,s({},e,{animation:null}))):n.default.createElement("path",s({d:r},h,{className:"rv-sankey__link",opacity:Number.isFinite(u)?u:.7,stroke:p||l,onClick:function(e){return f(i,e)},onMouseOver:function(e){return m(i,e)},onMouseOut:function(e){return g(i,e)},strokeWidth:d,fill:"none"}))}c.displayName="SankeyLink",c.requiresSVG=!0;const u=c},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>w});var n=r(341),i=r(782),o=r.n(i),a=r(2457),s=r(2471),l=r(2178),c=r(2474),u=r(2142),p=r(2349),d=r(2232),h=r(2364),f=r(2238),m=r(2424),g=r(2240);function y(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function b(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?y(Object(r),!0).forEach(function(t){v(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):y(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function v(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var _="rv-sunburst",S=["onValueMouseOver","onValueMouseOut","onValueClick","onValueRightClick","onSeriesMouseOver","onSeriesMouseOut","onSeriesClick","onSeriesRightClick"];var E=function(){};function T(e){var t=e.getAngle,r=e.getAngle0,i=e.animation,o=e.className,u=e.children,y=e.data,v=e.height,T=e.hideRootNode,w=e.getLabel,x=e.width,O=e.getSize,I=e.colorType,A=function(e){var t=e.data,r=e.height,n=e.hideRootNode,i=e.width,o=e.getSize,u=(0,s.default)(),p=(0,a.default)(t).sum(o),d=Math.min(i,r)/2-10,h=(0,l.default)().range([0,2*Math.PI]),f=(0,c.sqrt)().range([0,d]);return u(p).descendants().reduce(function(e,t,r){return n&&0===r?e:e.concat([b({angle0:Math.max(0,Math.min(2*Math.PI,h(t.x0))),angle:Math.max(0,Math.min(2*Math.PI,h(t.x1))),radius0:Math.max(0,f(t.y0)),radius:Math.max(0,f(t.y1)),depth:t.depth,parent:t.parent},t.data)])},[])}({data:y,height:v,hideRootNode:T,width:x,getSize:O}),k=(0,f.getRadialDomain)(A),R=(0,m.getRadialLayoutMargin)(x,v,k),C=function(e,t){var r=t.getAngle,n=t.getAngle0,i=t.getLabel,o=t.getRadius0;return e.filter(i).map(function(e){var t=-1*r(e)+Math.PI/2,i=(-1*n(e)+Math.PI/2+t)/2,a=!e.dontRotateLabel,s=-i/(2*Math.PI)*360;return b(b({},e),{},{children:null,angle:null,radius:null,x:o(e)*Math.cos(i),y:o(e)*Math.sin(i),style:b({textAnchor:s>90?"end":"start"},e.labelStyle),rotation:a?s>90?s+180:90===s?90:s:null})})}(A,{getAngle:t,getAngle0:r,getLabel:w,getRadius0:function(e){return e.radius0}});return n.default.createElement(h.default,{height:v,hasTreeStructure:!0,width:x,className:(0,g.getCombinedClassName)(_,o),margin:R,xDomain:[-k,k],yDomain:[-k,k]},n.default.createElement(d.default,b(b({colorType:I},e),{},{animation:i,radiusDomain:[0,k],data:i?A.map(function(e,t){return b(b({},e),{},{parent:null,children:null,index:t})}):A,_data:i?A:null,arcClassName:"".concat(_,"__series--radial__arc")},S.reduce(function(t,r){var n,o=e[r];return t[r]=i?(n=o,function(e,t){return n?n(A[e.index],t):E}):o,t},{}))),C.length>0&&n.default.createElement(p.default,{data:C,getLabel:w}),u)}T.displayName="Sunburst",T.propTypes={animation:u.AnimationPropType,getAngle:o().func,getAngle0:o().func,className:o().string,colorType:o().string,data:o().object.isRequired,height:o().number.isRequired,hideRootNode:o().bool,getLabel:o().func,onValueClick:o().func,onValueMouseOver:o().func,onValueMouseOut:o().func,getSize:o().func,width:o().number.isRequired,padAngle:o().oneOfType([o().func,o().number])},T.defaultProps={getAngle:function(e){return e.angle},getAngle0:function(e){return e.angle0},className:"",colorType:"literal",getColor:function(e){return e.color},hideRootNode:!1,getLabel:function(e){return e.label},getSize:function(e){return e.size},padAngle:0};const w=T},(e,t,r)=>{"use strict";r.r(t),r.d(t,{Node:()=>S,computeHeight:()=>_,default:()=>g});var n=r(2458),i=r(2459),o=r(2460),a=r(2461),s=r(2462),l=r(2463),c=r(2464),u=r(2465),p=r(2466),d=r(2467),h=r(2468),f=r(2469),m=r(2470);function g(e,t){e instanceof Map?(e=[void 0,e],void 0===t&&(t=b)):void 0===t&&(t=y);for(var r,n,i,o,a,s=new S(e),l=[s];r=l.pop();)if((i=t(r.data))&&(a=(i=Array.from(i)).length))for(r.children=i,o=a-1;o>=0;--o)l.push(n=i[o]=new S(i[o])),n.parent=r,n.depth=r.depth+1;return s.eachBefore(_)}function y(e){return e.children}function b(e){return Array.isArray(e)?e[1]:null}function v(e){void 0!==e.data.value&&(e.value=e.data.value),e.data=e.data.data}function _(e){var t=0;do{e.height=t}while((e=e.parent)&&e.height<++t)}function S(e){this.data=e,this.depth=this.height=0,this.parent=null}S.prototype=g.prototype={constructor:S,count:n.default,each:i.default,eachAfter:a.default,eachBefore:o.default,find:s.default,sum:l.default,sort:c.default,path:u.default,ancestors:p.default,desce
41ndants:d.default,leaves:h.default,links:f.default,copy:function(){return g(this).eachBefore(v)},[Symbol.iterator]:m.default}},(e,t,r)=>{"use strict";function n(e){var t=0,r=e.children,n=r&&r.length;if(n)for(;--n>=0;)t+=r[n].value;else t=1;e.value=t}function i(){return this.eachAfter(n)}r.r(t),r.d(t,{default:()=>i}),r.dn(i)},(e,t,r)=>{"use strict";function n(e,t){let r=-1;for(const n of this)e.call(t,n,++r,this);return this}r.r(t),r.d(t,{default:()=>n}),r.dn(n)},(e,t,r)=>{"use strict";function n(e,t){for(var r,n,i=this,o=[i],a=-1;i=o.pop();)if(e.call(t,i,++a,this),r=i.children)for(n=r.length-1;n>=0;--n)o.push(r[n]);return this}r.r(t),r.d(t,{default:()=>n}),r.dn(n)},(e,t,r)=>{"use strict";function n(e,t){for(var r,n,i,o=this,a=[o],s=[],l=-1;o=a.pop();)if(s.push(o),r=o.children)for(n=0,i=r.length;n<i;++n)a.push(r[n]);for(;o=s.pop();)e.call(t,o,++l,this);return this}r.r(t),r.d(t,{default:()=>n}),r.dn(n)},(e,t,r)=>{"use strict";function n(e,t){let r=-1;for(const n of this)if(e.call(t,n,++r,this))return n}r.r(t),r.d(t,{default:()=>n}),r.dn(n)},(e,t,r)=>{"use strict";function n(e){return this.eachAfter(function(t){for(var r=+e(t.data)||0,n=t.children,i=n&&n.length;--i>=0;)r+=n[i].value;t.value=r})}r.r(t),r.d(t,{default:()=>n}),r.dn(n)},(e,t,r)=>{"use strict";function n(e){return this.eachBefore(function(t){t.children&&t.children.sort(e)})}r.r(t),r.d(t,{default:()=>n}),r.dn(n)},(e,t,r)=>{"use strict";function n(e){for(var t=this,r=function(e,t){if(e===t)return e;var r=e.ancestors(),n=t.ancestors(),i=null;e=r.pop(),t=n.pop();for(;e===t;)i=e,e=r.pop(),t=n.pop();return i}(t,e),n=[t];t!==r;)t=t.parent,n.push(t);for(var i=n.length;e!==r;)n.splice(i,0,e),e=e.parent;return n}r.r(t),r.d(t,{default:()=>n}),r.dn(n)},(e,t,r)=>{"use strict";function n(){for(var e=this,t=[e];e=e.parent;)t.push(e);return t}r.r(t),r.d(t,{default:()=>n}),r.dn(n)},(e,t,r)=>{"use strict";function n(){return Array.from(this)}r.r(t),r.d(t,{default:()=>n}),r.dn(n)},(e,t,r)=>{"use strict";function n(){var e=[];return this.eachBefore(function(t){t.children||e.push(t)}),e}r.r(t),r.d(t,{default:()=>n}),r.dn(n)},(e,t,r)=>{"use strict";function n(){var e=this,t=[];return e.each(function(r){r!==e&&t.push({source:r.parent,target:r})}),t}r.r(t),r.d(t,{default:()=>n}),r.dn(n)},(e,t,r)=>{"use strict";function*n(){var e,t,r,n,i=this,o=[i];do{for(e=o.reverse(),o=[];i=e.pop();)if(yield i,t=i.children)for(r=0,n=t.length;r<n;++r)o.push(t[r])}while(o.length)}r.r(t),r.d(t,{default:()=>n}),r.dn(n)},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>o}),r.dn(o);var n=r(2472),i=r(2473);function o(){var e=1,t=1,r=0,o=!1;function a(a){var s=a.height+1;return a.x0=a.y0=r,a.x1=e,a.y1=t/s,a.eachBefore(function(e,t){return function(n){n.children&&(0,i.default)(n,n.x0,e*(n.depth+1)/t,n.x1,e*(n.depth+2)/t);var o=n.x0,a=n.y0,s=n.x1-r,l=n.y1-r;s<o&&(o=s=(o+s)/2),l<a&&(a=l=(a+l)/2),n.x0=o,n.y0=a,n.x1=s,n.y1=l}}(t,s)),o&&a.eachBefore(n.default),a}return a.round=function(e){return arguments.length?(o=!!e,a):o},a.size=function(r){return arguments.length?(e=+r[0],t=+r[1],a):[e,t]},a.padding=function(e){return arguments.length?(r=+e,a):r},a}},(e,t,r)=>{"use strict";function n(e){e.x0=Math.round(e.x0),e.y0=Math.round(e.y0),e.x1=Math.round(e.x1),e.y1=Math.round(e.y1)}r.r(t),r.d(t,{default:()=>n}),r.dn(n)},(e,t,r)=>{"use strict";function n(e,t,r,n,i){for(var o,a=e.children,s=-1,l=a.length,c=e.value&&(n-t)/e.value;++s<l;)(o=a[s]).y0=r,o.y1=i,o.x0=t,o.x1=t+=o.value*c}r.r(t),r.d(t,{default:()=>n}),r.dn(n)},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>u,powish:()=>c,sqrt:()=>p});var n=r(2178),i=r(2180),o=r(2175);function a(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function s(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function l(e){return e<0?-e*e:e*e}function c(e){var t=e(i.identity,i.identity),r=1;return t.exponent=function(t){return arguments.length?1===(r=+t)?e(i.identity,i.identity):.5===r?e(s,l):e(a(r),a(1/r)):r},(0,n.linearish)(t)}function u(){var e=c((0,i.transformer)());return e.copy=function(){return(0,i.copy)(e,u()).exponent(e.exponent())},o.initRange.apply(e,arguments),e}function p(){return u.apply(null,arguments).exponent(.5)}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>R});var n=r(341),i=r(782),o=r.n(i),a=r(2457),s=r(2476),l=r(2471),c=r(2483),u=r(2486),p=r(2473),d=r(2485),h=r(2487),f=r(2484),m=r(2488),g=r(2239),y=r(2142),b=r(2172),v=r(2424),_=r(2489),S=r(2491);function E(){return E=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];
41for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},E.apply(this,arguments)}function T(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function w(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?T(Object(r),!0).forEach(function(t){x(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):T(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function x(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var O={squarify:f.default,resquarify:m.default,slice:d.default,dice:p.default,slicedice:h.default,binary:u.default},I=function(e){return e},A=["opacity","color"];function k(e){var t=function(e){var t=e.data.children||[],r=w(w(w({},e),(0,b.getMissingScaleProps)(e,t,A)),{},{_allData:t});return{opacity:(0,b.getAttributeFunctor)(r,"opacity"),color:(0,b.getAttributeFunctor)(r,"color")}}(e),r=(0,v.getInnerDimensions)(e,e.margin);var i=e.renderMode,o=function(){var t=r.innerWidth,n=r.innerHeight,i=e.data,o=e.mode,u=e.padding,p=e.sortFunction,d=e.getSize;if(!i)return[];if("partition"===o||"partition-pivot"===o){var h=(0,l.default)().size("partition-pivot"===o?[n,t]:[t,n]).padding(u)((0,a.default)(i).sum(d).sort(function(e,t){return p(e,t,d)})).descendants();return"partition-pivot"===o?h.map(function(e){return w(w({},e),{},{x0:e.y0,x1:e.y1,y0:e.x0,y1:e.x1})}):h}if("circlePack"===o)return(0,s.default)().size([t,n]).padding(u)((0,a.default)(i).sum(d).sort(function(e,t){return p(e,t,d)})).descendants();var f=O[o];return(0,c.default)(f).tile(f).size([t,n]).padding(u)((0,a.default)(i).sum(d).sort(function(e,t){return p(e,t,d)})).descendants()}(),u="SVG"===i?S.default:_.default;return n.default.createElement(u,E({},e,{nodes:o,scales:t}))}k.displayName="Treemap",k.propTypes={animation:y.AnimationPropType,className:o().string,data:o().object.isRequired,height:o().number.isRequired,hideRootNode:o().bool,margin:v.MarginPropType,mode:o().oneOf(Object.keys(O).concat(["circlePack","partition","partition-pivot"])),onLeafClick:o().func,onLeafMouseOver:o().func,onLeafMouseOut:o().func,useCirclePacking:o().bool,padding:o().number.isRequired,sortFunction:o().func,width:o().number.isRequired,getSize:o().func,getColor:o().func},k.defaultProps={className:"",colorRange:g.CONTINUOUS_COLOR_RANGE,_colorValue:g.DEFAULT_COLOR,data:{children:[]},hideRootNode:!1,margin:{left:40,right:10,top:10,bottom:40},mode:"squarify",onLeafClick:I,onLeafMouseOver:I,onLeafMouseOut:I,opacityType:g.OPACITY_TYPE,_opacityValue:g.DEFAULT_OPACITY,padding:1,sortFunction:function(e,t,r){return r?r(e)-r(t):0},getSize:function(e){return e.size},getColor:function(e){return e.color},getLabel:function(e){return e.title}};const R=k},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>l}),r.dn(l);var n=r(2477),i=r(2478),o=r(2479),a=r(2480);function s(e){return Math.sqrt(e.value)}function l(){var e=null,t=1,r=1,a=i.constantZero;function l(n){const l=(0,o.default)();return n.x=t/2,n.y=r/2,e?n.eachBefore(c(e)).eachAfter(u(a,.5,l)).eachBefore(p(1)):n.eachBefore(c(s)).eachAfter(u(i.constantZero,1,l)).eachAfter(u(a,n.r/Math.min(t,r),l)).eachBefore(p(Math.min(t,r)/(2*n.r))),n}return l.radius=function(t){return arguments.length?(e=(0,n.optional)(t),l):e},l.size=function(e){return arguments.length?(t=+e[0],r=+e[1],l):[t,r]},l.padding=function(e){return arguments.length?(a="function"==typeof e?e:(0,i.default)(+e),l):a},l}function c(e){return function(t){t.children||(t.r=Math.max(0,+e(t)||0))}}function u(e,t,r){return function(n){if(i=n.children){var i,o,s,l=i.length,c=e(n)*t||0;if(c)for(o=0;o<l;++o)i[o].r+=c;if(s=(0,a.packSiblingsRandom)(i,r),c)for(o=0;o<l;++o)i[o].r-=c;n.r=s+c}}}function p(e){return function(t){var r=t.parent;t.r*=e,r&&(t.x=r.x+e*t.x,t.y=r.y+e*t.y)}}},(e,t,r)=>{"use strict";function n(e){return null==e?null:i(e)}function i(e){if("function"!=typeof e)throw new Error;return e}r.r(t),r.d(t,{optional:()=>n,required:()=>i})},(e,t,r)=>{"use strict";function n(){return 0}function i(e){return function(){return e}}r.r(t),r.d(t,{constantZero:()=>n,default:()=>i}),r.dn(i)},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>a}),r.dn(a);const n=1664525,i=1013904223,o=4294967296;function a(){let e=1;return()=>(e=(n*e+i)%o)/o}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>p,packSiblingsRandom:()=>u}),r.dn(p);var n=r(2481),i=r(2479),o=r(2482);function a(e,t,r){var n,i,o,a,s=e.x-t.x,l=e.y-t.y,c=s*s+l*l;c?(i=t.r+r.r,i*=i,a=e.r+r.r,i>(a*=a)?(n=(c+a-i)/(2*c),o=Math.sqrt(Math.max(0,a/c-n*n)),r.x=e.x-n*s-o*l,r.y=e.y-n*l+o*s):(n=(c+i-a)/(2*c),o=Math.sqrt(Math.max(0,i/c-n*n)),r.x=t.x+n*s-o*l,r.y=t.y+n*l+o*s)):(r.x=t.x+r.r,r.y=t.y)}function s(e,t){var r=e.r+t.r-1e-6,n=t.x-e.x,i=t.y-e.y;return r>0&&r*r>n*n+i*i}function l(e){var t=e._,r=e.next._,n=t.r+r.r,i=(t.x*r.r+r.x*t.r)/n,o=(t.y*r.r+r.y*t.r)/n;return i*i+o*o}function c(e){this._=e,this.next=null,this.previous=null}function u(e,t){if(!(p=(e=(0,n.default)(e)).length))return 0;var r,i,u,p,d,h,f,m,g,y,b;if((r=e[0]).x=0,r.y=0,!(p>1))return r.r;if(i=e[1],r.x=-i.r,i.x=r.r,i.y=0,!(p>2))return r.r+i.r;a(i,r,u=e[2]),r=new c(r),i=new c(i),u=new c(u),r.next=u.previous=i,i.next=r.previous=u,u.next=i.previous=r;e:for(f=3;f<p;
vendor: 5,757 bytes, line 41
41++f){a(r._,i._,u=e[f]),u=new c(u),m=i.next,g=r.previous,y=i._.r,b=r._.r;do{if(y<=b){if(s(m._,u._)){i=m,r.next=i,i.previous=r,--f;continue e}y+=m._.r,m=m.next}else{if(s(g._,u._)){(r=g).next=i,i.previous=r,--f;continue e}b+=g._.r,g=g.previous}}while(m!==g.next);for(u.previous=r,u.next=i,r.next=i.previous=i=u,d=l(r);(u=u.next)!==i;)(h=l(u))<d&&(r=u,d=h);i=r.next}for(r=[i._],u=i;(u=u.next)!==i;)r.push(u._);for(u=(0,o.packEncloseRandom)(r,t),f=0;f<p;++f)(r=e[f]).x-=u.x,r.y-=u.y;return u.r}function p(e){return u(e,(0,i.default)()),e}},(e,t,r)=>{"use strict";function n(e){return"object"==typeof e&&"length"in e?e:Array.from(e)}function i(e,t){let r,n,i=e.length;for(;i;)n=t()*i--|0,r=e[i],e[i]=e[n],e[n]=r;return e}r.r(t),r.d(t,{default:()=>n,shuffle:()=>i}),r.dn(n)},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>o,packEncloseRandom:()=>a}),r.dn(o);var n=r(2481),i=r(2479);function o(e){return a(e,(0,i.default)())}function a(e,t){for(var r,i,o=0,a=(e=(0,n.shuffle)(Array.from(e),t)).length,l=[];o<a;)r=e[o],i&&c(i,r)?++o:(i=p(l=s(l,r)),o=0);return i}function s(e,t){var r,n;if(u(t,e))return[t];for(r=0;r<e.length;++r)if(l(t,e[r])&&u(d(e[r],t),e))return[e[r],t];for(r=0;r<e.length-1;++r)for(n=r+1;n<e.length;++n)if(l(d(e[r],e[n]),t)&&l(d(e[r],t),e[n])&&l(d(e[n],t),e[r])&&u(h(e[r],e[n],t),e))return[e[r],e[n],t];throw new Error}function l(e,t){var r=e.r-t.r,n=t.x-e.x,i=t.y-e.y;return r<0||r*r<n*n+i*i}function c(e,t){var r=e.r-t.r+1e-9*Math.max(e.r,t.r,1),n=t.x-e.x,i=t.y-e.y;return r>0&&r*r>n*n+i*i}function u(e,t){for(var r=0;r<t.length;++r)if(!c(e,t[r]))return!1;return!0}function p(e){switch(e.length){case 1:return{x:(t=e[0]).x,y:t.y,r:t.r};case 2:return d(e[0],e[1]);case 3:return h(e[0],e[1],e[2])}var t}function d(e,t){var r=e.x,n=e.y,i=e.r,o=t.x,a=t.y,s=t.r,l=o-r,c=a-n,u=s-i,p=Math.sqrt(l*l+c*c);return{x:(r+o+l/p*u)/2,y:(n+a+c/p*u)/2,r:(p+i+s)/2}}function h(e,t,r){var n=e.x,i=e.y,o=e.r,a=t.x,s=t.y,l=t.r,c=r.x,u=r.y,p=r.r,d=n-a,h=n-c,f=i-s,m=i-u,g=l-o,y=p-o,b=n*n+i*i-o*o,v=b-a*a-s*s+l*l,_=b-c*c-u*u+p*p,S=h*f-d*m,E=(f*_-m*v)/(2*S)-n,T=(m*g-f*y)/S,w=(h*v-d*_)/(2*S)-i,x=(d*y-h*g)/S,O=T*T+x*x-1,I=2*(o+E*T+w*x),A=E*E+w*w-o*o,k=-(Math.abs(O)>1e-6?(I+Math.sqrt(I*I-4*O*A))/(2*O):A/I);return{x:n+E+T*k,y:i+w+x*k,r:k}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>s}),r.dn(s);var n=r(2472),i=r(2484),o=r(2477),a=r(2478);function s(){var e=i.default,t=!1,r=1,s=1,l=[0],c=a.constantZero,u=a.constantZero,p=a.constantZero,d=a.constantZero,h=a.constantZero;function f(e){return e.x0=e.y0=0,e.x1=r,e.y1=s,e.eachBefore(m),l=[0],t&&e.eachBefore(n.default),e}function m(t){var r=l[t.depth],n=t.x0+r,i=t.y0+r,o=t.x1-r,a=t.y1-r;o<n&&(n=o=(n+o)/2),a<i&&(i=a=(i+a)/2),t.x0=n,t.y0=i,t.x1=o,t.y1=a,t.children&&(r=l[t.depth+1]=c(t)/2,n+=h(t)-r,i+=u(t)-r,(o-=p(t)-r)<n&&(n=o=(n+o)/2),(a-=d(t)-r)<i&&(i=a=(i+a)/2),e(t,n,i,o,a))}return f.round=function(e){return arguments.length?(t=!!e,f):t},f.size=function(e){return arguments.length?(r=+e[0],s=+e[1],f):[r,s]},f.tile=function(t){return arguments.length?(e=(0,o.required)(t),f):e},f.padding=function(e){return arguments.length?f.paddingInner(e).paddingOuter(e):f.paddingInner()},f.paddingInner=function(e){return arguments.length?(c="function"==typeof e?e:(0,a.default)(+e),f):c},f.paddingOuter=function(e){return arguments.length?f.paddingTop(e).paddingRight(e).paddingBottom(e).paddingLeft(e):f.paddingTop()},f.paddingTop=function(e){return arguments.length?(u="function"==typeof e?e:(0,a.default)(+e),f):u},f.paddingRight=function(e){return arguments.length?(p="function"==typeof e?e:(0,a.default)(+e),f):p},f.paddingBottom=function(e){return arguments.length?(d="function"==typeof e?e:(0,a.default)(+e),f):d},f.paddingLeft=function(e){return arguments.length?(h="function"==typeof e?e:(0,a.default)(+e),f):h},f}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>s,phi:()=>o,squarifyRatio:()=>a});var n=r(2473),i=r(2485),o=(1+Math.sqrt(5))/2;function a(e,t,r,o,a,s){for(var l,c,u,p,d,h,f,m,g,y,b,v=[],_=t.children,S=0,E=0,T=_.length,w=t.value;S<T;){u=a-r,p=s-o;do{d=_[E++].value}while(!d&&E<T);for(h=f=d,b=d*d*(y=Math.max(p/u,u/p)/(w*e)),g=Math.max(f/b,b/h);E<T;++E){if(d+=c=_[E].value,c<h&&(h=c),c>f&&(f=c),b=d*d*y,(m=Math.max(f/b,b/h))>g){d-=c;break}g=m}v.push(l={value:d,dice:u<p,children:_.slice(S,E)}),l.dice?(0,n.default)(l,r,o,a,w?o+=p*d/w:s):(0,i.default)(l,r,o,w?r+=u*d/w:a,s),w-=d,S=E}return v}const s=function e(t){function r(e,r,n,i,o){a(t,e,r,n,i,o)}return r.ratio=function(t){return e((t=+t)>1?t:1)},r}(o)},(e,t,r)=>{"use strict";function n(e,t,r,n,i){for(var o,a=e.children,s=-1,l=a.length,c=e.value&&(i-r)/e.value;++s<l;)(o=a[s]).x0=t,o.x1=n,o.y0=r,o.y1=r+=o.value*c}r.r(t),r.d(t,{default:()=>n}),r.dn(n)},(e,t,r)=>{"use strict";function n(e,t,r,n,i){var o,a,s=e.children,l=s.length,c=new Array(l+1);for(c[0]=a=o=0;o<l;++o)c[o+1]=a+=s[o].value;!function e(t,r,n,i,o,a,l){if(t>=r-1){var u=s[t];return u.x0=i,u.y0=o,u.x1=a,void(u.y1=l)}var p=c[t],d=n/2+p,h=t+1,f=r-1;for(;h<f;){var m=h+f>>>1;c[m]<d?h=m+1:f=m}d-c[h-1]<c[h]-d&&t+1<h&&--h;var g=c[h]-p,y=n-g;if(a-i>l-o){var b=n?(i*y+a*g)/n:a;e(t,h,g,i,o,b,l),e(h,r,y,b,o,a,l)}else{var v=n?(o*y+l*g)/n:l;e(t,h,g,i,o,a,v),e(h,r,y,i,v,a,l)}}(0,l,e.value,t,r,n,i)}r.r(t),r.d(t,{default:()=>n}),r.dn(n)},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>o}),r.dn(o);var n=r(2473),i=r(2485);function o(e,t,r,o,a){(1&e.depth?i.default:n.default)(e,t,r,o,a)}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>a});var n=r(2473),i=r(2485),o=r(2484);const a=function e(t){function r(e,r,a,s,l){if((c=e._squarify)&&c.ratio===t)for(var c,u,p,d,h,f=-1,m=c.length,g=e.value;++f<m;){for(p=(u=c[f]).children,d=u.value=0,h=p.length;d<h;++d)u.value+=p[d].value;u.dice?(0,n.default)(u,r,a,s,g?a+=(l-a)*u.value/g:l):(0,i.default)(u,r,a,g?r+=(s-r)*u.value/g:s,l),g
41-=u.value}else e._squarify=c=(0,o.squarifyRatio)(t,e,r,a,s,l),c.ratio=t}return r.ratio=function(t){return e((t=+t)>1?t:1)},r}(o.phi)},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>p});var n=r(341),i=r(2490),o=r(2240);function a(){return a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},a.apply(this,arguments)}function s(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function l(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?s(Object(r),!0).forEach(function(t){c(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):s(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function c(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function u(e){var t=e.animation,r=e.className,s=e.height,c=e.hideRootNode,u=e.getLabel,p=e.mode,d=e.nodes,h=e.width,f=e.scales,m=e.style,g="circlePack"===p;return n.default.createElement("div",{className:(0,o.getCombinedClassName)("rv-treemap",g&&"rv-treemap-circle-paked",r),style:{height:s,width:h}},d.map(function(r,o){if(c&&!o)return null;var s=l(l({animation:t,node:r,getLabel:u},e),{},{x0:g?r.x:r.x0,x1:g?r.x:r.x1,y0:g?r.y:r.y0,y1:g?r.y:r.y1,r:g?r.r:1,scales:f,style:m});return n.default.createElement(i.default,a({},s,{key:"leaf-".concat(o)}))}))}u.displayName="TreemapDOM";const p=u},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>f});var n=r(341),i=r(782),o=r.n(i),a=r(2142),s=r(2172);function l(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function c(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?l(Object(r),!0).forEach(function(t){u(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):l(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function u(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function p(){return p=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},p.apply(this,arguments)}var d=["colorRange","colorDomain","color","opacityRange","opacityDomain","opacity","x0","x1","y0","y1","r"];function h(e){var t=e.animation,r=e.getLabel,i=e.mode,o=e.node,l=e.onLeafClick,u=e.onLeafMouseOver,f=e.onLeafMouseOut,m=e.r,g=e.scales,y=e.x0,b=e.x1,v=e.y0,_=e.y1,S=e.style;if(t)return n.default.createElement(a.default,p({},e,{animatedProps:d}),n.default.createElement(h,p({},e,{animation:null})));var E="circlePack"===i,T=g.color(o),w=g.opacity(o),x=(0,s.getFontColorFromBackground)(T),O=r(o.data),I=c(c({top:E?v-m:v,left:E?y-m:y,width:E?2*m:b-y,height:E?2*m:_-v,background:T,opacity:w,color:x},S),o.data.style);return n.default.createElement("div",{className:"rv-treemap__leaf ".concat(E?"rv-treemap__leaf--circle":""),onMouseEnter:function(e){return u(o,e)},onMouseLeave:function(e){return f(o,e)},onClick:function(e){return l(o,e)},style:I},n.default.createElement("div",{className:"rv-treemap__leaf__content"},O))}h.propTypes={animation:a.AnimationPropType,height:o().number.isRequired,mode:o().string,node:o().object.isRequired,onLeafClick:o().func,onLeafMouseOver:o().func,onLeafMouseOut:o().func,scales:o().object.isRequired,width:o().number.isRequired,r:o().number.isRequired,x0:o().number.isRequired,x1:o().number.isRequired,y0:o().number.isRequired,y1:o().number.isRequired};const f=h},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>v});var n=r(341),i=r(2364),o=r(2356),a=r(2352),s=r(2349),l=r(2240);function c(e){return c="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},c(e)}function u(){return u=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];
41for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},u.apply(this,arguments)}function p(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function d(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?p(Object(r),!0).forEach(function(t){h(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):p(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function h(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function f(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function m(e,t){return m=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},m(e,t)}function g(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}();return function(){var r,n=y(e);if(t){var i=y(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return function(e,t){if(t&&("object"===c(t)||"function"==typeof t))return t;return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,r)}}function y(e){return y=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},y(e)}var b=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&m(e,t)}(h,e);var t,r,c,p=g(h);function h(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,h),p.apply(this,arguments)}return t=h,(r=[{key:"getCircularNodes",value:function(){var e=this.props,t=e.animation,r=e.hideRootNode,i=e.nodes,o=e.onLeafMouseOver,s=e.onLeafMouseOut,l=e.onLeafClick,c=e.scales,u=e.style,p=i.reduce(function(e,t,n){if(!n&&r)return e;var i=t.x,o=t.y,a=t.r;return{maxY:Math.max(o+a,e.maxY),minY:Math.min(o-a,e.minY),maxX:Math.max(i+1.2*a,e.maxX),minX:Math.min(i-1.2*a,e.minX),rows:e.rows.concat([{x:i,y:o,size:a,color:c.color(t)}])}},{rows:[],maxY:-1/0,minY:1/0,maxX:-1/0,minX:1/0}),d=p.rows,h=p.minY,f=p.maxY,m=p.minX,g=p.maxX;return{updatedNodes:n.default.createElement(a.default,{animation:t,className:"rv-treemap__leaf rv-treemap__leaf--circle",onSeriesMouseEnter:o,onSeriesMouseLeave:s,onSeriesClick:l,data:d,colorType:"literal",getColor:function(e){return e.color},sizeType:"literal",getSize:function(e){return e.size},style:u}),minY:h,maxY:f,minX:m,maxX:g}}},{key:"getNonCircularNodes",value:function(){var e=this.props,t=e.animation,r=e.hideRootNode,i=e.nodes,a=e.onLeafMouseOver,s=e.onLeafMouseOut,l=e.onLeafClick,c=e.scales,u=e.style,p=c.color;return i.reduce(function(e,i,c){if(!c&&r)return e;var h=i.x0,f=i.x1,m=i.y1,g=i.y0,y=h,b=g,v=m-g,_=f-h;e.maxY=Math.max(b+v,e.maxY),e.minY=Math.min(b,e.minY),e.maxX=Math.max(y+_,e.maxX),e.minX=Math.min(y,e.minX);var S=[{x:y,y:b},{x:y,y:b+v},{x:y+_,y:b+v},{x:y+_,y:b}];return e.updatedNodes=e.updatedNodes.concat([n.default.createElement(o.default,{animation:t,className:"rv-treemap__leaf",key:c,color:p(i),type:"literal",onSeriesMouseEnter:a,onSeriesMouseLeave:s,onSeriesClick:l,data:S,style:d(d({},u),i.style)})]),e},{updatedNodes:[],maxY:-1/0,minY:1/0,maxX:-1/0,minX:1/0})}},{key:"render",value:function(){var e=this.props,t=e.className,r=e.height,o=e.mode,a=e.nodes,c=e.width,p="circlePack"===o,h=p?this.getCircularNodes():this.getNonCircularNodes(),f=h.minY,m=h.maxY,g=h.minX,y=h.maxX,b=h.updatedNodes,v=a.reduce(function(e,t){return t.data.title?e.concat(d(d({},t.data),{},{x:t.x0||t.x,y:t.y0||t.y,label:"".concat(t.data.title)})):e},[]);return n.default.createElement(i.default,u({className:(0,l.getCombinedClassName)("rv-treemap",p&&"rv-treemap-circle-paked",t),width:c,height:r,yDomain:[m,f],xDomain:[g,y],colorType:"literal",hasTreeStructure:!0},this.props),b,n.default.createElement(s.default,{data:v}))}}])&&f(t.prototype,r),c&&f(t,c),h}(n.default.Component);b.displayName="TreemapSVG";const v=b},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>i});var n=r(341);function i(e){var t=e.id,r=void 0===t?"content-area":t,i=e.innerWidth,o=e.innerHe
41ight;return n.default.createElement("defs",null,n.default.createElement("clipPath",{id:r},n.default.createElement("rect",{x:0,y:0,width:i,height:o})))}i.requiresSVG=!0,i.displayName="ContentClipPath"},(e,t,r)=>{"use strict";r.r(t),r.d(t,{FlexibleHeightXYPlot:()=>P,FlexibleWidthXYPlot:()=>C,FlexibleXYPlot:()=>D,makeHeightFlexible:()=>A,makeVisFlexible:()=>k,makeWidthFlexible:()=>R});var n=r(341),i=r(2494),o=r.n(i),a=r(2364),s=r(2230);function l(e){return l="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},l(e)}function c(){return c=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},c.apply(this,arguments)}function u(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function p(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?u(Object(r),!0).forEach(function(t){v(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):u(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function d(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function h(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function f(e,t,r){return t&&h(e.prototype,t),r&&h(e,r),e}function m(e,t){return m=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},m(e,t)}function g(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}();return function(){var r,n=b(e);if(t){var i=b(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return function(e,t){if(t&&("object"===l(t)||"function"==typeof t))return t;return y(e)}(this,r)}}function y(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function b(e){return b=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},b(e)}function v(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var _="container",S=[],E=100,T=null;function w(){o().clearTimeout(T),T=o().setTimeout(x,E)}function x(){S.forEach(function(e){return e()})}function O(e){return S.push(e),1===S.length&&o().addEventListener("resize",w),function(){!function(e){var t=S.indexOf(e);t>-1&&S.splice(t,1)}(e),0===S.length&&(o().clearTimeout(T),o().removeEventListener("resize",w))}}function I(e,t,r){var i,o=(i=function(i){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&m(e,t)}(a,i);var o=g(a);function a(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),v(y(t=o.call(this,e)),"_onResize",function(){var e=(0,s.getDOMNode)(t[_]),r=e.offsetHeight,n=e.offsetWidth,i=t.state.height===r?{}:{height:r},o=t.state.width===n?{}:{width:n};t.setState(p(p({},i),o))}),t.state={height:0,width:0},t}return f(a,null,[{key:"propTypes",get:function(){var t=e.propTypes;t.height,t.width;return d(t,["height","width"])}}
41]),f(a,[{key:"componentDidMount",value:function(){this._onResize(),this.cancelSubscription=O(this._onResize)}},{key:"UNSAFE_componentWillReceiveProps",value:function(){this._onResize()}},{key:"componentWillUnmount",value:function(){this.cancelSubscription()}},{key:"render",value:function(){var i=this,o=this.state,a=o.height,s=o.width,l=p(p({},this.props),{},{animation:0===a&&0===s?null:this.props.animation}),u=p(p({},r?{height:a}:{}),t?{width:s}:{});return n.default.createElement("div",{ref:function(e){return i[_]=e},style:{width:"100%",height:"100%"}},n.default.createElement(e,c({},u,l)))}}]),a}(n.default.Component),i);return o.displayName="Flexible".concat(function(e){return e.displayName||e.name||"Component"}(e)),o}function A(e){return I(e,!1,!0)}function k(e){return I(e,!0,!0)}function R(e){return I(e,!0,!1)}var C=R(a.default),P=A(a.default),D=k(a.default)},e=>{var t;t="undefined"!=typeof window?window:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},e.exports=t},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,(e,t,r)=>{"use strict";r.r(t),r.d(t,{compareVersions:()=>i});var n=r(2775);const i=(e,t)=>{const r=(0,n.validateAndParse)(e),i=(0,n.validateAndParse)(t),o=r.pop(),a=i.pop(),s=(0,n.compareSegments)(r,i);return 0!==s?s:o&&a?(0,n.compareSegments)(o.split("."),a.split(".")):o||a?o?-1:1:0}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{compareSegments:()=>l,semver:()=>n,validateAndParse:()=>i});const n=/^[v^~<>=]*?(\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+))?(?:-([\da-z\-]+(?:\.[\da-z\-]+)*))?(?:\+[\da-z\-]+(?:\.[\da-z\-]+)*)?)?)?$/i,i=e=>{if("string"!=typeof e)throw new TypeError("Invalid argument expected string");const t=e.match(n);
41if(!t)throw new Error(`Invalid argument not valid semver ('${e}' received)`);return t.shift(),t},o=e=>"*"===e||"x"===e||"X"===e,a=e=>{const t=parseInt(e,10);return isNaN(t)?e:t},s=(e,t)=>{if(o(e)||o(t))return 0;const[r,n]=((e,t)=>typeof e!=typeof t?[String(e),String(t)]:[e,t])(a(e),a(t));return r>n?1:r<n?-1:0},l=(e,t)=>{for(let r=0;r<Math.max(e.length,t.length);r++){const n=s(e[r]||"0",t[r]||"0");if(0!==n)return n}return 0}},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,(e,t,r)=>{"use strict";r.r(t),r.d(t,{Container:()=>g});var n=r(996),i=r(994),o=r(2865),a=r(2867),s=r(1004),l=r(1011),c=r(1031),u=r(2868),p=r(2871),d=r(1005),h=r(1025);function f(e){return!e.destroyed}function m(e,t,...r){const n=new c.Options(e,t);return(0,h.loadOptions)(n,...r),n}class g{actualOptions;canvas;destroyed;effectDrawers;fpsLimit;hdr;hdrMode;id;pageHidden;particleCreatedPlugins;particleDestroyedPlugins;particlePositionPlugins;particleUpdaters;particles;peakNits;plugins;retina;shapeDrawers;started;zLayers;#S;#E;#T={value:0,factor:0};#w;#x;#O;#I;#A;#k;#R;#C;#P;#D;#M;#h;#N;#L;constructor(e){const{dispatchCallback:t,pluginManager:r,id:n,onDestroy:i,sourceOptions:c}=e;this.#h=r,this.#w=t,this.#P=i,this.id=Symbol(n),this.fpsLimit=120,this.hdr=!1,this.hdrMode=l.HdrMode.standard,this.peakNits=400,this.#N=!1,this.#S=0,this.#O=0,this.#C=0,this.#A=!0,this.started=!1,this.destroyed=!1,this.#M=!0,this.#R=0,this.zLayers=100,this.pageHidden=!1,this.#L=c,this.#k=c,this.effectDrawers=new Map,this.shapeDrawers=new Map,this.particleUpdaters=[],this.retina=new p.Retina(this),this.canvas=new o.CanvasManager(this.#h,this),this.particles=new u.ParticlesManager(this.#h,this),this.plugins=[],this.particleDestroyedPlugins=[],this.particleCreatedPlugins=[],this.particlePositionPlugins=[],this.#D=m(this.#h,this),this.actualOptions=m(this.#h,this),this.#I=new a.EventListeners(this),this.dispatchEvent(s.EventType.containerBuilt)}get animationStatus(){return!this.#M&&!this.pageHidden&&f(this)}get options(){return this.#D}get sourceOptions(){return this.#L}addLifeTime(e){this.#C+=e}alive(){return!this.#O||this.#C<=this.#O}destroy(e=!0){if(f(this)){this.stop(),this.particles.destroy(),this.canvas.destroy();for(const[,e]of this.effectDrawers)e.destroy?.(this);for(const[,e]of this.shapeDrawers)e.destroy?.(this);for(const e of this.plugins)e.destroy?.();this.effectDrawers=new Map,this.shapeDrawers=new Map,this.particleUpdaters=[],this.plugins.length=0,this.#h.clearPlugins(this),this.destroyed=!0,this.#P(e),this.dispatchEvent(s.EventType.containerDestroyed)}}dispatchEvent(e,t){this.#w(e,{container:this,data:t})}draw(e){if(!f(this))return;let t=e;this.#x=(0,n.animate)(e=>{t&&(this.#R=void 0,t=!1),this.#F(e)})}async export(e,t={}){for(const r of this.plugins){if(!r.export)continue;const n=await r.export(e,t);if(n.supported)return n.blob}(0,d.getLogger)().error(`Export plugin with type ${e} not found`)}
vendor: 8,163 bytes, line 41
41async init(){if(!f(this))return;const e=new Map;for(const t of this.#h.plugins){const r=await t.getPlugin(this);r.preInit&&await r.preInit(),e.set(t,r)}await this.initDrawersAndUpdaters(),this.#D=m(this.#h,this,this.#k,this.sourceOptions),this.actualOptions=m(this.#h,this,this.#D),this.plugins.length=0,this.particleDestroyedPlugins.length=0,this.particleCreatedPlugins.length=0,this.particlePositionPlugins.length=0;for(const[t,r]of e)t.needsPlugin(this.actualOptions)&&(this.plugins.push(r),r.particleCreated&&this.particleCreatedPlugins.push(r),r.particleDestroyed&&this.particleDestroyedPlugins.push(r),r.particlePosition&&this.particlePositionPlugins.push(r));this.retina.init(),this.canvas.init(),this.updateActualOptions(),this.canvas.initBackground(),this.canvas.resize();const{delay:t,duration:r,fpsLimit:o,smooth:a,zLayers:l}=this.actualOptions,c=this.actualOptions.hdr;this.hdrMode=c.mode,this.peakNits=c.peakNits,this.zLayers=l,this.#O=(0,n.getRangeValue)(r)*i.millisecondsToSeconds,this.#S=(0,n.getRangeValue)(t)*i.millisecondsToSeconds,this.#C=0,this.fpsLimit=o>i.minFpsLimit?o:i.defaultFpsLimit,this.#N=a;for(const e of this.plugins)await(e.init?.());await this.particles.init(),this.dispatchEvent(s.EventType.containerInit),this.particles.setDensity();for(const e of this.plugins)e.particlesSetup?.();this.dispatchEvent(s.EventType.particlesSetup)}async initDrawersAndUpdaters(){const e=this.#h;this.effectDrawers=await e.getEffectDrawers(this,!0),this.shapeDrawers=await e.getShapeDrawers(this,!0),this.particleUpdaters=await e.getUpdaters(this,!0)}pause(){if(f(this)&&(void 0!==this.#x&&((0,n.cancelAnimation)(this.#x),this.#x=void 0),!this.#M)){for(const e of this.plugins)e.pause?.();this.pageHidden||(this.#M=!0),this.dispatchEvent(s.EventType.containerPaused)}}play(e){if(!f(this))return;const t=this.#M||e;if(!this.#A||this.actualOptions.autoPlay){if(this.#M&&(this.#M=!1),t)for(const e of this.plugins)e.play&&e.play();this.dispatchEvent(s.EventType.containerPlay),this.draw(t??!1)}else this.#A=!1}async refresh(){if(f(this))return this.stop(),this.start()}async reset(e){if(f(this))return this.#k=e,this.#L=e,this.#D=m(this.#h,this,this.#k,this.sourceOptions),this.actualOptions=m(this.#h,this,this.#D),this.refresh()}async start(){f(this)&&!this.started&&(await this.init(),this.started=!0,await new Promise(e=>{const t=async()=>{this.#I.addListeners();for(const e of this.plugins)await(e.start?.());this.dispatchEvent(s.EventType.containerStarted),this.play(),e()};this.#E=setTimeout(()=>{t()},this.#S)}))}stop(){if(f(this)&&this.started){this.#E&&(clearTimeout(this.#E),this.#E=void 0),this.#A=!0,this.started=!1,this.#I.removeListeners(),this.pause(),this.particles.clear(),this.canvas.stop();for(const e of this.plugins)e.stop?.();this.particleCreatedPlugins.length=0,this.particleDestroyedPlugins.length=0,this.particlePositionPlugins.length=0,this.#L=this.#D,this.dispatchEvent(s.EventType.containerStopped)}}updateActualOptions(){let e=!1;for(const t of this.plugins)t.updateActualOptions&&(e=t.updateActualOptions()||e);return e}#F(e){try{if(!this.#N&&void 0!==this.#R&&e<this.#R+i.millisecondsToSeconds/this.fpsLimit)return void this.draw(!1);if(this.#R??=e,function(e,t,r=i.defaultFps,n=!1){e.value=t,e.factor=n?i.defaultFps/r:i.defaultFps*t/i.millisecondsToSeconds}(this.#T,e-this.#R,this.fpsLimit,this.#N),this.addLifeTime(this.#T.value),this.#R=e,this.#T.value>i.millisecondsToSeconds)return void this.draw(!1);if(this.canvas.render.drawParticles(this.#T),!this.alive())return void this.destroy();this.animationStatus&&this.draw(!1)}catch(e){(0,d.getLogger)().error("error in animation loop",e)}}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{CanvasManager:()=>c});var n=r(995),i=r(994),o=r(1054),a=r(2866);const s=new WeakMap;function l(e,t,r=!1){if(!t)return;const n=e.style,i=new Set;for(let e=0;e<n.length;e++){const t=n.item(e);t&&i.add(t)}for(let e=0;e<t.length;e++){const r=t.item(e);r&&i.add(r)}for(const e of i){const i=t.getPropertyValue(e);i?n.setProperty(e,i,r?"important":""):n.removeProperty(e)}}class c{domElement;render;renderCanvas;size;zoom=i.defaultZoom;#d;#B;#U;#j;#H;#h;#V;#z;#G;#q;constructor(e,t){this.#h=e,this.#d=t,this.render=new a.RenderManager(e,t,this),this.#G={height:0,width:0};const r=t.retina.pixelRatio,n=this.#G;this.size={height:n.height*r,width:n.width*r},this.#B=!1,this.#z=[],this.#V="none"}get#$(){return this.#d.actualOptions.fullScreen.enable}destroy(){if(this.stop(),this.#B){const e=this.domElement;e?.remove(),this.domElement=void 0,this.renderCanvas=void 0}else this.#W();this.render.destroy(),this.#z=[]}getZoomCenter(){const e=this.#d.retina.pixelRatio,{width:t,height:r}=this.size;return this.#q?this.#q:{x:t*i.half/e,y:r*i.half/e}}init(){this.#Y(e=>{e.disconnect()}),this.#j=(0,n.safeMutationObserver)(e=>{for(const t of e)"attributes"===t.type&&"style"===t.attributeName&&this.#K()}),this.resize(),this.#J(),this.#Y(e=>{const t=this.domElement;t&&t instanceof Node&&e.observe(t,{attributes:!0})}),this.initPlugins(),this.#Q(),this.initBackground(),this.#X(),this.render.init()}initBackground(){const e=this.#d,t=e.actualOptions.background,r=this.domElement;if(!r)return;const n=r.style,i=(0,o.rangeColorToRgb)(this.#h,t.color);if(i){const r=e.actualOptions.hdr;n.backgroundColor=(0,o.getStyleFromRgb)(i,e.hdr,t.opacity,r.peakNits,r.mode)}else n.backgroundColor="";n.backgroundImage=t.image||"",n.backgroundPosition=t.position||"",n.backgroundRepeat=t.repeat||"",n.backgroundSize=t.size||""}initPlugins(){this.#z=[];for(const e of this.#d.plugins)e.resize&&this.#z.push(e)}loadCanvas(e){this.#B&&this.domElement&&this.domElement.remove();const t=(e=>"undefined"!=typeof HTMLCanvasElement&&e instanceof HTMLCanvasElement)(e)?e:void 0;this.domElement=t,this.#B=!!t&&"true"===t.dataset[i.generatedAttribute],this.renderCanvas=t?(e=>{const t=s.get(e);if(t)return t;if("function"!=typeof e.transferControlToOffscreen)throw new TypeError("OffscreenCanvas is required but not supported by this browser");try{const t=e.transferControlToOffscreen();return s.set(e,t),t}catch{throw new TypeError("OffscreenCanvas transfer failed")}})(t):e;const r=this.domElement;r&&(r.ariaHidden="true",this.#H=(0,n.cloneStyle)(r.style));const o=this.#G,a=this.renderCanvas;r?(o.height=r.offsetHeight,o.width=r.offsetWidth):(o.height=a.height,o.width=a.width);const l=this.#d.retina.pixelRatio,c=this.size;a.height=c.height=o.height*l,a.width=c.width=o.width*l}resize(){const e=this.domElement;if(!e)return!1;const t=this.#d,r=this.renderCanvas;if(void 0===r)return!1;const n=t.canvas.#G,i={width:e.offsetWidth,height:e.offsetHeight},o=t.retina.pixelRatio,a={width:i.width*o,height:i.height*o};if(i.height===n.height&&i.width===n.width&&a.height===r.height&&a.width===r.width)return!1;const s={...n};n.height=i.height,n.width=i.width;const l=this.size;return r.width=l.width=a.width,r.height=l.height=a.height,this.#d.started&&t.particles.setResizeFactor({width:n.width/s.width,height:n.height/s.height}),!0}setPointerEvents(e){this.domElement&&(this.#V=e,this.#K())}setZoom(e,t){this.zoom=e,this.#q=t}stop(){this.#Y(e=>{e.disconnect()}),this.#j=void 0,this.#Z(),this.render.stop()}async windowResize(){if(!this.domElement||!this.resize())return;const e=this.#d,t=e.updateActualOptions();e.particles.setDensity(),this.#ee(),t&&await e.refresh()}#ee(){for(const e of this.#z)e.resize?.()}#Q(){const e=this.#d,t=e.actualOptions.hdr.enable&&(0,n.safeMatchMedia)("(color-gamut: p3)")?.matches&&(0,n.safeMatchMedia)("(dynamic-range: high)")?.matches;e.hdr=t??!1,e.hdrMode=e.actualOptions.hdr.mode,e.peakNits=e.actualOptions.hdr.peakNits;const r=this.renderCanvas;if(!r)return;let i;this.render.setContextSettings({alpha:!0,desynchronized:!0,willReadFrequently:!1,...t?{colorSpace:"display-p3",colorType:"float16"}:{colorSpace:"srgb"}});try{i=r.getContext("2d",this.render.settings)}catch{i=null}if(t&&!i){e.hdr=!1;const t={alpha:!0,desynchronized:!0,willReadFrequently:!1,colorSpace:"srgb"};this.render.setContextSettings(t);try{i=r.getContext("2d",t)}catch{i=null}}this.render.setContext(i)}#X(){this.#Z();const e=(0,n.safeMatchMedia)("(color-gamut: p3)"),t=(0,n.safeMatchMedia)("(dynamic-range: high)"),r=()=>
vendor: 8,906 bytes, line 41
41{this.#te(),this.#Q(),this.initBackground()},i=[];e&&(e.addEventListener("change",r),i.push({handler:r,mql:e})),t&&(t.addEventListener("change",r),i.push({handler:r,mql:t})),this.#U=i}#J(){const e=this.domElement,t=this.#d.actualOptions;if(e){this.#$?this.#re():this.#W();for(const r in t.style){if(!r||!(r in t.style))continue;const n=t.style[r];n&&e.style.setProperty(r,n,"important")}}}#te(){const e=this.renderCanvas;e&&(this.domElement||(this.renderCanvas=new OffscreenCanvas(e.width,e.height)))}#Z(){if(this.#U){for(const{handler:e,mql:t}of this.#U)t.removeEventListener("change",e);this.#U=void 0}}#K(){const e=this.domElement;if(!e)return;this.#Y(e=>{e.disconnect()}),this.#J(),this.initBackground();const t=this.#V;e.style.pointerEvents=t,e.style.setProperty("pointer-events",t),this.#Y(t=>{e instanceof Node&&t.observe(e,{attributes:!0})})}#W(){const e=this.domElement,t=this.#H;e&&t&&l(e,t,!0)}#Y(e){this.#j&&e(this.#j)}#re(){const e=this.domElement;e&&l(e,(0,n.getFullScreenStyle)(this.#d.actualOptions.fullScreen.zIndex),!0)}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{RenderManager:()=>l});var n=r(994),i=r(1054),o=r(1020),a=r(1005);function s(e,t,r){const i=t[r];void 0!==i&&(e[r]=(e[r]??n.defaultTransformValue)*i)}class l{#ne;#ie;#oe;#ae;#se;#d;#le;#ce;#ue;#pe;#de;#he;#h;#fe;#me;#ge={};#ye=[void 0,void 0];#be={};constructor(e,t,r){this.#h=e,this.#d=t,this.#ae=r,this.#le=null,this.#ne=null,this.#ie=new Set,this.#me=[],this.#fe=[],this.#oe=[],this.#se=[],this.#ue=[],this.#pe=[],this.#de=[],this.#he={0:[],1:[],2:[],3:[],4:[],5:[],6:[],7:[]}}get settings(){return this.#ce}canvasClear(){this.#d.actualOptions.clear&&this.draw(e=>{e.clearRect(n.originPoint.x,n.originPoint.y,this.#ae.size.width,this.#ae.size.height)})}clear(){for(const e of this.#oe)if(e.canvasClear?.())return;for(const e of Object.values(o.DrawLayer))if("number"==typeof e)for(const t of this.#ve(e))if(t.canvasClear?.())return;this.canvasClear()}destroy(){this.stop(),this.#ne=null,this.#ie.clear(),this.#me=[],this.#fe=[],this.#oe=[],this.#se=[],this.#ue=[],this.#pe=[],this.#de=[];for(const e of Object.values(o.DrawLayer))"number"==typeof e&&(this.#he[e]=[])}draw(e){const t=this.#le;if(t)return e(t)}drawParticle(e,t){if(e.spawning||e.destroyed)return;const r=e.getRadius();if(r<=n.minimumSize)return;const o=e.getFillColor(),a=e.getStrokeColor();let[s,l]=this.#_e(e);if(s??=o,l??=a,!s&&!l)return;const c=this.#d,u=e.options.zIndex,p=n.zIndexFactorOffset-e.zIndexFactor,{fillOpacity:d,opacity:h,strokeOpacity:f}=e.getOpacity(),m=this.#be,g=this.#ge,y=s?(0,i.getStyleFromHsl)(s,c.hdr,d*h,c.peakNits,c.hdrMode):void 0,b=l?(0,i.getStyleFromHsl)(l,c.hdr,f*h,c.peakNits,c.hdrMode):y;m.a=m.b=m.c=m.d=void 0,g.fill=y,g.stroke=b,this.draw(n=>{for(const r of this.#de)r.drawParticleSetup?.(n,e,t);this.#Se(n,e,r,h,g,m),this.#Ee({container:c,context:n,particle:e,delta:t,colorStyles:g,radius:r*p**u.sizeRate,opacity:h,transform:m}),this.#Te(e);for(const r of this.#pe)r.drawParticleCleanup?.(n,e,t)})}drawParticlePlugins(e,t){this.draw(r=>{for(const n of this.#ue)this.#we(r,n,e,t)})}drawParticles(e){const{particles:t,actualOptions:r}=this.#d;this.clear(),t.update(e),this.draw(i=>{const a=this.#ae.size.width,s=this.#ae.size.height;if(this.#ne)try{i.drawImage(this.#ne,n.originPoint.x,n.originPoint.y,a,s)}catch{this.#xe("background-element-draw-error","Error drawing background element onto canvas")}const l=r.background;if(l.draw)try{l.draw(i,e)}catch{this.#xe("background-draw-error","Error in background.draw callback")}for(const e of this.#ve(o.DrawLayer.BackgroundMask))e.canvasPaint?.();for(const t of this.#ve(o.DrawLayer.CanvasSetup))t.drawSettingsSetup?.(i,e);for(const t of this.#ve(o.DrawLayer.PluginContent))t.draw?.(i,e);t.drawParticles(e);for(const t of this.#ve(o.DrawLayer.CanvasCleanup))t.clearDraw?.(i,e),t.drawSettingsCleanup?.(i,e)})}init(){this.initUpdaters(),this.initPlugins(),this.#Oe(),this.paint()}initPlugins(){this.#oe=[],this.#se=[],this.#ue=[],this.#de=[],this.#pe=[];for(const e of Object.values(o.DrawLayer))"number"==typeof e&&(this.#he[e]=[]);for(const e of this.#d.plugins)(e.particleFillColor??e.particleStrokeColor)&&this.#se.push(e),e.drawParticle&&this.#ue.push(e),e.drawParticleSetup&&this.#de.push(e),e.drawParticleCleanup&&this.#pe.push(e),e.canvasClear&&this.#oe.push(e),e.canvasPaint&&this.#ve(o.DrawLayer.BackgroundMask).push(e),e.drawSettingsSetup&&this.#ve(o.DrawLayer.CanvasSetup).push(e),e.draw&&this.#ve(o.DrawLayer.PluginContent).push(e),(e.clearDraw??e.drawSettingsCleanup)&&this.#ve(o.DrawLayer.CanvasCleanup).push(e)}initUpdaters(){this.#me=[],this.#fe=[];for(const e of this.#d.particleUpdaters)e.afterDraw&&this.#fe.push(e),(e.getColorStyles??e.getTransformValues??e.beforeDraw)&&this.#me.push(e)}paint(){let e=!1;for(const t of this.#ve(o.DrawLayer.BackgroundMask))if(e=t.canvasPaint?.()??!1,e)break;e||this.paintBase()}paintBase(e){this.draw(t=>{t.fillStyle=e??"rgba(0,0,0,0)",t.fillRect(n.originPoint.x,n.originPoint.y,this.#ae.size.width,this.#ae.size.height)})}paintImage(e,t){this.draw(r=>{if(!e)return;const i=r.globalAlpha;r.globalAlpha=t,r.drawImage(e,n.originPoint.x,n.originPoint.y,this.#ae.size.width,this.#ae.size.height),r.globalAlpha=i})}setContext(e){this.#le=e,this.#le&&(this.#le.globalCompositeOperation=n.defaultCompositeValue)}setContextSettings(e){this.#ce=e}stop(){this.draw(e=>{e.clearRect(n.originPoint.x,n.originPoint.y,this.#ae.size.width,this.#ae.size.height)})}#Te(e){for(const t of this.#fe)t.afterDraw?.(e)}#Se(e,t,r,n,i,o){for(const a of this.#me){if(a.getColorStyles){const{fill:o,stroke:s}=a.getColorStyles(t,e,r,n);o&&(i.fill=o),s&&(i.stroke=s)}if(a.getTransformValues){const e=a.getTransformValues(t);for(const t in e)s(o,e,t)}a.beforeDraw?.(t)}}#Ie(e,t){if(!e?.drawAfter)return;const{particle:r}=t;r.effect&&e.drawAfter(t)}#Ae(e,t){if(!e?.drawBefore)return;const{particle:r}=t;r.effect&&e.drawBefore(t)}#Ee(e){const{container:t,context:r,particle:i,delta:o,colorStyles:a,radius:s,opacity:l,transform:c}=e,{effectDrawers:u,shapeDrawers:p}=t,d=i.getPosition(),h=i.getTransformData(c),f=n.defaultZoom,m={x:d.x,y:d.y};r.setTransform(h.a,h.b,h.c,h.d,d.x,d.y),a.fill&&(r.fillStyle=a.fill);const g=!!i.fillEnabled,y=i.strokeWidth??n.minStrokeWidth;r.lineWidth=y,a.stroke&&(r.strokeStyle=a.stroke);const b={context:r,particle:i,radius:s,drawRadius:s*f,opacity:l,delta:o,pixelRatio:t.retina.pixelRatio,fill:g,stroke:y>n.minStrokeWidth,transformData:h,position:{...d},drawPosition:m,drawScale:f};for(const e of t.plugins)e.drawParticleTransform?.(b);const v=i.effect?u.get(i.effect):void 0,_=i.shape?p.get(i.shape):void 0;this.#Ae(v,b),this.#ke(_,b),this.#Re(_,b),this.#Ce(_,b),this.#Ie(v,b),r.resetTransform()}#we(e,t,r,n){t.drawParticle&&t.drawParticle(e,r,n)}#Re(e,t){if(!e)return;const{context:r,fill:n,particle:i,stroke:o}=t;i.shape&&(r.beginPath(),e.draw(t),i.shapeClose&&r.closePath(),n&&r.fill(),o&&r.stroke())}#Ce(e,t){if(!e?.afterDraw)return;const{particle:r}=t;r.shape&&e.afterDraw(t)}#ke(e,t){if(!e?.beforeDraw)return;const{particle:r}=t;r.shape&&e.beforeDraw(t)}#ve(e){return this.#he[e]}#_e(e){let t,r;for(const n of this.#se)if(!t&&n.particleFillColor&&(t=(0,i.rangeColorToHsl)(this.#h,n.particleFillColor(e))),!r&&n.particleStrokeColor&&(r=(0,i.rangeColorToHsl)(this.#h,n.particleStrokeColor(e))),t&&r)break;return this.#ye[0]=t,this.#ye[1]=r,this.#ye}#Oe(){const e=this.#d.actualOptions.background;if(this.#ne=null,e.element)if("string"==typeof e.element){if("undefined"!=typeof document){const t=document.querySelector(e.element);"undefined"!=typeof HTMLCanvasElement&&t instanceof HTMLCanvasElement||"undefined"!=typeof HTMLVideoElement&&t instanceof HTMLVideoElement||"undefined"!=typeof HTMLImageElement&&t instanceof HTMLImageElement?this.#ne=t:t?this.#xe("background-element-not-supported",`Background element "${e.element}" is not a supported drawable element (canvas, video, or img)`):this.#xe("background-element-not-found",`Background element selector "${e.element}" not found`)}}else("undefined"!=typeof HTMLCanvasElement&&e.element instanceof HTMLCanvasElement||"undefined"!=typeof OffscreenCanvas&&e.element instanceof OffscreenCanvas||"undefined"!=typeof HTMLVideoElement&&e.element instanceof HTMLVideoElement||"undefined"!=typeof HTMLImageElement&&e.element instanceof HTMLImageElement)&&(this.#ne=e.element)}#xe(e,t){this.#ie.has(e)||(this.#ie.add(e),(0,a.getLogger)().warning(t))}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{EventListeners:()=>o});var n=r(995),i=r(994);class o{#d;#Pe;#De;#Me;constructor(e){this.#d=e,this.#Pe={visibilityChange:()=>{this.#Ne()},resize:()=>{this.#Le()}}}addListeners(){this.#Fe(!0)}removeListeners(){this.#Fe(!1)}#Ne(){const e=this.#d;e.actualOptions.pauseOnBlur&&((0,n.safeDocument)().hidden?(e.pageHidden=!0,e.pause()):(e.pageHidden=!1,e.animationStatus?e.play(!0):e.draw(!0)))}#Le(){this.#Me&&(clearTimeout(this.#Me),this.#Me=void 0);const e=async()=>{const e=this.#d.canvas;
vendor: 2,256 bytes, line 41
41await e.windowResize()};this.#Me=setTimeout(()=>{e()},this.#d.actualOptions.resize.delay*i.millisecondsToSeconds)}#Fe(e){const t=this.#Pe;this.#Be(e),(0,n.manageListener)(document,i.visibilityChangeEvent,t.visibilityChange,e,!1)}#Be(e){const t=this.#Pe,r=this.#d;if(!r.actualOptions.resize.enable)return;if("undefined"==typeof ResizeObserver)return void(0,n.manageListener)(globalThis,i.resizeEvent,t.resize,e);const o=r.canvas.domElement;this.#De&&!e?(o&&this.#De.unobserve(o),this.#De.disconnect(),this.#De=void 0):!this.#De&&e&&o&&(this.#De=new ResizeObserver(e=>{e.find(e=>e.target===o)&&this.#Le()}),this.#De.observe(o))}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{ParticlesManager:()=>u});var n=r(994),i=r(1004),o=r(1012),a=r(2869),s=r(2870),l=r(1005),c=r(1033);class u{checkParticlePositionPlugins;grid;#Ue;#d;#je;#He;#Ve;#ze;#Ge;#qe;#h;#$e;#We;#Ye;#Ke;#Je;#Qe;constructor(e,t){this.#h=e,this.#d=t,this.#Ve=0,this.#Ue=[],this.#$e=[],this.#He=0,this.#je=new Map,this.#ze=new Map,this.#Qe=this.#Xe(this.#d.zLayers),this.grid=new s.SpatialHashGrid(n.spatialHashGridCellSize),this.checkParticlePositionPlugins=[],this.#Ge=[],this.#qe=[],this.#Ye=[],this.#We=[],this.#Je=[]}get count(){return this.#Ue.length}addParticle(e,t,r,s){const c=this.#d.actualOptions.particles.number.limit.mode,u=void 0===r?this.#He:this.#je.get(r)??this.#He,p=this.count;if(u>n.minLimit)switch(c){case o.LimitMode.delete:{const e=p+n.countOffset-u;e>n.minCount&&this.removeQuantity(e);break}case o.LimitMode.wait:if(p>=u)return}try{const n=this.#$e.pop()??new a.Particle(this.#h,this.#d);n.init(this.#Ve,e,t,r);let o=!0;return s&&(o=s(n)),o?(this.#Ue.push(n),this.#Ze(n),this.#Ve++,this.#d.dispatchEvent(i.EventType.particleAdded,{particle:n}),n):void this.#$e.push(n)}catch(e){(0,l.getLogger)().warning(`error adding particle: ${e}`)}}clear(){this.#Ue=[],this.#ze.clear(),this.#et(this.#d.zLayers)}destroy(){this.#Ue=[],this.#$e.length=0,this.#ze.clear(),this.#Qe=[],this.checkParticlePositionPlugins=[],this.#Ge=[],this.#qe=[],this.#Ye=[],this.#We=[],this.#Je=[]}drawParticles(e){for(let t=this.#Qe.length-n.one;t>=n.minIndex;t--){const r=this.#Qe[t];if(r)for(const t of r)t.draw(e)}}filter(e){return this.#Ue.filter(e)}find(e){return this.#Ue.find(e)}get(e){return this.#Ue[e]}
vendor: 4,564 bytes, line 41
41async init(){const e=this.#d,t=e.actualOptions;this.checkParticlePositionPlugins=[],this.#Je=[],this.#qe=[],this.#Ye=[],this.#Ge=[],this.#We=[],this.#ze.clear(),this.#et(e.zLayers),this.grid=new s.SpatialHashGrid(n.spatialHashGridCellSize*e.retina.pixelRatio);for(const t of e.plugins)t.redrawInit&&await t.redrawInit(),t.checkParticlePosition&&this.checkParticlePositionPlugins.push(t),t.update&&this.#Je.push(t),t.particleUpdate&&this.#qe.push(t),t.postUpdate&&this.#Ye.push(t),t.particleReset&&this.#Ge.push(t),t.postParticleUpdate&&this.#We.push(t);await this.#d.initDrawersAndUpdaters();for(const t of this.#d.effectDrawers.values())await(t.init?.(e));for(const t of this.#d.shapeDrawers.values())await(t.init?.(e));let r=!1;for(const t of e.plugins)if(r=t.particlesInitialization?.()??r,r)break;if(!r){const e=t.particles,r=e.groups;for(const t in r){const n=r[t];if(n)for(let r=this.count,i=0;i<n.number.value&&r<e.number.value;r++,i++)this.addParticle(void 0,n,t)}for(let t=this.count;t<e.number.value;t++)this.addParticle()}}push(e,t,r,n){for(let i=0;i<e;i++)this.addParticle(t,r,n)}async redraw(){this.clear(),await this.init(),this.#d.canvas.render.drawParticles({value:0,factor:0})}remove(e,t,r){this.removeAt(this.#Ue.indexOf(e),void 0,t,r)}removeAt(e,t=n.defaultRemoveQuantity,r,i){if(e<n.minIndex||e>this.count)return;let o=0;for(let n=e;o<t&&n<this.count;n++)this.#tt(n,r,i)&&(n--,o++)}removeQuantity(e,t){this.removeAt(n.minIndex,e,t)}setDensity(){const e=this.#d.actualOptions,t=e.particles.groups;let r=0;for(const e of this.#d.plugins)e.particlesDensityCount&&(r+=e.particlesDensityCount());for(const e in t){const n=t[e];if(!n)continue;const i=(0,c.loadParticlesOptions)(this.#h,this.#d,n);this.#rt(i,r,e)}this.#rt(e.particles,r)}setResizeFactor(e){this.#Ke=e}update(e){this.grid.clear();for(const t of this.#Je)t.update?.(e);const t=this.#nt(e);for(const t of this.#Ye)t.postUpdate?.(e);if(this.#it(e,t),t.size)for(const e of t)this.remove(e);this.#Ke=void 0}#ot(...e){this.#$e.push(...e)}#rt(e,t,r,i){const o=e.number;if(!o.density.enable)return void(void 0===r?this.#He=o.limit.value:(i?.number.limit.value??o.limit.value)&&this.#je.set(r,i?.number.limit.value??o.limit.value));const a=this.#at(o.density),s=o.value,l=o.limit.value>n.minLimit?o.limit.value:s,c=Math.min(s,l)*a+t,u=Math.min(this.count,this.filter(e=>e.group===r).length);void 0===r?this.#He=o.limit.value*a:this.#je.set(r,o.limit.value*a),u<c?this.push(Math.abs(c-u),void 0,e,r):u>c&&this.removeQuantity(u-c,r)}#Xe(e){const t=Math.max(Math.floor(e),n.one);return Array.from({length:t},()=>[])}#st(e){const t=this.#Qe.length-n.one;return t<=n.minIndex?n.minIndex:Math.min(Math.max(Math.floor(e),n.minIndex),t)}#at(e){const t=this.#d;if(!e.enable)return n.defaultDensityFactor;const r=t.canvas.size,i=t.retina.pixelRatio;return r.width&&r.height?r.width*r.height/(e.height*e.width*i**n.squareExp):n.defaultDensityFactor}#Ze(e){const t=this.#st(e.position.z),r=this.#Qe[t];r&&(r.push(e),this.#ze.set(e.id,t))}#tt(e,t,r){const o=this.#Ue[e];return!!o&&(o.group===t&&(this.#Ue.splice(e,n.deleteCount),this.#lt(o),o.destroy(r),this.#d.dispatchEvent(i.EventType.particleRemoved,{particle:o}),this.#ot(o),!0))}#lt(e){const t=this.#ze.get(e.id)??this.#st(e.position.z),r=this.#Qe[t];if(!r)return void this.#ze.delete(e.id);const i=r.findIndex(t=>t.id===e.id);i>=n.minIndex&&r.splice(i,n.deleteCount),this.#ze.delete(e.id)}#et(e){const t=Math.max(Math.floor(e),n.one);if(this.#Qe.length===t)for(const e of this.#Qe)e.length=n.minIndex;else this.#Qe=this.#Xe(t)}#ct(e){const t=this.#st(e.position.z),r=this.#ze.get(e.id);if(void 0===r)return void this.#Ze(e);if(r===t)return;const i=this.#Qe[r];if(i){const t=i.findIndex(t=>t.id===e.id);t>=n.minIndex&&i.splice(t,n.deleteCount)}const o=this.#Qe[t];if(o){if(o.push(e),o.length>=n.double){const t=o[o.length-n.double];t&&e.id<t.id&&o.sort((e,t)=>e.id-t.id)}this.#ze.set(e.id,t)}else this.#ze.set(e.id,t)}#nt(e){const t=new Set,r=this.#Ke;for(const n of this.#Ue){r&&!n.ignoresResizeRatio&&(n.position.x*=r.width,n.position.y*=r.height,n.initialPosition.x*=r.width,n.initialPosition.y*=r.height),n.ignoresResizeRatio=!1;for(const e of this.#Ge)e.particleReset?.(n);for(const t of this.#qe){if(n.destroyed)break;t.particleUpdate?.(n,e)}n.destroyed?t.add(n):this.grid.insert(n)}return t}#it(e,t){for(const r of this.#Ue)if(r.destroyed)t.add(r);else{for(const t of this.#d.particleUpdaters)t.update(r,e);if(!r.spawning)for(const t of this.#We)t.postParticleUpdate?.(r,e);this.#ct(r)}}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{Particle:()=>y});
vendor: 11,072 bytes, line 41
41var n=r(998),i=r(1054),o=r(996),a=r(995),s=r(994),l=r(1004),c=r(997),u=r(1013),p=r(1e3),d=r(1017),h=r(1033);function f(e){if(!(0,a.isInArray)(e.outMode,e.checkModes))return;const t=e.radius*s.double;e.coord>e.maxCoord-t?e.setCb(-e.radius):e.coord<t&&e.setCb(e.radius)}function m(e,t){const r=e%t;return r<s.defaultAngle?r+t:r}function g(e,t,r,n){const i=t.actualOptions,l=(0,h.loadParticlesOptions)(r,t,i.particles),c=l.reduceDuplicates;e.effect=(0,a.itemFromSingleOrMultiple)(l.effect.type,e.id,c),e.shape=(0,a.itemFromSingleOrMultiple)(l.shape.type,e.id,c);const u=l.effect,p=l.shape;if(n){if(n.effect){const t=n.effect.type;if(t&&t!==e.effect){const r=(0,a.itemFromSingleOrMultiple)(t,e.id,c);r&&(e.effect=r)}u.load(n.effect)}if(n.shape){const t=n.shape.type;if(t&&t!==e.shape){const r=(0,a.itemFromSingleOrMultiple)(t,e.id,c);r&&(e.shape=r)}p.load(n.shape)}}if(e.effect===s.randomColorValue){const r=[...t.effectDrawers.keys()];e.effect=r[Math.floor((0,o.getRandom)()*r.length)]}if(e.shape===s.randomColorValue){const r=[...t.shapeDrawers.keys()];e.shape=r[Math.floor((0,o.getRandom)()*r.length)]}e.effectData=e.effect?function(e,t,r,n){const i=t.options[e];return(0,a.deepExtend)({close:t.close},(0,a.itemFromSingleOrMultiple)(i,r,n))}(e.effect,u,e.id,c):void 0,e.shapeData=e.shape?function(e,t,r,n){const i=t.options[e];return(0,a.deepExtend)({close:t.close},(0,a.itemFromSingleOrMultiple)(i,r,n))}(e.shape,p,e.id,c):void 0,l.load(n);const d=e.effectData,f=e.shapeData;return d&&l.load(d.particles),f&&l.load(f.particles),e.effectClose=d?.close??l.effect.close,e.shapeClose=f?.close??l.shape.close,l}class y{backColor;destroyed;direction;effect;effectClose;effectData;fillColor;fillEnabled;fillOpacity;group;id;ignoresResizeRatio;initialPosition;initialVelocity;isRotating;justWarped;lastPathTime;misplaced;moveCenter;offset;opacity;options;outType;pathRotation;position;randomIndexData;retina;roll;rotation;shape;shapeClose;shapeData;sides;size;spawning;strokeColor;strokeOpacity;strokeWidth;unbreakable;velocity;zIndexFactor;#ut={fillOpacity:s.defaultOpacity,opacity:s.defaultOpacity,strokeOpacity:s.defaultOpacity};#pt=n.Vector3d.origin;#dt={sin:0,cos:0};#ht={a:1,b:0,c:0,d:1};#d;#ft=[];#h;constructor(e,t){this.#h=e,this.#d=t}addModifier(e){this.#ft.push(e),this.#ft.sort((e,t)=>e.priority-t.priority)}clearModifiers(){this.#ft.length=0}destroy(e){if(this.unbreakable||this.destroyed)return;this.destroyed=!0,this.clearModifiers();const t=this.#d,r=this.shape?t.shapeDrawers.get(this.shape):void 0;r?.particleDestroy?.(this);for(const r of t.particleDestroyedPlugins)r.particleDestroyed?.(this,e);for(const r of t.particleUpdaters)r.particleDestroyed?.(this,e);this.#d.dispatchEvent(l.EventType.particleDestroyed,{particle:this})}draw(e){const t=this.#d.canvas.render;t.drawParticlePlugins(this,e),t.drawParticle(this,e)}getAngle(){return this.rotation+(this.pathRotation?this.velocity.angle:s.defaultAngle)}getFillColor(){return this.#mt(this.#gt((0,i.getHslFromAnimation)(this.fillColor),e=>e.fillColor))}getMass(){return this.getRadius()**s.squareExp*Math.PI*s.half}getModifier(e){return this.#ft.find(t=>t.id===e)}getOpacity(){const e=this.options.zIndex,t=(s.zIndexFactorOffset-this.zIndexFactor)**e.opacityRate,r=(0,o.getRangeValue)(this.opacity?.value??s.defaultOpacity),n=this.#gt(void 0,e=>e.opacity)??r,i=this.fillOpacity??s.defaultOpacity,a=this.strokeOpacity??s.defaultOpacity;return this.#ut.fillOpacity=i,this.#ut.opacity=n*t,this.#ut.strokeOpacity=a,this.#ut}getPosition(){return this.#pt.x=this.position.x+this.offset.x,this.#pt.y=this.position.y+this.offset.y,this.#pt.z=this.position.z,this.#pt}getRadius(){return this.#gt(this.size.value,e=>e.radius)}getRotateData(){const e=this.getAngle();return this.#dt.sin=Math.sin(e),this.#dt.cos=Math.cos(e),this.#dt}getStrokeColor(){return this.#mt(this.#gt((0,i.getHslFromAnimation)(this.strokeColor),e=>e.strokeColor))}getTransformData(e){const t=this.getRotateData(),r=this.isRotating;return this.#ht.a=t.cos*(e.a??s.defaultTransform.a),this.#ht.b=r?t.sin*(e.b??s.identity):e.b??s.defaultTransform.b,this.#ht.c=r?-t.sin*(e.c??s.identity):e.c??s.defaultTransform.c,this.#ht.d=t.cos*(e.d??s.defaultTransform.d),this.#ht}init(e,t,r,n){const i=this.#d;!function(e,t,r){e.id=t,e.group=r,e.justWarped=!1,e.effectClose=!0,e.shapeClose=!0,e.pathRotation=!1,e.lastPathTime=0,e.destroyed=!1,e.unbreakable=!1,e.isRotating=!1,e.rotation=0,e.misplaced=!1,e.retina={maxDistance:{},maxSpeed:0,moveDrift:0,moveSpeed:0,sizeAnimationSpeed:0},e.size={value:1,max:1,min:1,enable:!1},e.outType=d.ParticleOutType.normal,e.ignoresResizeRatio=!0}(this,e,n),this.options=g(this,i,this.#h,r),i.retina.initParticle(this),function(e,t){for(const r of e)r.preInit?.(t)}(i.particleUpdaters,this),this.#yt(t),this.initialVelocity=this.#bt(),this.velocity=this.initialVelocity.copy(),this.zIndexFactor=this.position.z/i.zLayers,this.sides=24,function(e,t){let r,n;e.effect&&(r=t.effectDrawers.get(e.effect)),r?.loadEffect&&r.loadEffect(e),e.shape&&(n=t.shapeDrawers.get(e.shape)),n?.loadShape&&n.loadShape(e);const i=n?.getSidesCount;i&&(e.sides=i(e))}(this,i),this.spawning=!1,function(e,t){for(const r of e)r.init(t)}(i.particleUpdaters,this),function(e,t){const r=t.shape?e.shapeDrawers.get(t.shape):void 0,n=t.effect?e.effectDrawers.get(t.effect):void 0;n?.particleInit?.(e,t),r?.particleInit?.(e,t)}(i,this),function(e,t){for(const r of e.particleCreatedPlugins)r.particleCreated?.(t)}(i,this)}isInsideCanvas(e){return this.#vt({direction:e}).inside}isInsideCanvasForOutMode(e,t){return this.#vt({direction:t,outMode:e}).inside}isShowingBack(){if(!this.roll)return!1;const e=this.roll.angle;if(this.roll.horizontal&&this.roll.vertical){const t=m(e,s.doublePI);return t>=Math.PI*s.half&&t<Math.PI*s.triple*s.half}if(this.roll.horizontal){const t=m(e+Math.PI*s.half,s.doublePI);return t>=Math.PI&&t<Math.PI*s.double}if(this.roll.vertical){const t=m(e,s.doublePI);return t>=Math.PI&&t<Math.PI*s.double}return!1}isVisible(){return!this.destroyed&&!this.spawning&&this.isInsideCanvas()}removeModifier(e){const t=this.#ft.findIndex(t=>t.id===e);t>=s.defaultAngle&&this.#ft.splice(t,s.identity)}reset(){for(const e of this.#d.particleUpdaters)e.reset?.(this)}#gt(e,t){let r=e;for(const e of this.#ft)if(e.enabled){const n=t(e);void 0!==n&&(r=n)}return r}#_t(e,t){let r=s.defaultRetryCount,i=e?n.Vector3d.create(e.x,e.y,t):void 0;const a=this.#d,l=a.particlePositionPlugins,c=this.options.move.outModes,u=this.getRadius(),p=a.canvas.size;for(;;){for(const e of l){const r=e.particlePosition?.(i,this);if(r)return n.Vector3d.create(r.x,r.y,t)}const e=(0,o.calcExactPositionOrRandomFromSize)({size:p,position:i}),d=n.Vector3d.create(e.x,e.y,t);this.#St(d,u,c.left??c.default),this.#St(d,u,c.right??c.default),this.#Et(d,u,c.top??c.default),this.#Et(d,u,c.bottom??c.default);let h=!0;for(const e of a.particles.checkParticlePositionPlugins)if(h=e.checkParticlePosition?.(this,d,r)??!0,!h)break;if(h)return d;r+=s.tryCountIncrement,i=void 0}}#bt(){const e=this.options.move,t=(0,o.getParticleBaseVelocity)(this.direction).copy();if(e.direction===c.MoveDirection.inside||e.direction===c.MoveDirection.outside)return t;const r=(0,o.degToRad)((0,o.getRangeValue)(e.angle.value)),n=(0,o.degToRad)((0,o.getRangeValue)(e.angle.offset)),i={left:n-r*s.half,right:n+r*s.half};return e.straight||(t.angle+=(0,o.randomInRangeValue)((0,o.setRangeValue)(i.left,i.right))),e.random&&"number"==typeof e.speed&&(t.length*=(0,o.getRandom)()),t}#St(e,t,r){f({outMode:r,checkModes:[u.OutMode.bounce],coord:e.x,maxCoord:this.#d.canvas.size.width,setCb:t=>e.x+=t,radius:t})}#Et(e,t,r){f({outMode:r,checkModes:[u.OutMode.bounce],coord:e.y,maxCoord:this.#d.canvas.size.height,setCb:t=>e.y+=t,radius:t})}#Tt(e,t){const r=this.getRadius(),n=this.#d.canvas.size,i=this.position,o=t===u.OutMode.bounce;return e===p.OutModeDirection.bottom?{inside:o?i.y+r<n.height:i.y-r<n.height,reason:"default"}:e===p.OutModeDirection.left?{inside:o?i.x-r>s.defaultAngle:i.x+r>s.defaultAngle,reason:"default"}:e===p.OutModeDirection.right?{inside:o?i.x+r<n.width:i.x-r<n.width,reason:"default"}:e===p.OutModeDirection.top?{inside:o?i.y-r>s.defaultAngle:i.y+r>s.defaultAngle,reason:"default"}:{inside:i.x>=-r&&i.y>=-r&&i.y<=n.height+r&&i.x<=n.width+r,reason:"default"}}#wt(e,t){return{canvasSize:this.#d.canvas.size,direction:e,outMode:t,particle:this,radius:this.getRadius()}}#vt(e){const t=this.#Tt(e.direction,e.outMode),r=this.#d,n=this.shape?r.shapeDrawers.get(this.shape):void 0,i=this.effect?r.effectDrawers.get(this.effect):void 0,o=n?.isInsideCanvas,a=i?.isInsideCanvas;if(!o&&!a)return t;const l=this.#wt(e.direction,e.outMode),c=o?this.#xt(o(l),"shape"):void 0,u=a?this.#xt(a(l),"effect"):void 0;if(c&&u){const e=Math.max(c.margin??s.defaultAngle,u.margin??s.defaultAngle);return{inside:c.inside&&u.inside,margin:e>s.defaultAngle?e:void 0,reason:"combined"}}return c??u??t}#mt(e){return e&&this.roll&&(this.backColor||this.roll.alter)&&this.isShowingBack()?this.backColor?this.backColor:this.roll.alter?(0,i.alterHsl)(e,this.roll.alter.type,this.roll.alter.value):e:e}#yt(e){const t=this.#d,r=Math.floor((0,o.getRangeValue)(this.options.zIndex.value)),i=this.#_t(e,(0,o.clamp)(r,s.minZ,t.zLayers));if(!i)throw new Error("a valid position cannot be found for particle");this.position=i,this.initialPosition=this.position.copy();const l=t.canvas.size;switch(this.moveCenter={...(0,a.getPosition)(this.options.move.center,l),radius:this.options.move.center.radius,mode:this.options.move.center.mode},this.direction=(0,o.getParticleDirectionAngle)(this.options.move.direction,this.position,this.moveCenter),this.options.move.direction){case c.MoveDirection.inside:this.outType=d.ParticleOutType.inside;break;case c.MoveDirection.outside:this.outType=d.ParticleOutType.outside}this.offset=n.Vector.origin}#xt(e,t){return"boolean"==typeof e?{inside:e,reason:t}:{inside:e.inside,margin:e.margin,reason:e.reason??t}}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{SpatialHashGrid:()=>i});var n=r(1007);class i{#Ot;#It=new Map;#At=[];#kt;#Rt;#Ct=[];#Pt;constructor(e){this.#Ot=e,this.#kt=0,this.#Pt=0}clear(){this.#It.clear();const e=this.#Rt;e&&(this.#Ot=e),this.#Rt=void 0}insert(e){const{x:t,y:r}=e.getPosition(),n=this.#Dt(t,r);this.#It.has(n)||this.#It.set(n,[]),this.#It.get(n)?.push(e)}query(e,t,r=[]){const n=this.#Mt(e);if(!n)return r;const i=Math.floor(n.minX/this.#Ot),o=Math.floor(n.maxX/this.#Ot),a=Math.floor(n.minY/this.#Ot),s=Math.floor(n.maxY/this.#Ot);for(let n=i;n<=o;n++)for(let i=a;i<=s;i++){const o=`${n}_${i}`,a=this.#It.get(o);if(a)for(const n of a)t&&!t(n)||e.contains(n.getPosition())&&r.push(n)}return r}queryCircle(e,t,r,n=[]){const i=this.#Nt(e.x,e.y,t),o=this.query(i,r,n);return this.#Lt(),o}queryRectangle(e,t,r,n=[]){const i=this.#Ft(e.x,e.y,t.width,t.height),o=this.query(i,r,n);return this.#Lt(),o}setCellSize(e){this.#Rt=e}#Nt(e,t,r){return(this.#At[this.#kt++]??=new n.Circle(e,t,r)).reset(e,t,r)}#Ft(e,t,r,i){return(this.#Ct[this.#Pt++]??=new n.Rectangle(e,t,r,i)).reset(e,t,r,i)}#Dt(e,t){return`${Math.floor(e/this.#Ot)}_${Math.floor(t/this.#Ot)}`}
41#Mt(e){if(e instanceof n.Circle){const t=e.radius,{x:r,y:n}=e.position;return{minX:r-t,maxX:r+t,minY:n-t,maxY:n+t}}if(e instanceof n.Rectangle){const{x:t,y:r}=e.position,{width:n,height:i}=e.size;return{minX:t,maxX:t+n,minY:r,maxY:r+i}}return null}#Lt(){this.#kt=0,this.#Pt=0}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{Retina:()=>o});var n=r(994),i=r(996);class o{pixelRatio;reduceFactor;#d;constructor(e){this.#d=e,this.pixelRatio=n.defaultRatio,this.reduceFactor=n.defaultReduceFactor}init(){const e=this.#d,t=e.actualOptions;this.pixelRatio=t.detectRetina?devicePixelRatio:n.defaultRatio,this.reduceFactor=n.defaultReduceFactor;const r=this.pixelRatio,i=e.canvas,o=i.domElement;o&&(i.size.width=o.offsetWidth*r,i.size.height=o.offsetHeight*r)}initParticle(e){const t=e.options,r=this.pixelRatio,n=t.move,o=n.distance,a=e.retina;a.maxSpeed=(0,i.getRangeValue)(n.gravity.maxSpeed)*r,a.moveDrift=(0,i.getRangeValue)(n.drift)*r,a.moveSpeed=(0,i.getRangeValue)(n.speed)*r;const s=a.maxDistance;s.horizontal=void 0===o.horizontal?void 0:o.horizontal*r,s.vertical=void 0===o.vertical?void 0:o.vertical*r}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{BlendPluginInstance:()=>o});var n=r(994),i=r(1020);class o{layer=i.DrawLayer.CanvasSetup;#d;#Bt;constructor(e){this.#d=e}drawParticleCleanup(e,t){t.options.blend?.enable&&(e.globalCompositeOperation=t.originalBlendMode??n.defaultCompositeValue,t.originalBlendMode=void 0)}drawParticleSetup(e,t){t.options.blend?.enable&&(t.originalBlendMode=e.globalCompositeOperation,e.globalCompositeOperation=t.options.blend.mode)}drawSettingsCleanup(e){this.#Bt&&(e.globalCompositeOperation=this.#Bt)}drawSettingsSetup(e){const t=e.globalCompositeOperation,r=this.#d.actualOptions.blend;this.#Bt=t,e.globalCompositeOperation=r?.enable?r.mode:t}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{MovePluginInstance:()=>a});var n=r(994),i=r(996),o=r(2874);class a{availablePathGenerators;pathGenerators;#d;#h;constructor(e,t){this.#h=e,this.#d=t,this.availablePathGenerators=new Map,this.pathGenerators=new Map}destroy(){this.availablePathGenerators=new Map,this.pathGenerators=new Map}isEnabled(e){return!e.destroyed&&e.options.move.enable}particleCreated(e){const t=e.options.move,r=t.gravity,a=t.path;if(e.moveDecay=n.decayOffset-(0,i.getRangeValue)(t.decay),e.pathDelay=(0,i.getRangeValue)(a.delay.value)*n.millisecondsToSeconds,a.generator){let t=this.pathGenerators.get(a.generator);t||(t=this.availablePathGenerators.get(a.generator),t&&(this.pathGenerators.set(a.generator,t),t.init())),e.pathGenerator=t}e.gravity={enable:r.enable,acceleration:(0,i.getRangeValue)(r.acceleration),inverse:r.inverse},(0,o.initSpin)(this.#d,e)}particleDestroyed(e){const t=e.pathGenerator;t?.reset(e)}particleUpdate(e,t){const r=e.options.move;if(!r.enable)return;const i=this.#d,a=(0,o.getProximitySpeedFactor)(e),s=i.retina.reduceFactor,l=e.retina.moveSpeed,c=e.retina.moveDrift,u=e.size.max,p=l*(r.size?e.getRadius()/u:1)*a*(t.factor||1)*n.half,d=e.retina.maxSpeed;r.spin.enable?(0,o.spin)(i,e,p,s):(0,o.move)(e,r,p,d,c,s,t),(0,o.applyDistance)(e)}preInit(){return this.#Ut()}redrawInit(){return this.#Ut()}update(){for(const e of this.pathGenerators.values())e.update()}async#Ut(){const e=await(this.#h.getPathGenerators?.(this.#d,!0));if(e){this.availablePathGenerators=e,this.pathGenerators=new Map;for(const e of this.pathGenerators.values())e.init()}}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{applyDistance:()=>p,applyPath:()=>f,getProximitySpeedFactor:()=>m,initSpin:()=>g,move:()=>d,spin:()=>h});var n=r(994),i=r(1009),o=r(996);const a=60,s=0,l=.01,c=0,u=1;function p(e){const t=e.initialPosition,{dx:r,dy:i}=(0,o.getDistances)(t,e.position),a=Math.abs(r),s=Math.abs(i),{maxDistance:l}=e.retina,c=l.horizontal,u=l.vertical;if(!c&&!u)return;if(!((c&&a>=c)??!1)&&!((u&&s>=u)??!1)||e.misplaced){if((!c||a<c)&&(!u||s<u)&&e.misplaced)e.misplaced=!1;else if(e.misplaced){const r=e.position,i=e.velocity;c&&(r.x<t.x&&i.x<n.minVelocity||r.x>t.x&&i.x>n.minVelocity)&&(i.x*=-(0,o.getRandom)()),u&&(r.y<t.y&&i.y<n.minVelocity||r.y>t.y&&i.y>n.minVelocity)&&(i.y*=-(0,o.getRandom)())}}else e.misplaced=!!c&&a>c||!!u&&s>u,c&&(e.velocity.x=e.velocity.y*n.half-e.velocity.x),u&&(e.velocity.y=e.velocity.x*n.half-e.velocity.y)}function d(e,t,r,i,o,s,l){f(e,l);const c=e.gravity,p=c?.enable&&c.inverse?-n.identity:n.identity;o&&r&&(e.velocity.x+=o*l.factor/(a*r)),c?.enable&&r&&(e.velocity.y+=p*(c.acceleration*l.factor)/(a*r));const d=e.moveDecay;e.velocity.multTo(d??u);const h=e.velocity.mult(r);c?.enable&&i>n.minVelocity&&(!c.inverse&&h.y>=n.minVelocity&&h.y>=i||c.inverse&&h.y<=n.minVelocity&&h.y<=-i)&&(h.y=p*i,r&&(e.velocity.y=h.y/r));const m=e.options.zIndex,g=(n.identity-e.zIndexFactor)**m.velocityRate;h.multTo(g),h.multTo(s);const{position:y}=e;y.addTo(h),t.vibrate&&(y.x+=Math.sin(y.x*Math.cos(y.y))*s,y.y+=Math.cos(y.y*Math.sin(y.x))*s)}function h(e,t,r,o){if(!t.spin)return;const a=t.spin.direction===i.RotateDirection.clockwise,c={x:a?Math.
41cos:Math.sin,y:a?Math.sin:Math.cos};t.position.x=t.spin.center.x+t.spin.radius*c.x(t.spin.angle)*o,t.position.y=t.spin.center.y+t.spin.radius*c.y(t.spin.angle)*o,t.spin.radius+=t.spin.acceleration*o;const u=Math.max(e.canvas.size.width,e.canvas.size.height),p=u*n.half;t.spin.radius>p?(t.spin.radius=p,t.spin.acceleration*=-n.identity):t.spin.radius<s&&(t.spin.radius=s,t.spin.acceleration*=-n.identity),t.spin.angle+=r*l*(n.identity-t.spin.radius/u)}function f(e,t){const r=e.options.move.path;if(!r.enable)return;const i=e.pathDelay??c;if(e.lastPathTime<=i)return void(e.lastPathTime+=t.value);const a=e.pathGenerator?.generate(e,t);a&&e.velocity.addTo(a),r.clamp&&(e.velocity.x=(0,o.clamp)(e.velocity.x,-n.identity,n.identity),e.velocity.y=(0,o.clamp)(e.velocity.y,-n.identity,n.identity)),e.lastPathTime-=i}function m(e){const t=e.getModifier("slow");return t?.enabled?t.speedFactor??n.identity:n.identity}function g(e,t){const r=t.options.move.spin;if(!r.enable)return;const a=r.position??{x:50,y:50},s={x:.01*a.x*e.canvas.size.width,y:.01*a.y*e.canvas.size.height},l=t.getPosition(),c=(0,o.getDistance)(l,s),u=(0,o.getRangeValue)(r.acceleration);t.retina.spinAcceleration=u*e.retina.pixelRatio,t.spin={center:s,direction:t.velocity.x>=n.minVelocity?i.RotateDirection.clockwise:i.RotateDirection.counterClockwise,angle:(0,o.getRandom)()*n.doublePI,radius:c,acceleration:t.retina.spinAcceleration}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{EmittersPluginInstance:()=>i});var n=r(999);class i{#d;#_;constructor(e,t){this.#_=e,this.#d=t,this.#_.initContainer(t)}
41async init(){const e=this.#d.actualOptions.emitters;if((0,n.isArray)(e))for(const t of e)await this.#_.addEmitter(this.#d,t);else await this.#_.addEmitter(this.#d,e)}pause(){for(const e of this.#_.getArray(this.#d))e.pause()}play(){for(const e of this.#_.getArray(this.#d))e.play()}resize(){for(const e of this.#_.getArray(this.#d))e.resize()}stop(){this.#_.clear(this.#d)}update(e){this.#_.getArray(this.#d).forEach(t=>{t.update(e)})}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{ShapeManager:()=>i});const n=new Map;class i{addShapeGenerator(e,t){this.getShapeGenerator(e)||n.set(e,t)}getShapeGenerator(e){return n.get(e)}getSupportedShapeGenerators(){return n.keys()}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{EmittersInstancesManager:()=>o});var n=r(999),i=r(1094);class o{#jt;#h;constructor(e){this.#jt=new Map,this.#h=e}async addEmitter(e,t,n){const o=new i.Emitter;o.load(t);const{EmitterInstance:a}=await r.e("vendors").then(()=>r(4141)),s=new a(this.#h,e,t=>{this.removeEmitter(e,t)},o,n);return await s.init(),this.getArray(e).push(s),s}clear(e){this.initContainer(e),this.#jt.set(e,[])}getArray(e){this.initContainer(e);let t=this.#jt.get(e);return t||(t=[],this.#jt.set(e,t)),t}initContainer(e){this.#jt.has(e)||(this.#jt.set(e,[]),e.getEmitter=t=>{const r=this.getArray(e);return void 0===t||(0,n.isNumber)(t)?r[t??0]:r.find(e=>e.name===t)},e.addEmitter=async(t,r)=>this.addEmitter(e,t,r),e.removeEmitter=t=>{const r=e.getEmitter?.(t);r&&this.removeEmitter(e,r)},e.playEmitter=t=>{const r=e.getEmitter?.(t);r&&r.externalPlay()},e.pauseEmitter=t=>{const r=e.getEmitter?.(t);r&&r.externalPause()})}removeEmitter(e,t){const r=this.getArray(e).indexOf(t);r>=0&&this.getArray(e).splice(r,1)}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{MotionPluginInstance:()=>i});var n=r(995);class i{#d;constructor(e){this.#d=e}async init(){const e=this.#d,t=e.actualOptions.motion;if(!t||!t.disable&&!t.reduce.value)return void(e.retina.reduceFactor=1);const r=(0,n.safeMatchMedia)("(prefers-reduced-motion: reduce)");if(!r)return void(e.retina.reduceFactor=1);this.#Ht(r);r.addEventListener("change",()=>{(async()=>{this.#Ht(r);try{await e.refresh()}catch{}})()}),await Promise.resolve()}#Ht(e){const t=this.#d,r=t.actualOptions.motion;r&&(e.matches?r.disable?t.retina.reduceFactor=0:t.retina.reduceFactor=r.reduce.value?1/r.reduce.factor:1:t.retina.reduceFactor=1)}}},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,(e,t,r)=>{"use strict";r.r(t),r.d(t,{DragDropContext:()=>Dn,Draggable:()=>Jn,Droppable:()=>_i,useKeyboardSensor:()=>un,useMouseSensor:()=>an,useTouchSensor:()=>fn});var n=r(341),i=r(3170),o=r(3171),a=r(3174),s=r(3176),l=r(1256);function c(e,t){}c.bind(null,"warn"),c.bind(null,"error");function u(){}function p(e,t,r){const n=t.map(t=>{const n=function(e,t){return{...e,...t}}(r,t.options);return e.addEventListener(t.eventName,t.fn,n),function(){e.removeEventListener(t.eventName,t.fn,n)}});return function(){n.forEach(e=>{e()})}}const d=!0,h="Invariant failed";class f extends Error{}function m(e,t){throw new f(d?h:`${h}: ${t||""}`)}f.prototype.toString=function(){return this.message};class g extends n.default.Component{constructor(...e){super(...e),this.callbacks=null,this.unbind=u,this.onWindowError=e=>{const t=this.getCallbacks();t.isDragging()&&t.tryAbort();e.error instanceof f&&e.preventDefault()},this.getCallbacks=()=>{if(!this.callbacks)throw new Error("Unable to find AppCallbacks in <ErrorBoundary/>");return this.callbacks},this.setCallbacks=e=>{this.callbacks=e}}componentDidMount(){this.unbind=p(window,[{eventName:"error",fn:this.onWindowError}])}componentDidCatch(e){if(!(e instanceof f))throw e;this.setState({})}componentWillUnmount(){this.unbind()}render(){return this.props.children(this.setCallbacks)}}const y=e=>e+1,b=(e,t)=>{const r=e.droppableId===t.droppableId,n=y(e.index),i=y(t.index);return r?`\n      You have moved the item from position ${n}\n      to position ${i}\n    `:`\n    You have moved the item from position ${n}\n    in list ${e.droppableId}\n    to list ${t.droppableId}\n    in position ${i}\n  `},v=(e,t,r)=>t.droppableId===r.droppableId?`\n      The item ${e}\n      has been combined with ${r.draggableId}`:`\n      The item ${e}\n      in list ${t.droppableId}\n      has been combined with ${r.draggableId}\n      in list ${r.droppableId}\n    `,_=e=>`\n  The item has returned to its starting position\n  of ${y(e.index)}\n`,S={dragHandleUsageInstructions:"\n  Press space bar to start a drag.\n  When dragging you can use the arrow keys to move the item around and escape to cancel.\n  Some screen readers may require you to be in focus mode or to use your pass through key\n",onDragStart:e=>`\n  You have lifted an item in position ${y(e.source.index)}\n`,onDragUpdate:e=>{const t=e.destination;if(t)return b(e.source,t);const r=e.combine;return r?v(e.draggableId,e.source,r):"You are over an area that cannot be dropped on"},onDragEnd:e=>{if("CANCEL"===e.reason)return`\n      Movement cancelled.\n      ${_(e.source)}\n    `;const t=e.destination,r=e.combine;return t?`\n      You have dropped the item.\n      ${b(e.source,t)}\n    `:r?`\n      You have dropped the item.\n      ${v(e.draggableId,e.source,r)}\n    `:`\n    The item has been dropped while not over a drop area.\n    ${_(e.source)}\n  `}};function E(e,t){return e===t||!(!Number.isNaN(e)||!Number.isNaN(t))}function T(e,t){if(e.length!==t.length)return!1;for(let r=0;r<e.length;r++)if(!E(e[r],t[r]))return!1;return!0}
41function w(e,t){const r=(0,n.useState)(()=>({inputs:t,result:e()}))[0],i=(0,n.useRef)(!0),o=(0,n.useRef)(r),a=i.current||Boolean(t&&o.current.inputs&&T(t,o.current.inputs))?o.current:{inputs:t,result:e()};return(0,n.useEffect)(()=>{i.current=!1,o.current=a},[a]),a.result}function x(e,t){return w(()=>e,t)}const O={x:0,y:0},I=(e,t)=>({x:e.x+t.x,y:e.y+t.y}),A=(e,t)=>({x:e.x-t.x,y:e.y-t.y}),k=(e,t)=>e.x===t.x&&e.y===t.y,R=e=>({x:0!==e.x?-e.x:0,y:0!==e.y?-e.y:0}),C=(e,t,r=0)=>"x"===e?{x:t,y:r}:{x:r,y:t},P=(e,t)=>Math.sqrt((t.x-e.x)**2+(t.y-e.y)**2),D=(e,t)=>Math.min(...t.map(t=>P(e,t))),M=e=>t=>({x:e(t.x),y:e(t.y)});const N=(e,t)=>({top:e.top+t.y,left:e.left+t.x,bottom:e.bottom+t.y,right:e.right+t.x}),L=e=>[{x:e.left,y:e.top},{x:e.right,y:e.top},{x:e.left,y:e.bottom},{x:e.right,y:e.bottom}],F=(e,t)=>t&&t.shouldClipSubject?((e,t)=>{const r=(0,a.getRect)({top:Math.max(t.top,e.top),right:Math.min(t.right,e.right),bottom:Math.min(t.bottom,e.bottom),left:Math.max(t.left,e.left)});return r.width<=0||r.height<=0?null:r})(t.pageMarginBox,e):(0,a.getRect)(e);var B=({page:e,withPlaceholder:t,axis:r,frame:n})=>{const i=((e,t)=>t?N(e,t.scroll.diff.displacement):e)(e.marginBox,n),o=((e,t,r)=>r&&r.increasedBy?{...e,[t.end]:e[t.end]+r.increasedBy[t.line]}:e)(i,r,t);return{page:e,withPlaceholder:t,active:F(o,n)}},U=(e,t)=>{e.frame||m();const r=e.frame,n=A(t,r.scroll.initial),i=R(n),o={...r,scroll:{initial:r.scroll.initial,current:t,diff:{value:n,displacement:i},max:r.scroll.max}},a=B({page:e.subject.page,withPlaceholder:e.subject.withPlaceholder,axis:e.axis,frame:o});return{...e,frame:o,subject:a}};function j(e,t=T){let r=null;function n(...n){if(r&&r.lastThis===this&&t(n,r.lastArgs))return r.lastResult;const i=e.apply(this,n);return r={lastResult:i,lastArgs:n,lastThis:this},i}return n.clear=function(){r=null},n}const H=j(e=>e.reduce((e,t)=>(e[t.descriptor.id]=t,e),{})),V=j(e=>e.reduce((e,t)=>(e[t.descriptor.id]=t,e),{})),z=j(e=>Object.values(e)),G=j(e=>Object.values(e));var q=j((e,t)=>{const r=G(t).filter(t=>e===t.descriptor.droppableId).sort((e,t)=>e.descriptor.index-t.descriptor.index);return r});function $(e){return e.at&&"REORDER"===e.at.type?e.at.destination:null}function W(e){return e.at&&"COMBINE"===e.at.type?e.at.combine:null}var Y=j((e,t)=>t.filter(t=>t.descriptor.id!==e.descriptor.id)),K=(e,t)=>e.descriptor.droppableId===t.descriptor.id;const J={point:O,value:0},Q={invisible:{},visible:{},all:[]},X={displaced:Q,displacedBy:J,at:null};var Z=(e,t)=>r=>e<=r&&r<=t,ee=e=>{const t=Z(e.top,e.bottom),r=Z(e.left,e.right);return n=>{if(t(n.top)&&t(n.bottom)&&r(n.left)&&r(n.right))return!0;const i=t(n.top)||t(n.bottom),o=r(n.left)||r(n.right);if(i&&o)return!0;const a=n.top<e.top&&n.bottom>e.bottom,s=n.left<e.left&&n.right>e.right;if(a&&s)return!0;return a&&o||s&&i}},te=e=>{const t=Z(e.top,e.bottom),r=Z(e.left,e.right);return e=>t(e.top)&&t(e.bottom)&&r(e.left)&&r(e.right)};const re={direction:"vertical",line:"y",crossAxisLine:"x",start:"top",end:"bottom",size:"height",crossAxisStart:"left",crossAxisEnd:"right",crossAxisSize:"width"},ne={direction:"horizontal",line:"x",crossAxisLine:"y",start:"left",end:"right",size:"width",crossAxisStart:"top",crossAxisEnd:"bottom",crossAxisSize:"height"};const ie=({target:e,destination:t,viewport:r,withDroppableDisplacement:n,isVisibleThroughFrameFn:i})=>{const o=n?((e,t)=>{const r=t.frame?t.frame.scroll.diff.displacement:O;return N(e,r)})(e,t):e;return((e,t,r)=>!!t.subject.active&&r(t.subject.active)(e))(o,t,i)&&((e,t,r)=>r(t)(e))(o,r,i)},oe=e=>ie({...e,isVisibleThroughFrameFn:te});function ae({afterDragging:e,destination:t,displacedBy:r,viewport:n,forceShouldAnimate:i,last:o}){return e.reduce(function(e,s){const l=function(e,t){const r=e.page.marginBox,n={top:t.point.y,right:0,bottom:0,left:t.point.x};return(0,a.getRect)((0,a.expand)(r,n))}(s,r),c=s.descriptor.id;e.all.push(c);var u;if(!(u={target:l,destination:t,viewport:n,withDroppableDisplacement:!0},ie({...u,isVisibleThroughFrameFn:ee})))return e.invisible[s.descriptor.id]=!0,e;const p=((e,t,r)=>{if("boolean"==typeof r)return r;if(!t)return!0;
41const{invisible:n,visible:i}=t;if(n[e])return!1;const o=i[e];return!o||o.shouldAnimate})(c,o,i),d={draggableId:c,shouldAnimate:p};return e.visible[c]=d,e},{all:[],visible:{},invisible:{}})}function se({insideDestination:e,inHomeList:t,displacedBy:r,destination:n}){const i=function(e,t){if(!e.length)return 0;const r=e[e.length-1].descriptor.index;return t.inHomeList?r:r+1}(e,{inHomeList:t});return{displaced:Q,displacedBy:r,at:{type:"REORDER",destination:{droppableId:n.descriptor.id,index:i}}}}function le({draggable:e,insideDestination:t,destination:r,viewport:n,displacedBy:i,last:o,index:a,forceShouldAnimate:s}){const l=K(e,r);if(null==a)return se({insideDestination:t,inHomeList:l,displacedBy:i,destination:r});const c=t.find(e=>e.descriptor.index===a);if(!c)return se({insideDestination:t,inHomeList:l,displacedBy:i,destination:r});const u=Y(e,t),p=t.indexOf(c);return{displaced:ae({afterDragging:u.slice(p),destination:r,displacedBy:i,last:o,viewport:n.frame,forceShouldAnimate:s}),displacedBy:i,at:{type:"REORDER",destination:{droppableId:r.descriptor.id,index:a}}}}function ce(e,t){return Boolean(t.effected[e])}var ue=({isMovingForward:e,isInHomeList:t,draggable:r,draggables:n,destination:i,insideDestination:o,previousImpact:a,viewport:s,afterCritical:l})=>{const c=a.at;if(c||m(),"REORDER"===c.type){const n=(({isMovingForward:e,isInHomeList:t,insideDestination:r,location:n})=>{if(!r.length)return null;const i=n.index,o=e?i+1:i-1,a=r[0].descriptor.index,s=r[r.length-1].descriptor.index;return o<a||o>(t?s:s+1)?null:o})({isMovingForward:e,isInHomeList:t,location:c.destination,insideDestination:o});return null==n?null:le({draggable:r,insideDestination:o,destination:i,viewport:s,last:a.displaced,displacedBy:a.displacedBy,index:n})}const u=(({isMovingForward:e,destination:t,draggables:r,combine:n,afterCritical:i})=>{if(!t.isCombineEnabled)return null;const o=n.draggableId,a=r[o].descriptor.index;return ce(o,i)?e?a:a-1:e?a+1:a})({isMovingForward:e,destination:i,displaced:a.displaced,draggables:n,combine:c.combine,afterCritical:l});return null==u?null:le({draggable:r,insideDestination:o,destination:i,viewport:s,last:a.displaced,displacedBy:a.displacedBy,index:u})},pe=({afterCritical:e,impact:t,draggables:r})=>{const n=W(t);n||m();const i=n.draggableId,o=r[i].page.borderBox.center,a=(({displaced:e,afterCritical:t,combineWith:r,displacedBy:n})=>{const i=Boolean(e.visible[r]||e.invisible[r]);return ce(r,t)?i?O:R(n.point):i?n.point:O})({displaced:t.displaced,afterCritical:e,combineWith:i,displacedBy:t.displacedBy});return I(o,a)};const de=(e,t)=>t.margin[e.start]+t.borderBox[e.size]/2,he=(e,t,r)=>t[e.crossAxisStart]+r.margin[e.crossAxisStart]+r.borderBox[e.crossAxisSize]/2,fe=({axis:e,moveRelativeTo:t,isMoving:r})=>C(e.line,t.marginBox[e.end]+de(e,r),he(e,t.marginBox,r)),me=({axis:e,moveRelativeTo:t,isMoving:r})=>C(e.line,t.marginBox[e.start]-((e,t)=>t.margin[e.end]+t.borderBox[e.size]/2)(e,r),he(e,t.marginBox,r));var ge=({impact:e,draggable:t,draggables:r,droppable:n,afterCritical:i})=>{const o=q(n.descriptor.id,r),s=t.page,l=n.axis;if(!o.length)return(({axis:e,moveInto:t,isMoving:r})=>C(e.line,t.contentBox[e.start]+de(e,r),he(e,t.contentBox,r)))({axis:l,moveInto:n.page,isMoving:s});const{displaced:c,displacedBy:u}=e,p=c.all[0];if(p){const e=r[p];if(ce(p,i))return me({axis:l,moveRelativeTo:e.page,isMoving:s});const t=(0,a.offset)(e.page,u.point);return me({axis:l,moveRelativeTo:t,isMoving:s})}const d=o[o.length-1];if(d.descriptor.id===t.descriptor.id)return s.borderBox.center;if(ce(d.descriptor.id,i)){const e=(0,a.offset)(d.page,R(i.displacedBy.point));return fe({axis:l,moveRelativeTo:e,isMoving:s})}return fe({axis:l,moveRelativeTo:d.page,isMoving:s})},ye=(e,t)=>{const r=e.frame;return r?I(t,r.scroll.diff.displacement):t};var be=e=>{const t=(({impact:e,draggable:t,droppable:r,draggables:n,afterCritical:i})=>{const o=t.page.borderBox.center,a=e.at;return r&&a?"REORDER"===a.type?ge({impact:e,draggable:t,draggables:n,droppable:r,afterCritical:i}):pe({impact:e,draggables:n,afterCritical:i}):o})(e),r=e.droppable;return r?ye(r,t):t},ve=(e,t)=>
41{const r=A(t,e.scroll.initial),n=R(r);return{frame:(0,a.getRect)({top:t.y,bottom:t.y+e.frame.height,left:t.x,right:t.x+e.frame.width}),scroll:{initial:e.scroll.initial,max:e.scroll.max,current:t,diff:{value:r,displacement:n}}}};function _e(e,t){return e.map(e=>t[e])}var Se=({pageBorderBoxCenter:e,draggable:t,viewport:r})=>{const n=((e,t)=>I(e.scroll.diff.displacement,t))(r,e),i=A(n,t.page.borderBox.center);return I(t.client.borderBox.center,i)},Ee=({draggable:e,destination:t,newPageBorderBoxCenter:r,viewport:n,withDroppableDisplacement:i,onlyOnMainAxis:o=!1})=>{const a=A(r,e.page.borderBox.center),s={target:N(e.page.borderBox,a),destination:t,withDroppableDisplacement:i,viewport:n};return o?(e=>{return ie({...e,isVisibleThroughFrameFn:(t=e.destination.axis,e=>{const r=Z(e.top,e.bottom),n=Z(e.left,e.right);return e=>t===re?r(e.top)&&r(e.bottom):n(e.left)&&n(e.right)})});var t})(s):oe(s)},Te=({isMovingForward:e,draggable:t,destination:r,draggables:n,previousImpact:i,viewport:o,previousPageBorderBoxCenter:a,previousClientSelection:s,afterCritical:l})=>{if(!r.isEnabled)return null;const c=q(r.descriptor.id,n),u=K(t,r),p=(({isMovingForward:e,draggable:t,destination:r,insideDestination:n,previousImpact:i})=>{if(!r.isCombineEnabled)return null;if(!$(i))return null;function o(e){const t={type:"COMBINE",combine:{draggableId:e,droppableId:r.descriptor.id}};return{...i,at:t}}const a=i.displaced.all,s=a.length?a[0]:null;if(e)return s?o(s):null;const l=Y(t,n);if(!s)return l.length?o(l[l.length-1].descriptor.id):null;const c=l.findIndex(e=>e.descriptor.id===s);-1===c&&m();const u=c-1;return u<0?null:o(l[u].descriptor.id)})({isMovingForward:e,draggable:t,destination:r,insideDestination:c,previousImpact:i})||ue({isMovingForward:e,isInHomeList:u,draggable:t,draggables:n,destination:r,insideDestination:c,previousImpact:i,viewport:o,afterCritical:l});if(!p)return null;const d=be({impact:p,draggable:t,droppable:r,draggables:n,afterCritical:l});if(Ee({draggable:t,destination:r,newPageBorderBoxCenter:d,viewport:o.frame,withDroppableDisplacement:!1,onlyOnMainAxis:!0})){return{clientSelection:Se({pageBorderBoxCenter:d,draggable:t,viewport:o}),impact:p,scrollJumpRequest:null}}const h=A(d,a),f=(({impact:e,viewport:t,destination:r,draggables:n,maxScrollChange:i})=>{const o=ve(t,I(t.scroll.current,i)),a=r.frame?U(r,I(r.frame.scroll.current,i)):r,s=e.displaced,l=ae({afterDragging:_e(s.all,n),destination:r,displacedBy:e.displacedBy,viewport:o.frame,last:s,forceShouldAnimate:!1}),c=ae({afterDragging:_e(s.all,n),destination:a,displacedBy:e.displacedBy,viewport:t.frame,last:s,forceShouldAnimate:!1}),u={},p={},d=[s,l,c];return s.all.forEach(e=>{const t=function(e,t){for(let r=0;r<t.length;r++){const n=t[r].visible[e];if(n)return n}return null}(e,d);t?p[e]=t:u[e]=!0}),{...e,displaced:{all:s.all,invisible:u,visible:p}}})({impact:p,viewport:o,destination:r,draggables:n,maxScrollChange:h});return{clientSelection:s,impact:f,scrollJumpRequest:h}};const we=e=>{const t=e.subject.active;return t||m(),t};const xe=(e,t)=>{const r=e.page.borderBox.center;return ce(e.descriptor.id,t)?A(r,t.displacedBy.point):r},Oe=(e,t)=>{const r=e.page.borderBox;return ce(e.descriptor.id,t)?N(r,R(t.displacedBy.point)):r};var Ie=j(function(e,t){const r=t[e.line];return{value:r,point:C(e.line,r)}});const Ae=(e,t)=>
41({...e,scroll:{...e.scroll,max:t}}),ke=(e,t,r)=>{const n=e.frame;K(t,e)&&m(),e.subject.withPlaceholder&&m();const i=Ie(e.axis,t.displaceBy).point,o=((e,t,r)=>{const n=e.axis;if("virtual"===e.descriptor.mode)return C(n.line,t[n.line]);const i=e.subject.page.contentBox[n.size],o=q(e.descriptor.id,r).reduce((e,t)=>e+t.client.marginBox[n.size],0)+t[n.line]-i;return o<=0?null:C(n.line,o)})(e,i,r),a={placeholderSize:i,increasedBy:o,oldFrameMaxScroll:e.frame?e.frame.scroll.max:null};if(!n){const t=B({page:e.subject.page,withPlaceholder:a,axis:e.axis,frame:e.frame});return{...e,subject:t}}const s=o?I(n.scroll.max,o):n.scroll.max,l=Ae(n,s),c=B({page:e.subject.page,withPlaceholder:a,axis:e.axis,frame:l});return{...e,subject:c,frame:l}};var Re=({isMovingForward:e,previousPageBorderBoxCenter:t,draggable:r,isOver:n,draggables:i,droppables:o,viewport:a,afterCritical:s})=>{const l=(({isMovingForward:e,pageBorderBoxCenter:t,source:r,droppables:n,viewport:i})=>{const o=r.subject.active;if(!o)return null;const a=r.axis,s=Z(o[a.start],o[a.end]),l=z(n).filter(e=>e!==r).filter(e=>e.isEnabled).filter(e=>Boolean(e.subject.active)).filter(e=>ee(i.frame)(we(e))).filter(t=>{const r=we(t);return e?o[a.crossAxisEnd]<r[a.crossAxisEnd]:r[a.crossAxisStart]<o[a.crossAxisStart]}).filter(e=>{const t=we(e),r=Z(t[a.start],t[a.end]);return s(t[a.start])||s(t[a.end])||r(o[a.start])||r(o[a.end])}).sort((t,r)=>{const n=we(t)[a.crossAxisStart],i=we(r)[a.crossAxisStart];return e?n-i:i-n}).filter((e,t,r)=>we(e)[a.crossAxisStart]===we(r[0])[a.crossAxisStart]);if(!l.length)return null;if(1===l.length)return l[0];const c=l.filter(e=>Z(we(e)[a.start],we(e)[a.end])(t[a.line]));return 1===c.length?c[0]:c.length>1?c.sort((e,t)=>we(e)[a.start]-we(t)[a.start])[0]:l.sort((e,r)=>{const n=D(t,L(we(e))),i=D(t,L(we(r)));return n!==i?n-i:we(e)[a.start]-we(r)[a.start]})[0]})({isMovingForward:e,pageBorderBoxCenter:t,source:n,droppables:o,viewport:a});if(!l)return null;const c=q(l.descriptor.id,i),u=(({pageBorderBoxCenter:e,viewport:t,destination:r,insideDestination:n,afterCritical:i})=>{const o=n.filter(e=>oe({target:Oe(e,i),destination:r,viewport:t.frame,withDroppableDisplacement:!0})).sort((t,n)=>{const o=P(e,ye(r,xe(t,i))),a=P(e,ye(r,xe(n,i)));return o<a?-1:a<o?1:t.descriptor.index-n.descriptor.index});return o[0]||null})({pageBorderBoxCenter:t,viewport:a,destination:l,insideDestination:c,afterCritical:s}),p=(({previousPageBorderBoxCenter:e,moveRelativeTo:t,insideDestination:r,draggable:n,draggables:i,destination:o,viewport:a,afterCritical:s})=>{if(!t){if(r.length)return null;const e={displaced:Q,displacedBy:J,at:{type:"REORDER",destination:{droppableId:o.descriptor.id,index:0}}},t=be({impact:e,draggable:n,droppable:o,draggables:i,afterCritical:s}),l=K(n,o)?o:ke(o,n,i);return Ee({draggable:n,destination:l,newPageBorderBoxCenter:t,viewport:a.frame,withDroppableDisplacement:!1,onlyOnMainAxis:!0})?e:null}const l=Boolean(e[o.axis.line]<=t.page.borderBox.center[o.axis.line]),c=(()=>{const e=t.descriptor.index;return t.descriptor.id===n.descriptor.id||l?e:e+1})(),u=Ie(o.axis,n.displaceBy);return le({draggable:n,insideDestination:r,destination:o,viewport:a,displacedBy:u,last:Q,index:c})})({previousPageBorderBoxCenter:t,destination:l,draggable:r,draggables:i,moveRelativeTo:u,insideDestination:c,viewport:a,afterCritical:s});if(!p)return null;const d=be({impact:p,draggable:r,droppable:l,draggables:i,afterCritical:s});return{clientSelection:Se({pageBorderBoxCenter:d,draggable:r,viewport:
41a}),impact:p,scrollJumpRequest:null}},Ce=e=>{const t=e.at;return t?"REORDER"===t.type?t.destination.droppableId:t.combine.droppableId:null};var Pe=({state:e,type:t})=>{const r=((e,t)=>{const r=Ce(e);return r?t[r]:null})(e.impact,e.dimensions.droppables),n=Boolean(r),i=e.dimensions.droppables[e.critical.droppable.id],o=r||i,a=o.axis.direction,s="vertical"===a&&("MOVE_UP"===t||"MOVE_DOWN"===t)||"horizontal"===a&&("MOVE_LEFT"===t||"MOVE_RIGHT"===t);if(s&&!n)return null;const l="MOVE_DOWN"===t||"MOVE_RIGHT"===t,c=e.dimensions.draggables[e.critical.draggable.id],u=e.current.page.borderBoxCenter,{draggables:p,droppables:d}=e.dimensions;return s?Te({isMovingForward:l,previousPageBorderBoxCenter:u,draggable:c,destination:o,draggables:p,viewport:e.viewport,previousClientSelection:e.current.client.selection,previousImpact:e.impact,afterCritical:e.afterCritical}):Re({isMovingForward:l,previousPageBorderBoxCenter:u,draggable:c,isOver:o,draggables:p,droppables:d,viewport:e.viewport,afterCritical:e.afterCritical})};function De(e){return"DRAGGING"===e.phase||"COLLECTING"===e.phase}function Me(e){const t=Z(e.top,e.bottom),r=Z(e.left,e.right);return function(e){return t(e.y)&&r(e.x)}}function Ne({pageBorderBox:e,draggable:t,droppables:r}){const n=z(r).filter(t=>{if(!t.isEnabled)return!1;const r=t.subject.active;if(!r)return!1;if(i=r,!((n=e).left<i.right&&n.right>i.left&&n.top<i.bottom&&n.bottom>i.top))return!1;var n,i;if(Me(r)(e.center))return!0;const o=t.axis,a=r.center[o.crossAxisLine],s=e[o.crossAxisStart],l=e[o.crossAxisEnd],c=Z(r[o.crossAxisStart],r[o.crossAxisEnd]),u=c(s),p=c(l);return!u&&!p||(u?s<a:l>a)});return n.length?1===n.length?n[0].descriptor.id:function({pageBorderBox:e,draggable:t,candidates:r}){const n=t.page.borderBox.center,i=r.map(t=>{const r=t.axis,i=C(t.axis.line,e.center[r.line],t.page.borderBox.center[r.crossAxisLine]);return{id:t.descriptor.id,distance:P(n,i)}}).sort((e,t)=>t.distance-e.distance);return i[0]?i[0].id:null}({pageBorderBox:e,draggable:t,candidates:n}):null}const Le=(e,t)=>(0,a.getRect)(N(e,t));function Fe({displaced:e,id:t}){return Boolean(e.visible[t]||e.invisible[t])}var Be=({pageOffset:e,draggable:t,draggables:r,droppables:n,previousImpact:i,viewport:o,afterCritical:a})=>{const s=Le(t.page.borderBox,e),l=Ne({pageBorderBox:s,draggable:t,droppables:n});if(!l)return X;const c=n[l],u=q(c.descriptor.id,r),p=((e,t)=>{const r=e.frame;return r?Le(t,r.scroll.diff.value):t})(c,s);return(({draggable:e,pageBorderBoxWithDroppableScroll:t,previousImpact:r,destination:n,insideDestination:i,afterCritical:o})=>{if(!n.isCombineEnabled)return null;const a=n.axis,s=Ie(n.axis,e.displaceBy),l=s.value,c=t[a.start],u=t[a.end],p=Y(e,i).find(e=>{const t=e.descriptor.id,n=e.page.borderBox,i=n[a.size]/4,s=ce(t,o),p=Fe({displaced:r.displaced,id:t});return s?p?u>n[a.start]+i&&u<n[a.end]-i:c>n[a.start]-l+i&&c<n[a.end]-l-i:p?u>n[a.start]+l+i&&u<n[a.end]+l-i:c>n[a.start]+i&&c<n[a.end]-i});return p?{displacedBy:s,displaced:r.displaced,at:{type:"COMBINE",combine:{draggableId:p.descriptor.id,droppableId:n.descriptor.id}}}:null})({pageBorderBoxWithDroppableScroll:p,draggable:t,previousImpact:i,destination:c,insideDestination:u,afterCritical:a})||(({pageBorderBoxWithDroppableScroll:e,draggable:t,destination:r,insideDestination:n,last:i,viewport:o,afterCritical:a})=>{const s=r.axis,l=Ie(r.axis,t.displaceBy),c=l.value,u=e[s.start],p=e[s.end],d=function({draggable:e,closest:t,inHomeList:r}){return t?r&&t.descriptor.index>e.descriptor.index?t.descriptor.index-1:t.descriptor.index:null}({draggable:t,closest:Y(t,n).find(e=>{const t=e.descriptor.id,r=e.page.borderBox.center[s.line],n=ce(t,a),o=Fe({displaced:i,id:t});return n?o?p<=r:u<r-c:o?p<=r+c:u<r})||null,inHomeList:K(t,r)});return le({draggable:t,insideDestination:n,destination:r,viewport:o,last:i,displacedBy:l,index:d})})({pageBorderBoxWithDroppableScroll:p,draggable:t,destination:c,insideDestination:u,last:i.displaced,viewport:o,afterCritical:a})},Ue=(e,t)=>({...e,[t.descriptor.id]:t});const je=({previousImpact:e,impact:t,droppables:r})=>{const n=Ce(e),i=Ce(t);if(!n)return r;if(n===i)return r;const o=r[n];if(!o.subject.withPlaceholder)return r;const a=(e=>{const t=e.subject.withPlaceholder;
41t||m();const r=e.frame;if(!r){const t=B({page:e.subject.page,axis:e.axis,frame:null,withPlaceholder:null});return{...e,subject:t}}const n=t.oldFrameMaxScroll;n||m();const i=Ae(r,n),o=B({page:e.subject.page,axis:e.axis,frame:i,withPlaceholder:null});return{...e,subject:o,frame:i}})(o);return Ue(r,a)};var He=({state:e,clientSelection:t,dimensions:r,viewport:n,impact:i,scrollJumpRequest:o})=>{const a=n||e.viewport,s=r||e.dimensions,l=t||e.current.client.selection,c=A(l,e.initial.client.selection),u={offset:c,selection:l,borderBoxCenter:I(e.initial.client.borderBoxCenter,c)},p={selection:I(u.selection,a.scroll.current),borderBoxCenter:I(u.borderBoxCenter,a.scroll.current),offset:I(u.offset,a.scroll.diff.value)},d={client:u,page:p};if("COLLECTING"===e.phase)return{...e,dimensions:s,viewport:a,current:d};const h=s.draggables[e.critical.draggable.id],f=i||Be({pageOffset:p.offset,draggable:h,draggables:s.draggables,droppables:s.droppables,previousImpact:e.impact,viewport:a,afterCritical:e.afterCritical}),m=(({draggable:e,draggables:t,droppables:r,previousImpact:n,impact:i})=>{const o=je({previousImpact:n,impact:i,droppables:r}),a=Ce(i);if(!a)return o;const s=r[a];if(K(e,s))return o;if(s.subject.withPlaceholder)return o;const l=ke(s,e,t);return Ue(o,l)})({draggable:h,impact:f,previousImpact:e.impact,draggables:s.draggables,droppables:s.droppables});return{...e,current:d,dimensions:{draggables:s.draggables,droppables:m},impact:f,viewport:a,scrollJumpRequest:o||null,forceShouldAnimate:!o&&null}};var Ve=({impact:e,viewport:t,draggables:r,destination:n,forceShouldAnimate:i})=>{const o=e.displaced,a=function(e,t){return e.map(e=>t[e])}(o.all,r),s=ae({afterDragging:a,destination:n,displacedBy:e.displacedBy,viewport:t.frame,forceShouldAnimate:i,last:o});return{...e,displaced:s}},ze=({impact:e,draggable:t,droppable:r,draggables:n,viewport:i,afterCritical:o})=>{const a=be({impact:e,draggable:t,draggables:n,droppable:r,afterCritical:o});return Se({pageBorderBoxCenter:a,draggable:t,viewport:i})},Ge=({state:e,dimensions:t,viewport:r})=>{"SNAP"!==e.movementMode&&m();const n=e.impact,i=r||e.viewport,o=t||e.dimensions,{draggables:a,droppables:s}=o,l=a[e.critical.draggable.id],c=Ce(n);c||m();const u=s[c],p=Ve({impact:n,viewport:i,destination:u,draggables:a}),d=ze({impact:p,draggable:l,droppable:u,draggables:a,viewport:i,afterCritical:e.afterCritical});return He({impact:p,clientSelection:d,state:e,dimensions:o,viewport:i})},qe=({draggable:e,home:t,draggables:r,viewport:n})=>{const i=Ie(t.axis,e.displaceBy),o=q(t.descriptor.id,r),a=o.indexOf(e);-1===a&&m();const s=o.slice(a+1),l=s.reduce((e,t)=>(e[t.descriptor.id]=!0,e),{}),c={inVirtualList:"virtual"===t.descriptor.mode,displacedBy:i,effected:l};var u;return{impact:{displaced:ae({afterDragging:s,destination:t,displacedBy:i,last:null,viewport:n.frame,forceShouldAnimate:!1}),displacedBy:i,at:{type:"REORDER",destination:(u=e.descriptor,{index:u.index,droppableId:u.droppableId})}},afterCritical:c}};const $e=e=>{0},We=e=>{0};var Ye=({additions:e,updatedDroppables:t,viewport:r})=>{const n=r.scroll.diff.value;return e.map(e=>{const i=e.descriptor.droppableId,o=(e=>{const t=e.frame;return t||m(),t})(t[i]),s=o.scroll.diff.value,l=(({draggable:e,offset:t,initialWindowScroll:r})=>{const n=(0,a.offset)(e.client,t),i=(0,a.withScroll)(n,r);return{...e,placeholder:{...e.placeholder,client:n},client:n,page:i}})({draggable:e,offset:I(n,s),initialWindowScroll:r.scroll.initial});return l})};const Ke=e=>"SNAP"===e.movementMode,Je=(e,t,r)=>{const n=((e,t)=>({draggables:e.draggables,droppables:Ue(e.droppables,t)}))(e.dimensions,t);return!Ke(e)||r?He({state:e,dimensions:n}):Ge({state:e,dimensions:n})};function Qe(e){return e.isDragging&&"SNAP"===e.movementMode?{...e,scrollJumpRequest:null}:e}const Xe={phase:"IDLE",completed:null,shouldFlush:!1};var Ze=(e=Xe,t)=>{if("FLUSH"===t.type)return{...Xe,shouldFlush:!0};if("INITIAL_PUBLISH"===t.type){"IDLE"!==e.phase&&m();const{critical:r,clientSelection:n,viewport:i,dimensions:o,movementMode:a}=t.payload,s=o.draggables[r.draggable.id],l=o.droppables[r.droppable.id],c={selection:n,borderBoxCenter:s.client.borderBox.center,offset:O},u={client:c,page:{selection:I(c.selection,i.scroll.initial),borderBoxCenter:I(c.selection,i.scroll.initial),offset:I(c.selection,i.scroll.diff.value)}},p=z(o.droppables).every(e=>!e.isFixedOnPage),{impact:d,afterCritical:h}=qe({draggable:s,home:l,draggables:o.draggables,viewport:i});
41return{phase:"DRAGGING",isDragging:!0,critical:r,movementMode:a,dimensions:o,initial:u,current:u,isWindowScrollAllowed:p,impact:d,afterCritical:h,onLiftImpact:d,viewport:i,scrollJumpRequest:null,forceShouldAnimate:null}}if("COLLECTION_STARTING"===t.type){if("COLLECTING"===e.phase||"DROP_PENDING"===e.phase)return e;"DRAGGING"!==e.phase&&m();return{...e,phase:"COLLECTING"}}if("PUBLISH_WHILE_DRAGGING"===t.type)return"COLLECTING"!==e.phase&&"DROP_PENDING"!==e.phase&&m(),(({state:e,published:t})=>{$e();const r=t.modified.map(t=>{const r=e.dimensions.droppables[t.droppableId];return U(r,t.scroll)}),n={...e.dimensions.droppables,...H(r)},i=V(Ye({additions:t.additions,updatedDroppables:n,viewport:e.viewport})),o={...e.dimensions.draggables,...i};t.removals.forEach(e=>{delete o[e]});const a={droppables:n,draggables:o},s=Ce(e.impact),l=s?a.droppables[s]:null,c=a.draggables[e.critical.draggable.id],u=a.droppables[e.critical.droppable.id],{impact:p,afterCritical:d}=qe({draggable:c,home:u,draggables:o,viewport:e.viewport}),h=l&&l.isCombineEnabled?e.impact:p,f=Be({pageOffset:e.current.page.offset,draggable:a.draggables[e.critical.draggable.id],draggables:a.draggables,droppables:a.droppables,previousImpact:h,viewport:e.viewport,afterCritical:d});We();const m={...e,phase:"DRAGGING",impact:f,onLiftImpact:p,dimensions:a,afterCritical:d,forceShouldAnimate:!1};return"COLLECTING"===e.phase?m:{...m,phase:"DROP_PENDING",reason:e.reason,isWaiting:!1}})({state:e,published:t.payload});if("MOVE"===t.type){if("DROP_PENDING"===e.phase)return e;De(e)||m();const{client:r}=t.payload;return k(r,e.current.client.selection)?e:He({state:e,clientSelection:r,impact:Ke(e)?e.impact:null})}if("UPDATE_DROPPABLE_SCROLL"===t.type){if("DROP_PENDING"===e.phase)return Qe(e);if("COLLECTING"===e.phase)return Qe(e);De(e)||m();const{id:r,newScroll:n}=t.payload,i=e.dimensions.droppables[r];if(!i)return e;const o=U(i,n);return Je(e,o,!1)}if("UPDATE_DROPPABLE_IS_ENABLED"===t.type){if("DROP_PENDING"===e.phase)return e;De(e)||m();const{id:r,isEnabled:n}=t.payload,i=e.dimensions.droppables[r];i||m(),i.isEnabled===n&&m();const o={...i,isEnabled:n};return Je(e,o,!0)}if("UPDATE_DROPPABLE_IS_COMBINE_ENABLED"===t.type){if("DROP_PENDING"===e.phase)return e;De(e)||m();const{id:r,isCombineEnabled:n}=t.payload,i=e.dimensions.droppables[r];i||m(),i.isCombineEnabled===n&&m();const o={...i,isCombineEnabled:n};return Je(e,o,!0)}if("MOVE_BY_WINDOW_SCROLL"===t.type){if("DROP_PENDING"===e.phase||"DROP_ANIMATING"===e.phase)return e;De(e)||m(),e.isWindowScrollAllowed||m();const r=t.payload.newScroll;if(k(e.viewport.scroll.current,r))return Qe(e);const n=ve(e.viewport,r);return Ke(e)?Ge({state:e,viewport:n}):He({state:e,viewport:n})}if("UPDATE_VIEWPORT_MAX_SCROLL"===t.type){if(!De(e))return e;const r=t.payload.maxScroll;if(k(r,e.viewport.scroll.max))return e;const n={...e.viewport,scroll:{...e.viewport.scroll,max:r}};return{...e,viewport:n}}if("MOVE_UP"===t.type||"MOVE_DOWN"===t.type||"MOVE_LEFT"===t.type||"MOVE_RIGHT"===t.type){if("COLLECTING"===e.phase||"DROP_PENDING"===e.phase)return e;"DRAGGING"!==e.phase&&m();const r=Pe({state:e,type:t.type});return r?He({state:e,impact:r.impact,clientSelection:r.clientSelection,scrollJumpRequest:r.scrollJumpRequest}):e}if("DROP_PENDING"===t.type){const r=t.payload.reason;"COLLECTING"!==e.phase&&m();return{...e,phase:"DROP_PENDING",isWaiting:!0,reason:r}}if("DROP_ANIMATE"===t.type){const{completed:r,dropDuration:n,newHomeClientOffset:i}=t.payload;"DRAGGING"!==e.phase&&"DROP_PENDING"!==e.phase&&m();return{phase:"DROP_ANIMATING",completed:r,dropDuration:n,newHomeClientOffset:i,dimensions:e.dimensions}}if("DROP_COMPLETE"===t.type){const{completed:e}=t.payload;return{phase:"IDLE",completed:e,shouldFlush:!1}}return e};function et(e,t){return e instanceof Object&&"type"in e&&e.type===t}const tt=e=>({type:"LIFT",payload:e}),rt=e=>({type:"PUBLISH_WHILE_DRAGGING",payload:e}),nt=()=>({type:"COLLECTION_STARTING",payload:null}),it=e=>({type:"UPDATE_DROPPABLE_SCROLL",payload:e}),ot=e=>({type:"UPDATE_DROPPABLE_IS_ENABLED",payload:e}),at=e=>({type:"UPDATE_DROPPABLE_IS_COMBINE_ENABLED",payload:e}),st=e=>({type:"MOVE",payload:e}),lt=()=>({type:"MOVE_UP",payload:null}),ct=()=>({type:"MOVE_DOWN",payload:null}),ut=()=>({type:"MOVE_RIGHT",payload:null}),pt=()=>({type:"MOVE_LEFT",payload:null}),dt=()=>({type:"FLUSH",payload:null}),ht=e=>({type:"DROP_COMPLETE",payload:e}),ft=e=>({type:"DROP",payload:e}),mt=()=>({type:"DROP_ANIMATION_FINISHED",payload:null});const gt="cubic-bezier(.2,1,.1,1)",yt={drop:0,combining:.7},bt={drop:.75},vt={outOfTheWay:.2,minDropTime:.33,maxDropTime:.55},_t=`${vt.outOfTheWay}s ${"cubic-bezier(0.2, 0, 0, 1)"}`,St={fluid:`opacity ${_t}`,snap:`transform ${_t}, opacity ${_t}`,drop:e=>{const t=`${e}s ${gt}`;return`transform ${t}, opacity ${t}`},outOfTheWay:`transform ${_t}`,placeholder:`height ${_t}, width ${_t}, margin ${_t}`},Et=e=>k(e,O)?void 0:`translate(${e.x}px, ${e.y}px)`,Tt=Et,wt=(e,t)=>
41{const r=Et(e);if(r)return t?`${r} scale(${bt.drop})`:r},{minDropTime:xt,maxDropTime:Ot}=vt,It=Ot-xt;const At=({getState:e,dispatch:t})=>r=>n=>{if(!et(n,"DROP"))return void r(n);const i=e(),o=n.payload.reason;if("COLLECTING"===i.phase)return void t((e=>({type:"DROP_PENDING",payload:e}))({reason:o}));if("IDLE"===i.phase)return;"DROP_PENDING"===i.phase&&i.isWaiting&&m(),"DRAGGING"!==i.phase&&"DROP_PENDING"!==i.phase&&m();const a=i.critical,s=i.dimensions,l=s.draggables[i.critical.draggable.id],{impact:c,didDropInsideDroppable:u}=(({draggables:e,reason:t,lastImpact:r,home:n,viewport:i,onLiftImpact:o})=>{if(!r.at||"DROP"!==t)return{impact:Ve({draggables:e,impact:o,destination:n,viewport:i,forceShouldAnimate:!0}),didDropInsideDroppable:!1};return"REORDER"===r.at.type?{impact:r,didDropInsideDroppable:!0}:{impact:{...r,displaced:Q},didDropInsideDroppable:!0}})({reason:o,lastImpact:i.impact,afterCritical:i.afterCritical,onLiftImpact:i.onLiftImpact,home:i.dimensions.droppables[i.critical.droppable.id],viewport:i.viewport,draggables:i.dimensions.draggables}),p=u?$(c):null,d=u?W(c):null,h={index:a.draggable.index,droppableId:a.droppable.id},f={draggableId:l.descriptor.id,type:l.descriptor.type,source:h,reason:o,mode:i.movementMode,destination:p,combine:d},g=(({impact:e,draggable:t,dimensions:r,viewport:n,afterCritical:i})=>{const{draggables:o,droppables:a}=r,s=Ce(e),l=s?a[s]:null,c=a[t.descriptor.droppableId],u=ze({impact:e,draggable:t,draggables:o,afterCritical:i,droppable:l||c,viewport:n});return A(u,t.client.borderBox.center)})({impact:c,draggable:l,dimensions:s,viewport:i.viewport,afterCritical:i.afterCritical}),y={critical:i.critical,afterCritical:i.afterCritical,result:f,impact:c};if(!(!k(i.current.client.offset,g)||Boolean(f.combine)))return void t(ht({completed:y}));const b=(({current:e,destination:t,reason:r})=>{const n=P(e,t);if(n<=0)return xt;if(n>=1500)return Ot;const i=xt+It*(n/1500);return Number(("CANCEL"===r?.6*i:i).toFixed(2))})({current:i.current.client.offset,destination:g,reason:o});t((e=>({type:"DROP_ANIMATE",payload:e}))({newHomeClientOffset:g,dropDuration:b,completed:y}))};var kt=()=>({x:window.pageXOffset,y:window.pageYOffset});function Rt({onWindowScroll:e}){const t=(0,s.default)(function(){e(kt())}),r=function(e){return{eventName:"scroll",options:{passive:!0,capture:!1},fn:t=>{t.target!==window&&t.target!==window.document||e()}}}(t);let n=u;function i(){return n!==u}return{start:function(){i()&&m(),n=p(window,[r])},stop:function(){i()||m(),t.cancel(),n(),n=u},isActive:i}}const Ct=e=>{const t=Rt({onWindowScroll:t=>{e.dispatch({type:"MOVE_BY_WINDOW_SCROLL",payload:{newScroll:t}})}});return e=>r=>{!t.isActive()&&et(r,"INITIAL_PUBLISH")&&t.start(),t.isActive()&&(e=>et(e,"DROP_COMPLETE")||et(e,"DROP_ANIMATE")||et(e,"FLUSH"))(r)&&t.stop(),e(r)}};var Pt=()=>{const e=[];return{add:t=>{const r=setTimeout(()=>(t=>{const r=e.findIndex(e=>e.timerId===t);-1===r&&m();const[n]=e.splice(r,1);n.callback()})(r)),n={timerId:r,callback:t};e.push(n)},flush:()=>
41{if(!e.length)return;const t=[...e];e.length=0,t.forEach(e=>{clearTimeout(e.timerId),e.callback()})}}};const Dt=(e,t)=>{$e(),t(),We()},Mt=(e,t)=>({draggableId:e.draggable.id,type:e.droppable.type,source:{droppableId:e.droppable.id,index:e.draggable.index},mode:t});function Nt(e,t,r,n){if(!e)return void r(n(t));const i=(e=>{let t=!1,r=!1;const n=setTimeout(()=>{r=!0}),i=i=>{t||r||(t=!0,e(i),clearTimeout(n))};return i.wasCalled=()=>t,i})(r);e(t,{announce:i}),i.wasCalled()||r(n(t))}var Lt=(e,t)=>{const r=((e,t)=>{const r=Pt();let n=null;const i=r=>{n||m(),n=null,Dt(0,()=>Nt(e().onDragEnd,r,t,S.onDragEnd))};return{beforeCapture:(t,r)=>{n&&m(),Dt(0,()=>{const n=e().onBeforeCapture;n&&n({draggableId:t,mode:r})})},beforeStart:(t,r)=>{n&&m(),Dt(0,()=>{const n=e().onBeforeDragStart;n&&n(Mt(t,r))})},start:(i,o)=>{n&&m();const a=Mt(i,o);n={mode:o,lastCritical:i,lastLocation:a.source,lastCombine:null},r.add(()=>{Dt(0,()=>Nt(e().onDragStart,a,t,S.onDragStart))})},update:(i,o)=>{const a=$(o),s=W(o);n||m();const l=!((e,t)=>{if(e===t)return!0;const r=e.draggable.id===t.draggable.id&&e.draggable.droppableId===t.draggable.droppableId&&e.draggable.type===t.draggable.type&&e.draggable.index===t.draggable.index,n=e.droppable.id===t.droppable.id&&e.droppable.type===t.droppable.type;return r&&n})(i,n.lastCritical);l&&(n.lastCritical=i);const c=(p=a,!(null==(u=n.lastLocation)&&null==p||null!=u&&null!=p&&u.droppableId===p.droppableId&&u.index===p.index));var u,p;c&&(n.lastLocation=a);const d=!((e,t)=>null==e&&null==t||null!=e&&null!=t&&e.draggableId===t.draggableId&&e.droppableId===t.droppableId)(n.lastCombine,s);if(d&&(n.lastCombine=s),!l&&!c&&!d)return;const h={...Mt(i,n.mode),combine:s,destination:a};r.add(()=>{Dt(0,()=>Nt(e().onDragUpdate,h,t,S.onDragUpdate))})},flush:()=>{n||m(),r.flush()},drop:i,abort:()=>{if(!n)return;const e={...Mt(n.lastCritical,n.mode),combine:null,destination:null,reason:"CANCEL"};i(e)}}})(e,t);return e=>t=>n=>{if(et(n,"BEFORE_INITIAL_CAPTURE"))return void r.beforeCapture(n.payload.draggableId,n.payload.movementMode);if(et(n,"INITIAL_PUBLISH")){const e=n.payload.critical;return r.beforeStart(e,n.payload.movementMode),t(n),void r.start(e,n.payload.movementMode)}if(et(n,"DROP_COMPLETE")){const e=n.payload.completed.result;return r.flush(),t(n),void r.drop(e)}if(t(n),et(n,"FLUSH"))return void r.abort();const i=e.getState();"DRAGGING"===i.phase&&r.update(i.critical,i.impact)}};const Ft=e=>t=>r=>{if(!et(r,"DROP_ANIMATION_FINISHED"))return void t(r);const n=e.getState();"DROP_ANIMATING"!==n.phase&&m(),e.dispatch(ht({completed:n.completed}))},Bt=e=>{let t=null,r=null;return n=>i=>{if((et(i,"FLUSH")||et(i,"DROP_COMPLETE")||et(i,"DROP_ANIMATION_FINISHED"))&&(r&&(cancelAnimationFrame(r),r=null),t&&(t(),t=null)),n(i),!et(i,"DROP_ANIMATE"))return;const o={eventName:"scroll",options:{capture:!0,passive:!1,once:!0},fn:function(){"DROP_ANIMATING"===e.getState().phase&&e.dispatch({type:"DROP_ANIMATION_FINISHED",payload:null})}};r=requestAnimationFrame(()=>{r=null,t=p(window,[o])})}};var Ut=e=>t=>r=>n=>
41{if((e=>et(e,"DROP_COMPLETE")||et(e,"DROP_ANIMATE")||et(e,"FLUSH"))(n))return e.stop(),void r(n);if(et(n,"INITIAL_PUBLISH")){r(n);const i=t.getState();return"DRAGGING"!==i.phase&&m(),void e.start(i)}r(n),e.scroll(t.getState())};const jt=e=>t=>r=>{if(t(r),!et(r,"PUBLISH_WHILE_DRAGGING"))return;const n=e.getState();"DROP_PENDING"===n.phase&&(n.isWaiting||e.dispatch(ft({reason:n.reason})))},Ht=i.compose;var Vt=({dimensionMarshal:e,focusMarshal:t,styleMarshal:r,getResponders:n,announce:o,autoScroller:a})=>{return(0,i.createStore)(Ze,Ht((0,i.applyMiddleware)((s=r,()=>e=>t=>{et(t,"INITIAL_PUBLISH")&&s.dragging(),et(t,"DROP_ANIMATE")&&s.dropping(t.payload.completed.result.reason),(et(t,"FLUSH")||et(t,"DROP_COMPLETE"))&&s.resting(),e(t)}),(e=>()=>t=>r=>{(et(r,"DROP_COMPLETE")||et(r,"FLUSH")||et(r,"DROP_ANIMATE"))&&e.stopPublishing(),t(r)})(e),(e=>({getState:t,dispatch:r})=>n=>i=>{if(!et(i,"LIFT"))return void n(i);const{id:o,clientSelection:a,movementMode:s}=i.payload,l=t();"DROP_ANIMATING"===l.phase&&r(ht({completed:l.completed})),"IDLE"!==t().phase&&m(),r(dt()),r({type:"BEFORE_INITIAL_CAPTURE",payload:{draggableId:o,movementMode:s}});const c={draggableId:o,scrollOptions:{shouldPublishImmediately:"SNAP"===s}},{critical:u,dimensions:p,viewport:d}=e.startPublishing(c);r({type:"INITIAL_PUBLISH",payload:{critical:u,dimensions:p,clientSelection:a,movementMode:s,viewport:d}})})(e),At,Ft,Bt,jt,Ut(a),Ct,(e=>{let t=!1;return()=>r=>n=>{if(et(n,"INITIAL_PUBLISH"))return t=!0,e.tryRecordFocus(n.payload.critical.draggable.id),r(n),void e.tryRestoreFocusRecorded();if(r(n),t){if(et(n,"FLUSH"))return t=!1,void e.tryRestoreFocusRecorded();if(et(n,"DROP_COMPLETE")){t=!1;const r=n.payload.completed.result;r.combine&&e.tryShiftRecord(r.draggableId,r.combine.draggableId),e.tryRestoreFocusRecorded()}}}})(t),Lt(n,o))));var s};var zt=({scrollHeight:e,scrollWidth:t,height:r,width:n})=>{const i=A({x:t,y:e},{x:n,y:r});return{x:Math.max(0,i.x),y:Math.max(0,i.y)}},Gt=()=>{const e=document.documentElement;return e||m(),e},qt=()=>{const e=Gt();return zt({scrollHeight:e.scrollHeight,scrollWidth:e.scrollWidth,width:e.clientWidth,height:e.clientHeight})},$t=({critical:e,scrollOptions:t,registry:r})=>{$e();const n=(()=>{const e=kt(),t=qt(),r=e.y,n=e.x,i=Gt(),o=n+i.clientWidth,s=r+i.clientHeight;return{frame:(0,a.getRect)({top:r,left:n,right:o,bottom:s}),scroll:{initial:e,current:e,max:t,diff:{value:O,displacement:O}}}})(),i=n.scroll.current,o=e.droppable,s=r.droppable.getAllByType(o.type).map(e=>e.callbacks.getDimensionAndWatchScroll(i,t)),l=r.draggable.getAllByType(e.draggable.type).map(e=>e.getDimension(i)),c={draggables:V(l),droppables:H(s)};We();return{dimensions:c,critical:e,viewport:n}};function Wt(e,t,r){if(r.descriptor.id===t.id)return!1;if(r.descriptor.type!==t.type)return!1;return"virtual"===e.droppable.getById(r.descriptor.droppableId).descriptor.mode}var Yt=(e,t)=>{let r=null;const n=function({registry:e,callbacks:t}){let r={additions:{},removals:{},modified:{}},n=null;const i=()=>{n||(t.collectionStarting(),n=requestAnimationFrame(()=>{n=null,$e();const{additions:i,removals:o,modified:a}=r,s=Object.keys(i).map(t=>e.draggable.getById(t).getDimension(O)).sort((e,t)=>e.descriptor.index-t.descriptor.index),l=Object.keys(a).map(t=>({droppableId:t,scroll:e.droppable.getById(t).callbacks.getScrollWhileDragging()})),c={additions:s,removals:Object.keys(o),modified:l};r={additions:{},removals:{},modified:{}},We(),t.publish(c)}))};return{add:e=>{const t=e.descriptor.id;r.additions[t]=e,r.modified[e.descriptor.droppableId]=!0,r.removals[t]&&delete r.removals[t],i()},remove:e=>{const t=e.descriptor;r.removals[t.id]=!0,r.modified[t.droppableId]=!0,r.additions[t.id]&&delete r.additions[t.id],i()},stop:()=>{n&&(cancelAnimationFrame(n),n=null,r={additions:{},removals:{},modified:{}})}}}({callbacks:{publish:t.publishWhileDragging,collectionStarting:t.collectionStarting},registry:e}),i=t=>{r||m();const i=r.critical.draggable;"ADDITION"===t.type&&Wt(e,i,t.value)&&n.add(t.value),"REMOVAL"===t.type&&Wt(e,i,t.value)&&n.remove(t.value)},o={updateDroppableIsEnabled:(n,i)=>{e.droppable.exists(n)||m(),r&&t.updateDroppableIsEnabled({id:n,isEnabled:i})}
41,updateDroppableIsCombineEnabled:(n,i)=>{r&&(e.droppable.exists(n)||m(),t.updateDroppableIsCombineEnabled({id:n,isCombineEnabled:i}))},scrollDroppable:(t,n)=>{r&&e.droppable.getById(t).callbacks.scroll(n)},updateDroppableScroll:(n,i)=>{r&&(e.droppable.exists(n)||m(),t.updateDroppableScroll({id:n,newScroll:i}))},startPublishing:t=>{r&&m();const n=e.draggable.getById(t.draggableId),o=e.droppable.getById(n.descriptor.droppableId),a={draggable:n.descriptor,droppable:o.descriptor},s=e.subscribe(i);return r={critical:a,unsubscribe:s},$t({critical:a,registry:e,scrollOptions:t.scrollOptions})},stopPublishing:()=>{if(!r)return;n.stop();const t=r.critical.droppable;e.droppable.getAllByType(t.type).forEach(e=>e.callbacks.dragStopped()),r.unsubscribe(),r=null}};return o},Kt=(e,t)=>"IDLE"===e.phase||"DROP_ANIMATING"===e.phase&&(e.completed.result.draggableId!==t&&"DROP"===e.completed.result.reason),Jt=e=>{window.scrollBy(e.x,e.y)};const Qt=j(e=>z(e).filter(e=>!!e.isEnabled&&!!e.frame));var Xt=({center:e,destination:t,droppables:r})=>{if(t){const e=r[t];return e.frame?e:null}const n=((e,t)=>{const r=Qt(t).find(t=>(t.frame||m(),Me(t.frame.pageMarginBox)(e)))||null;return r})(e,r);return n};const Zt={startFromPercentage:.25,maxScrollAtPercentage:.05,maxPixelScroll:28,ease:e=>e**2,durationDampening:{stopDampeningAt:1200,accelerateAt:360},disabled:!1};var er=({startOfRange:e,endOfRange:t,current:r})=>{const n=t-e;if(0===n)return 0;return(r-e)/n},tr=({distanceToEdge:e,thresholds:t,dragStartTime:r,shouldUseTimeDampening:n,getAutoScrollerOptions:i})=>{const o=((e,t,r=()=>Zt)=>{const n=r();if(e>t.startScrollingFrom)return 0;if(e<=t.maxScrollValueAt)return n.maxPixelScroll;if(e===t.startScrollingFrom)return 1;const i=1-er({startOfRange:t.maxScrollValueAt,endOfRange:t.startScrollingFrom,current:e}),o=n.maxPixelScroll*n.ease(i);return Math.ceil(o)})(e,t,i);return 0===o?0:n?Math.max(((e,t,r)=>{const n=r(),i=n.durationDampening.accelerateAt,o=n.durationDampening.stopDampeningAt,a=t,s=o,l=Date.now()-a;if(l>=o)return e;if(l<i)return 1;const c=er({startOfRange:i,endOfRange:s,current:l}),u=e*n.ease(c);return Math.ceil(u)})(o,r,i),1):o},rr=({container:e,distanceToEdges:t,dragStartTime:r,axis:n,shouldUseTimeDampening:i,getAutoScrollerOptions:o})=>{const a=((e,t,r=()=>Zt)=>{const n=r();return{startScrollingFrom:e[t.size]*n.startFromPercentage,maxScrollValueAt:e[t.size]*n.maxScrollAtPercentage}})(e,n,o);return t[n.end]<t[n.start]?tr({distanceToEdge:t[n.end],thresholds:a,dragStartTime:r,shouldUseTimeDampening:i,getAutoScrollerOptions:o}):-1*tr({distanceToEdge:t[n.start],thresholds:a,dragStartTime:r,shouldUseTimeDampening:i,getAutoScrollerOptions:o})};const nr=M(e=>0===e?0:e);var ir=({dragStartTime:e,container:t,subject:r,center:n,shouldUseTimeDampening:i,getAutoScrollerOptions:o})=>{const a={top:n.y-t.top,right:t.right-n.x,bottom:t.bottom-n.y,left:n.x-t.left},s=rr({container:t,distanceToEdges:a,dragStartTime:e,axis:re,shouldUseTimeDampening:i,getAutoScrollerOptions:o}),l=rr({container:t,distanceToEdges:a,dragStartTime:e,axis:ne,shouldUseTimeDampening:i,getAutoScrollerOptions:o}),c=nr({x:l,y:s});if(k(c,O))return null;const u=(({container:e,subject:t,proposedScroll:r})=>{const n=t.height>e.height,i=t.width>e.width;return i||n?i&&n?null:{x:i?0:r.x,y:n?0:r.y}:r})({container:t,subject:r,proposedScroll:c});return u?k(u,O)?null:u:null};const or=M(e=>0===e?0:e>0?1:-1),ar=(()=>{const e=(e,t)=>e<0?e:e>t?e-t:0;return({current:t,max:r,change:n})=>{const i=I(t,n),o={x:e(i.x,r.x),y:e(i.y,r.y)};return k(o,O)?null:o}})(),sr=({max:e,current:t,change:r})=>{const n={x:Math.max(t.x,e.x),y:Math.max(t.y,e.y)},i=or(r),o=ar({max:n,current:t,change:i});return!o||(0!==i.x&&0===o.x||0!==i.y&&0===o.y)},lr=(e,t)=>sr({current:e.scroll.current,max:e.scroll.max,change:t}),cr=(e,t)=>{const r=e.frame;return!!r&&sr({current:r.scroll.current,max:r.scroll.max,change:t})};var ur=({state:e,dragStartTime:t,shouldUseTimeDampening:r,scrollWindow:n,scrollDroppable:i,getAutoScrollerOptions:o})=>{const a=e.current.page.borderBoxCenter,s=e.dimensions.draggables[e.critical.draggable.id].page.marginBox;if(e.isWindowScrollAllowed){const i=(({viewport:e,subject:t,center:r,dragStartTime:n,shouldUseTimeDampening:i,getAutoScrollerOptions:o})=>{const a=ir({dragStartTime:n,container:e.frame,subject:t,center:r,shouldUseTimeDampening:i,getAutoScrollerOptions:o});return a&&lr(e,a)?a:null})({dragStartTime:t,viewport:e.viewport,subject:s,center:a,shouldUseTimeDampening:r,getAutoScrollerOptions:o});if(i)return void n(i)}const l=Xt({center:a,destination:Ce(e.impact),droppables:e.dimensions.droppables});if(!l)return;const c=(({droppable:e,subject:t,center:r,dragStartTime:n,shouldUseTimeDampening:i,getAutoScrollerOptions:o})=>{const a=e.frame;if(!a)return null;const s=ir({dragStartTime:n,container:a.pageMarginBox,subject:t,center:r,shouldUseTimeDampening:i,getAutoScrollerOptions:o});return s&&cr(e,s)?s:null})({dragStartTime:t,droppable:l,subject:s,center:a,shouldUseTimeDampening:r,getAutoScrollerOptions:o});c&&i(l.descriptor.id,c)},pr=({scrollWindow:e,scrollDroppable:t,getAutoScrollerOptions:r=()=>Zt})=>{const n=(0,s.default)(e),i=(0,s.default)(t);let o=null;const a=e=>{o||m();const{shouldUseTimeDampening:t,dragStartTime:a}=o;ur({state:e,scrollWindow:n,scrollDroppable:i,dragStartTime:a,shouldUseTimeDampening:t,getAutoScrollerOptions:r})};return{start:e=>{$e(),o&&m();const t=Date.now();let n=!1;const i=()=>{n=!0};ur({state:e,dragStartTime:0,shouldUseTimeDampening:!1,scrollWindow:i,scrollDroppable:i,getAutoScrollerOptions:r}),o={dragStartTime:t,shouldUseTimeDampening:n},We(),n&&a(e)},stop:()=>{o&&(n.cancel(),i.cancel(),o=null)},scroll:a}},dr=({move:e,scrollDroppable:t,scrollWindow:r})=>{const n=(e,r)=>{if(!cr(e,r))return r;const n=((e,t)=>{const r=e.frame;return r&&cr(e,t)?ar({current:r.scroll.current,max:r.scroll.max,change:t}):null})(e,r);if(!n)return t(e.descriptor.id,r),null;const i=A(r,n);t(e.descriptor.id,i);return A(r,i)},i=(e,t,n)=>{if(!e)return n;if(!lr(t,n))return n;const i=((e,t)=>{if(!lr(e,t))return null;const r=e.scroll.max,n=e.scroll.current;return ar({current:n,max:r,change:t})})(t,n);if(!i)return r(n),null;const o=A(n,i);r(o);return A(n,o)};return t=>{const r=t.scrollJumpRequest;if(!r)return;const o=Ce(t.impact);o||m();const a=n(t.dimensions.droppables[o],r);if(!a)return;const s=t.viewport,l=i(t.isWindowScrollAllowed,s,a);l&&((t,r)=>{const n=I(t.current.client.selection,r);e({client:n})})(t,l)}},hr=({scrollDroppable:e,scrollWindow:t,move:r,getAutoScrollerOptions:n})=>{const i=pr({scrollWindow:t,scrollDroppable:e,getAutoScrollerOptions:n}),o=dr({move:r,scrollWindow:t,scrollDroppable:e});return{scroll:e=>{n().disabled||"DRAGGING"!==e.phase||("FLUID"!==e.movementMode?e.scrollJumpRequest&&o(e):i.scroll(e))},start:i.start,stop:i.stop}};const fr="data-rfd",mr=(()=>{const e=`${fr}-drag-handle`;return{base:e,draggableId:`${e}-draggable-id`,contextId:`${e}-context-id`}})(),gr=(()=>{const e=`${fr}-draggable`;return{base:e,contextId:`${e}-context-id`,id:`${e}-id`}})(),yr=(()=>{const e=`${fr}-droppable`;return{base:e,contextId:`${e}-context-id`,id:`${e}-id`}})(),br={contextId:`${fr}-scroll-container-context-id`},vr=(e,t)=>e.map(e=>{const r=e.styles[t];return r?`${e.selector} { ${r} }`:""}).join(" ");var _r=e=>{const t=(r=e,e=>`[${e}="${r}"]`);var r;const n=(()=>{const e="\n      cursor: -webkit-grab;\n      cursor: grab;\n    ";return{selector:t(mr.contextId),styles:{always:"\n          -webkit-touch-callout: none;\n          -webkit-tap-highlight-color: rgba(0,0,0,0);\n          touch-action: manipulation;\n        ",resting:e,dragging:"pointer-events: none;",dropAnimating:e}}})(),i=[(()=>{const e=`\n      transition: ${St.outOfTheWay};\n    `;return{selector:t(gr.contextId),styles:{dragging:e,dropAnimating:e,userCancel:e}}})(),n,{selector:t(yr.contextId),styles:{always:"overflow-anchor: n
41one;"}},{selector:"body",styles:{dragging:"\n        cursor: grabbing;\n        cursor: -webkit-grabbing;\n        user-select: none;\n        -webkit-user-select: none;\n        -moz-user-select: none;\n        -ms-user-select: none;\n        overflow-anchor: none;\n      "}}];return{always:vr(i,"always"),resting:vr(i,"resting"),dragging:vr(i,"dragging"),dropAnimating:vr(i,"dropAnimating"),userCancel:vr(i,"userCancel")}};const Sr="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?n.useLayoutEffect:n.useEffect,Er=()=>{const e=document.querySelector("head");return e||m(),e},Tr=e=>{const t=document.createElement("style");return e&&t.setAttribute("nonce",e),t.type="text/css",t};function wr(e,t){return Array.from(e.querySelectorAll(t))}var xr=e=>e&&e.ownerDocument&&e.ownerDocument.defaultView?e.ownerDocument.defaultView:window;function Or(e){return e instanceof xr(e).HTMLElement}function Ir(e,t){const r=`[${mr.contextId}="${e}"]`,n=wr(document,r);if(!n.length)return null;const i=n.find(e=>e.getAttribute(mr.draggableId)===t);return i&&Or(i)?i:null}function Ar(){const e={draggables:{},droppables:{}},t=[];function r(e){t.length&&t.forEach(t=>t(e))}function n(t){return e.draggables[t]||null}function i(t){return e.droppables[t]||null}return{draggable:{register:t=>{e.draggables[t.descriptor.id]=t,r({type:"ADDITION",value:t})},update:(t,r)=>{const n=e.draggables[r.descriptor.id];n&&n.uniqueId===t.uniqueId&&(delete e.draggables[r.descriptor.id],e.draggables[t.descriptor.id]=t)},unregister:t=>{const i=t.descriptor.id,o=n(i);o&&t.uniqueId===o.uniqueId&&(delete e.draggables[i],e.droppables[t.descriptor.droppableId]&&r({type:"REMOVAL",value:t}))},getById:function(e){const t=n(e);return t||m(),t},findById:n,exists:e=>Boolean(n(e)),getAllByType:t=>Object.values(e.draggables).filter(e=>e.descriptor.type===t)},droppable:{register:t=>{e.droppables[t.descriptor.id]=t},unregister:t=>{const r=i(t.descriptor.id);r&&t.uniqueId===r.uniqueId&&delete e.droppables[t.descriptor.id]},getById:function(e){const t=i(e);return t||m(),t},findById:i,exists:e=>Boolean(i(e)),getAllByType:t=>Object.values(e.droppables).filter(e=>e.descriptor.type===t)},subscribe:function(e){return t.push(e),function(){const r=t.indexOf(e);-1!==r&&t.splice(r,1)}},clean:function(){e.draggables={},e.droppables={},t.length=0}}}var kr=n.default.createContext(null),Rr=()=>{const e=document.body;return e||m(),e};const Cr={position:"absolute",width:"1px",height:"1px",margin:"-1px",border:"0",padding:"0",overflow:"hidden",clip:"rect(0 0 0 0)","clip-path":"inset(100%)"},Pr=e=>`rfd-announcement-${e}`;const Dr={separator:"::"};function Mr(e,t=Dr){const r=n.default.useId();return w(()=>`${e}${t.separator}${r}`,[t.separator,e,r])}var Nr=n.default.createContext(null);function Lr(e){0}function Fr(e,t){Lr()}function Br(e){const t=(0,n.useRef)(e);return(0,n.useEffect)(()=>{t.current=e}),t}function Ur(e){return"IDLE"!==e.phase&&"DROP_ANIMATING"!==e.phase&&e.isDragging}const jr=9,Hr=13,Vr=27,zr=32,Gr=33,qr=34,$r=35,Wr=36,Yr=37,Kr=38,Jr=39,Qr=40,Xr={[Hr]:!0,[jr]:!0};var Zr=e=>{Xr[e.keyCode]&&e.preventDefault()};const en=(()=>{const e="visibilitychange";if("undefined"==typeof document)return e;return[e,`ms${e}`,`webkit${e}`,`moz${e}`,`o${e}`].find(e=>`on${e}`in document)||e})(),tn=0,rn=5;const nn={type:"IDLE"};function on({cancel:e,completed:t,getPhase:r,setPhase:n}){return[{eventName:"mousemove",fn:e=>{const{button:t,clientX:i,clientY:o}=e;if(t!==tn)return;const a={x:i,y:o},s=r();if("DRAGGING"===s.type)return e.preventDefault(),void s.actions.move(a);"PENDING"!==s.type&&m();const l=s.point;if(c=l,u=a,!(Math.abs(u.x-c.x)>=rn||Math.abs(u.y-c.y)>=rn))return;var c,u;e.preventDefault();const p=s.actions.fluidLift(a);n({type:"DRAGGING",actions:p})}},{eventName:"mouseup",fn:n=>{const i=r();"DRAGGING"===i.type?(n.preventDefault(),i.actions.drop({shouldBlockNextClick:!0}),t()):e()}},{eventName:"mousedown",fn:t=>{"DRAGGING"===r().type&&t.preventDefault(),e()}},{eventName:"keydown",fn:t=>{if("PENDING"!==r().type)return t.keyCode===Vr?(t.preventDefault(),void e()):void Zr(t);e()}},{eventName:"resize",fn:e},{eventName:"scroll",options:{passive:!0,capture:!1},fn:()=>{"PENDING"===r().type&&e()}},{eventName:"webkitmouseforcedown",fn:t=>{const n=r();"IDLE"===n.type&&m(),n.actions.shouldRespectForcePress()?e():t.preventDefault()}},{eventName:en,fn:e}]}function an(e){const t=(0,n.useRef)(nn),r=(0,n.useRef)(u),i=w(()=>({eventName:"mousedown",fn:function(t){if(t.defaultPrevented)return;if(t.button!==tn)return;if(t.ctrlKey||t.metaKey||t.shiftKey||t.altKey)return;const n=e.findClosestDraggableId(t);if(!n)return;const i=e.tryGetLock(n,s,{sourceEvent:t});if(!i)return;t.preventDefault();const o={x:t.clientX,y:t.clientY};r.current(),d(i,o)}}),[e]),o=w(()=>({eventName:"webkitmouseforcewillbegin",fn:t=>{if(t.defaultPrevented)return;const r=e.findClosestDraggableId(t);if(!r)return;const n=e.findOptionsForDraggable(r);n&&(n.shouldRespectForcePress||e.canGetLock(r)&&t.preventDefault())}}),[e]),a=x(function(){r.current=p(window,[o,i],{passive:!1,capture:!0})},[o,i]),s=x(()=>{"IDLE"!==t.current.type&&(t.current=nn,r.current(),a())},[a]),l=x(()=>{const e=t.current;s(),"DRAGGING"===e.type&&e.actions.cancel({shouldBlockNextClick:!0}),"PENDING"===e.type&&e.actions.abort()},[s]),c=x(function(){const e=on({cancel:l,completed:s,getPhase:()=>t.current,setPhase:e=>{t.current=e}});r.current=p(window,e,{capture:!0,passive:!1})},[l,s]),d=x(function(e,r){"IDLE"!==t.current.type&&m(),t.current={type:"PENDING",point:r,actions:e},c()},[c]);Sr(function(){return a(),function(){r.current()}},[a])}function sn(){}const ln={[qr]:!0,[Gr]:!0,[Wr]:!0,[$r]:!0};function cn(e,t){function r(){t(),e.cancel()}return[{eventName:"keydown",fn:n=>n.keyCode===Vr?(n.preventDefault(),void r()):n.keyCode===zr?(n.preventDefault(),t(),void e.drop()):n.keyCode===Qr?(n.preventDefault(),void e.moveDown()):n.keyCode===Kr?(n.preventDefault(),void e.moveUp()):n.keyCode===Jr?(n.preventDefault(),void e.moveRight()):n.keyCode===Yr?(n.preventDefault(),void e.moveLeft()):void(ln[n.keyCode]?n.preventDefault():Zr(n))},{eventName:"mousedown",fn:r},{eventName:"mouseup",fn:r},{eventName:"click",fn:r},{eventName:"touchstart",fn:r},{eventName:"resize",fn:r},{eventName:"wheel",fn:r,options:{passive:!0}},{eventName:en,fn:r}]}function un(e){const t=(0,n.useRef)(sn),r=w(()=>({eventName:"keydown",fn:function(r){if(r.defaultPrevented)return;if(r.keyCode!==zr)return;const n=e.findClosestDraggableId(r);if(!n)return;const o=e.tryGetLock(n,l,{sourceEvent:r});if(!o)return;r.preventDefault();let a=!0;const s=o.snapLift();function l(){a||m(),a=!1,t.current(),i()}t.current(),t.current=p(window,cn(s,l),{capture:!0,passive:!1})}}),[e]),i=x(function(){t.current=p(window,[r],{passive:!1,capture:!0})},[r]);Sr(function(){return i(),function(){t.current()}},[i])}const pn={type:"IDLE"},dn=120,hn=.15;function fn(e){const t=(0,n.useRef)(pn),r=(0,n.useRef)(u),i=x(function(){return t.current},[]),o=x(function(e){t.current=e},[]),a=w(()=>({eventName:"touchstart",fn:function(t){if(t.defaultPrevented)return;const n=e.findClosestDraggableId(t);if(!n)return;const i=e.tryGetLock(n,l,{sourceEvent:t});if(!i)return;const o=t.touches[0],{clientX:a,clientY:s}=o,c={x:a,y:s};r.current(),f(i,c)}}),[e]),s=x(function(){r.current=p(window,[a],{capture:!0,passive:!1})},[a]),l=x(()=>{const e=t.current;"IDLE"!==e.type&&("PENDING"===e.type&&clearTimeout(e.longPressTimerId),o(pn),r.current(),s())},[s,o]),c=x(()=>{const e=t.current;l(),"DRAGGING"===e.type&&e.actions.cancel({shouldBlockNextClick:!0}),"PENDING"===e.type&&e.actions.abort()},[l]),d=x(function(){const e={capture:!0,passive:!1},t={cancel:c,completed:l,getPhase:i},n=p(window,function({cancel:e,completed:t,getPhase:r}){return[{eventName:"touchmove",options:{capture:!1},fn:t=>{const n=r();if("DRAGGING"!==n.type)return void e();n.hasMoved=!0;const{clientX:i,clientY:o}=t.touches[0],a={x:i,y:o};t.preventDefault(),n.actions.move(a)}},{eventName:"touchend",fn:n=>{const i=r();"DRAGGING"===i.type?(n.preventDefault(),i.actions.drop({shouldBlockNextClick:!0}),t()):e()}},{eventName:"touchcancel",fn:t=>{"DRAGGING"===r().type?(t.preventDefault(),e()):e()}},{eventName:"touchforcechange",fn:t=>{const n=r();"IDLE"===n.type&&m();const i=t.touches[0];if(!i)return;if(!(i.force>=hn))return;const o=n.actions.shouldRespectForcePress();if("PENDING"!==n.type)return o?n.hasMoved?void t.preventDefault():void e():void t.preventDefault();o&&e()}},{eventName:en,fn:e}]}(t),e),o=p(window,function({cancel:e,getPhase:t}){return[{eventName:"orientationchange",fn:e},{eventName:"resize",fn:e},{eventName:"contextmenu",fn:e=>{e.preventDefault()}},{eventName:"keydown",fn:r=>{"DRAGGING"===t().type?(r.keyCode===Vr&&r.preventDefault(),e()):e()}},{eventName:en,fn:e}]}(t),e);r.current=function(){n(),o()}},[c,i,l]),h=x(function(){const e=i();"PENDING"!==e.type&&m();const t=e.actions.fluidLift(e.point);o({type:"DRAGGING",actions:t,hasMoved:!1})},[i,o]),f=x(function(e,t){"IDLE"!==i().type&&m();const r=setTimeout(h,dn);o({type:"PENDING",point:t,actions:e,longPressTimerId:r}),d()},[d,i,o,h]);Sr(function(){return s(),function(){r.current();const e=i();"PENDING"===e.type&&(clearTimeout(e.longPressTimerId),o(pn))}}
41,[i,s,o]),Sr(function(){return p(window,[{eventName:"touchmove",fn:()=>{},options:{capture:!1,passive:!1}}])},[])}const mn=["input","button","textarea","select","option","optgroup","video","audio"];function gn(e,t){if(null==t)return!1;if(mn.includes(t.tagName.toLowerCase()))return!0;const r=t.getAttribute("contenteditable");return"true"===r||""===r||t!==e&&gn(e,t.parentElement)}function yn(e,t){const r=t.target;return!!Or(r)&&gn(e,r)}var bn=e=>(0,a.getRect)(e.getBoundingClientRect()).center;const vn=(()=>{const e="matches";if("undefined"==typeof document)return e;return[e,"msMatchesSelector","webkitMatchesSelector"].find(e=>e in Element.prototype)||e})();function _n(e,t){return null==e?null:e[vn](t)?e:_n(e.parentElement,t)}function Sn(e,t){return e.closest?e.closest(t):_n(e,t)}function En(e,t){const r=t.target;if(!((n=r)instanceof xr(n).Element))return null;var n;const i=function(e){return`[${mr.contextId}="${e}"]`}(e),o=Sn(r,i);return o&&Or(o)?o:null}function Tn(e){e.preventDefault()}function wn({expected:e,phase:t,isLockActive:r,shouldWarn:n}){return!!r()&&e===t}function xn({lockAPI:e,store:t,registry:r,draggableId:n}){if(e.isClaimed())return!1;const i=r.draggable.findById(n);return!!i&&(!!i.options.isEnabled&&!!Kt(t.getState(),n))}function On({lockAPI:e,contextId:t,store:r,registry:n,draggableId:i,forceSensorStop:o,sourceEvent:a}){if(!xn({lockAPI:e,store:r,registry:n,draggableId:i}))return null;const l=n.draggable.getById(i),c=function(e,t){const r=`[${gr.contextId}="${e}"]`,n=wr(document,r).find(e=>e.getAttribute(gr.id)===t);return n&&Or(n)?n:null}(t,l.descriptor.id);if(!c)return null;if(a&&!l.options.canDragInteractiveElements&&yn(c,a))return null;const d=e.claim(o||u);let h="PRE_DRAG";function f(){return l.options.shouldRespectForcePress}function g(){return e.isActive(d)}const y=function(e,t){wn({expected:e,phase:h,isLockActive:g,shouldWarn:!0})&&r.dispatch(t())}.bind(null,"DRAGGING");function b(t){function n(){e.release(),h="COMPLETED"}function i(e,i={shouldBlockNextClick:!1}){if(t.cleanup(),i.shouldBlockNextClick){const e=p(window,[{eventName:"click",fn:Tn,options:{once:!0,passive:!1,capture:!0}}]);setTimeout(e)}n(),r.dispatch(ft({reason:e}))}return"PRE_DRAG"!==h&&(n(),m()),r.dispatch(tt(t.liftActionArgs)),h="DRAGGING",{isActive:()=>wn({expected:"DRAGGING",phase:h,isLockActive:g,shouldWarn:!1}),shouldRespectForcePress:f,drop:e=>i("DROP",e),cancel:e=>i("CANCEL",e),...t.actions}}return{isActive:()=>wn({expected:"PRE_DRAG",phase:h,isLockActive:g,shouldWarn:!1}),shouldRespectForcePress:f,fluidLift:function(e){const t=(0,s.default)(e=>{y(()=>st({client:e}))});return{...b({liftActionArgs:{id:i,clientSelection:e,movementMode:"FLUID"},cleanup:()=>t.cancel(),actions:{move:t}}),move:t}},snapLift:function(){const e={moveUp:()=>y(lt),moveRight:()=>y(ut),moveDown:()=>y(ct),moveLeft:()=>y(pt)};return b({liftActionArgs:{id:i,clientSelection:bn(c),movementMode:"SNAP"},cleanup:u,actions:e})},abort:function(){wn({expected:"PRE_DRAG",phase:h,isLockActive:g,shouldWarn:!0})&&e.release()}}}const In=[an,un,fn];function An({contextId:e,store:t,registry:r,customSensors:i,enableDefaultSensors:o}){const a=[...o?In:[],...i||[]],s=(0,n.useState)(()=>function(){let e=null;function t(){e||m(),e=null}return{isClaimed:function(){return Boolean(e)},isActive:function(t){return t===e},claim:function(t){e&&m();const r={abandon:t};return e=r,r},release:t,tryAbandon:function(){e&&(e.abandon(),t())}}}())[0],l=x(function(e,t){Ur(e)&&!Ur(t)&&s.tryAbandon()},[s]);Sr(function(){let e=t.getState();return t.subscribe(()=>{const r=t.getState();l(e,r),e=r})},[s,t,l]),Sr(()=>s.tryAbandon,[s.tryAbandon]);const c=x(e=>xn({lockAPI:s,registry:r,store:t,draggableId:e}),[s,r,t]),u=x((n,i,o)=>On({lockAPI:s,registry:r,contextId:e,store:t,draggableId:n,forceSensorStop:i||null,sourceEvent:o&&o.sourceEvent?o.sourceEvent:null}),[e,s,r,t]),p=x(t=>function(e,t){const r=En(e,t);return r?r.getAttribute(mr.draggableId):null}(e,t),[e]),d=x(e=>{const t=r.draggable.findById(e);return t?t.options:null},[r.draggable]),h=x(function(){s.isClaimed()&&(s.tryAbandon(),"IDLE"!==t.getState().phase&&t.dispatch(dt()))},[s,t]),f=x(()=>s.isClaimed(),[s]),g=w(()=>({canGetLock:c,tryGetLock:u,findClosestDraggableId:p,findOptionsForDraggable:d,tryReleaseLock:h,isLockClaimed:f}),[c,u,p,d,h,f]);Lr();for(let e=0;e<a.length;e++)a[e](g)}const kn=e=>({onBeforeCapture:t=>{(0,n.flushSync)(()=>{e.onBeforeCapture&&e.onBeforeCapture(t)})},onBeforeDragStart:e.onBeforeDragStart,onDragStart:e.onDragStart,onDragEnd:e.onDragEnd,onDragUpdate:e.onDragUpdate}),Rn=e=>({...Zt,...e.autoScrollerOptions,durationDampening:{...Zt.durationDampening,...e.autoScrollerOptions}});function Cn(e){return e.current||m(),e.current}function Pn(e){const{contextId:t,setCallbacks:r,sensors:a,nonce:s,dragHandleUsageInstructions:c}=e,u=(0,n.useRef)(null);Fr();const p=Br(e),d=x(()=>kn(p.current),[p]),h=x(()=>Rn(p.current),[p]),f=function(e){const t=w(()=>Pr(e),[e]),r=(0,n.useRef)(null);return(0,n.useEffect)(function(){const e=document.createElement("div");return r.current=e,e.id=t,e.setAttribute("aria-live","assertive"),e.setAttribute("aria-atomic","true"),(0,l.default)(e.style,Cr),Rr().appendChild(e),function(){setTimeout(function(){const t=Rr();t.contains(e)&&t.removeChild(e),e===r.current&&(r.current=null)})}},[t]),x(e=>{const t=r.current;t&&(t.textContent=e)},[])}(t),g=function({contextId:e,text:t}){const r=Mr("hidden-text",{separator:"-"}),i=w(()=>function({contextId:e,uniqueId:t}){return`rfd-hidden-text-${e}-${t}`}({contextId:e,uniqueId:r}),[r,e]);return(0,n.useEffect)(function(){const e=document.createElement("div");return e.id=i,e.textContent=t,e.style.display="none",Rr().appendChild(e),function(){const t=Rr();t.contains(e)&&t.removeChild(e)}},[i,t]),i}({contextId:t,text:c}),y=function(e,t){const r=w(()=>_r(e),[e]),i=(0,n.useRef)(null),o=(0,n.useRef)(null),a=x(j(e=>{const t=o.current;t||m(),t.textContent=e}),[]),s=x(e=>{const t=i.current;t||m(),t.textContent=e},[]);Sr(()=>{(i.current||o.current)&&m();const n=Tr(t),l=Tr(t);return i.current=n,o.current=l,n.setAttribute(`${fr}-always`,e),l.setAttribute(`${fr}-dynamic`,e),Er().appendChild(n),Er().appendChild(l),s(r.always),a(r.resting),()=>{const e=e=>{const t=e.current;t||m(),Er().removeChild(t),e.current=null};e(i),e(o)}},[t,s,a,r.always,r.resting,e]);const l=x(()=>a(r.dragging),[a,r.dragging]),c=x(e=>{a("DROP"!==e?r.userCancel:r.dropAnimating)},[a,r.dropAnimating,r.userCancel]),u=x(()=>{o.current&&a(r.resting)},[a,r.resting]);return w(()=>({dragging:l,dropping:c,resting:u}),[l,c,u])}(t,s),b=x(e=>{Cn(u).dispatch(e)},[]),v=w(()=>(0,i.bindActionCreators)({publishWhileDragging:rt,updateDroppableScroll:it,updateDroppableIsEnabled:ot,updateDroppableIsCombine
41Enabled:at,collectionStarting:nt},b),[b]),_=function(){const e=w(Ar,[]);return(0,n.useEffect)(()=>function(){e.clean()},[e]),e}(),S=w(()=>Yt(_,v),[_,v]),E=w(()=>hr({scrollWindow:Jt,scrollDroppable:S.scrollDroppable,getAutoScrollerOptions:h,...(0,i.bindActionCreators)({move:st},b)}),[S.scrollDroppable,b,h]),T=function(e){const t=(0,n.useRef)({}),r=(0,n.useRef)(null),i=(0,n.useRef)(null),o=(0,n.useRef)(!1),a=x(function(e,r){const n={id:e,focus:r};return t.current[e]=n,function(){const r=t.current;r[e]!==n&&delete r[e]}},[]),s=x(function(t){const r=Ir(e,t);r&&r!==document.activeElement&&r.focus()},[e]),l=x(function(e,t){r.current===e&&(r.current=t)},[]),c=x(function(){i.current||o.current&&(i.current=requestAnimationFrame(()=>{i.current=null;const e=r.current;e&&s(e)}))},[s]),u=x(function(e){r.current=null;const t=document.activeElement;t&&t.getAttribute(mr.draggableId)===e&&(r.current=e)},[]);return Sr(()=>(o.current=!0,function(){o.current=!1;const e=i.current;e&&cancelAnimationFrame(e)}),[]),w(()=>({register:a,tryRecordFocus:u,tryRestoreFocusRecorded:c,tryShiftRecord:l}),[a,u,c,l])}(t),O=w(()=>Vt({announce:f,autoScroller:E,dimensionMarshal:S,focusMarshal:T,getResponders:d,styleMarshal:y}),[f,E,S,T,d,y]);u.current=O;const I=x(()=>{const e=Cn(u);"IDLE"!==e.getState().phase&&e.dispatch(dt())},[]),A=x(()=>{const e=Cn(u).getState();return"DROP_ANIMATING"===e.phase||"IDLE"!==e.phase&&e.isDragging},[]);r(w(()=>({isDragging:A,tryAbort:I}),[A,I]));const k=x(e=>Kt(Cn(u).getState(),e),[]),R=x(()=>De(Cn(u).getState()),[]),C=w(()=>({marshal:S,focus:T,contextId:t,canLift:k,isMovementAllowed:R,dragHandleUsageInstructionsId:g,registry:_}),[t,S,g,T,k,R,_]);return An({contextId:t,store:O,registry:_,customSensors:a||null,enableDefaultSensors:!1!==e.enableDefaultSensors}),(0,n.useEffect)(()=>I,[I]),n.default.createElement(Nr.Provider,{value:C},n.default.createElement(o.Provider,{context:kr,store:O},e.children))}function Dn(e){const t=n.default.useId(),r=e.dragHandleUsageInstructions||S.dragHandleUsageInstructions;return n.default.createElement(g,null,i=>n.default.createElement(Pn,{nonce:e.nonce,contextId:t,setCallbacks:i,dragHandleUsageInstructions:r,enableDefaultSensors:e.enableDefaultSensors,sensors:e.sensors,onBeforeCapture:e.onBeforeCapture,onBeforeDragStart:e.onBeforeDragStart,onDragStart:e.onDragStart,onDragUpdate:e.onDragUpdate,onDragEnd:e.onDragEnd,autoScrollerOptions:e.autoScrollerOptions},e.children))}const Mn=5e3,Nn=4500,Ln=(e,t)=>t?St.drop(t.duration):e?St.snap:St.fluid,Fn=(e,t)=>{if(e)return t?yt.drop:yt.combining};function Bn(e){return"DRAGGING"===e.type?function(e){const t=e.dimension.client,{offset:r,combineWith:n,dropping:i}=e,o=Boolean(n),a=(e=>null!=e.forceShouldAnimate?e.forceShouldAnimate:"SNAP"===e.mode)(e),s=Boolean(i),l=s?wt(r,o):Tt(r);return{position:"fixed",top:t.marginBox.top,left:t.marginBox.left,boxSizing:"border-box",width:t.borderBox.width,height:t.borderBox.height,transition:Ln(a,i),transform:l,opacity:Fn(o,s),zIndex:s?Nn:Mn,pointerEvents:"none"}}(e):{transform:Tt((t=e).offset),transition:t.shouldAnimateDisplacement?void 0:"none"};var t}function Un(e){const t=Mr("draggable"),{descriptor:r,registry:i,getDraggableRef:o,canDragInteractiveElements:s,shouldRespectForcePress:l,isEnabled:c}=e,u=w(()=>({canDragInteractiveElements:s,shouldRespectForcePress:l,isEnabled:c}),[s,c,l]),p=x(e=>{const t=o();return t||m(),function(e,t,r=O){const n=window.getComputedStyle(t),i=t.getBoundingClientRect(),o=(0,a.calculateBox)(i,n),s=(0,a.withScroll)(o,r);return{descriptor:e,placeholder:{client:o,tagName:t.tagName.toLowerCase(),display:n.display},displaceBy:{x:o.marginBox.width,y:o.marginBox.height},client:o,page:s}}(r,t,e)},[r,o]),d=w(()=>({uniqueId:t,descriptor:r,options:u,getDimension:p}),[r,p,u,t]),h=(0,n.useRef)(d),f=(0,n.useRef)(!0);Sr(()=>(i.draggable.register(h.current),()=>i.draggable.unregister(h.current)),[i.draggable]),Sr(()=>{if(f.current)return void(f.current=!1);const e=h.current;h.current=d,i.draggable.update(d,e)},[d,i.draggable])}var jn=n.default.createContext(null);function Hn(e){const t=(0,n.useContext)(e);return t||m(),t}function Vn(e){e.preventDefault()}var zn=(e,t)=>e===t,Gn=e=>{const{combine:t,destination:r}=e;return r?r.droppableId:t?t.droppableId:null};function qn(e=null){return{isDragging:!1,isDropAnimating:!1,isClone:!1,dropAnimation:null,mode:null,draggingOver:null,combineTargetFor:e,comb
41ineWith:null}}const $n={mapped:{type:"SECONDARY",offset:O,combineTargetFor:null,shouldAnimateDisplacement:!0,snapshot:qn(null)}};const Wn={dropAnimationFinished:mt},Yn=(0,o.connect)(()=>{const e=function(){const e=j((e,t)=>({x:e,y:t})),t=j((e,t,r=null,n=null,i=null)=>({isDragging:!0,isClone:t,isDropAnimating:Boolean(i),dropAnimation:i,mode:e,draggingOver:r,combineWith:n,combineTargetFor:null})),r=j((e,r,n,i,o=null,a=null,s=null)=>({mapped:{type:"DRAGGING",dropping:null,draggingOver:o,combineWith:a,mode:r,offset:e,dimension:n,forceShouldAnimate:s,snapshot:t(r,i,o,a,null)}}));return(n,i)=>{if(Ur(n)){if(n.critical.draggable.id!==i.draggableId)return null;const t=n.current.client.offset,a=n.dimensions.draggables[i.draggableId],s=Ce(n.impact),l=(o=n.impact).at&&"COMBINE"===o.at.type?o.at.combine.draggableId:null,c=n.forceShouldAnimate;return r(e(t.x,t.y),n.movementMode,a,i.isClone,s,l,c)}var o;if("DROP_ANIMATING"===n.phase){const e=n.completed;if(e.result.draggableId!==i.draggableId)return null;const r=i.isClone,o=n.dimensions.draggables[i.draggableId],a=e.result,s=a.mode,l=Gn(a),c=(e=>e.combine?e.combine.draggableId:null)(a),u={duration:n.dropDuration,curve:gt,moveTo:n.newHomeClientOffset,opacity:c?yt.drop:null,scale:c?bt.drop:null};return{mapped:{type:"DRAGGING",offset:n.newHomeClientOffset,dimension:o,dropping:u,draggingOver:l,combineWith:c,mode:s,forceShouldAnimate:null,snapshot:t(s,r,l,c,u)}}}return null}}(),t=function(){const e=j((e,t)=>({x:e,y:t})),t=j(qn),r=j((e,r=null,n)=>({mapped:{type:"SECONDARY",offset:e,combineTargetFor:r,shouldAnimateDisplacement:n,snapshot:t(r)}})),n=e=>e?r(O,e,!0):null,i=(t,i,o,a)=>{const s=o.displaced.visible[t],l=Boolean(a.inVirtualList&&a.effected[t]),c=W(o),u=c&&c.draggableId===t?i:null;if(!s){if(!l)return n(u);if(o.displaced.invisible[t])return null;const i=R(a.displacedBy.point),s=e(i.x,i.y);return r(s,u,!0)}if(l)return n(u);const p=o.displacedBy.point,d=e(p.x,p.y);return r(d,u,s.shouldAnimate)};return(e,t)=>{if(Ur(e))return e.critical.draggable.id===t.draggableId?null:i(t.draggableId,e.critical.draggable.id,e.impact,e.afterCritical);if("DROP_ANIMATING"===e.phase){const r=e.completed;return r.result.draggableId===t.draggableId?null:i(t.draggableId,r.result.draggableId,r.impact,r.afterCritical)}return null}}();return(r,n)=>e(r,n)||t(r,n)||$n},Wn,null,{context:kr,areStatePropsEqual:zn})(e=>{const t=(0,n.useRef)(null),r=x((e=null)=>{t.current=e},[]),i=x(()=>t.current,[]),{contextId:o,dragHandleUsageInstructionsId:a,registry:s}=Hn(Nr),{type:l,droppableId:c}=Hn(jn),u=w(()=>({id:e.draggableId,index:e.index,type:l,droppableId:c}),[e.draggableId,e.index,l,c]),{children:p,draggableId:d,isEnabled:h,shouldRespectForcePress:f,canDragInteractiveElements:m,isClone:g,mapped:y,dropAnimationFinished:b}=e;if(Fr(),Lr(),!g){Un(w(()=>({descriptor:u,registry:s,getDraggableRef:i,canDragInteractiveElements:m,shouldRespectForcePress:f,isEnabled:h}),[u,s,i,m,f,h]))}const v=w(()=>h?{tabIndex:0,role:"button","aria-describedby":a,"data-rfd-drag-handle-draggable-id":d,"data-rfd-drag-handle-context-id":o,draggable:!1,onDragStart:Vn}:null,[o,a,d,h]),_=x(e=>{"DRAGGING"===y.type&&y.dropping&&"transform"===e.propertyName&&(0,n.flushSync)(b)},[b,y]),S=w(()=>{const e=Bn(y),t="DRAGGING"===y.type&&y.dropping?_:void 0;return{innerRef:r,draggableProps:{"data-rfd-draggable-context-id":o,"data-rfd-draggable-id":d,style:e,onTransitionEnd:t},dragHandleProps:v}},[o,v,d,y,_,r]),E=w(()=>({draggableId:u.id,type:u.type,source:{index:u.index,droppableId:u.droppableId}}),[u.droppableId,u.id,u.index,u.type]);return n.default.createElement(n.default.Fragment,null,p(S,y.snapshot,E))});function Kn(e){return Hn(jn).isUsingCloneFor!==e.draggableId||e.isClone?n.default.createElement(Yn,e):null}function Jn(e){const t="boolean"!=typeof e.isDragDisabled||!e.isDragDisabled,r=Boolean(e.disableInteractiveElementBlocking),i=Boolean(e.shouldRespectForcePress);return n.default.createElement(Kn,(0,l.default)({},e,{isClone:!1,isEnabled:t,canDragInteractiveElements:r,shouldRespectForcePress:i}))}const Qn=e=>t=>e===t,Xn=Qn("scroll"),Zn=Qn("auto"),ei=(Qn("visible"),(e,t)=>t(e.overflowX)||t(e.overflowY)),ti=e=>null==e||e===document.body||e===document.documentElement?null:(e=>{const t=window.getComputedStyle(e),r={overflowX:t.overflowX,overflowY:t.overflowY};return ei(r,Xn)||ei(r,Zn)})(e)?e:ti(e.parentElement);var ri=e=>({x:e.scrollLeft,y:e.scrollTop});const ni=e=>{if(!e)return!1;return"fixed"===window.getComputedStyle(e).position||ni(e.parentElement)};var ii=({ref:e,descriptor:t,env:r,windowScroll:n,direction:i,isDropDisabled:o,isCombine
41Enabled:s,shouldClipSubject:l})=>{const c=r.closestScrollable,u=((e,t)=>{const r=(0,a.getBox)(e);if(!t)return r;if(e!==t)return r;const n=r.paddingBox.top-t.scrollTop,i=r.paddingBox.left-t.scrollLeft,o=n+t.scrollHeight,s={top:n,right:i+t.scrollWidth,bottom:o,left:i},l=(0,a.expand)(s,r.border);return(0,a.createBox)({borderBox:l,margin:r.margin,border:r.border,padding:r.padding})})(e,c),p=(0,a.withScroll)(u,n),d=(()=>{if(!c)return null;const e=(0,a.getBox)(c),t={scrollHeight:c.scrollHeight,scrollWidth:c.scrollWidth};return{client:e,page:(0,a.withScroll)(e,n),scroll:ri(c),scrollSize:t,shouldClipSubject:l}})(),h=(({descriptor:e,isEnabled:t,isCombineEnabled:r,isFixedOnPage:n,direction:i,client:o,page:a,closest:s})=>{const l=(()=>{if(!s)return null;const{scrollSize:e,client:t}=s,r=zt({scrollHeight:e.scrollHeight,scrollWidth:e.scrollWidth,height:t.paddingBox.height,width:t.paddingBox.width});return{pageMarginBox:s.page.marginBox,frameClient:t,scrollSize:e,shouldClipSubject:s.shouldClipSubject,scroll:{initial:s.scroll,current:s.scroll,max:r,diff:{value:O,displacement:O}}}})(),c="vertical"===i?re:ne;return{descriptor:e,isCombineEnabled:r,isFixedOnPage:n,axis:c,isEnabled:t,client:o,page:a,frame:l,subject:B({page:a,withPlaceholder:null,axis:c,frame:l})}}
41)({descriptor:t,isEnabled:!o,isCombineEnabled:s,isFixedOnPage:r.isFixedOnPage,direction:i,client:u,page:p,closest:d});return h};const oi={passive:!1},ai={passive:!0};var si=e=>e.shouldPublishImmediately?oi:ai;const li=e=>e&&e.env.closestScrollable||null;function ci(e){const t=(0,n.useRef)(null),r=Hn(Nr),i=Mr("droppable"),{registry:o,marshal:a}=r,l=Br(e),c=w(()=>({id:e.droppableId,type:e.type,mode:e.mode}),[e.droppableId,e.mode,e.type]),u=(0,n.useRef)(c),p=w(()=>j((e,r)=>{t.current||m();const n={x:e,y:r};a.updateDroppableScroll(c.id,n)}),[c.id,a]),d=x(()=>{const e=t.current;return e&&e.env.closestScrollable?ri(e.env.closestScrollable):O},[]),h=x(()=>{const e=d();p(e.x,e.y)},[d,p]),f=w(()=>(0,s.default)(h),[h]),g=x(()=>{const e=t.current,r=li(e);e&&r||m();e.scrollOptions.shouldPublishImmediately?h():f()},[f,h]),y=x((e,n)=>{t.current&&m();const i=l.current,o=i.getDroppableRef();o||m();const a=(e=>({closestScrollable:ti(e),isFixedOnPage:ni(e)}))(o),s={ref:o,descriptor:c,env:a,scrollOptions:n};t.current=s;const u=ii({ref:o,descriptor:c,env:a,windowScroll:e,direction:i.direction,isDropDisabled:i.isDropDisabled,isCombineEnabled:i.isCombineEnabled,shouldClipSubject:!i.ignoreContainerClipping}),p=a.closestScrollable;return p&&(p.setAttribute(br.contextId,r.contextId),p.addEventListener("scroll",g,si(s.scrollOptions))),u},[r.contextId,c,g,l]),b=x(()=>{const e=t.current,r=li(e);return e&&r||m(),ri(r)},[]),v=x(()=>{const e=t.current;e||m();const r=li(e);t.current=null,r&&(f.cancel(),r.removeAttribute(br.contextId),r.removeEventListener("scroll",g,si(e.scrollOptions)))},[g,f]),_=x(e=>{const r=t.current;r||m();const n=li(r);n||m(),n.scrollTop+=e.y,n.scrollLeft+=e.x},[]),S=w(()=>({getDimensionAndWatchScroll:y,getScrollWhileDragging:b,dragStopped:v,scroll:_}),[v,y,b,_]),E=w(()=>({uniqueId:i,descriptor:c,callbacks:S}),[S,c,i]);Sr(()=>(u.current=E.descriptor,o.droppable.register(E),()=>{t.current&&v(),o.droppable.unregister(E)}),[S,c,v,E,a,o.droppable]),Sr(()=>{t.current&&a.updateDroppableIsEnabled(u.current.id,!e.isDropDisabled)},[e.isDropDisabled,a]),Sr(()=>{t.current&&a.updateDroppableIsCombineEnabled(u.current.id,e.isCombineEnabled)},[e.isCombineEnabled,a])}function ui(){}const pi={width:0,height:0,margin:{top:0,right:0,bottom:0,left:0}},di=({isAnimatingOpenOnMount:e,placeholder:t,animate:r})=>{const n=(({isAnimatingOpenOnMount:e,placeholder:t,animate:r})=>e||"close"===r?pi:{height:t.client.borderBox.height,width:t.client.borderBox.width,margin:t.client.margin})({isAnimatingOpenOnMount:e,placeholder:t,animate:r});return{display:t.display,boxSizing:"border-box",width:n.width,height:n.height,marginTop:n.margin.top,marginRight:n.margin.right,marginBottom:n.margin.bottom,marginLeft:n.margin.left,flexShrink:"0",flexGrow:"0",pointerEvents:"none",transition:"none"!==r?St.placeholder:null}};var hi=n.default.memo(e=>{const t=(0,n.useRef)(null),r=x(()=>{t.current&&(clearTimeout(t.current),t.current=null)},[]),{animate:i,onTransitionEnd:o,onClose:a,contextId:s}=e,[l,c]=(0,n.useState)("open"===e.animate);(0,n.useEffect)(()=>l?"open"!==i?(r(),c(!1),ui):t.current?ui:(t.current=setTimeout(()=>{t.current=null,c(!1)}),r):ui,[i,l,r]);const u=x(e=>{"height"===e.propertyName&&(o(),"close"===i&&a())},[i,a,o]),p=di({isAnimatingOpenOnMount:l,animate:e.animate,placeholder:e.placeholder});return n.default.createElement(e.placeholder.tagName,{style:p,"data-rfd-placeholder-context-id":s,onTransitionEnd:u,ref:e.innerRef})});class fi extends n.default.PureComponent{constructor(...e){super(...e),this.state={isVisible:Boolean(this.props.on),data:this.props.on,animate:this.props.shouldAnimate&&this.props.on?"open":"none"},this.onClose=()=>{"close"===this.state.animate&&this.setState({isVisible:!1})}}static getDerivedStateFromProps(e,t){return e.shouldAnimate?e.on?{isVisible:!0,data:e.on,animate:"open"}:t.isVisible?{isVisible:!0,data:t.data,animate:"close"}:{isVisible:!1,animate:"close",data:null}:{isVisible:Boolean(e.on),data:e.on,animate:"none"}}render(){if(!this.state.isVisible)return null;const e={onClose:this.onClose,data:this.state.data,animate:this.state.animate};return this.props.children(e)}}const mi={mode:"standard",type:"DEFAULT",direction:"vertical",isDropDisabled:!1,isCombine
41Enabled:!1,ignoreContainerClipping:!1,renderClone:null,getContainerForClone:function(){return document.body||m(),document.body}},gi=e=>{let t,r={...e};for(t in mi)void 0===e[t]&&(r={...r,[t]:mi[t]});return r},yi=(e,t)=>e===t.droppable.type,bi=(e,t)=>t.draggables[e.draggable.id],vi={updateViewportMaxScroll:e=>({type:"UPDATE_VIEWPORT_MAX_SCROLL",payload:e})},_i=(0,o.connect)(()=>{const e={placeholder:null,shouldAnimatePlaceholder:!0,snapshot:{isDraggingOver:!1,draggingOverWith:null,draggingFromThisWith:null,isUsingPlaceholder:!1},useClone:null},t={...e,shouldAnimatePlaceholder:!1},r=j(e=>({draggableId:e.id,type:e.type,source:{index:e.index,droppableId:e.droppableId}})),n=j((n,i,o,a,s,l)=>{const c=s.descriptor.id;if(s.descriptor.droppableId===n){const e=l?{render:l,dragging:r(s.descriptor)}:null,t={isDraggingOver:o,draggingOverWith:o?c:null,draggingFromThisWith:c,isUsingPlaceholder:!0};return{placeholder:s.placeholder,shouldAnimatePlaceholder:!1,snapshot:t,useClone:e}}if(!i)return t;if(!a)return e;const u={isDraggingOver:o,draggingOverWith:c,draggingFromThisWith:null,isUsingPlaceholder:!0};return{placeholder:s.placeholder,shouldAnimatePlaceholder:!0,snapshot:u,useClone:null}});return(r,i)=>{const o=gi(i),a=o.droppableId,s=o.type,l=!o.isDropDisabled,c=o.renderClone;if(Ur(r)){const e=r.critical;if(!yi(s,e))return t;const i=bi(e,r.dimensions),o=Ce(r.impact)===a;return n(a,l,o,o,i,c)}if("DROP_ANIMATING"===r.phase){const e=r.completed;if(!yi(s,e.critical))return t;const i=bi(e.critical,r.dimensions);return n(a,l,Gn(e.result)===a,Ce(e.impact)===a,i,c)}if("IDLE"===r.phase&&r.completed&&!r.shouldFlush){const n=r.completed;if(!yi(s,n.critical))return t;const i=Ce(n.impact)===a,o=Boolean(n.impact.at&&"COMBINE"===n.impact.at.type),l=n.critical.droppable.id===a;return i?o?e:t:l?e:t}return t}},vi,(e,t,r)=>({...gi(r),...e,...t}),{context:kr,areStatePropsEqual:zn})(e=>{const t=(0,n.useContext)(Nr);t||m();const{contextId:r,isMovementAllowed:i}=t,o=(0,n.useRef)(null),a=(0,n.useRef)(null),{children:s,droppableId:l,type:c,mode:u,direction:p,ignoreContainerClipping:d,isDropDisabled:h,isCombineEnabled:f,snapshot:g,useClone:y,updateViewportMaxScroll:b,getContainerForClone:v}=e,_=x(()=>o.current,[]),S=x((e=null)=>{o.current=e},[]),E=(x(()=>a.current,[]),x((e=null)=>{a.current=e},[]));Fr();const T=x(()=>{i()&&b({maxScroll:qt()})},[i,b]);ci({droppableId:l,type:c,mode:u,direction:p,isDropDisabled:h,isCombineEnabled:f,ignoreContainerClipping:d,getDroppableRef:_});const O=w(()=>n.default.createElement(fi,{on:e.placeholder,shouldAnimate:e.shouldAnimatePlaceholder},({onClose:e,data:t,animate:i})=>n.default.createElement(hi,{placeholder:t,onClose:e,innerRef:E,animate:i,contextId:r,onTransitionEnd:T})),[r,T,e.placeholder,e.shouldAnimatePlaceholder,E]),I=w(()=>({innerRef:S,placeholder:O,droppableProps:{"data-rfd-droppable-id":l,"data-rfd-droppable-context-id":r}}),[r,l,O,S]),A=y?y.dragging.draggableId:null,k=w(()=>({droppableId:l,type:c,isUsingCloneFor:A}),[l,A,c]);return n.default.createElement(jn.Provider,{value:k},s(I,g),function(){if(!y)return null;const{dragging:e,render:t}=y,r=n.default.createElement(Kn,{draggableId:e.draggableId,index:e.source.index,isClone:!0,isEnabled:!0,shouldRespectForcePress:!1,canDragInteractiveElements:!0},(r,n)=>t(r,n,e));return n.default.createPortal(r,v())}())})},(e,t,r)=>{"use strict";function n(e){return`Minified Redux error #${e}; visit https://redux.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}r.r(t),r.d(t,{__DO_NOT_USE__ActionTypes:()=>a,applyMiddleware:()=>f,bindActionCreators:()=>d,combineReducers:()=>u,compose:()=>h,createStore:()=>l,isAction:()=>m,isPlainObject:()=>s,legacy_createStore:()=>c});var i=(()=>"function"==typeof Symbol&&Symbol.observable||"@@observable")(),o=()=>Math.random().toString(36).substring(7).split("").join("."),a={INIT:`@@redux/INIT${o()}`,REPLACE:`@@redux/REPLACE${o()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${o()}`};function s(e){if("object"!=typeof e||null===e)return!1;let t=e;for(;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t||null===Object.getPrototypeOf(e)}function l(e,t,r){if("function"!=typeof e)throw new Error(n(2));if("function"==typeof t&&"function"==typeof r||"function"==typeof r&&"function"==typeof arguments[3])throw new Error(n(0));if("function"==typeof t&&void 0===r&&(r=t,t=void 0),void 0!==r){if("function"!=typeof r)throw new Error(n(1));return r(l)(e,t)}let o=e,c=t,u=new Map,p=u,d=0,h=!1;function f(){p===u&&(p=new Map,u.forEach((e,t)=>{p.set(t,e)}))}function m(){if(h)throw new Error(n(3));return c}function g(e){if("function"!=typeof e)throw new Error(n(4));if(h)throw new Error(n(5));let t=!0;f();const r=d++;return p.set(r,e),function(){if(t){if(h)throw new Error(n(6));t=!1,f(),p.delete(r),u=null}}}function y(e){if(!s(e))throw new Error(n(7));if(void 0===e.type)throw new Error(n(8));if("string"!=typeof e.type)throw new Error(n(17));if(h)throw new Error(n(9));try{h=!0,c=o(c,e)}finally{h=!1}
41return(u=p).forEach(e=>{e()}),e}y({type:a.INIT});return{dispatch:y,subscribe:g,getState:m,replaceReducer:function(e){if("function"!=typeof e)throw new Error(n(10));o=e,y({type:a.REPLACE})},[i]:function(){const e=g;return{subscribe(t){if("object"!=typeof t||null===t)throw new Error(n(11));function r(){const e=t;e.next&&e.next(m())}r();return{unsubscribe:e(r)}},[i](){return this}}}}}function c(e,t,r){return l(e,t,r)}function u(e){const t=Object.keys(e),r={};for(let n=0;n<t.length;n++){const i=t[n];0,"function"==typeof e[i]&&(r[i]=e[i])}const i=Object.keys(r);let o;try{!function(e){Object.keys(e).forEach(t=>{const r=e[t];if(void 0===r(void 0,{type:a.INIT}))throw new Error(n(12));if(void 0===r(void 0,{type:a.PROBE_UNKNOWN_ACTION()}))throw new Error(n(13))})}(r)}catch(e){o=e}return function(e={},t){if(o)throw o;let a=!1;const s={};for(let o=0;o<i.length;o++){const l=i[o],c=r[l],u=e[l],p=c(u,t);if(void 0===p){t&&t.type;throw new Error(n(14))}s[l]=p,a=a||p!==u}return a=a||i.length!==Object.keys(e).length,a?s:e}}function p(e,t){return function(...r){return t(e.apply(this,r))}}function d(e,t){if("function"==typeof e)return p(e,t);if("object"!=typeof e||null===e)throw new Error(n(16));const r={};for(const n in e){const i=e[n];"function"==typeof i&&(r[n]=p(i,t))}return r}function h(...e){return 0===e.length?e=>e:1===e.length?e[0]:e.reduce((e,t)=>(...r)=>e(t(...r)))}function f(...e){return t=>(r,i)=>{const o=t(r,i);let a=()=>{throw new Error(n(15))};const s={getState:o.getState,dispatch:(e,...t)=>a(e,...t)},l=e.map(e=>e(s));return a=h(...l)(o.dispatch),{...o,dispatch:a}}}function m(e){return s(e)&&"type"in e&&"string"==typeof e.type}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{Provider:()=>ne,ReactReduxContext:()=>J,batch:()=>he,connect:()=>te,createDispatchHook:()=>le,createSelectorHook:()=>pe,createStoreHook:()=>ae,legacy_connect:()=>re,shallowEqual:()=>M,useDispatch:()=>ce,useSelector:()=>de,useStore:()=>se});var n=r(341),i=r(3172),o=n.version.startsWith("19"),a=Symbol.for(o?"react.transitional.element":"react.element"),s=Symbol.for("react.portal"),l=Symbol.for("react.fragment"),c=Symbol.for("react.strict_mode"),u=Symbol.for("react.profiler"),p=Symbol.for("react.consumer"),d=Symbol.for("react.context"),h=Symbol.for("react.forward_ref"),f=Symbol.for("react.suspense"),m=Symbol.for("react.suspense_list"),g=Symbol.for("react.memo"),y=Symbol.for("react.lazy"),b=h,v=g;function _(e){if("object"==typeof e&&null!==e){const{$$typeof:t}=e;switch(t){case a:switch(e=e.type){case l:case u:case c:case f:case m:return e;default:switch(e=e&&e.$$typeof){case d:case h:case y:case g:case p:return e;default:return t}}case s:return t}}}function S(e,t,r,n,{areStatesEqual:i,areOwnPropsEqual:o,areStatePropsEqual:a}){let s,l,c,u,p,d=!1;function h(d,h){const f=!o(h,l),m=!i(d,s,h,l);return s=d,l=h,f&&m?(c=e(s,l),t.dependsOnOwnProps&&(u=t(n,l)),p=r(c,u,l),p):f?(e.dependsOnOwnProps&&(c=e(s,l)),t.dependsOnOwnProps&&(u=t(n,l)),p=r(c,u,l),p):m?function(){const t=e(s,l),n=!a(t,c);return c=t,n&&(p=r(c,u,l)),p}():p}return function(i,o){return d?h(i,o):(s=i,l=o,c=e(s,l),u=t(n,l),p=r(c,u,l),d=!0,p)}}function E(e){return function(t){const r=e(t);function n(){return r}return n.dependsOnOwnProps=!1,n}}function T(e){return e.dependsOnOwnProps?Boolean(e.dependsOnOwnProps):1!==e.length}function w(e,t){return function(t,{displayName:r}){const n=function(e,t){return n.dependsOnOwnProps?n.mapToProps(e,t):n.mapToProps(e,void 0)};return n.dependsOnOwnProps=!0,n.mapToProps=function(t,r){n.mapToProps=e,n.dependsOnOwnProps=T(e);let i=n(t,r);return"function"==typeof i&&(n.mapToProps=i,n.dependsOnOwnProps=T(i),i=n(t,r)),i},n}}function x(e,t){return(r,n)=>{throw new Error(`Invalid value of type ${typeof e} for ${t} argument when connecting component ${n.wrappedComponentName}.`)}}function O(e,t,r){return{...r,...e,...t}}function I(e){e()}var A={notify(){},get:()=>[]};function k(e,t){let r,n=A,i=0,o=!1;function a(){c.onStateChange&&c.onStateChange()}function s(){i++,r||(r=t?t.addNestedSub(a):e.subscribe(a),n=function(){let e=null,t=null;return{clear(){e=null,t=null},notify(){I(()=>{let t=e;for(;t;)t.callback(),t=t.next})},get(){const t=[];let r=e;for(;r;)t.push(r),r=r.next;return t},subscribe(r){let n=!0;const i=t={callback:r,next:null,prev:t};return i.prev?i.prev.next=i:e=i,function(){n&&null!==e&&(n=!1,i.next?i.next.prev=i.prev:t=i.prev,i.prev?i.prev.next=i.next:e=i.next)}}}}())}function l(){i--,r&&0===i&&(r(),r=void 0,n.clear(),n=A)}const c={addNestedSub:function(e){s();const t=n.subscribe(e);let r=!1;return()=>{r||(r=!0,t(),l())}},notifyNestedSubs:function(){n.notify()},handleChangeWrapper:a,isSubscribed:function(){return o},trySubscribe:function(){o||(o=!0,s())},tryUnsubscribe:function(){o&&(o=!1,l())},getListeners:()=>n};return c}var R=(()=>!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement))(),C=(()=>"undefined"!=typeof navigator&&"ReactNative"===navigator.product)(),P=(()=>R||C?n.useLayoutEffect:n.useEffect)();function D(e,t){return e===t?0!==e||0!==t||1/e==1/t:e!=e&&t!=t}function M(e,t){if(D(e,t))return!0;
vendor: 4,308 bytes, line 41
41if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;const r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(let n=0;n<r.length;n++)if(!Object.prototype.hasOwnProperty.call(t,r[n])||!D(e[r[n]],t[r[n]]))return!1;return!0}var N={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},L={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},F={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},B={[b]:{$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},[v]:F};function U(e){return _(e)===g?F:B[e.$$typeof]||N}var j=Object.defineProperty,H=Object.getOwnPropertyNames,V=Object.getOwnPropertySymbols,z=Object.getOwnPropertyDescriptor,G=Object.getPrototypeOf,q=Object.prototype;function $(e,t){if("string"!=typeof t){if(q){const r=G(t);r&&r!==q&&$(e,r)}let r=H(t);V&&(r=r.concat(V(t)));const n=U(e),i=U(t);for(let o=0;o<r.length;++o){const a=r[o];if(!(L[a]||i&&i[a]||n&&n[a])){const r=z(t,a);try{j(e,a,r)}catch(e){}}}}return e}var W=Symbol.for("react-redux-context"),Y="undefined"!=typeof globalThis?globalThis:{};function K(){if(!n.createContext)return{};const e=Y[W]??=new Map;let t=e.get(n.createContext);return t||(t=n.createContext(null),e.set(n.createContext,t)),t}var J=K(),Q=[null,null];function X(e,t,r,n,i,o){e.current=n,r.current=!1,i.current&&(i.current=null,o())}function Z(e,t){return e===t}function ee(e,t,r,{pure:i,areStatesEqual:o=Z,areOwnPropsEqual:a=M,areStatePropsEqual:s=M,areMergedPropsEqual:l=M,forwardRef:c=!1,context:u=J}={}){const p=u,d=function(e){return e?"function"==typeof e?w(e):x(e,"mapStateToProps"):E(()=>({}))}(e),h=function(e){return e&&"object"==typeof e?E(t=>function(e,t){const r={};for(const n in e){const i=e[n];"function"==typeof i&&(r[n]=(...e)=>t(i(...e)))}return r}(e,t)):e?"function"==typeof e?w(e):x(e,"mapDispatchToProps"):E(e=>({dispatch:e}))}(t),f=function(e){return e?"function"==typeof e?function(e){return function(t,{displayName:r,areMergedPropsEqual:n}){let i,o=!1;return function(t,r,a){const s=e(t,r,a);return o?n(s,i)||(i=s):(o=!0,i=s),i}}}(e):x(e,"mergeProps"):()=>O}(r),m=Boolean(e);return e=>{const t=e.displayName||e.name||"Component",r=`Connect(${t})`,i={shouldHandleStateChanges:m,displayName:r,wrappedComponentName:t,WrappedComponent:e,initMapStateToProps:d,initMapDispatchToProps:h,initMergeProps:f,areStatesEqual:o,areStatePropsEqual:s,areOwnPropsEqual:a,areMergedPropsEqual:l};function u(t){const[r,o,a]=n.useMemo(()=>{const{reactReduxForwardedRef:e,...r}=t;return[t.context,e,r]},[t]),s=n.useMemo(()=>p,[r,p]),l=n.useContext(s),c=Boolean(t.store)&&Boolean(t.store.getState)&&Boolean(t.store.dispatch),u=Boolean(l)&&Boolean(l.store);const d=c?t.store:l.store,h=u?l.getServerState:d.getState,f=n.useMemo(()=>function(e,{initMapStateToProps:t,initMapDispatchToProps:r,initMergeProps:n,...i}){return S(t(e,i),r(e,i),n(e,i),e,i)}(d.dispatch,i),[d]),[g,y]=n.useMemo(()=>{if(!m)return Q;const e=k(d,c?void 0:l.subscription),t=e.notifyNestedSubs.bind(e);return[e,t]},[d,c,l]),b=n.useMemo(()=>c?l:{...l,subscription:g},[c,l,g]),v=n.useRef(void 0),_=n.useRef(a),E=n.useRef(void 0),T=n.useRef(!1),w=n.useRef(!1),x=n.useRef(void 0);P(()=>(w.current=!0,()=>{w.current=!1}),[]);const O=n.useMemo(()=>()=>E.current&&a===_.current?E.current:f(d.getState(),a),[d,a]),I=n.useMemo(()=>e=>g?function(e,t,r,n,i,o,a,s,l,c,u){if(!e)return()=>{};let p=!1,d=null;const h=()=>{if(p||!s.current)return;const e=t.getState();let r,h;try{r=n(e,i.current)}catch(e){h=e,d=e}h||(d=null),r===o.current?a.current||c():(o.current=r,l.current=r,a.current=!0,u())};return r.onStateChange=h,r.trySubscribe(),h(),()=>{if(p=!0,r.tryUnsubscribe(),r.onStateChange=null,d)throw d}}(m,d,g,f,_,v,T,w,E,y,e):()=>{},[g]);var A,R,C;let D;A=X,R=[_,v,T,a,E,y],P(()=>A(...R),C);try{D=n.useSyncExternalStore(I,O,h?()=>f(h(),a):O)}catch(e){throw x.current&&(e.message+=`\nThe error may be correlated with this previous error:\n${x.current.stack}\n\n`),e}P(()=>{x.current=void 0,E.current=void 0,v.current=D});const M=n.useMemo(()=>n.createElement(e,{...D,ref:o}),[o,e,D]);return n.useMemo(()=>m?n.createElement(s.Provider,{value:b},M):M,[s,M,b])}const g=n.memo(u);
41if(g.WrappedComponent=e,g.displayName=u.displayName=r,c){const t=n.forwardRef(function(e,t){return n.createElement(g,{...e,reactReduxForwardedRef:t})});return t.displayName=r,t.WrappedComponent=e,$(t,e)}return $(g,e)}}var te=ee,re=ee;var ne=function(e){const{children:t,context:r,serverState:i,store:o}=e,a=n.useMemo(()=>{const e=k(o);return{store:o,subscription:e,getServerState:i?()=>i:void 0}},[o,i]),s=n.useMemo(()=>o.getState(),[o]);P(()=>{const{subscription:e}=a;return e.onStateChange=e.notifyNestedSubs,e.trySubscribe(),s!==o.getState()&&e.notifyNestedSubs(),()=>{e.tryUnsubscribe(),e.onStateChange=void 0}},[a,s]);const l=r||J;return n.createElement(l.Provider,{value:a},t)};function ie(e=J){return function(){return n.useContext(e)}}var oe=ie();function ae(e=J){const t=e===J?oe:ie(e),r=()=>{const{store:e}=t();return e};return Object.assign(r,{withTypes:()=>r}),r}var se=ae();function le(e=J){const t=e===J?se:ae(e),r=()=>t().dispatch;return Object.assign(r,{withTypes:()=>r}),r}var ce=le(),ue=(e,t)=>e===t;function pe(e=J){const t=e===J?oe:ie(e),r=(e,r={})=>{const{equalityFn:o=ue}="function"==typeof r?{equalityFn:r}:r;const a=t(),{store:s,subscription:l,getServerState:c}=a,u=(n.useRef(!0),n.useCallback({[e.name]:t=>e(t)}[e.name],[e])),p=(0,i.useSyncExternalStoreWithSelector)(l.addNestedSub,s.getState,c||s.getState,u,o);return n.useDebugValue(p),p};return Object.assign(r,{withTypes:()=>r}),r}var de=pe(),he=I},(e,t,r)=>{"use strict";e.exports=r(3173)},(e,t,r)=>{"use strict";
42/**
43 * @license React
44 * use-sync-external-store-with-selector.production.js
45 *
46 * Copyright (c) Meta Platforms, Inc. and affiliates.
47 *
48 * This source code is licensed under the MIT license found in the
49 * LICENSE file in the root directory of this source tree.
50 */var n=r(341);var i="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},o=n.useSyncExternalStore,a=n.useRef,s=n.useEffect,l=n.useMemo,c=n.useDebugValue;t.useSyncExternalStoreWithSelector=function(e,t,r,n,u){var p=a(null);if(null===p.current){var d={hasValue:!1,value:null};p.current=d}else d=p.current;p=l(function(){function e(e){if(!s){if(s=!0,o=e,e=n(e),void 0!==u&&d.hasValue){var t=d.value;if(u(t,e))return a=t}return a=e}if(t=a,i(o,e))return t;var r=n(e);return void 0!==u&&u(t,r)?(o=e,t):(o=e,a=r)}var o,a,s=!1,l=void 0===r?null:r;return[function(){return e(t())},null===l?void 0:function(){return e(l())}]},[t,r,n,u]);var h=o(e,p[0],p[1]);return s(function(){d.hasValue=!0,d.value=h},[h]),c(h),h}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{calculateBox:()=>d,createBox:()=>l,expand:()=>o,getBox:()=>h,getRect:()=>i,offset:()=>u,shrink:()=>a,withScroll:()=>p});var n=r(3175),i=function(e){var t=e.top,r=e.right,n=e.bottom,i=e.left;return{top:t,right:r,bottom:n,left:i,width:r-i,height:n-t,x:i,y:t,center:{x:(r+i)/2,y:(n+t)/2}}},o=function(e,t){return{top:e.top-t.top,left:e.left-t.left,bottom:e.bottom+t.bottom,right:e.right+t.right}},a=function(e,t){return{top:e.top+t.top,left:e.left+t.left,bottom:e.bottom-t.bottom,right:e.right-t.right}},s={top:0,right:0,bottom:0,left:0},l=function(e){var t=e.borderBox,r=e.margin,n=void 0===r?s:r,l=e.border,c=void 0===l?s:l,u=e.padding,p=void 0===u?s:u,d=i(o(t,n)),h=i(a(t,c)),f=i(a(h,p));return{marginBox:d,borderBox:i(t),paddingBox:h,contentBox:f,margin:n,border:c,padding:p}},c=function(e){var t=e.slice(0,-2);if("px"!==e.slice(-2))return 0;var r=Number(t);return isNaN(r)&&(0,n.default)(!1),r},u=function(e,t){var r,n,i=e.borderBox,o=e.border,a=e.margin,s=e.padding,c=(n=t,{top:(r=i).top+n.y,left:r.left+n.x,bottom:r.bottom+n.y,right:r.right+n.x});return l({borderBox:c,border:o,margin:a,padding:s})},p=function(e,t){return void 0===t&&(t={x:window.pageXOffset,y:window.pageYOffset}),u(e,t)},d=function(e,t){var r={top:c(t.marginTop),right:c(t.marginRight),bottom:c(t.marginBottom),left:c(t.marginLeft)},n={top:c(t.paddingTop),right:c(t.paddingRight),bottom:c(t.paddingBottom),left:c(t.paddingLeft)},i={top:c(t.borderTopWidth),right:c(t.borderRightWidth),bottom:c(t.borderBottomWidth),left:c(t.borderLeftWidth)};return l({borderBox:e,margin:r,padding:n,border:i}
50)},h=function(e){var t=e.getBoundingClientRect(),r=window.getComputedStyle(e);return d(t,r)}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>o});var n=!0,i="Invariant failed";function o(e,t){if(!e){if(n)throw new Error(i);var r="function"==typeof t?t():t,o=r?"".concat(i,": ").concat(r):i;throw new Error(o)}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});const n=function(e){var t=[],r=null,n=function(){for(var n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];t=i,r||(r=requestAnimationFrame(function(){r=null,e.apply(void 0,t)}))};return n.cancel=function(){r&&(cancelAnimationFrame(r),r=null)},n}},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,(e,t,r)=>{"use strict";r.r(t),r.d(t,{BrowserClient:()=>Y.BrowserClient,MULTIPLEXED_TRANSPORT_EXTRA_KEY:()=>y.MULTIPLEXED_TRANSPORT_EXTRA_KEY,OpenFeatureIntegrationHook:()=>Pe.OpenFeatureIntegrationHook,SDK_VERSION:()=>$.SDK_VERSION,SEMANTIC_ATTRIBUTE_SENTRY_OP:()=>p.SEMANTIC_ATTRIBUTE_SENTRY_OP,SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN:()=>p.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN,SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE:()=>p.SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE,SEMANTIC_ATTRIBUTE_SENTRY_SOURCE:()=>p.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE,Scope:()=>f.Scope,WINDOW:()=>W.WINDOW,addBreadcrumb:()=>T.addBreadcrumb,addEventProcessor:()=>d.addEventProcessor,addIntegration:()=>b.addIntegration,bindScopeToEmitter:()=>l.bindScopeToEmitter,breadcrumbsIntegration:()=>re.breadcrumbsIntegration,browserApiErrorsIntegration:()=>ae.browserApiErrorsIntegration,browserProfilingIntegration:()=>Ae.browserProfilingIntegration,browserSessionIntegration:()=>se.browserSessionIntegration,browserTracingIntegration:()=>be.browserTracingIntegration,buildLaunchDarklyFlagUsedHandler:()=>Ce.buildLaunchDarklyFlagUsedHandler,captureConsoleIntegration:()=>I.captureConsoleIntegration,captureEvent:()=>d.captureEvent,captureException:()=>d.captureException,captureFeedback:()=>N.captureFeedback,captureMessage:()=>d.captureMessage,captureSession:()=>d.captureSession,chromeStackLineParser:()=>Q.chromeStackLineParser,close:()=>d.close,consoleLoggingIntegration:()=>F.consoleLoggingIntegration,contextLinesIntegration:()=>pe.contextLinesIntegration,continueTrace:()=>s.continueTrace,createConsolaReporter:()=>U.createConsolaReporter,createLangChainCallbackHandler:()=>z.createLangChainCallbackHandler,createTransport:()=>g.createTransport,createUserFeedbackEnvelope:()=>Z.createUserFeedbackEnvelope,cultureContextIntegration:()=>Re.cultureContextIntegration,dedupeIntegration:()=>A.dedupeIntegration,defaultRequestInstrumentationOptions:()=>ye.defaultRequestInstrumentationOptions,defaultStackLineParsers:()=>Q.defaultStackLineParsers,defaultStackParser:()=>Q.defaultStackParser,diagnoseSdkConnectivity:()=>Le.diagnoseSdkConnectivity,elementTimingIntegration:()=>ve.elementTimingIntegration,endSession:()=>d.endSession,eventFiltersIntegration:()=>x.eventFiltersIntegration,eventFromException:()=>X.eventFromException,eventFromMessage:()=>X.eventFromMessage,exceptionFromError:()=>X.exceptionFromError,extraErrorDataIntegration:()=>k.extraErrorDataIntegration,featureFlagsIntegration:()=>M.featureFlagsIntegration,feedbackAsyncIntegration:()=>n.feedbackAsyncIntegration,feedbackIntegration:()=>i.feedbackSyncIntegration,feedbackSyncIntegration:()=>i.feedbackSyncIntegration,fetchStreamPerformanceIntegration:()=>xe.fetchStreamPerformanceIntegration,flush:()=>d.flush,forceLoad:()=>ee.forceLoad,functionToStringIntegration:()=>w.functionToStringIntegration,geckoStackLineParser:()=>Q.geckoStackLineParser,getAbsoluteUrl:()=>_e.getAbsoluteUrl,getActiveSpan:()=>S.getActiveSpan,getClient:()=>h.getClient,getCurrentScope:()=>h.getCurrentScope,getDefaultIntegrations:()=>ee.getDefaultIntegrations,getFeedback:()=>ge.getFeedback,getGlobalScope:()=>h.getGlobalScope,getIsolationScope:()=>h.getIsolationScope,getReplay:()=>fe.getReplay,getRootSpan:()=>S.getRootSpan,getSpanDescendants:()=>S.getSpanDescendants,getSpanStatusFromHttpCode:()=>a.getSpanStatusFromHttpCode,getTraceData:()=>E.getTraceData,globalHandlersIntegration:()=>ne.globalHandlersIntegration,graphqlClientIntegration:()=>de.graphqlClientIntegration,growthbookIntegration:()=>Me.growthbookIntegration,httpClientIntegration:()=>ue.httpClientIntegration,httpContextIntegration:()=>ie.httpContextIntegration,inboundFiltersIntegration:()=>x.inboundFiltersIntegration,init:()=>ee.init,instrumentAnthropicAiClient:()=>H.instrumentAnthropicAiClient,instrumentCreateReactAgent:()=>q.instrumentCreateReactAgent,instrumentGoogleGenAIClient:()=>V.instrumentGoogleGenAIClient,instrumentLangChainEmbeddings:()=>G.instrumentLangChainEmbeddings,instrumentLangGraph:()=>q.instrumentLangGraph,instrumentOpenAiClient:()=>j.instrumentOpenAiClient,instrumentOutgoingRequests:()=>ye.instrumentOutgoingRequests,instrumentStateGraph:()=>q.instrumentStateGraph,instrumentSupabaseClient:()=>C.instrumentSupabaseClient,isBotUserAgent:()=>be.isBotUserAgent,isEnabled:()=>d.isEnabled,isInitialized:()=>d.isInitialized,lastEventId:()=>d.lastEventId,launchDarklyIntegration:()=>Ce.launchDarklyIntegration,lazyLoadIntegration:()=>le.lazyLoadIntegration,linkedErrorsIntegration:()=>oe.linkedErrorsIntegration,logger:()=>L,makeBrowserOfflineTransport:()=>Ie.makeBrowserOfflineTransport,makeFetchTransport:()=>K.makeFetchTransport,makeMultiplexedTransport:()=>y.makeMultiplexedTransport,metrics:()=>B,moduleMetadataIntegration:()=>O.moduleMetadataIntegration,normalizeStringifyValue:()=>Se.normalizeStringifyValue,onLoad:()=>ee.onLoad,openFeatureIntegration:()=>Pe.openFeatureIntegration,opera10StackLineParser:()=>Q.opera10StackLineParser,opera11StackLineParser:()=>Q.opera11StackLineParser,parameterize:()=>_.parameterize,registerSpanErrorInstrumentation:()=>o.registerSpanErrorInstrumentation,registerWebWorker:()=>Fe.registerWebWorker,replayCanvasIntegration:()=>me.replayCanvasIntegration,replayIntegration:()=>fe.replayIntegration,reportPageLoaded:()=>Ee.reportPageLoaded,reportingObserverIntegration:()=>ce.reportingObserverIntegration,rewriteFramesIntegration:()=>R.rewriteFramesIntegration,sendFeedback:()=>ge.sendFeedback,setActiveSpanInBrowser:()=>Te.setActiveSpanInBrowser,setAttribute:()=>d.setAttribute,setAttributes:()=>d.setAttributes,setContext:()=>d.setContext,setConversationId:()=>d.setConversationId,setCurrentClient:()=>m.setCurrentClient,setExtra:()=>d.setExtra,setExtras:()=>d.setExtras,setHttpStatus:()=>a.setHttpStatus,setMeasurement:()=>u.setMeasurement,setTag:()=>d.setTag,setTags:()=>d.setTags,setUser:()=>d.setUser,showReportDialog:()=>te.showReportDialog,spanStreamingIntegration:()=>we.spanStreamingIntegration,spanToBaggageHeader:()=>c.spanToBaggageHeader,spanToJSON:()=>S.spanToJSON,spanToTraceHeader:()=>S.spanToTraceHeader,spotlightBrowserIntegration:()=>ke.spotlightBrowserIntegration,startBrowserTracingNavigationSpan:()=>be.startBrowserTracingNavigationSpan,startBrowserTracingPageLoadSpan:()=>be.startBrowserTracingPageLoadSpan,startInactiveSpan:()=>s.startInactiveSpan,startNewTrace:()=>s.startNewTrace,startSession:()=>d.startSession,startSpan:()=>s.startSpan,startSpanManual:()=>s.startSpanManual,statsigIntegration:()=>Ne.statsigIntegration,supabaseIntegration:()=>C.supabaseIntegration,suppressTracing:()=>s.suppressTracing,thirdPartyErrorFilterIntegration:()=>D.thirdPartyErrorFilterIntegration,uiProfiler:()=>J.uiProfiler,unleashIntegration:()=>De.unleashIntegration,updateSpanName:()=>S.updateSpanName,viewHierarchyIntegration:()=>he.viewHierarchyIntegration,webVitalsIntegration:()=>Oe.webVitalsIntegration,webWorkerIntegration:()=>Fe.webWorkerIntegration,winjsStackLineParser:()=>Q.winjsStackLineParser,withActiveSpan:()=>s.withActiveSpan,withIsolationScope:()=>h.withIsolationScope,withScope:()=>h.withScope,withStreamedSpan:()=>v.withStreamedSpan,zodErrorsIntegration:()=>P.zodErrorsIntegration});
50var n=r(3336),i=r(3340),o=r(1541),a=r(381),s=r(371),l=r(3341),c=r(385),u=r(394),p=r(372),d=r(345),h=r(346),f=r(353),m=r(1467),g=r(1489),y=r(3342),b=r(1468),v=r(392),_=r(3343),S=r(379),E=r(1575),T=r(697),w=r(1469),x=r(1470),O=r(3344),I=r(3346),A=r(1472),k=r(3347),R=r(3348),C=r(3350),P=r(3351),D=r(3352),M=r(3353),N=r(3338),L=r(3355),F=r(3356),B=r(3358),U=r(3359),j=r(3360),H=r(3368),V=r(3372),z=r(3376),G=r(3379),q=r(3380),$=r(349),W=r(1502),Y=r(1474),K=r(1534),J=r(3383),Q=r(1533),X=r(1500),Z=r(3384),ee=r(1466),te=r(3385),re=r(1504),ne=r(1527),ie=r(1530),oe=r(1531),ae=r(1519),se=r(1520),le=r(3339),ce=r(3386),ue=r(3387),pe=r(3392),de=r(3393),he=r(3394),fe=r(3395),me=r(3397),ge=r(3337),ye=r(1574),be=r(1540),ve=r(3398),_e=r(3399),Se=r(1537),Ee=r(3400),Te=r(3401),we=r(3402),xe=r(1568),Oe=r(1569),Ie=r(3406),Ae=r(3408),ke=r(3412),Re=r(1524),Ce=r(3413),Pe=r(3414),De=r(3415),Me=r(3416),Ne=r(3418),Le=r(3419),Fe=r(3420)},(e,t,r)=>{"use strict";r.r(t),r.d(t,{feedbackAsyncIntegration:()=>o});var n=r(3337),i=r(3339);const o=(0,n.buildFeedbackIntegration)({lazyLoadIntegration:i.lazyLoadIntegration})},(e,t,r)=>{"use strict";r.r(t),r.d(t,{buildFeedbackIntegration:()=>P,feedbackModalIntegration:()=>Je,feedbackScreenshotIntegration:()=>nt,getFeedback:()=>D,sendFeedback:()=>E});var n=r(346),i=r(1468),o=r(3338),a=r(350),s=r(1482),l=r(358),c=r(1503);const u=a.GLOBAL_OBJ,p=u.document,d=u.navigator,h="Report a Bug",f="Unable to submit feedback with empty message",m="No client setup, cannot send feedback.",g="Unable to determine if Feedback was correctly sent.",y="Unable to send feedback. This could be because this domain is not in your list of allowed domains.",b="Unable to send feedback. This could be because of network issues, or because you are using an ad-blocker.",v={
50ERROR_EMPTY_MESSAGE:f,ERROR_NO_CLIENT:m,ERROR_TIMEOUT:g,ERROR_FORBIDDEN:y,ERROR_GENERIC:b};function _(e,t){return t?.[e]??v[e]}function S(e,t){return new Error(_(e,t))}const E=(e,t={includeReplay:!0})=>{const r=t.errorMessages;if(!e.message)throw S("ERROR_EMPTY_MESSAGE",r);const i=(0,n.getClient)();if(!i)throw S("ERROR_NO_CLIENT",r);e.tags&&Object.keys(e.tags).length&&(0,n.getCurrentScope)().setTags(e.tags);const a=(0,o.captureFeedback)({source:"api",url:(0,c.getLocationHref)(),...e},t);return new Promise((e,t)=>{const n=setTimeout(()=>{o(),t(_("ERROR_TIMEOUT",r))},3e4),o=i.on("afterSendEvent",(i,s)=>{if(i.event_id===a)return clearTimeout(n),o(),s?.statusCode&&s.statusCode>=200&&s.statusCode<300?e(a):t(_(403===s?.statusCode?"ERROR_FORBIDDEN":"ERROR_GENERIC",r))})})},T="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__;function w(e,t){return{...e,...t,tags:{...e.tags,...t.tags},onFormOpen:()=>{t.onFormOpen?.(),e.onFormOpen?.()},onFormClose:()=>{t.onFormClose?.(),e.onFormClose?.()},onSubmitSuccess:(r,n)=>{t.onSubmitSuccess?.(r,n),e.onSubmitSuccess?.(r,n)},onSubmitError:r=>{t.onSubmitError?.(r),e.onSubmitError?.(r)},onFormSubmitted:()=>{t.onFormSubmitted?.(),e.onFormSubmitted?.()},themeDark:{...e.themeDark,...t.themeDark},themeLight:{...e.themeLight,...t.themeLight}}}function x(e,t){return Object.entries(t).forEach(([t,r])=>{e.setAttributeNS(null,t,r)}),e}function O({triggerLabel:e,triggerAriaLabel:t,shadow:r,styleNonce:n}){const i=p.createElement("button");if(i.type="button",i.className="widget__actor",i.ariaHidden="false",i.ariaLabel=t||e||h,i.appendChild(function(){const e=e=>u.document.createElementNS("http://www.w3.org/2000/svg",e),t=x(e("svg"),{width:"20",height:"20",viewBox:"0 0 20 20",fill:"var(--actor-color, var(--foreground))"}),r=x(e("g"),{clipPath:"url(#clip0_57_80)"}),n=x(e("path"),{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M15.6622 15H12.3997C12.2129 14.9959 12.031 14.9396 11.8747 14.8375L8.04965 12.2H7.49956V19.1C7.4875 19.3348 7.3888 19.5568 7.22256 19.723C7.05632 19.8892 6.83435 19.9879 6.59956 20H2.04956C1.80193 19.9968 1.56535 19.8969 1.39023 19.7218C1.21511 19.5467 1.1153 19.3101 1.11206 19.0625V12.2H0.949652C0.824431 12.2017 0.700142 12.1783 0.584123 12.1311C0.468104 12.084 0.362708 12.014 0.274155 11.9255C0.185602 11.8369 0.115689 11.7315 0.0685419 11.6155C0.0213952 11.4995 -0.00202913 11.3752 -0.00034808 11.25V3.75C-0.00900498 3.62067 0.0092504 3.49095 0.0532651 3.36904C0.0972798 3.24712 0.166097 3.13566 0.255372 3.04168C0.344646 2.94771 0.452437 2.87327 0.571937 2.82307C0.691437 2.77286 0.82005 2.74798 0.949652 2.75H8.04965L11.8747 0.1625C12.031 0.0603649 12.2129 0.00407221 12.3997 0H15.6622C15.9098 0.00323746 16.1464 0.103049 16.3215 0.278167C16.4966 0.453286 16.5964 0.689866 16.5997 0.9375V3.25269C17.3969 3.42959 18.1345 3.83026 18.7211 4.41679C19.5322 5.22788 19.9878 6.32796 19.9878 7.47502C19.9878 8.62209 19.5322 9.72217 18.7211 10.5333C18.1345 11.1198 17.3969 11.5205 16.5997 11.6974V14.0125C16.6047 14.1393 16.5842 14.2659 16.5395 14.3847C16.4948 14.5035 16.4268 14.6121 16.3394 14.7042C16.252 14.7962 16.147 14.8698 16.0307 14.9206C15.9144 14.9714 15.7891 14.9984 15.6622 15ZM1.89695 10.325H1.88715V4.625H8.33715C8.52423 4.62301 8.70666 4.56654 8.86215 4.4625L12.6872 1.875H14.7247V13.125H12.6872L8.86215 10.4875C8.70666 10.3835 8.52423 10.327 8.33715 10.325H2.20217C2.15205 10.3167 2.10102 10.3125 2.04956 10.3125C1.9981 10.3125 1.94708 10.3167 1.89695 10.325ZM2.98706 12.2V18.1625H5.66206V12.2H2.98706ZM16.5997 9.93612V5.01393C16.6536 5.02355 16.7072 5.03495 16.7605 5.04814C17.1202 5.13709 17.4556 5.30487 17.7425 5.53934C18.0293 5.77381 18.2605 6.06912 18.4192 6.40389C18.578 6.73866 18.6603 7.10452 18.6603 7.47502C18.6603 7.84552 18.578 8.21139 18.4192 8.54616C18.2605 8.88093 18.0293 9.17624 17.7425 9.41071C17.4556 9.64518 17.1202 9.81296 16.7605 9.90191C16.7072 9.91509 16.6536 9.9265 16.5997 9.93612Z"});t.appendChild(r).appendChild(n);const i=e("defs"),o=x(e("clipPath"),{id:"clip0_57_80"}),a=x(e("rect"),{width:"20",height:"20",fill:"white"});return o.appendChild(a),i.appendChild(o),t.appendChild(i).appendChild(o).appendChild(a),t}()),e){const t=p.createElement("span");t.appendChild(p.createTextNode(e)),i.appendChild(t)}const o=function(e){const t=p.createElement("style");return t.textContent='\n.widget__actor {\n  position: fixed;\n  z-index: var(--z-index);\n  margin: var(--page-margin);\n  inset: var(--actor-inset);\n\n  display: flex;\n  align-items: center;\n  gap: 8px;\n  padding: 16px;\n\n  font-family: inherit;\n  font-size: var(--font-size);\n  font-weight: 600;\n  line-height: 1.14em;\n  text-decoration: none;\n\n  background: var(--actor-background, var(--background));\n  border-radius: var(--actor-border-radius, 1.7em/50%);\n  border: var(--actor-border, var(--border));
50\n  box-shadow: var(--actor-box-shadow, var(--box-shadow));\n  color: var(--actor-color, var(--foreground));\n  fill: var(--actor-color, var(--foreground));\n  cursor: pointer;\n  opacity: 1;\n  transition: transform 0.2s ease-in-out;\n  transform: translate(0, 0) scale(1);\n}\n.widget__actor[aria-hidden="true"] {\n  opacity: 0;\n  pointer-events: none;\n  visibility: hidden;\n  transform: translate(0, 16px) scale(0.98);\n}\n\n.widget__actor:hover {\n  background: var(--actor-hover-background, var(--background));\n  filter: var(--interactive-filter);\n}\n\n.widget__actor svg {\n  width: 1.14em;\n  height: 1.14em;\n}\n\n@media (max-width: 600px) {\n  .widget__actor span {\n    display: none;\n  }\n}\n',e&&t.setAttribute("nonce",e),t}(n);return{el:i,appendToDom(){r.appendChild(o),r.appendChild(i)},removeFromDom(){i.remove(),o.remove()},show(){i.ariaHidden="false"},hide(){i.ariaHidden="true"}}}const I="rgba(88, 74, 192, 1)",A={foreground:"#2b2233",background:"#ffffff",accentForeground:"white",accentBackground:I,successColor:"#268d75",errorColor:"#df3338",border:"1.5px solid rgba(41, 35, 47, 0.13)",boxShadow:"0px 4px 24px 0px rgba(43, 34, 51, 0.12)",outline:"1px auto var(--accent-background)",interactiveFilter:"brightness(95%)"},k={foreground:"#ebe6ef",background:"#29232f",accentForeground:"white",accentBackground:I,successColor:"#2da98c",errorColor:"#f55459",border:"1.5px solid rgba(235, 230, 239, 0.15)",boxShadow:"0px 4px 24px 0px rgba(43, 34, 51, 0.12)",outline:"1px auto var(--accent-background)",interactiveFilter:"brightness(150%)"};function R(e){return`\n  --foreground: ${e.foreground};\n  --background: ${e.background};\n  --accent-foreground: ${e.accentForeground};\n  --accent-background: ${e.accentBackground};\n  --success-color: ${e.successColor};\n  --error-color: ${e.errorColor};\n  --border: ${e.border};\n  --box-shadow: ${e.boxShadow};\n  --outline: ${e.outline};\n  --interactive-filter: ${e.interactiveFilter};\n  `}function C({colorScheme:e,themeDark:t,themeLight:r,styleNonce:n}){const i=p.createElement("style");return i.textContent=`\n:host {\n  --font-family: system-ui, 'Helvetica Neue', Arial, sans-serif;\n  --font-size: 14px;\n  --z-index: 100000;\n\n  --page-margin: 16px;\n  --inset: auto 0 0 auto;\n  --actor-inset: var(--inset);\n\n  font-family: var(--font-family);\n  font-size: var(--font-size);\n\n  ${"system"!==e?`color-scheme: only ${e};`:""}\n\n  ${R("dark"===e?{...k,...t}:{...A,...r})}\n}\n\n${"system"===e?`\n@media (prefers-color-scheme: dark) {\n  :host {\n    color-scheme: only dark;\n\n    ${R({...k,...t})}\n  }\n}`:""}\n`,n&&i.setAttribute("nonce",n),i}const P=({lazyLoadIntegration:e,getModalIntegration:t,getScreenshotIntegration:r})=>({id:n="sentry-feedback",autoInject:o=!0,showBranding:a=!0,isEmailRequired:c=!1,isNameRequired:u=!1,showEmail:v=!0,showName:_=!0,enableScreenshot:S=!0,useSentryUser:x={email:"email",name:"username"},tags:I,styleNonce:A,scriptNonce:k,colorScheme:R="system",themeLight:P={},themeDark:D={},addScreenshotButtonLabel:M="Add a screenshot",cancelButtonLabel:N="Cancel",confirmButtonLabel:L="Confirm",emailLabel:F="Email",emailPlaceholder:B="[email protected]",formTitle:U="Report a Bug",isRequiredLabel:j="(required)",messageLabel:H="Description",messagePlaceholder:V="What's the bug? What did you expect?",nameLabel:z="Name",namePlaceholder:G="Your Name",removeScreenshotButtonLabel:q="Remove screenshot",submitButtonLabel:$="Send Bug Report",successMessageText:W="Thank you for your report!",triggerLabel:Y=h,triggerAriaLabel:K="",highlightToolText:J="Highlight",hideToolText:Q="Hide",removeHighlightText:X="Remove",errorEmptyMessageText:Z=f,errorNoClientText:ee=m,errorTimeoutText:te=g,errorForbiddenText:re=y,errorGenericText:ne=b,onFormOpen:ie,onFormClose:oe,onSubmitSuccess:ae,onSubmitError:se,onFormSubmitted:le}={})=>{const ce={id:n,autoInject:o,showBranding:a,isEmailRequired:c,isNameRequired:u,showEmail:v,showName:_,enableScreenshot:S,useSentryUser:x,tags:I,styleNonce:A,scriptNonce:k,colorScheme:R,themeDark:D,themeLight:P,triggerLabel:Y,triggerAriaLabel:K,cancelButtonLabel:N,submitButtonLabel:$,confirmButtonLabel:L,formTitle:U,emailLabel:F,emailPlaceholder:B,messageLabel:H,messagePlaceholder:V,nameLabel:z,namePlaceholder:G,successMessageText:W,isRequiredLabel:j,addScreenshotButtonLabel:M,removeScreenshotButtonLabel:q,highlightToolText:J,hideToolText:Q,removeHighlightText:X,errorEmptyMessageText:Z,errorNoClientText:ee,errorTimeoutText:te,errorForbiddenText:re,errorGenericText:ne,onFormClose:oe,onFormOpen:ie,onSubmitError:se,onSubmitSuccess:ae,onFormSubmitted:le};let ue=null,pe=null,de=[];const he=e=>{if(!ue){const t=p.createElement("div");t.id=String(e.id),p.body.appendChild(t),ue=t.attachShadow({mode:"open"}),pe=C(e),ue.appendChild(pe)}return ue},fe=async n=>{const o=n.enableScreenshot&&!(/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(d.userAgent)||/Macintosh/i.test(d.userAgent)&&d.maxTouchPoints&&d.maxTouchPoints>1||!isSecureContext);let a,s;try{a=(t?t():await e("feedbackModalIntegration",k))(),(0,i.addIntegration)(a)}catch{throw T&&l.debug.error("[Feedback] Error when trying to load feedback integrations. Try using `feedbackSyncIntegration` in your `Sentry.init`."),new Error("[Feedback] Missing feedback modal integration!")}try{const t=o?r?r():await e("feedbackScreenshotIntegration",k):void 0;t&&(s=t(),(0,i.addIntegration)(s))}catch{T&&l.debug.error("[Feedback] Missing feedback screenshot integration. Proceeding without screenshots.")}const c={ERROR_EMPTY_MESSAGE:n.errorEmptyMessageText,ERROR_NO_CLIENT:n.errorNoClientText,E
50RROR_TIMEOUT:n.errorTimeoutText,ERROR_FORBIDDEN:n.errorForbiddenText,ERROR_GENERIC:n.errorGenericText},u=a.createDialog({options:{...n,onFormClose:()=>{u?.close(),n.onFormClose?.()},onFormSubmitted:()=>{u?.close(),n.onFormSubmitted?.()}},screenshotIntegration:s,sendFeedback:(e,t)=>E(e,{includeReplay:!0,...t,errorMessages:c}),shadow:he(n)});return u},me=(e,t={})=>{const r=w(ce,t),n="string"==typeof e?p.querySelector(e):"function"==typeof e.addEventListener?e:null;if(!n)throw T&&l.debug.error("[Feedback] Unable to attach to target element"),new Error("Unable to attach to target element");let i=null;const o=async()=>{i||(i=await fe({...r,onFormSubmitted:()=>{i?.removeFromDom(),r.onFormSubmitted?.()}})),i.appendToDom(),i.open()};n.addEventListener("click",o);const a=()=>{de=de.filter(e=>e!==a),i?.removeFromDom(),i=null,n.removeEventListener("click",o)};return de.push(a),a},ge=(e={})=>{const t=w(ce,e),r=he(t),n=O({triggerLabel:t.triggerLabel,triggerAriaLabel:t.triggerAriaLabel,shadow:r,styleNonce:A});return me(n.el,{...t,onFormOpen(){n.hide()},onFormClose(){n.show()},onFormSubmitted(){n.show()}}),n};return{name:"Feedback",setupOnce(){(0,s.isBrowser)()&&ce.autoInject&&("loading"===p.readyState?p.addEventListener("DOMContentLoaded",()=>ge().appendToDom()):ge().appendToDom())},attachTo:me,createWidget(e={}){const t=ge(w(ce,e));return t.appendToDom(),t},createForm:async(e={})=>fe(w(ce,e)),setTheme(e){if(ce.colorScheme=e,ue){const e=C(ce);pe?ue.replaceChild(e,pe):ue.prepend(e),pe=e}},remove(){ue&&(ue.parentElement?.remove(),ue=null,pe=null),de.forEach(e=>e()),de=[]}}};function D(){const e=(0,n.getClient)();return e?.getIntegrationByName("Feedback")}var M,N,L,F,B,U,j,H={},V=[],z=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,G=Array.isArray;function q(e,t){for(var r in t)e[r]=t[r];return e}function $(e){var t=e.parentNode;t&&t.removeChild(e)}function W(e,t,r){var n,i,o,a={};for(o in t)"key"==o?n=t[o]:"ref"==o?i=t[o]:a[o]=t[o];if(arguments.length>2&&(a.children=arguments.length>3?M.call(arguments,2):r),"function"==typeof e&&null!=e.defaultProps)for(o in e.defaultProps)void 0===a[o]&&(a[o]=e.defaultProps[o]);return Y(e,a,n,i,null)}function Y(e,t,r,n,i){var o={type:e,props:t,key:r,ref:n,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:i??++L,__i:-1,__u:0};return null==i&&null!=N.vnode&&N.vnode(o),o}function K(e){return e.children}function J(e,t){this.props=e,this.context=t}function Q(e,t){if(null==t)return e.__?Q(e.__,e.__i+1):null;for(var r;t<e.__k.length;t++)if(null!=(r=e.__k[t])&&null!=r.__e)return r.__e;return"function"==typeof e.type?Q(e):null}function X(e,t,r){var n,i=e.__v,o=i.__e,a=e.__P;if(a)return(n=q({},i)).__v=i.__v+1,N.vnode&&N.vnode(n),ce(a,n,i,e.__n,void 0!==a.ownerSVGElement,32&i.__u?[o]:null,t,o??Q(i),!!(32&i.__u),r),n.__.__k[n.__i]=n,n.__d=void 0,n.__e!=o&&Z(n),n}function Z(e){var t,r;if(null!=(e=e.__)&&null!=e.__c){for(e.__e=e.__c.base=null,t=0;t<e.__k.length;t++)if(null!=(r=e.__k[t])&&null!=r.__e){e.__e=e.__c.base=r.__e;break}return Z(e)}}function ee(e){(!e.__d&&(e.__d=!0)&&F.push(e)&&!te.__r++||B!==N.debounceRendering)&&((B=N.debounceRendering)||U)(te)}function te(){var e,t,r,n=[],i=[];for(F.sort(j);e=F.shift();)e.__d&&(r=F.length,t=X(e,n,i)||t,0===r||F.length>r?(ue(n,t,i),i.length=n.length=0,t=void 0,F.sort(j)):t&&N.__c&&N.__c(t,V));t&&ue(n,t,i),te.__r=0}function re(e,t,r,n,i,o,a,s,l,c,u){var p,d,h,f,m,g=n&&n.__k||V,y=t.length;for(r.__d=l,function(e,t,r){var n,i,o,a,s,l=t.length,c=r.length,u=c,p=0;for(e.__k=[],n=0;n<l;n++)null!=(i=e.__k[n]=null==(i=t[n])||"boolean"==typeof i||"function"==typeof i?null:"string"==typeof i||"number"==typeof i||"bigint"==typeof i||i.constructor==String?Y(null,i,null,null,i):G(i)?Y(K,{children:i},null,null,null):void 0===i.constructor&&i.__b>0?Y(i.type,i.props,i.key,i.ref?i.ref:null,i.__v):i)?(i.__=e,i.__b=e.__b+1,s=ie(i,r,a=n+p,u),i.__i=s,o=null,-1!==s&&(u--,(o=r[s])&&(o.__u|=131072)),null==o||null===o.__v?(-1==s&&p--,"function"!=typeof i.type&&(i.__u|=65536)):s!==a&&(s===a+1?p++:s>a?u>l-a?p+=s-a:p--:p=s<a&&s==a-1?s-a:0,s!==n+p&&(i.__u|=65536))):(o=r[n])&&null==o.key&&o.__e&&(o.__e==e.__d&&(e.__d=Q(o)),he(o,o,!1),r[n]=null,u--);if(u)for(n=0;n<c;n++)null!=(o=r[n])&&!(131072&o.__u)&&(o.__e==e.__d&&(e.__d=Q(o)),he(o,o))}(r,t,g),l=r.__d,p=0;p<y;
vendor: 3,490 bytes, line 50
50p++)null!=(h=r.__k[p])&&"boolean"!=typeof h&&"function"!=typeof h&&(d=-1===h.__i?H:g[h.__i]||H,h.__i=p,ce(e,h,d,i,o,a,s,l,c,u),f=h.__e,h.ref&&d.ref!=h.ref&&(d.ref&&de(d.ref,null,h),u.push(h.ref,h.__c||f,h)),null==m&&null!=f&&(m=f),65536&h.__u||d.__k===h.__k?l=ne(h,l,e):"function"==typeof h.type&&void 0!==h.__d?l=h.__d:f&&(l=f.nextSibling),h.__d=void 0,h.__u&=-196609);r.__d=l,r.__e=m}function ne(e,t,r){var n,i;if("function"==typeof e.type){for(n=e.__k,i=0;n&&i<n.length;i++)n[i]&&(n[i].__=e,t=ne(n[i],t,r));return t}e.__e!=t&&(r.insertBefore(e.__e,t||null),t=e.__e);do{t=t&&t.nextSibling}while(null!=t&&8===t.nodeType);return t}function ie(e,t,r,n){var i=e.key,o=e.type,a=r-1,s=r+1,l=t[r];if(null===l||l&&i==l.key&&o===l.type)return r;if(n>(null==l||131072&l.__u?0:1))for(;a>=0||s<t.length;){if(a>=0){if((l=t[a])&&!(131072&l.__u)&&i==l.key&&o===l.type)return a;a--}if(s<t.length){if((l=t[s])&&!(131072&l.__u)&&i==l.key&&o===l.type)return s;s++}}return-1}function oe(e,t,r){"-"===t[0]?e.setProperty(t,r??""):e[t]=null==r?"":"number"!=typeof r||z.test(t)?r:r+"px"}function ae(e,t,r,n,i){var o;e:if("style"===t)if("string"==typeof r)e.style.cssText=r;else{if("string"==typeof n&&(e.style.cssText=n=""),n)for(t in n)r&&t in r||oe(e.style,t,"");if(r)for(t in r)n&&r[t]===n[t]||oe(e.style,t,r[t])}else if("o"===t[0]&&"n"===t[1])o=t!==(t=t.replace(/(PointerCapture)$|Capture$/i,"$1")),t=t.toLowerCase()in e?t.toLowerCase().slice(2):t.slice(2),e.l||(e.l={}),e.l[t+o]=r,r?n?r.u=n.u:(r.u=Date.now(),e.addEventListener(t,o?le:se,o)):e.removeEventListener(t,o?le:se,o);else{if(i)t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if("width"!==t&&"height"!==t&&"href"!==t&&"list"!==t&&"form"!==t&&"tabIndex"!==t&&"download"!==t&&"rowSpan"!==t&&"colSpan"!==t&&"role"!==t&&t in e)try{e[t]=r??"";break e}catch(e){}"function"==typeof r||(null==r||!1===r&&"-"!==t[4]?e.removeAttribute(t):e.setAttribute(t,r))}}function se(e){if(this.l){var t=this.l[e.type+!1];if(e.t){if(e.t<=t.u)return}else e.t=Date.now();return t(N.event?N.event(e):e)}}function le(e){if(this.l)return this.l[e.type+!0](N.event?N.event(e):e)}function ce(e,t,r,n,i,o,a,s,l,c){var u,p,d,h,f,m,g,y,b,v,_,S,E,T,w,x=t.type;if(void 0!==t.constructor)return null;128&r.__u&&(l=!!(32&r.__u),o=[s=t.__e=r.__e]),(u=N.__b)&&u(t);e:if("function"==typeof x)try{if(y=t.props,b=(u=x.contextType)&&n[u.__c],v=u?b?b.props.value:u.__:n,r.__c?g=(p=t.__c=r.__c).__=p.__E:("prototype"in x&&x.prototype.render?t.__c=p=new x(y,v):(t.__c=p=new J(y,v),p.constructor=x,p.render=fe),b&&b.sub(p),p.props=y,p.state||(p.state={}),p.context=v,p.__n=n,d=p.__d=!0,p.__h=[],p._sb=[]),null==p.__s&&(p.__s=p.state),null!=x.getDerivedStateFromProps&&(p.__s==p.state&&(p.__s=q({},p.__s)),q(p.__s,x.getDerivedStateFromProps(y,p.__s))),h=p.props,f=p.state,p.__v=t,d)null==x.getDerivedStateFromProps&&null!=p.componentWillMount&&p.componentWillMount(),null!=p.componentDidMount&&p.__h.push(p.componentDidMount);else{if(null==x.getDerivedStateFromProps&&y!==h&&null!=p.componentWillReceiveProps&&p.componentWillReceiveProps(y,v),!p.__e&&(null!=p.shouldComponentUpdate&&!1===p.shouldComponentUpdate(y,p.__s,v)||t.__v===r.__v)){for(t.__v!==r.__v&&(p.props=y,p.state=p.__s,p.__d=!1),t.__e=r.__e,t.__k=r.__k,t.__k.forEach(function(e){e&&(e.__=t)}),_=0;_<p._sb.length;_++)p.__h.push(p._sb[_]);p._sb=[],p.__h.length&&a.push(p);break e}null!=p.componentWillUpdate&&p.componentWillUpdate(y,p.__s,v),null!=p.componentDidUpdate&&p.__h.push(function(){p.componentDidUpdate(h,f,m)})}
vendor: 3,456 bytes, line 50
50if(p.context=v,p.props=y,p.__P=e,p.__e=!1,S=N.__r,E=0,"prototype"in x&&x.prototype.render){for(p.state=p.__s,p.__d=!1,S&&S(t),u=p.render(p.props,p.state,p.context),T=0;T<p._sb.length;T++)p.__h.push(p._sb[T]);p._sb=[]}else do{p.__d=!1,S&&S(t),u=p.render(p.props,p.state,p.context),p.state=p.__s}while(p.__d&&++E<25);p.state=p.__s,null!=p.getChildContext&&(n=q(q({},n),p.getChildContext())),d||null==p.getSnapshotBeforeUpdate||(m=p.getSnapshotBeforeUpdate(h,f)),re(e,G(w=null!=u&&u.type===K&&null==u.key?u.props.children:u)?w:[w],t,r,n,i,o,a,s,l,c),p.base=t.__e,t.__u&=-161,p.__h.length&&a.push(p),g&&(p.__E=p.__=null)}catch(e){t.__v=null,l||null!=o?(t.__e=s,t.__u|=l?160:32,o[o.indexOf(s)]=null):(t.__e=r.__e,t.__k=r.__k),N.__e(e,t,r)}else null==o&&t.__v===r.__v?(t.__k=r.__k,t.__e=r.__e):t.__e=pe(r.__e,t,r,n,i,o,a,l,c);(u=N.diffed)&&u(t)}function ue(e,t,r){for(var n=0;n<r.length;n++)de(r[n],r[++n],r[++n]);N.__c&&N.__c(t,e),e.some(function(t){try{e=t.__h,t.__h=[],e.some(function(e){e.call(t)})}catch(e){N.__e(e,t.__v)}})}function pe(e,t,r,n,i,o,a,s,l){var c,u,p,d,h,f,m,g=r.props,y=t.props,b=t.type;if("svg"===b&&(i=!0),null!=o)for(c=0;c<o.length;c++)if((h=o[c])&&"setAttribute"in h==!!b&&(b?h.localName===b:3===h.nodeType)){e=h,o[c]=null;break}if(null==e){if(null===b)return document.createTextNode(y);e=i?document.createElementNS("http://www.w3.org/2000/svg",b):document.createElement(b,y.is&&y),o=null,s=!1}if(null===b)g===y||s&&e.data===y||(e.data=y);else{if(o=o&&M.call(e.childNodes),g=r.props||H,!s&&null!=o)for(g={},c=0;c<e.attributes.length;c++)g[(h=e.attributes[c]).name]=h.value;for(c in g)h=g[c],"children"==c||("dangerouslySetInnerHTML"==c?p=h:"key"===c||c in y||ae(e,c,null,h,i));for(c in y)h=y[c],"children"==c?d=h:"dangerouslySetInnerHTML"==c?u=h:"value"==c?f=h:"checked"==c?m=h:"key"===c||s&&"function"!=typeof h||g[c]===h||ae(e,c,h,g[c],i);if(u)s||p&&(u.__html===p.__html||u.__html===e.innerHTML)||(e.innerHTML=u.__html),t.__k=[];else if(p&&(e.innerHTML=""),re(e,G(d)?d:[d],t,r,n,i&&"foreignObject"!==b,o,a,o?o[0]:r.__k&&Q(r,0),s,l),null!=o)for(c=o.length;c--;)null!=o[c]&&$(o[c]);s||(c="value",void 0!==f&&(f!==e[c]||"progress"===b&&!f||"option"===b&&f!==g[c])&&ae(e,c,f,g[c],!1),c="checked",void 0!==m&&m!==e[c]&&ae(e,c,m,g[c],!1))}return e}function de(e,t,r){try{"function"==typeof e?e(t):e.current=t}catch(e){N.__e(e,r)}}function he(e,t,r){var n,i;if(N.unmount&&N.unmount(e),(n=e.ref)&&(n.current&&n.current!==e.__e||de(n,null,t)),null!=(n=e.__c)){if(n.componentWillUnmount)try{n.componentWillUnmount()}catch(e){N.__e(e,t)}n.base=n.__P=null,e.__c=void 0}if(n=e.__k)for(i=0;i<n.length;i++)n[i]&&he(n[i],t,r||"function"!=typeof e.type);r||null==e.__e||$(e.__e),e.__=e.__e=e.__d=void 0}function fe(e,t,r){return this.constructor(e,r)}M=V.slice,N={__e:function(e,t,r,n){for(var i,o,a;t=t.__;)if((i=t.__c)&&!i.__)try{if((o=i.constructor)&&null!=o.getDerivedStateFromError&&(i.setState(o.getDerivedStateFromError(e)),a=i.__d),null!=i.componentDidCatch&&(i.componentDidCatch(e,n||{}),a=i.__d),a)return i.__E=i}catch(t){e=t}throw e}},L=0,J.prototype.setState=function(e,t){var r;r=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=q({},this.state),"function"==typeof e&&(e=e(q({},r),this.props)),e&&q(r,e),null!=e&&this.__v&&(t&&this._sb.push(t),ee(this))},J.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),ee(this))},J.prototype.render=K,F=[],U="function"==typeof Promise?Promise.prototype.then.bind(Prom
vendor: 4,735 bytes, line 50
50ise.resolve()):setTimeout,j=function(e,t){return e.__v.__b-t.__v.__b},te.__r=0;var me,ge,ye,be,ve=0,_e=[],Se=[],Ee=N,Te=Ee.__b,we=Ee.__r,xe=Ee.diffed,Oe=Ee.__c,Ie=Ee.unmount,Ae=Ee.__;function ke(e,t){Ee.__h&&Ee.__h(ge,e,ve||t),ve=0;var r=ge.__H||(ge.__H={__:[],__h:[]});return e>=r.__.length&&r.__.push({__V:Se}),r.__[e]}function Re(e){return ve=1,Ce(He,e)}function Ce(e,t,r){var n=ke(me++,2);if(n.t=e,!n.__c&&(n.__=[r?r(t):He(void 0,t),function(e){var t=n.__N?n.__N[0]:n.__[0],r=n.t(t,e);t!==r&&(n.__N=[r,n.__[1]],n.__c.setState({}))}],n.__c=ge,!ge.u)){var i=function(e,t,r){if(!n.__c.__H)return!0;var i=n.__c.__H.__.filter(function(e){return!!e.__c});if(i.every(function(e){return!e.__N}))return!o||o.call(this,e,t,r);var a=!1;return i.forEach(function(e){if(e.__N){var t=e.__[0];e.__=e.__N,e.__N=void 0,t!==e.__[0]&&(a=!0)}}),!(!a&&n.__c.props===e)&&(!o||o.call(this,e,t,r))};ge.u=!0;var o=ge.shouldComponentUpdate,a=ge.componentWillUpdate;ge.componentWillUpdate=function(e,t,r){if(this.__e){var n=o;o=void 0,i(e,t,r),o=n}a&&a.call(this,e,t,r)},ge.shouldComponentUpdate=i}return n.__N||n.__}function Pe(e,t){var r=ke(me++,4);!Ee.__s&&je(r.__H,t)&&(r.__=e,r.i=t,ge.__h.push(r))}function De(e,t){var r=ke(me++,7);return je(r.__H,t)?(r.__V=e(),r.i=t,r.__h=e,r.__V):r.__}function Me(e,t){return ve=8,De(function(){return e},t)}function Ne(){for(var e;e=_e.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(Be),e.__H.__h.forEach(Ue),e.__H.__h=[]}catch(t){e.__H.__h=[],Ee.__e(t,e.__v)}}Ee.__b=function(e){ge=null,Te&&Te(e)},Ee.__=function(e,t){t.__k&&t.__k.__m&&(e.__m=t.__k.__m),Ae&&Ae(e,t)},Ee.__r=function(e){we&&we(e),me=0;var t=(ge=e.__c).__H;t&&(ye===ge?(t.__h=[],ge.__h=[],t.__.forEach(function(e){e.__N&&(e.__=e.__N),e.__V=Se,e.__N=e.i=void 0})):(t.__h.forEach(Be),t.__h.forEach(Ue),t.__h=[],me=0)),ye=ge},Ee.diffed=function(e){xe&&xe(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(1!==_e.push(t)&&be===Ee.requestAnimationFrame||((be=Ee.requestAnimationFrame)||Fe)(Ne)),t.__H.__.forEach(function(e){e.i&&(e.__H=e.i),e.__V!==Se&&(e.__=e.__V),e.i=void 0,e.__V=Se})),ye=ge=null},Ee.__c=function(e,t){t.some(function(e){try{e.__h.forEach(Be),e.__h=e.__h.filter(function(e){return!e.__||Ue(e)})}catch(r){t.some(function(e){e.__h&&(e.__h=[])}),t=[],Ee.__e(r,e.__v)}}),Oe&&Oe(e,t)},Ee.unmount=function(e){Ie&&Ie(e);var t,r=e.__c;r&&r.__H&&(r.__H.__.forEach(function(e){try{Be(e)}catch(e){t=e}}),r.__H=void 0,t&&Ee.__e(t,r.__v))};var Le="function"==typeof requestAnimationFrame;function Fe(e){var t,r=function(){clearTimeout(n),Le&&cancelAnimationFrame(t),setTimeout(e)},n=setTimeout(r,100);Le&&(t=requestAnimationFrame(r))}function Be(e){var t=ge,r=e.__c;"function"==typeof r&&(e.__c=void 0,r()),ge=t}function Ue(e){var t=ge;e.__c=e.__(),ge=t}function je(e,t){return!e||e.length!==t.length||t.some(function(t,r){return t!==e[r]})}function He(e,t){return"function"==typeof t?t(e):t}const Ve=Object.defineProperty({__proto__:null,useCallback:Me,useContext:function(e){var t=ge.context[e.__c],r=ke(me++,9);return r.c=e,t?(null==r.__&&(r.__=!0,t.sub(ge)),t.props.value):e.__},useDebugValue:function(e,t){Ee.useDebugValue&&Ee.useDebugValue(t?t(e):e)},useEffect:function(e,t){var r=ke(me++,3);!Ee.__s&&je(r.__H,t)&&(r.__=e,r.i=t,ge.__H.__h.push(r))},useErrorBoundary:function(e){var t=ke(me++,10),r=Re();return t.__=e,ge.componentDidCatch||(ge.componentDidCatch=function(e,n){t.__&&t.__(e,n),r[1](e)}),[r[0],function(){r[1](void 0)}]},useId:function(){var e=ke(me++,11);if(!e.__){for(var t=ge.__v;null!==t&&!t.__m&&null!==t.__;)t=t.__;var r=t.__m||(t.__m=[0,0]);e.__="P"+r[0]+"-"+r[1]++}return e.__},useImperativeHandle:function(e,t,r){ve=6,Pe(function(){return"function"==typeof e?(e(t()),function(){return e(null)}):e?(e.current=t(),function(){return e.current=null}):void 0},null==r?r:r.concat(e))},useLayoutEffect:Pe,useMemo:De,useReducer:Ce,useRef:function(e){return ve=5,De(function(){return{current:e}},[])},useState:Re},Symbol.toStringTag,{value:"Module"});function ze(){const e=e=>p.createElementNS("http://www.w3.org/2000/svg",e),t=x(e("svg"),{width:"32",height:"30",viewBox:"0 0 72 66",fill:"inherit"}),r=x(e("path"),{transform:"translate(11, 11)",d:"M29,2.26a4.67,4.67,0,0,0-8,0L14.42,13.53A32.21,32.21,0,0,1,32.17,40.19H27.55A27.68,27.68,0,0,0,12.09,17.47L6,28a15.92,15.92,0,0,1,9.23,12.17H4.62A.76.76,0,0,1,4,39.06l2.94-5a10.74,10.74,0,0,0-3.36-1.9l-2.91,5a4.54,4.54,0,0,0,1.69,6.24A4.66,4.66,0,0,0,4.62,44H19.15a19.4,19.4,0,0,0-8-17.31l2.31-4A23.87,23.87,0,0,1,23.76,44H36.07a35.88,35.88,0,0,0-16.41-31.8l4.67-8a.77.77,0,0,1,1.05-.27c.53.29,20.29,34.77,20.66,35.17a.76.76,0,0,1-.68,1.13H40.6q.09,1.91,0,3.81h4.78A4.59,4.59,0,0,0,50,39.43a4.49,4.49,0,0,0-.62-2.28Z"});return t.appendChild(r),t}function Ge({options:e}){const t=De(()=>
50({__html:ze().outerHTML}),[]);return W("h2",{class:"dialog__header"},W("span",{class:"dialog__title"},e.formTitle),e.showBranding?W("a",{class:"brand-link",target:"_blank",href:"https://sentry.io/welcome/",title:"Powered by Sentry",rel:"noopener noreferrer",dangerouslySetInnerHTML:t}):null)}function qe(e,t){const r=e.get(t);return"string"==typeof r?r.trim():""}function $e({options:e,defaultEmail:t,defaultName:r,onFormClose:n,onSubmit:i,onSubmitSuccess:o,onSubmitError:a,showEmail:s,showName:c,screenshotInput:u}){const{tags:p,addScreenshotButtonLabel:d,removeScreenshotButtonLabel:h,cancelButtonLabel:f,emailLabel:m,emailPlaceholder:g,isEmailRequired:y,isNameRequired:b,messageLabel:v,messagePlaceholder:_,nameLabel:S,namePlaceholder:E,submitButtonLabel:w,isRequiredLabel:x}=e,[O,I]=Re(!1),[A,k]=Re(null),[R,C]=Re(!1),P=u?.input,[D,M]=Re(null),N=Me(e=>{M(e),C(!1)},[]),L=Me(e=>{const t=function(e,t){const r=[];return t.isNameRequired&&!e.name&&r.push(t.nameLabel),t.isEmailRequired&&!e.email&&r.push(t.emailLabel),e.message||r.push(t.messageLabel),r}(e,{emailLabel:m,isEmailRequired:y,isNameRequired:b,messageLabel:v,nameLabel:S});return t.length>0?k(`Please enter in the following required fields: ${t.join(", ")}`):k(null),0===t.length},[m,y,b,v,S]),F=Me(async e=>{I(!0);try{if(e.preventDefault(),!(e.target instanceof HTMLFormElement))return;const t=new FormData(e.target),r=await(u&&R?u.value():void 0),n={name:qe(t,"name"),email:qe(t,"email"),message:qe(t,"message"),attachments:r?[r]:void 0};if(!L(n))return;try{const e=await i({name:n.name,email:n.email,message:n.message,source:"widget",tags:p},{attachments:n.attachments});o(n,e)}catch(e){T&&l.debug.error(e);const t=e instanceof Error?e:new Error(String(e));k(t.message),a(t)}}finally{I(!1)}},[u&&R,o,a]);return W("form",{class:"form",onSubmit:F},P&&R?W(P,{onError:N}):null,W("fieldset",{class:"form__right","data-sentry-feedback":!0,disabled:O},W("div",{class:"form__top"},A?W("div",{class:"form__error-container"},A):null,c?W("label",{for:"name",class:"form__label"},W(We,{label:S,isRequiredLabel:x,isRequired:b}),W("input",{class:"form__input",defaultValue:r,id:"name",name:"name",placeholder:E,required:b,type:"text"})):W("input",{"aria-hidden":!0,value:r,name:"name",type:"hidden"}),s?W("label",{for:"email",class:"form__label"},W(We,{label:m,isRequiredLabel:x,isRequired:y}),W("input",{class:"form__input",defaultValue:t,id:"email",name:"email",placeholder:g,required:y,type:"email"})):W("input",{"aria-hidden":!0,value:t,name:"email",type:"hidden"}),W("label",{for:"message",class:"form__label"},W(We,{label:v,isRequiredLabel:x,isRequired:!0}),W("textarea",{autoFocus:!0,class:"form__input form__input--textarea",id:"message",name:"message",placeholder:_,required:!0,rows:5})),P?W("label",{for:"screenshot",class:"form__label"},W("button",{class:"btn btn--default",disabled:O,type:"button",onClick:()=>{M(null),C(e=>!e)}},R?h:d),D?W("div",{class:"form__error-container"},D.message):null):null),W("div",{class:"btn-group"},W("button",{class:"btn btn--primary",disabled:O,type:"submit"},w),W("button",{class:"btn btn--default",disabled:O,type:"button",onClick:n},f))))}function We({label:e,isRequired:t,isRequiredLabel:r}){return W("span",{class:"form__label__text"},e,t&&W("span",{class:"form__label__text--required"},r))}function Ye(){const e=e=>u.document.createElementNS("http://www.w3.org/2000/svg",e),t=x(e("svg"),{width:"16",height:"17",viewBox:"0 0 16 17",fill:"inherit"}),r=x(e("g"),{clipPath:"url(#clip0_57_156)"}),n=x(e("path"),{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M3.55544 15.1518C4.87103 16.0308 6.41775 16.5 8 16.5C10.1217 16.5 12.1566 15.6571 13.6569 14.1569C15.1571 12.6566 16 10.6217 16 8.5C16 6.91775 15.5308 5.37103 14.6518 4.05544C13.7727 2.73985 12.5233 1.71447 11.0615 1.10897C9.59966 0.503466 7.99113 0.34504 6.43928 0.653721C4.88743 0.962403 3.46197 1.72433 2.34315 2.84315C1.22433 3.96197 0.462403 5.38743 0.153721 6.93928C-0.15496 8.49113 0.00346625 10.0997 0.608967 11.5615C1.21447 13.0233 2.23985 14.2727 3.55544 15.1518ZM4.40546 3.1204C5.46945 2.40946 6.72036 2.03 8 2.03C9.71595 2.03 11.3616 2.71166 12.575 3.92502C13.7883 5.13838 14.47 6.78405 14.47 8.5C14.47 9.77965 14.0905 11.0306 13.3796 12.0945C12.6687 13.1585 11.6582 13.9878 10.476 14.4775C9.29373 14.9672 7.99283 15.0953 6.73777 14.8457C5.48271 14.596 4.32987 13.9798 3.42502 13.075C2.52018 12.1701 1.90397 11.0173 1.65432 9.76224C1.40468 8.50718 1.5328 7.20628 2.0225 6.02404C2.5122 4.8418 3.34148 3.83133 4.40546 3.1204Z"}),i=x(e("path"),{d:"M6.68775 12.4297C6.78586 12.4745 6.89218 12.4984 7 12.5C7.11275 12.4955 7.22315 12.4664 7.32337 12.4145C7.4236 12.3627 7.51121 12.2894 7.58 12.2L12 5.63999C12.0848 5.47724 12.1071 5.28902 12.0625 5.11098C12.0178 4.93294 11.9095 4.77744 11.7579 4.67392C11.6064 4.57041 11.4221 4.52608 11.24 4.54931C11.0579 4.57254 10.8907 4.66173 
5010.77 4.79999L6.88 10.57L5.13 8.56999C5.06508 8.49566 4.98613 8.43488 4.89768 8.39111C4.80922 8.34735 4.713 8.32148 4.61453 8.31498C4.51605 8.30847 4.41727 8.32147 4.32382 8.35322C4.23038 8.38497 4.14413 8.43484 4.07 8.49999C3.92511 8.63217 3.83692 8.81523 3.82387 9.01092C3.81083 9.2066 3.87393 9.39976 4 9.54999L6.43 12.24C6.50187 12.3204 6.58964 12.385 6.68775 12.4297Z"});t.appendChild(r).append(i,n);const o=e("defs"),a=x(e("clipPath"),{id:"clip0_57_156"}),s=x(e("rect"),{width:"16",height:"16",fill:"white",transform:"translate(0 0.5)"});return a.appendChild(s),o.appendChild(a),t.appendChild(o).appendChild(a).appendChild(s),t}function Ke({open:e,onFormSubmitted:t,...r}){const n=r.options,i=De(()=>({__html:Ye().outerHTML}),[]),[o,a]=Re(null),s=Me(()=>{o&&(clearTimeout(o),a(null)),t()},[o]),l=Me((e,n)=>{r.onSubmitSuccess(e,n),a(setTimeout(()=>{t(),a(null)},5e3))},[t]);return W(K,null,o?W("div",{class:"success__position",onClick:s},W("div",{class:"success__content"},n.successMessageText,W("span",{class:"success__icon",dangerouslySetInnerHTML:i}))):W("dialog",{class:"dialog",onClick:n.onFormClose,open:e},W("div",{class:"dialog__position"},W("div",{class:"dialog__content",onClick:e=>{e.stopPropagation()}},W(Ge,{options:n}),W($e,{...r,onSubmitSuccess:l})))))}const Je=()=>({name:"FeedbackModal",setupOnce(){},createDialog:({options:e,screenshotIntegration:t,sendFeedback:r,shadow:i})=>{const o=i,a=e.useSentryUser,s=function(){const e=(0,n.getCurrentScope)().getUser(),t=(0,n.getIsolationScope)().getUser(),r=(0,n.getGlobalScope)().getUser();return e&&Object.keys(e).length?e:t&&Object.keys(t).length?t:r}(),l=p.createElement("div"),c=function(e){const t=p.createElement("style");return t.textContent="\n:host {\n  --dialog-inset: var(--inset);\n}\n\n\n.dialog {\n  position: fixed;\n  z-index: var(--z-index);\n  margin: 0;\n  inset: 0;\n\n  display: flex;\n  align-items: center;\n  justify-content: center;\n  padding: 0;\n  height: 100vh;\n  width: 100vw;\n\n  color: var(--dialog-color, var(--foreground));\n  fill: var(--dialog-color, var(--foreground));\n  line-height: 1.75em;\n\n  background-color: rgba(0, 0, 0, 0.05);\n  border: none;\n  inset: 0;\n  opacity: 1;\n  transition: opacity 0.2s ease-in-out;\n}\n\n.dialog__position {\n  position: fixed;\n  z-index: var(--z-index);\n  inset: var(--dialog-inset);\n  padding: var(--page-margin);\n  display: flex;\n  max-height: calc(100vh - (2 * var(--page-margin)));\n}\n@media (max-width: 600px) {\n  .dialog__position {\n    inset: var(--page-margin);\n    padding: 0;\n  }\n}\n\n.dialog__position:has(.editor) {\n  inset: var(--page-margin);\n  padding: 0;\n}\n\n.dialog:not([open]) {\n  opacity: 0;\n  pointer-events: none;\n  visibility: hidden;\n}\n.dialog:not([open]) .dialog__content {\n  transform: translate(0, -16px) scale(0.98);\n}\n\n.dialog__content {\n  display: flex;\n  flex-direction: column;\n  gap: 16px;\n  padding: var(--dialog-padding, 24px);\n  max-width: 100%;\n  width: 100%;\n  max-height: 100%;\n  overflow: auto;\n\n  background: var(--dialog-background, var(--background));\n  border-radius: var(--dialog-border-radius, 20px);\n  border: var(--dialog-border, var(--border));
50\n  box-shadow: var(--dialog-box-shadow, var(--box-shadow));\n  transform: translate(0, 0) scale(1);\n  transition: transform 0.2s ease-in-out;\n}\n\n\n\n.dialog__header {\n  display: flex;\n  gap: 4px;\n  justify-content: space-between;\n  font-weight: var(--dialog-header-weight, 600);\n  margin: 0;\n}\n.dialog__title {\n  align-self: center;\n  width: var(--form-width, 272px);\n}\n\n@media (max-width: 600px) {\n  .dialog__title {\n    width: auto;\n  }\n}\n\n.dialog__position:has(.editor) .dialog__title {\n  width: auto;\n}\n\n\n.brand-link {\n  display: inline-flex;\n}\n.brand-link:focus-visible {\n  outline: var(--outline);\n}\n\n\n.form {\n  display: flex;\n  overflow: auto;\n  flex-direction: row;\n  gap: 16px;\n  flex: 1 0;\n}\n\n.form fieldset {\n  border: none;\n  margin: 0;\n  padding: 0;\n}\n\n.form__right {\n  flex: 0 0 auto;\n  display: flex;\n  overflow: auto;\n  flex-direction: column;\n  justify-content: space-between;\n  gap: 20px;\n  width: var(--form-width, 100%);\n}\n\n.dialog__position:has(.editor) .form__right {\n  width: var(--form-width, 272px);\n}\n\n.form__top {\n  display: flex;\n  flex-direction: column;\n  gap: 8px;\n}\n\n.form__error-container {\n  color: var(--error-color);\n  fill: var(--error-color);\n}\n\n.form__label {\n  display: flex;\n  flex-direction: column;\n  gap: 4px;\n  margin: 0px;\n}\n\n.form__label__text {\n  display: flex;\n  gap: 4px;\n  align-items: center;\n}\n\n.form__label__text--required {\n  font-size: 0.85em;\n}\n\n.form__input {\n  font-family: inherit;\n  line-height: inherit;\n  background: transparent;\n  box-sizing: border-box;\n  border: var(--input-border, var(--border));\n  border-radius: var(--input-border-radius, 6px);\n  color: var(--input-color, inherit);\n  fill: var(--input-color, inherit);\n  font-size: var(--input-font-size, inherit);\n  font-weight: var(--input-font-weight, 500);\n  padding: 6px 12px;\n}\n\n.form__input::placeholder {\n  opacity: 0.65;\n  color: var(--input-placeholder-color, inherit);\n  filter: var(--interactive-filter);\n}\n\n.form__input:focus-visible {\n  outline: var(--input-focus-outline, var(--outline));\n}\n\n.form__input--textarea {\n  font-family: inherit;\n  resize: vertical;\n}\n\n.error {\n  color: var(--error-color);\n  fill: var(--error-color);\n}\n\n\n.btn-group {\n  display: grid;\n  gap: 8px;\n}\n\n.btn {\n  line-height: inherit;\n  border: var(--button-border, var(--border));\n  border-radius: var(--button-border-radius, 6px);\n  cursor: pointer;\n  font-family: inherit;\n  font-size: var(--button-font-size, inherit);\n  font-weight: var(--button-font-weight, 600);\n  padding: var(--button-padding, 6px 16px);\n}\n.btn[disabled] {\n  opacity: 0.6;\n  pointer-events: none;\n}\n\n.btn--primary {\n  color: var(--button-primary-color, var(--accent-foreground));\n  fill: var(--button-primary-color, var(--accent-foreground));\n  background: var(--button-primary-background, var(--accent-background));\n  border: var(--button-primary-border, var(--border));\n  border-radius: var(--button-primary-border-radius, 6px);\n  font-weight: var(--button-primary-font-weight, 500);\n}\n.btn--primary:hover {\n  color: var(--button-primary-hover-color, var(--accent-foreground));\n  fill: var(--button-primary-hover-color, var(--accent-foreground));\n  background: var(--button-primary-hover-background, var(--accent-background));\n  filter: var(--interactive-filter);\n}\n.btn--primary:focus-visible {\n  background: var(--button-primary-hover-background, var(--accent-background));\n  filter: var(--interactive-filter);\n  outline: var(--button-primary-focus-outline, var(--outline));\n}\n\n.btn--default {\n  color: var(--button-color, var(--foreground));\n  fill: var(--button-color, var(--foreground));\n  background: var(--button-background, var(--background));\n  border: var(--button-border, var(--border));\n  border-radius: var(--button-border-radius, 6px);\n  font-weight: var(--button-font-weight, 500);\n}\n.btn--default:hover {\n  color: var(--button-color, var(--foreground));\n  fill: var(--button-color, var(--foreground));\n  background: var(--button-hover-background, var(--background));\n  filter: var(--interactive-filter);\n}\n.btn--default:focus-visible {\n  background: var(--button-hover-background, var(--background));\n  filter: var(--interactive-filter);\n  outline: var(--button-focus-outline, var(--outline));\n}\n\n\n.success__position {\n  position: fixed;\n  inset: var(--dialog-inset);\n  padding: var(--page-margin);\n  z-index: var(--z-index);\n}\n.success__content {\n  background: var(--success-background, var(--background));\n  border: var(--success-border, var(--border));\n  border-radius: var(--success-border-radius, 1.7em/50%);
50\n  box-shadow: var(--success-box-shadow, var(--box-shadow));\n  font-weight: var(--success-font-weight, 600);\n  color: var(--success-color);\n  fill: var(--success-color);\n  padding: 12px 24px;\n  line-height: 1.75em;\n\n  display: grid;\n  align-items: center;\n  grid-auto-flow: column;\n  gap: 6px;\n  cursor: default;\n}\n\n.success__icon {\n  display: flex;\n}\n\n",e&&t.setAttribute("nonce",e),t}(e.styleNonce);let u="";const d={get el(){return l},appendToDom(){o.contains(c)||o.contains(l)||(o.appendChild(c),o.appendChild(l))},removeFromDom(){l.remove(),c.remove(),p.body.style.overflow=u},open(){f(!0),e.onFormOpen?.(),(0,n.getClient)()?.emit("openFeedbackWidget"),u=p.body.style.overflow,p.body.style.overflow="hidden"},close(){f(!1),p.body.style.overflow=u}},h=t?.createInput({h:W,hooks:Ve,dialog:d,options:e}),f=t=>{!function(e,t){var r,n,i;N.__&&N.__(e,t),r=t.__k,n=[],i=[],ce(t,e=t.__k=W(K,null,[e]),r||H,H,void 0!==t.ownerSVGElement,r?null:t.firstChild?M.call(t.childNodes):null,n,r?r.__e:t.firstChild,!1,i),e.__d=void 0,ue(n,e,i)}(W(Ke,{options:e,screenshotInput:h,showName:e.showName||e.isNameRequired,showEmail:e.showEmail||e.isEmailRequired,defaultName:String(a&&s?.[a.name]||""),defaultEmail:String(a&&s?.[a.email]||""),onFormClose:()=>{f(!1),e.onFormClose?.()},onSubmit:r,onSubmitSuccess:(t,r)=>{f(!1),e.onSubmitSuccess?.(t,r)},onSubmitError:t=>{e.onSubmitError?.(t)},onFormSubmitted:()=>{e.onFormSubmitted?.()},open:t}),l)};return d}});function Qe(e){const t=p.createElement("style"),r="#1A141F",n="#302735";return t.textContent=`\n.editor {\n  display: flex;\n  flex-grow: 1;\n  flex-direction: column;\n}\n\n.editor__image-container {\n  justify-items: center;\n  padding: 15px;\n  position: relative;\n  height: 100%;\n  border-radius: var(--menu-border-radius, 6px);\n\n  background-color: ${r};\n  background-image: repeating-linear-gradient(\n      -145deg,\n      transparent,\n      transparent 8px,\n      ${r} 8px,\n      ${r} 11px\n    ),\n    repeating-linear-gradient(\n      -45deg,\n      transparent,\n      transparent 15px,\n      ${n} 15px,\n      ${n} 16px\n    );\n}\n\n.editor__canvas-container {\n  width: 100%;\n  height: 100%;\n  position: relative;\n  display: flex;\n  align-items: center;\n  justify-content: center;\n}\n\n.editor__canvas-container > * {\n  object-fit: contain;\n  position: absolute;\n}\n\n.editor__tool-container {\n  padding-top: 8px;\n  display: flex;\n  justify-content: center;\n}\n\n.editor__tool-bar {\n  display: flex;\n  gap: 8px;\n}\n\n.editor__tool {\n  display: flex;\n  padding: 8px 12px;\n  justify-content: center;\n  align-items: center;\n  border: var(--button-border, var(--border));\n  border-radius: var(--button-border-radius, 6px);\n  background: var(--button-background, var(--background));\n  color: var(--button-color, var(--foreground));\n}\n\n.editor__tool--active {\n  background: var(--button-primary-background, var(--accent-background));\n  color: var(--button-primary-color, var(--accent-foreground));\n}\n\n.editor__rect {\n  position: absolute;\n  z-index: 2;\n}\n\n.editor__rect button {\n  opacity: 0;\n  position: absolute;\n  top: -12px;\n  right: -12px;\n  cursor: pointer;\n  padding: 0;\n  z-index: 3;\n  border: none;\n  background: none;\n}\n\n.editor__rect:hover button {\n  opacity: 1;\n}\n`,e&&t.setAttribute("nonce",e),t}function Xe({hooks:e}){return function({onBeforeScreenshot:t,onScreenshot:r,onAfterScreenshot:n,onError:i}){const o=function(){const[t,r]=e.useState(u.devicePixelRatio??1);return e.useEffect(()=>{const e=()=>{r(u.devicePixelRatio)},t=matchMedia(`(resolution: ${u.devicePixelRatio}dppx)`);return t.addEventListener("change",e),()=>{t.removeEventListener("change",e)}},[]),t}();e.useEffect(()=>{(async()=>{t();const e=await d.mediaDevices.getDisplayMedia({video:{width:u.innerWidth*o,height:u.innerHeight*o},audio:!1,monitorTypeSurfaces:"exclude",preferCurrentTab:!0,selfBrowserSurface:"include",surfaceSwitching:"exclude"}),i=p.createElement("video");await new Promise((t,n)=>{i.srcObject=e,i.onloadedmetadata=()=>{r(i,o),e.getTracks().forEach(e=>e.stop()),t()},i.play().catch(n)}),n()})().catch(i)},[])}}function Ze(e,t,r){if(!e)return;const n=e.getContext("2d",t);n&&r(e,n)}function et(e,t){Ze(e,{alpha:!0},(e,r)=>{r.drawImage(t,0,0,t.width,t.height,0,0,e.width,e.height)})}function tt(e,t,r){Ze(e,{alpha:!0},(e,n)=>{r.length&&(n.fillStyle="rgba(0, 0, 0, 0.25)",n.fillRect(0,0,e.width,e.height)),r.forEach(e
50=>{!function(e,t,r){switch(e.type){case"highlight":t.shadowColor="rgba(0, 0, 0, 0.7)",t.shadowBlur=50,t.fillStyle=r,t.fillRect(e.x-1,e.y-1,e.w+2,e.h+2),t.clearRect(e.x,e.y,e.w,e.h);break;case"hide":t.fillStyle="rgb(0, 0, 0)",t.fillRect(e.x,e.y,e.w,e.h)}}(e,n,t)})})}function rt({h:e,hooks:t,outputBuffer:r,dialog:n,options:i}){const o=Xe({hooks:t}),a=function({h:e}){return function({action:t,setAction:r,options:n}){return e("div",{class:"editor__tool-container"},e("div",{class:"editor__tool-bar"},e("button",{type:"button",class:"editor__tool "+("highlight"===t?"editor__tool--active":""),onClick:()=>{r("highlight"===t?"":"highlight")}},n.highlightToolText),e("button",{type:"button",class:"editor__tool "+("hide"===t?"editor__tool--active":""),onClick:()=>{r("hide"===t?"":"hide")}},n.hideToolText)))}}({h:e}),s=function({h:e}){return function(){return e("svg",{"data-test-id":"icon-close",viewBox:"0 0 16 16",fill:"#2B2233",height:"25px",width:"25px"},e("circle",{r:"7",cx:"8",cy:"8",fill:"white"}),e("path",{strokeWidth:"1.5",d:"M8,16a8,8,0,1,1,8-8A8,8,0,0,1,8,16ZM8,1.53A6.47,6.47,0,1,0,14.47,8,6.47,6.47,0,0,0,8,1.53Z"}),e("path",{strokeWidth:"1.5",d:"M5.34,11.41a.71.71,0,0,1-.53-.22.74.74,0,0,1,0-1.06l5.32-5.32a.75.75,0,0,1,1.06,1.06L5.87,11.19A.74.74,0,0,1,5.34,11.41Z"}),e("path",{strokeWidth:"1.5",d:"M10.66,11.41a.74.74,0,0,1-.53-.22L4.81,5.87A.75.75,0,0,1,5.87,4.81l5.32,5.32a.74.74,0,0,1,0,1.06A.71.71,0,0,1,10.66,11.41Z"}))}}({h:e}),l={__html:Qe(i.styleNonce).innerText},c=n.el.style,d=({screenshot:n})=>{const[o,c]=t.useState("highlight"),[d,h]=t.useState([]),f=t.useRef(null),m=t.useRef(null),g=t.useRef(null),y=t.useRef(null),[b,v]=t.useState(1),_=t.useMemo(()=>{const e=p.getElementById(i.id);if(!e)return"white";const t=getComputedStyle(e);return t.getPropertyValue("--button-primary-background")||t.getPropertyValue("--accent-background")},[i.id]);t.useLayoutEffect(()=>{const e=()=>{const t=f.current;t&&(Ze(n.canvas,{alpha:!1},e=>{const r=Math.min(t.clientWidth/e.width,t.clientHeight/e.height);v(r)}),0!==t.clientHeight&&0!==t.clientWidth||setTimeout(e,0))};return e(),u.addEventListener("resize",e),()=>{u.removeEventListener("resize",e)}},[n]);const S=t.useCallback((e,t)=>{Ze(e,{alpha:!0},(e,r)=>{r.scale(t,t),e.width=n.canvas.width,e.height=n.canvas.height})},[n]);t.useEffect(()=>{S(m.current,n.dpi),et(m.current,n.canvas)},[n]),t.useEffect(()=>{S(g.current,n.dpi),Ze(g.current,{alpha:!0},(e,t)=>{t.clearRect(0,0,e.width,e.height)}),tt(g.current,_,d)},[d,_]),t.useEffect(()=>{S(r,n.dpi),et(r,n.canvas),Ze(p.createElement("canvas"),{alpha:!0},(e,t)=>{t.scale(n.dpi,n.dpi),e.width=n.canvas.width,e.height=n.canvas.height,tt(e,_,d),et(r,e)})},[d,n,_]);const E=t.useCallback(e=>t=>{t.preventDefault(),t.stopPropagation(),h(t=>{const r=[...t];return r.splice(e,1),r})},[]),T={width:n.canvas.width*b+"px",height:n.canvas.height*b+"px"},w=e=>{e.stopPropagation()};return e("div",{class:"editor"},e("style",{nonce:i.styleNonce,dangerouslySetInnerHTML:l}),e("div",{class:"editor__image-container"},e("div",{class:"editor__canvas-container",ref:f},e("canvas",{ref:m,id:"background",style:T}),e("canvas",{ref:g,id:"foreground",style:T}),e("div",{ref:y,onMouseDown:e=>{if(!o||!y.current)return;const t=y.current.getBoundingClientRect(),r={type:o,x:e.offsetX/b,y:e.offsetY/b},n=(e,r)=>{const n=(r.clientX-t.x)/b,i=(r.clientY-t.y)/b;return{type:e.type,x:Math.min(e.x,n),y:Math.min(e.y,i),w:Math.abs(n-e.x),h:Math.abs(i-e.y)}},i=e=>{Ze(g.current,{alpha:!0},(e,t)=>{t.clearRect(0,0,e.width,e.height)}),tt(g.current,_,[...d,n(r,e)])},a=e=>{const t=n(r,e);t.w*b>=1&&t.h*b>=1&&h(e=>[...e,t]),p.removeEventListener("mousemove",i),p.removeEventListener("mouseup",a)};p.addEventListener("mousemove",i),p.addEventListener("mouseup",a)},style:T},d.map((t,r)=>e("div",{key:r,class:"editor__rect",style:{top:t.y*b+"px",left:t.x*b+"px",width:t.w*b+"px",height:t.h*b+"px"}},e("button",{"aria-label":i.removeHighlightText,onClick:E(r),onMouseDown:w,onMouseUp:w,type:"button"},e(s,null))))))),e(a,{options:i,action:o,setAction:c}))};return function({onError:n}){const[i,a]=t.useState();return o({onBeforeScreenshot:t.useCallback(()=>{c.display="none"},[]),onScreenshot:t.useCallback((e,t)=>{Ze(p.createElement("canvas"),{alpha:!1},(r,n)=>{n.scale(t,t),r.width=e.videoWidth,r.height=e.videoHeight,n.drawImage(e,0,0,r.width,r.height),a({canvas:r,dpi:t})}),r.width=e.videoWidth,r.height=e.videoHeight},[]),onAfterScreenshot:t.useCallback(()=>{c.display="block"},[]),onError:t.useCallback(e=>{c.display="block",n(e)},[])}),i?e(d,{screenshot:i}):e("div",null)}}const nt=()=>({name:"FeedbackScreenshot",setupOnce(){},createInput:({h:e,hooks:t,dialog:r,options:n})=>{const i=p.createElement("canvas");return{input:rt({h:e,hooks:t,outputBuffer:i,dialog:r,options:n}),value:async()=>{const e=await new Promise(e=>
50{i.toBlob(e,"image/png")});if(e){return{data:new Uint8Array(await e.arrayBuffer()),filename:"screenshot.png",contentType:"application/png"}}}}}})},(e,t,r)=>{"use strict";r.r(t),r.d(t,{captureFeedback:()=>i});var n=r(346);function i(e,t={},r=(0,n.getCurrentScope)()){const{message:i,name:o,email:a,url:s,source:l,associatedEventId:c,tags:u}=e,p={contexts:{feedback:{contact_email:a,name:o,message:i,url:s,source:l,associated_event_id:c}},type:"feedback",level:"info",tags:u},d=r?.getClient()||(0,n.getClient)();d&&d.emit("beforeSendFeedback",p,t);return r.captureEvent(p,t)}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{lazyLoadIntegration:()=>c});var n=r(346),i=r(349),o=r(1502);const a=["replayIntegration","replayCanvasIntegration","feedbackIntegration","feedbackModalIntegration","feedbackScreenshotIntegration","captureConsoleIntegration","contextLinesIntegration","linkedErrorsIntegration","dedupeIntegration","extraErrorDataIntegration","graphqlClientIntegration","httpClientIntegration","reportingObserverIntegration","rewriteFramesIntegration","browserProfilingIntegration","moduleMetadataIntegration","instrumentAnthropicAiClient","instrumentOpenAiClient","instrumentGoogleGenAIClient","instrumentStateGraph","instrumentLangGraph","createLangChainCallbackHandler","instrumentLangChainEmbeddings"],s={replayCanvasIntegration:"replay-canvas",feedbackModalIntegration:"feedback-modal",feedbackScreenshotIntegration:"feedback-screenshot"};const l=o.WINDOW;async function c(e,t){const r=a.includes(e)?function(e){return s[e]||e.replace("Integration","").toLowerCase()}(e):void 0,c=l.Sentry=l.Sentry||{};if(!r)throw new Error(`Cannot lazy load integration: ${e}`);const u=c[e];if("function"==typeof u&&!("_isShim"in u))return u;const p=function(e){const t=(0,n.getClient)(),r=t?.getOptions()?.cdnBaseUrl||"https://browser.sentry-cdn.com";return new URL(`/${i.SDK_VERSION}/${e}.min.js`,r).toString()}(r),d=o.WINDOW.document.createElement("script");d.src=p,d.crossOrigin="anonymous",d.referrerPolicy="strict-origin",t&&d.setAttribute("nonce",t);const h=new Promise((e,t)=>{d.addEventListener("load",()=>e()),d.addEventListener("error",t)}),f=o.WINDOW.document.currentScript,m=o.WINDOW.document.body||o.WINDOW.document.head||f?.parentElement;if(!m)throw new Error(`Could not find parent element to insert lazy-loaded ${e} script`);m.appendChild(d);try{await h}catch{throw new Error(`Error when loading integration: ${e}`)}const g=c[e];if("function"!=typeof g)throw new Error(`Could not load integration: ${e}`);return g}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{feedbackSyncIntegration:()=>i});var n=r(3337);const i=(0,n.buildFeedbackIntegration)({getModalIntegration:()=>n.feedbackModalIntegration,getScreenshotIntegration:()=>n.feedbackScreenshotIntegration})},(e,t,r)=>{"use strict";r.r(t),r.d(t,{bindScopeToEmitter:()=>l});var n=r(346);const i=["addListener","on","once","prependListener","prependOnceListener","addEventListener"],o=["removeListener","off","removeEventListener"],a=Symbol("SentryScopeBoundListeners");let s;function l(e,t=(0,n.getCurrentScope)()){const r=e;if(h(r))return e;d(r);for(const e of i)"function"==typeof r[e]&&(r[e]=u(r,r[e],t));for(const e of o)"function"==typeof r[e]&&(r[e]=p(r,r[e]));return"function"==typeof r.removeAllListeners&&(r.removeAllListeners=function(e,t){return function(...r){const n=h(e);if(n)if(0===r.length)d(e);else{const e=r[0];n.delete(e)}return t.apply(this,r)}}(r,r.removeAllListeners)),e}function c(e){return"function"==typeof e}function u(e,t,r){return function(...i){const o=i[0],a=i[1],l=i.slice(2);if(!c(a)||function(e){return void 0!==s&&(e===s||e.listener===s)}(a))return t.apply(this,i);const u=h(e)||d(e);let p=u.get(o);p||(p=new WeakMap,u.set(o,p));let f=p.get(a);f||(f=function(e,t){return function(...r){return(0,n.withScope)(t,()=>e.apply(this,r))}}(a,r),p.set(a,f));const m=s;s=f;try{return t.call(this,o,f,...l)}finally{s=m}}}function p(e,t){return function(...r){const n=r[0],i=r[1],o=r.slice(2),a=c(i)?h(e)?.get(n)?.get(i):void 0;return a?t.call(this,n,a,...o):t.apply(this,r)}}function d(e){const t=new Map;return e[a]=t,t}function h(e){return e[a]}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{MULTIPLEXED_TRANSPORT_EXTRA_KEY:()=>a,eventFromEnvelope:()=>s,makeMultiplexedTransport:()=>l});var n=r(1476),i=r(384),o=r(393);const a="MULTIPLEXED_TRANSPORT_EXTRA_KEY";function s(e,t){let r;return(0,o.forEachEnvelopeItem)(e,(e,n)=>(t.includes(n)&&(r=Array.isArray(e)?e[1]:void 0),!!r)),r}function l(e,t){return r=>{const l=e(r),c=new Map,u=t||(e=>{const t=e.getEvent();return t?.extra?.[a]&&Array.isArray(t.extra[a])?t.extra[a]:[]});function p(t,o){const a=o?`${t}:${o}
50`:t;let l=c.get(a);if(!l){const u=(0,i.dsnFromString)(t);if(!u)return;const p=(0,n.getEnvelopeEndpointWithUrlEncodedAuth)(u,r.tunnel);l=o?function(e,t){return r=>{const n=e(r);return{...n,send:async e=>{const r=s(e,["event","transaction","profile","replay_event"]);return r&&(r.release=t),n.send(e)}}}}(e,o)({...r,url:p}):e({...r,url:p}),c.set(a,l)}return[t,l]}return{send:async function(e){const t=u({envelope:e,getEvent:function(t){return s(e,t?.length?t:["event"])}}).map(e=>"string"==typeof e?p(e,void 0):p(e.dsn,e.release)).filter(e=>!!e),r=t.length?t:[["",l]];return(await Promise.all(r.map(([t,r])=>r.send(function(e,t){return(0,o.createEnvelope)(t?{...e[0],dsn:t}:e[0],e[1])}(e,t)))))[0]},flush:async function(e){const t=[...c.values(),l];return(await Promise.all(t.map(t=>t.flush(e)))).every(e=>e)}}}}},(e,t,r)=>{"use strict";function n(e,...t){const r=new String(String.raw(e,...t));return r.__sentry_template_string__=e.join("\0").replace(/%/g,"%%").replace(/\0/g,"%s"),r.__sentry_template_values__=t,r}r.r(t),r.d(t,{fmt:()=>i,parameterize:()=>n});const i=n},(e,t,r)=>{"use strict";r.r(t),r.d(t,{moduleMetadataIntegration:()=>a});var n=r(1468),i=r(3345),o=r(393);const a=(0,n.defineIntegration)(()=>({name:"ModuleMetadata",setup(e){e.on("beforeEnvelope",e=>{(0,o.forEachEnvelopeItem)(e,(e,t)=>{if("event"===t){const t=Array.isArray(e)?e[1]:void 0;t&&((0,i.stripMetadataFromStackFrames)(t),e[1]=t)}})}),e.on("applyFrameMetadata",t=>{if(t.type)return;const r=e.getOptions().stackParser;(0,i.addMetadataToStackFrames)(r,t)})}}))},(e,t,r)=>{"use strict";r.r(t),r.d(t,{addMetadataToStackFrames:()=>l,getFilenameToMetadataMap:()=>a,getMetadataForUrl:()=>s,stripMetadataFromStackFrames:()=>c});var n=r(350);const i=new Map,o=new Set;function a(e){if(!n.GLOBAL_OBJ._sentryModuleMetadata)return{};const t={};for(const r of Object.keys(n.GLOBAL_OBJ._sentryModuleMetadata)){const i=n.GLOBAL_OBJ._sentryModuleMetadata[r],o=e(r);for(const e of o.reverse())if(e.filename){t[e.filename]=i;break}}return t}function s(e,t){return function(e){if(n.GLOBAL_OBJ._sentryModuleMetadata)for(const t of Object.keys(n.GLOBAL_OBJ._sentryModuleMetadata)){const r=n.GLOBAL_OBJ._sentryModuleMetadata[t];if(o.has(t))continue;o.add(t);const a=e(t);for(const e of a.reverse())if(e.filename){i.set(e.filename,r);break}}}(e),i.get(t)}function l(e,t){t.exception?.values?.forEach(t=>{t.stacktrace?.frames?.forEach(t=>{if(!t.filename||t.module_metadata)return;const r=s(e,t.filename);r&&(t.module_metadata=r)})})}function c(e){e.exception?.values?.forEach(e=>{e.stacktrace?.frames?.forEach(e=>{delete e.module_metadata})})}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{captureConsoleIntegration:()=>d});var n=r(346),i=r(345),o=r(1506),a=r(1468),s=r(358),l=r(356),c=r(1510),u=r(361),p=r(350);const d=(0,a.defineIntegration)((e={})=>{const t=e.levels||s.CONSOLE_LEVELS,r=e.handled??!0;return{name:"CaptureConsole",setup(e){"console"in p.GLOBAL_OBJ&&(0,o.addConsoleInstrumentationHandler)(({args:o,level:a})=>{(0,n.getClient)()===e&&t.includes(a)&&function(e,t,r){const o=(0,c.severityLevelFromString)(t),a=new Error,s={level:(0,c.severityLevelFromString)(t),extra:{arguments:e}};(0,n.withScope)(n=>{if(n.addEventProcessor(e=>(e.logger="console",(0,l.addExceptionMechanism)(e,{handled:r,type:"auto.core.capture_console"}),e)),"assert"===t){if(!e[0]){const t=`Assertion failed: ${(0,u.safeJoin)(e.slice(1)," ")||"console.assert"}`;n.setExtra("arguments",e.slice(1)),n.captureMessage(t,o,{captureContext:s,syntheticException:a})}return}const c=e.find(e=>e instanceof Error);if(c)return void(0,i.captureException)(c,s);const p=(0,u.safeJoin)(e," ");n.captureMessage(p,o,{captureContext:s,syntheticException:a})})}(o,a,r)})}}})},(e,t,r)=>{"use strict";r.r(t),r.d(t,{extraErrorDataIntegration:()=>u});var n=r(354),i=r(1468),o=r(358),a=r(359),s=r(362),l=r(363),c=r(361);const u=(0,i.defineIntegration)((e={})=>{const{depth:t=3,captureErrorCause:r=!0}=e;return{name:"ExtraErrorData",processEvent(e,n,i){const{maxValueLength:o}=i.getOptions();return function(e,t={},r,n,i){if(!t.originalException||!(0,a.isError)(t.originalException))return e;const o=t.originalException.name||t.originalException.constructor.name,c=p(t.originalException,n,i);if(c){const t={...e.contexts},n=(0,s.normalize)(c,r);return(0,a.isPlainObject)(n)&&((0,l.setSkipNormalizationHint)(n),t[o]=n),{...e,contexts:t}}return e}(e,n,t,r,o)}}});function p(e,t,r){try{const n=["name","message","stack","line","column","fileName","lineNumber","columnNumber","toJSON"],i={};for(const t of Object.keys(e)){if(-1!==n.indexOf(t))continue;const o=e[t];i[t]=(0,a.isError)(o)||"string"==typeof o?r?(0,c.truncate)(`${o}`,r):`${o}`:o}if(t&&void 0!==e.cause)if((0,a.isError)(e.cause)){const t=e.cause.name||e.cause.constructor.name;i.cause={[t]:p(e.cause,!1,r)}}else i.cause=e.cause;if("function"==typeof e.toJSON){const t=e.toJSON();for(const e of Object.keys(t)){const r=t[e];i[e]=(0,a.isError)(r)?r.toString():r}}return i}catch(e){n.DEBUG_BUILD&&o.debug.error("Unable to extract extra data from the Error object:",e)}return null}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{generateIteratee:()=>s,rewriteFramesIntegration:()=>a});var n=r(1468),i=r(3349),o=r(350);const a=(0,n.defineIntegration)((e={})=>{const t=e.root,r=e.prefix||"app:///",n="window"in o.GLOBAL_OBJ&&!!o.GLOBAL_OBJ.window,i=e.iteratee||s({isBrowser:n,root:t,prefix:r});return{name:"RewriteFrames",processEvent(e){let t=e;return e.exception&&Array.isArray(e.exception.values)&&(t=function(e){try{return{...e,exception:{...e.exception,values:e.exception.values.map(e=>{return{...e,...e.stacktrace&&{stacktrace:(t=e.stacktrace,{...t,frames:t?.frames?.map(e=>i(e))})}};var t})}}}catch{return e}}(t)),t}}});function s({isBrowser:e,root:t,prefix:r}){return n=>{if(!n.filename)return n;const o=/^[a-zA-Z]:\\/.test(n.filename)||n.filename.includes("\\")&&!n.filename.includes("/"),a=/^\//.test(n.filename);if(e){if(t){const e=n.filename;0===e.indexOf(t)&&(n.filename=e.replace(t,r))}}else if(o||a){const e=o?n.filename.replace(/^[a-zA-Z]:/,"").replace(/\\/g,"/"):n.filename,a=t?(0,i.relative)(t,e):(0,i.basename)(e);n.filename=`${r}${a}`}return n}}},(e,t,r)=>{"use strict";function n(e,t){let r=0;for(let t=e.length-1;t>=0;t--){const n=e[t];"."===n?e.splice(t,1):".."===n?(e.splice(t,1),r++):r&&(e.splice(t,1),r--)}if(t)for(;r--;r)e.unshift("..");return e}r.r(t),r.d(t,{basename:()=>h,dirname:()=>d,isAbsolute:()=>u,join:()=>p,normalizePath:()=>c,relative:()=>l,resolve:()=>a});const i=/^(\S+:\\|\/?)([\s\S]*?)((?:\.{1,2}|[^/\\]+?|)(\.[^./\\]*|))(?:[/\\]*)$/;function o(e){const t=e.length>1024?`<truncated>${e.slice(-1024)}`:e,r=i.exec(t);return r?r.slice(1):[]}function a(...e){let t="",r=!1;for(let n=e.length-1;n>=-1&&!r;n--){const i=n>=0?e[n]:"/";i&&(t=`${i}/${t}`,r="/"===i.charAt(0))}return t=n(t.split("/").filter(e=>!!e),!r).join("/"),(r?"/":"")+t||"."}function s(e){let t=0;for(;t<e.length&&""===e[t];t++);let r=e.length-1;for(;r>=0&&""===e[r];r--);return t>r?[]:e.slice(t,r-t+1)}function l(e,t){e=a(e).slice(1),t=a(t).slice(1);const r=s(e.split("/")),n=s(t.split("/")),i=Math.min(r.length,n.length);let o=i;for(let e=0;e<i;e++)if(r[e]!==n[e]){o=e;break}let l=[];for(let e=o;e<r.length;e++)l.push("..");return l=l.concat(n.slice(o)),l.join("/")}function c(e){const t=u(e),r="/"===e.slice(-1);let i=n(e.split("/").filter(e=>!!e),!t).join("/");return i||t||(i="."),i&&r&&(i+="/"),(t?"/":"")+i}function u(e){return"/"===e.charAt(0)}function p(...e){return c(e.join("/"))}function d(e){const t=o(e),r=t[0]||"";let n=t[1];return r||n?(n&&(n=n.slice(0,n.length-1)),r+n):"."}function h(e,t){let r=o(e)[2]||"";return t&&r.slice(-1*t.length)===t&&(r=r.slice(0,r.length-t.length)),r}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{DB_OPERATIONS_TO_INSTRUMENT:()=>y,FILTER_MAPPINGS:()=>g,extractOperation:()=>E,getHeader:()=>S,instrumentSupabaseClient:()=>I,supabaseIntegration:()=>A,translateFiltersIntoMethods:()=>T});var n=r(697),i=r(346),o=r(354),a=r(345),s=r(1468),l=r(372),c=r(358),u=r(356),p=r(359),d=r(381),h=r(371);const f=["reauthenticate","signInAnonymously","signInWithOAuth","signInWithIdToken","signInWithOtp","signInWithPassword","signInWithSSO","signOut","signUp","verifyOtp"],m=["createUser","deleteUser","listUsers","getUserById","updateUserById","inviteUserByEmail"],g={eq:"eq",neq:"neq",gt:"gt",gte:"gte",lt:"lt",lte:"lte",like:"like","like(all)":"likeAllOf","like(any)":"likeAnyOf",ilike:"ilike","ilike(all)":"ilikeAllOf","ilike(any)":"ilikeAnyOf",is:"is",in:"in",cs:"contains",cd:"containedBy",sr:"rangeGt",nxl:"rangeGte",sl:"rangeLt",nxr:"rangeLte",adj:"rangeAdjacent",ov:"overlaps",fts:"",plfts:"plain",phfts:"phrase",wfts:"websearch",not:"not"},y=["select","insert","upsert","update","delete"];function b(e){try{e.__SENTRY_INSTRUMENTED__=!0}catch{}}function v(e){try{return e.__SENTRY_INSTRUMENTED__}catch{return!1}}function _(e,t){return Object.keys(t).length>0?t:Array.isArray(e)&&e.length>0?e:void 0}function S(e,t){if(!e)return;if("function"==typeof e.get)return e.get(t)??void 0;const r=e,n=t.toLowerCase(),i=Object.keys(r).find(e=>e.toLowerCase()===n);return void 0!==i?r[i]:void 0}function E(e,t={}){switch(e){case"GET":return"select";case"POST":return S(t,"Prefer")?.includes("resolution=")?"upsert":"insert";case"PATCH":return"update";case"DELETE":return"delete";default:return"<unknown-op>"}}function T(e,t){if(""===t||"*"===t)return"select(*)";if("select"===e)return`select(${t})`;if("or"===e||e.endsWith(".or"))return`${e}${t}`;const[r,...n]=t.split(".");let i;return i=r?.startsWith("fts")?"textSearch":r?.startsWith("plfts")?"textSearch[plain]":r?.startsWith("phfts")?"textSearch[phrase]":r?.startsWith("wfts")?"textSearch[websearch]":r&&g[r]||"filter",`${i}(${e}, ${n.join(".")})`}function w(e,t=!1){return new Proxy(e,{apply:(r,n,i)=>(0,h.startSpan)({name:`auth ${t?"(admin) ":""}${e.name}`,attributes:{[l.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.db.supabase",[l.SEMANTIC_ATTRIBUTE_SENTRY_OP]:"db","db.system":"postgresql","db.operation":`auth.${t?"admin.":""}${e.name}`}},e=>Reflect.apply(r,n,i).then(t=>((0,p.isObjectLike)(t)&&"error"in t&&t.error?(e.setStatus({code:d.SPAN_STATUS_ERROR}),(0,a.captureException)(t.error,{mechanism:{handled:!1,type:"auto.db.supabase.auth"}})):e.setStatus({code:d.SPAN_STATUS_OK}),e.end(),t)).catch(t=>{throw e.setStatus({code:d.SPAN_STATUS_ERROR}),e.end(),(0,a.captureException)(t,{mechanism:{handled:!1,type:"auto.db.supabase.auth"}}),t}).then(...i))})}function x(e,t){v(e.prototype.from)||(e.prototype.from=new Proxy(e.prototype.from,{apply(e,r,n){const i=Reflect.apply(e,r,n);return function(e,t){for(const r of y)v(e.prototype[r])||(e.prototype[r]=new Proxy(e.prototype[r],{apply(e,n,i){const a=Reflect.apply(e,n,i),s=a.constructor;return o.DEBUG_BUILD&&c.debug.log(`Instrumenting ${r} operation's PostgRESTFilterBuilder`),O(s,t),a}}),b(e.prototype[r]))}(i.constructor,t),i}}),b(e.prototype.from))}function O(e,t){v(e.prototype.then)||(e.prototype.then=new Proxy(e.prototype.then,{apply(e,r,o){const s=y,c=r,f=E(c.method,c.headers);if(!s.includes(f))return Reflect.apply(e,r,o);if(!c?.url?.pathname||"string"!=typeof c.url.pathname)return Reflect.apply(e,r,o);const m=c.url.pathname.split("/"),g=m.length>0?m[m.length-1]:"",b=[];
50for(const[e,t]of c.url.searchParams.entries())b.push(T(e,t));const v=Object.create(null);if((0,p.isPlainObject)(c.body))for(const[e,t]of Object.entries(c.body))v[e]=t;const w=(0,i.getClient)(),x=t.sendOperationData??!0===w?.getDataCollectionOptions().databaseQueryData,O=_(c.body,v),I="select"===f?"":`${f}${A=c.body,k=v,void 0!==_(A,k)?"(...) ":""}`;var A,k;const R=x?b.join(" "):b.length>0?"[redacted]":"",C=[I.trimEnd(),R].filter(Boolean).join(" "),P=C?`${C} from(${g})`:`from(${g})`,D={"db.table":g,"db.schema":c.schema,"db.url":c.url.origin,"db.sdk":S(c.headers,"X-Client-Info"),"db.system":"postgresql","db.operation":f,[l.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.db.supabase",[l.SEMANTIC_ATTRIBUTE_SENTRY_OP]:"db"};return b.length&&x&&(D["db.query"]=b),void 0!==O&&x&&(D["db.body"]=O),(0,h.startSpan)({name:P,attributes:D},t=>Reflect.apply(e,r,[]).then(e=>{if(t&&(e&&"object"==typeof e&&"status"in e&&(0,d.setHttpStatus)(t,e.status||500),t.end()),e?.error){const t=new Error(e.error.message);e.error.code&&(t.code=e.error.code),e.error.details&&(t.details=e.error.details);const r={};b.length&&x&&(r.query=b),void 0!==O&&x&&(r.body=O),(0,a.captureException)(t,e=>(e.addEventProcessor(e=>((0,u.addExceptionMechanism)(e,{handled:!1,type:"auto.db.supabase.postgres"}),e)),e.setContext("supabase",r),e))}const r={type:"supabase",category:`db.${f}`,message:P},i={};return b.length&&x&&(i.query=b),void 0!==O&&x&&(i.body=O),Object.keys(i).length&&(r.data=i),(0,n.addBreadcrumb)(r),e},e=>{throw t&&((0,d.setHttpStatus)(t,500),t.end()),e}).then(...o))}}),b(e.prototype.then))}const I=(e,t={})=>{if(!e)return void(o.DEBUG_BUILD&&c.debug.warn("Supabase integration was not installed because no Supabase client was provided."));x(e.constructor===Function?e:e.constructor,t),function(e){const t=e.auth;if(t&&!v(e.auth)){for(const r of f){const n=t[r];n&&"function"==typeof e.auth[r]&&(e.auth[r]=w(n))}for(const r of m){const n=t.admin[r];n&&"function"==typeof e.auth.admin[r]&&(e.auth.admin[r]=w(n,!0))}b(e.auth)}}(e)},A=(0,s.defineIntegration)(e=>((e,t)=>({setupOnce(){I(e,t)},name:"Supabase"}))(e.supabaseClient,{sendOperationData:e.sendOperationData}))},(e,t,r)=>{"use strict";r.r(t),r.d(t,{applyZodErrorsToEvent:()=>c,flattenIssue:()=>a,flattenIssuePath:()=>s,formatIssueMessage:()=>l,zodErrorsIntegration:()=>u});var n=r(1468),i=r(359),o=r(361);function a(e){return{...e,path:"path"in e&&Array.isArray(e.path)?e.path.join("."):void 0,keys:"keys"in e?JSON.stringify(e.keys):void 0,unionErrors:"unionErrors"in e?JSON.stringify(e.unionErrors):void 0}}function s(e){return e.map(e=>"number"==typeof e?"<array>":e).join(".")}function l(e){const t=new Set;for(const r of e.issues){const e=s(r.path);e.length>0&&t.add(e)}const r=Array.from(t);if(0===r.length){let t="variable";if(e.issues.length>0){const r=e.issues[0];void 0!==r&&"expected"in r&&"string"==typeof r.expected&&(t=r.expected)}return`Failed to validate ${t}`}return`Failed to validate keys: ${(0,o.truncate)(r.join(", "),100)}`}function c(e,t=!1,r,n){if(!(r.exception?.values&&n.originalException&&(o=n.originalException,(0,i.isError)(o)&&"ZodError"===o.name&&Array.isArray(o.issues))&&0!==n.originalException.issues.length))return r;var o;try{const i=(t?n.originalException.issues:n.originalException.issues.slice(0,e)).map(a);return t&&(Array.isArray(n.attachments)||(n.attachments=[]),n.attachments.push({filename:"zod_issues.json",data:JSON.stringify({issues:i})})),{...r,exception:{...r.exception,values:[{...r.exception.values[0],value:l(n.originalException)},...r.exception.values.slice(1)]},extra:{...r.extra,"zoderror.issues":i.slice(0,e)}}}catch(e){return{...r,extra:{...r.extra,"zoderrors sentry integration parse error":{message:"an exception was thrown while processing ZodError within applyZodErrorsToEvent()",error:e instanceof Error?`${e.name}: ${e.message}\n${e.stack}`:"unknown"}}}}}const u=(0,n.defineIntegration)((e={})=>{const t=e.limit??10;return{name:"ZodErrors",processEvent:(r,n)=>c(t,e.saveZodIssuesAsAttachment,r,n)}})},(e,t,r)=>{"use strict";r.r(t),r.d(t,{thirdPartyErrorFilterIntegration:()=>l});var n=r(1468),i=r(3345),o=r(393),a=r(364),s=r(350);const l=(0,n.defineIntegration)(e=>({name:"ThirdPartyErrorsFilter",setup(e){e.on("beforeEnvelope",e=>{(0,o.forEachEnvelopeItem)(e,(e,t)=>{if("event"===t){const t=Array.isArray(e)?e[1]:void 0;t&&((0,i.stripMetadataFromStackFrames)(t),e[1]=t)}})}),e.on("applyFrameMetadata",t=>{if(t.type)return;const r=e.getOptions().stackParser;(0,i.addMetadataToStackFrames)(r,t)})},preprocessEvent(t){e.ignoreSentryInternalFrames&&(s.GLOBAL_OBJ._sentryWrappedDepth??0)>0&&(t.sdkProcessingMetadata={...t.sdkProcessingMetadata,insideSentryWrapped:!0})},processEvent(t){const r=!!e.ignoreSentryInternalFrames&&(!0===t.sdkProcessingMetadata?.insideSentryWrapped&&1===t.exception?.values?.length),n=function(e,t,r){const n=(0,a.getFramesFromEvent)(e);if(!n)return;
50return n.filter((e,n)=>!!e.filename&&((null!=e.lineno||null!=e.colno||null!=e.instruction_addr)&&(!t||!function(e,t,r){if(0!==t)return!1;if(r&&function(e){return!e.context_line&&!e.pre_context&&!!e.function&&e.function.length<=2}(e))return!0;if("sentryWrapped"===e.function)return!0;if(!e.context_line||!e.filename)return!1;if(!e.filename.includes("sentry")||!e.filename.includes("helpers")||!e.context_line.includes(p))return!1;if(e.pre_context){const t=e.pre_context.length;for(let r=0;r<t;r++)if(e.pre_context[r]?.includes(u))return!0}return!1}(e,n,!!r)))).map(e=>e.module_metadata?Object.keys(e.module_metadata).filter(e=>e.startsWith(c)).map(e=>e.slice(c.length)):[])}(t,e.ignoreSentryInternalFrames,r);if(n){if(n["drop-error-if-contains-third-party-frames"===e.behaviour||"apply-tag-if-contains-third-party-frames"===e.behaviour?"some":"every"](t=>!t.some(t=>e.filterKeys.includes(t)))){if("drop-error-if-contains-third-party-frames"===e.behaviour||"drop-error-if-exclusively-contains-third-party-frames"===e.behaviour)return null;t.tags={...t.tags,third_party_code:!0}}}return t}}));const c="_sentryBundlerPluginAppKey:",u="Attempt to invoke user-land function",p="fn.apply(this, wrappedArguments)"},(e,t,r)=>{"use strict";r.r(t),r.d(t,{featureFlagsIntegration:()=>o});var n=r(1468),i=r(3354);const o=(0,n.defineIntegration)(()=>({name:"FeatureFlags",processEvent:(e,t,r)=>(0,i._INTERNAL_copyFlagsFromScopeToEvent)(e),addFeatureFlag(e,t){(0,i._INTERNAL_insertFlagToScope)(e,t),(0,i._INTERNAL_addFeatureFlagToActiveSpan)(e,t)}}))},(e,t,r)=>{"use strict";r.r(t),r.d(t,{_INTERNAL_FLAG_BUFFER_SIZE:()=>s,_INTERNAL_MAX_FLAGS_PER_SPAN:()=>l,_INTERNAL_addFeatureFlagToActiveSpan:()=>h,_INTERNAL_copyFlagsFromScopeToEvent:()=>u,_INTERNAL_insertFlagToScope:()=>p,_INTERNAL_insertToFlagBuffer:()=>d});var n=r(346),i=r(354),o=r(358),a=r(379);const s=100,l=10,c="flag.evaluation.";function u(e){if(e.type)return e;const t=(0,n.getCurrentScope)().getScopeData().contexts.flags,r=t?t.values:[];return r.length?(void 0===e.contexts&&(e.contexts={}),e.contexts.flags={values:[...r]},e):e}function p(e,t,r=s){const i=(0,n.getCurrentScope)().getScopeData().contexts;i.flags||(i.flags={values:[]});d(i.flags.values,e,t,r)}function d(e,t,r,n){if("boolean"!=typeof r)return;if(e.length>n)return void(i.DEBUG_BUILD&&o.debug.error(`[Feature Flags] insertToFlagBuffer called on a buffer larger than maxSize=${n}`));const a=e.findIndex(e=>e.flag===t);-1!==a&&e.splice(a,1),e.length===n&&e.shift(),e.push({flag:t,result:r})}function h(e,t,r=l){if("boolean"!=typeof t)return;const n=(0,a.getActiveSpan)();if(!n)return;const i=(0,a.spanToJSON)(n).data;if(`${c}${e}`in i)return void n.setAttribute(`${c}${e}`,t);Object.keys(i).filter(e=>e.startsWith(c)).length<r&&n.setAttribute(`${c}${e}`,t)}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{debug:()=>s,error:()=>u,fatal:()=>p,fmt:()=>i.fmt,info:()=>l,trace:()=>a,warn:()=>c});var n=r(1477),i=r(3343);function o(e,t,r,i,o){(0,n._INTERNAL_captureLog)({level:e,message:t,attributes:r,severityNumber:o},i)}function a(e,t,{scope:r}={}){o("trace",e,t,r)}function s(e,t,{scope:r}={}){o("debug",e,t,r)}function l(e,t,{scope:r}={}){o("info",e,t,r)}function c(e,t,{scope:r}={}){o("warn",e,t,r)}function u(e,t,{scope:r}={}){o("error",e,t,r)}function p(e,t,{scope:r}={}){o("fatal",e,t,r)}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{consoleLoggingIntegration:()=>f});var n=r(346),i=r(354),o=r(1506),a=r(1468),s=r(372),l=r(358),c=r(359),u=r(362),p=r(1477),d=r(3357);const h={[s.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.log.console"},f=(0,a.defineIntegration)((e={})=>{const t=e.levels||l.CONSOLE_LEVELS;return{name:"ConsoleLogs",setup(e){const{enableLogs:r,normalizeDepth:a=3,normalizeMaxBreadth:s=1e3}=e.getOptions();if(!r)return void(i.DEBUG_BUILD&&l.debug.warn("`enableLogs` is not enabled, ConsoleLogs integration disabled"));const f=(0,o.addConsoleInstrumentationHandler)(({args:r,level:i})=>{if((0,n.getClient)()!==e||!t.includes(i))return;const o=r[0],l=r.slice(1);if("assert"===i){if(!o){const e=l.length>0?`Assertion failed: ${(0,d.formatConsoleArgs)(l,a,s)}`:"Assertion failed";(0,p._INTERNAL_captureLog)({level:"error",message:e,attributes:h})}return}const f="log"===i,m={...h};if((0,c.isPlainObject)(o)){Object.assign(m,(0,u.normalize)(o,a,s));const e="string"==typeof r[1]?2:1;r.slice(e).forEach((e,t)=>{m[`sentry.message.parameter.${t}`]=(0,u.normalize)(e,a,s)})}else{if(l.length>0&&"string"==typeof o&&!(0,d.hasConsoleSubstitutions)(o)){const e=(0,d.createConsoleTemplateAttributes)(o,l);for(const[t,r]of Object.entries(e))m[t]=t.startsWith("sentry.message.parameter.")?(0,u.normalize)(r,a,s):r}}(0,p._INTERNAL_captureLog)({level:f?"info":i,message:(0,d.formatConsoleArgs)(r,a,s),severityNumber:f?10:void 0,attributes:m})});e.registerCleanup(f)}}})},(e,t,r)=>{"use strict";r.r(t),r.d(t,{createConsoleTemplateAttributes:()=>c,formatConsoleArgs:()=>a,hasConsoleSubstitutions:()=>l,safeJoinConsoleArgs:()=>s});var n=r(359),i=r(362),o=r(350);function a(e,t,r){return"util"in o.GLOBAL_OBJ&&"function"==typeof o.GLOBAL_OBJ.util.format?o.GLOBAL_OBJ.util.format(...e):s(e,t,r)}function s(e,t,r){return e.map(e=>(0,n.isPrimitive)(e)?String(e):JSON.stringify((0,i.normalize)(e,t,r))).join(" ")}function l(e){return/%[sdifocO]/.test(e)}function c(e,t){const r={},n=new Array(t.length).fill("{}").join(" ");return r["sentry.message.template"]=`${e} ${n}`,t.forEach((e,t)=>{r[`sentry.message.parameter.${t}`]=e}),r}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{count:()=>o,distribution:()=>s,gauge:()=>a});var n=r(1485);function i(e,t,r,i){(0,n._INTERNAL_captureMetric)({type:e,name:t,value:r,unit:i?.unit,attributes:i?.attributes},{scope:i?.scope})}function o(e,t=1,r){i("counter",e,t,r)}function a(e,t,r){i("gauge",e,t,r)}function s(e,t,r){i("distribution",e,t,r)}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{createConsolaReporter:()=>c});var n=r(346),i=r(1477),o=r(3357),a=r(359),s=r(362);const l=["trace","debug","info","warn","error","fatal"];function c(e={}){const t=new Set(e.levels??l),r=e.client;return{log(e){const{type:l,level:c,message:d,args:h,tag:f,date:m,...g}=e,y=r||(0,n.getClient)();if(!y)return;const b=function(e,t){if("verbose"===e)return"debug";if("silent"===e)return"trace";if(e){const t=u[e];if(t)return t}if("number"==typeof t){const e=p[t];if(e)return e}return"info"}(l,c);if(!t.has(b))return;
50const{normalizeDepth:v=3,normalizeMaxBreadth:_=1e3}=y.getOptions(),S={};for(const[e,t]of Object.entries(g))S[e]=(0,s.normalize)(t,v,_);S["sentry.origin"]="auto.log.consola",f&&(S["consola.tag"]=f),l&&(S["consola.type"]=l),null!=c&&"number"==typeof c&&(S["consola.level"]=c);const E=function(e,t,r){const{message:n,attributes:i,messageTemplate:a,messageParameters:l}=e,c={};if(a&&l){const e=(0,o.createConsoleTemplateAttributes)(a,l);for(const[n,i]of Object.entries(e))c[n]=n.startsWith("sentry.message.parameter.")?(0,s.normalize)(i,t,r):i}else l&&l.length>0&&l.forEach((e,n)=>{c[`sentry.message.parameter.${n}`]=(0,s.normalize)(e,t,r)});return{message:n,attributes:{...(0,s.normalize)(i,t,r),...c}}}(function(e,t,r){if(!e?.length)return{message:""};const n=(0,o.formatConsoleArgs)(e,t,r),i=e[0];if((0,a.isPlainObject)(i)){const t="string"==typeof e[1]?2:1;return{message:n,attributes:i,messageParameters:e.slice(t)}}{const t=e.slice(1),r=t.length>0&&"string"==typeof i&&!(0,o.hasConsoleSubstitutions)(i);return{message:n,messageTemplate:r?i:void 0,messageParameters:r?t:void 0}}}(h,v,_),v,_);E?.attributes&&Object.assign(S,E.attributes),(0,i._INTERNAL_captureLog)({level:b,message:E?.message||d||h&&(0,o.formatConsoleArgs)(h,v,_)||"",attributes:S})}}}const u={silent:"trace",fatal:"fatal",error:"error",warn:"warn",log:"info",info:"info",success:"info",fail:"error",ready:"info",start:"info",box:"info",debug:"debug",trace:"trace",verbose:"debug",critical:"fatal",notice:"info"},p={0:"fatal",1:"warn",2:"info",3:"info",4:"debug",5:"trace"}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{addRequestAttributes:()=>m,extractRequestAttributes:()=>f,instrumentOpenAiClient:()=>y});var n=r(354),i=r(372),o=r(358),a=r(361),s=r(381),l=r(371),c=r(3361),u=r(3362),p=r(3365),d=r(3366),h=r(3367);function f(e,t){const r={[c.GEN_AI_SYSTEM_ATTRIBUTE]:"openai",[c.GEN_AI_OPERATION_NAME_ATTRIBUTE]:t,[i.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.ai.openai"};if(e.length>0&&"object"==typeof e[0]&&null!==e[0]){const t=e[0],i=function(e){const t=[...Array.isArray(e.tools)?e.tools:[],...e.web_search_options&&"object"==typeof e.web_search_options?[{type:"web_search_options",...e.web_search_options}]:[]];if(0!==t.length)try{return JSON.stringify(t)}catch(e){return void(n.DEBUG_BUILD&&o.debug.error("Failed to serialize OpenAI tools:",e))}}(t);i&&(r[c.GEN_AI_REQUEST_AVAILABLE_TOOLS_ATTRIBUTE]=i),Object.assign(r,(0,h.extractRequestParameters)(t))}else r[c.GEN_AI_REQUEST_MODEL_ATTRIBUTE]="unknown";return r}function m(e,t,r,n){if("embeddings"===r&&"input"in t){const r=t.input;if(null==r)return;if("string"==typeof r&&0===r.length)return;if(Array.isArray(r)&&0===r.length)return;return void e.setAttribute(c.GEN_AI_EMBEDDINGS_INPUT_ATTRIBUTE,"string"==typeof r?r:JSON.stringify(r))}const i="input"in t?t.input:"messages"in t?t.messages:void 0;if(!i)return;if(Array.isArray(i)&&0===i.length)return;const{systemInstructions:o,filteredMessages:s}=(0,u.extractSystemInstructions)(i);o&&e.setAttribute(c.GEN_AI_SYSTEM_INSTRUCTIONS_ATTRIBUTE,o),e.setAttribute(c.GEN_AI_INPUT_MESSAGES_ATTRIBUTE,n?(0,u.getTruncatedJsonString)(s):(0,a.stringify)(s)),Array.isArray(s)?e.setAttribute(c.GEN_AI_INPUT_MESSAGES_ORIGINAL_LENGTH_ATTRIBUTE,s.length):e.setAttribute(c.GEN_AI_INPUT_MESSAGES_ORIGINAL_LENGTH_ATTRIBUTE,1)}function g(e,t="",r){return new Proxy(e,{get(e,n){const i=e[n],o=(0,u.buildMethodPath)(t,String(n)),a=p.OPENAI_METHOD_REGISTRY[o];return"function"==typeof i&&a?function(e,t,r,n,i){return function(...t){const o=r.operation||"unknown",a=f(t,o),p=a[c.GEN_AI_REQUEST_MODEL_ATTRIBUTE]||"unknown",g=t[0],y=g&&"object"==typeof g&&!0===g.stream,b={name:`${o} ${p}`,op:`gen_ai.${o}`,attributes:a};if(y){let r;const a=(0,l.startSpanManual)(b,a=>(r=e.apply(n,t),i.recordInputs&&g&&m(a,g,o,(0,u.shouldEnableTruncation)(i.enableTruncation)),(async()=>{try{const e=await r;return(0,d.instrumentStream)(e,a,i.recordOutputs??!1)}catch(e){throw a.setStatus({code:s.SPAN_STATUS_ERROR,message:"internal_error"}),a.end(),e}})()));return(0,u.wrapPromiseWithMethods)(r,a)}let v;const _=(0,l.startSpan)(b,r=>(v=e.apply(n,t),i.recordInputs&&g&&m(r,g,o,(0,u.shouldEnableTruncation)(i.enableTruncation)),v.then(e=>((0,h.addResponseAttributes)(r,e,i.recordOutputs),e))));return(0,u.wrapPromiseWithMethods)(v,_)}}(i,0,a,e,r):"function"==typeof i?i.bind(e):i&&"object"==typeof i?g(i,o,r):i}})}function y(e,t){return g(e,"",(0,u.resolveAIRecordingOptions)(t))}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{GEN_AI_AGENT_NAME_ATTRIBUTE:()=>C,GEN_AI_CONVERSATION_ID_ATTRIBUTE:()=>D,GEN_AI_EMBEDDINGS_INPUT_ATTRIBUTE:()=>U,GEN_AI_EMBEDDINGS_OPERATION_ATTRIBUTE:()=>j,GEN_AI_EXECUTE_TOOL_OPERATION_ATTRIBUTE:()=>H,GEN_AI_INPUT_MESSAGES_ATTRIBUTE:()=>w,GEN_AI_INPUT_MESSAGES_ORIGINAL_LENGTH_ATTRIBUTE:()=>T,GEN_AI_INVOKE_AGENT_OPERATION_ATTRIBUTE:()=>B,GEN_AI_OPERATION_NAME_ATTRIBUTE:()=>E,GEN_AI_OUTPUT_MESSAGES_ATTRIBUTE:()=>x,GEN_AI_PIPELINE_NAME_ATTRIBUTE:()=>P,GEN_AI_PROMPT_ATTRIBUTE:()=>n,GEN_AI_REQUEST_AVAILABLE_TOOLS_ATTRIBUTE:()=>A,GEN_AI_REQUEST_DIMENSIONS_ATTRIBUTE:()=>f,GEN_AI_REQUEST_ENCODING_FORMAT_ATTRIBUTE:()=>
50h,GEN_AI_REQUEST_FREQUENCY_PENALTY_ATTRIBUTE:()=>c,GEN_AI_REQUEST_MAX_TOKENS_ATTRIBUTE:()=>l,GEN_AI_REQUEST_MODEL_ATTRIBUTE:()=>o,GEN_AI_REQUEST_PRESENCE_PENALTY_ATTRIBUTE:()=>u,GEN_AI_REQUEST_STREAM_ATTRIBUTE:()=>a,GEN_AI_REQUEST_TEMPERATURE_ATTRIBUTE:()=>s,GEN_AI_REQUEST_TOP_K_ATTRIBUTE:()=>d,GEN_AI_REQUEST_TOP_P_ATTRIBUTE:()=>p,GEN_AI_RESPONSE_FINISH_REASONS_ATTRIBUTE:()=>m,GEN_AI_RESPONSE_ID_ATTRIBUTE:()=>y,GEN_AI_RESPONSE_MODEL_ATTRIBUTE:()=>g,GEN_AI_RESPONSE_STOP_REASON_ATTRIBUTE:()=>b,GEN_AI_RESPONSE_STREAMING_ATTRIBUTE:()=>k,GEN_AI_RESPONSE_TEXT_ATTRIBUTE:()=>I,GEN_AI_RESPONSE_TOOL_CALLS_ATTRIBUTE:()=>R,GEN_AI_SYSTEM_ATTRIBUTE:()=>i,GEN_AI_SYSTEM_INSTRUCTIONS_ATTRIBUTE:()=>O,GEN_AI_TOOL_CALL_ID_ATTRIBUTE:()=>z,GEN_AI_TOOL_DESCRIPTION_ATTRIBUTE:()=>W,GEN_AI_TOOL_INPUT_ATTRIBUTE:()=>q,GEN_AI_TOOL_NAME_ATTRIBUTE:()=>V,GEN_AI_TOOL_OUTPUT_ATTRIBUTE:()=>$,GEN_AI_TOOL_TYPE_ATTRIBUTE:()=>G,GEN_AI_USAGE_CACHE_CREATION_INPUT_TOKENS_ATTRIBUTE:()=>M,GEN_AI_USAGE_CACHE_READ_INPUT_TOKENS_ATTRIBUTE:()=>N,GEN_AI_USAGE_INPUT_TOKENS_ATTRIBUTE:()=>v,GEN_AI_USAGE_INPUT_TOKENS_CACHED_ATTRIBUTE:()=>F,GEN_AI_USAGE_INPUT_TOKENS_CACHE_WRITE_ATTRIBUTE:()=>L,GEN_AI_USAGE_OUTPUT_TOKENS_ATTRIBUTE:()=>_,GEN_AI_USAGE_TOTAL_TOKENS_ATTRIBUTE:()=>S});const n="gen_ai.prompt",i="gen_ai.system",o="gen_ai.request.model",a="gen_ai.request.stream",s="gen_ai.request.temperature",l="gen_ai.request.max_tokens",c="gen_ai.request.frequency_penalty",u="gen_ai.request.presence_penalty",p="gen_ai.request.top_p",d="gen_ai.request.top_k",h="gen_ai.request.encoding_format",f="gen_ai.request.dimensions",m="gen_ai.response.finish_reasons",g="gen_ai.response.model",y="gen_ai.response.id",b="gen_ai.response.stop_reason",v="gen_ai.usage.input_tokens",_="gen_ai.usage.output_tokens",S="gen_ai.usage.total_tokens",E="gen_ai.operation.name",T="sentry.sdk_meta.gen_ai.input.messages.original_length",w="gen_ai.input.messages",x="gen_ai.output.messages",O="gen_ai.system_instructions",I="gen_ai.response.text",A="gen_ai.request.available_tools",k="gen_ai.response.streaming",R="gen_ai.response.tool_calls",C="gen_ai.agent.name",P="gen_ai.pipeline.name",D="gen_ai.conversation.id",M="gen_ai.usage.cache_creation_input_tokens",N="gen_ai.usage.cache_read_input_tokens",L="gen_ai.usage.input_tokens.cache_write",F="gen_ai.usage.input_tokens.cached",B="gen_ai.invoke_agent",U="gen_ai.embeddings.input",j="gen_ai.embeddings",H="gen_ai.execute_tool",V="gen_ai.tool.name",z="gen_ai.tool.call.id",G="gen_ai.tool.type",q="gen_ai.tool.input",$="gen_ai.tool.output",W="gen_ai.tool.description"},(e,t,r)=>{"use strict";r.r(t),r.d(t,{buildMethodPath:()=>u,endStreamSpan:()=>d,extractSystemInstructions:()=>f,getTruncatedJsonString:()=>h,resolveAIRecordingOptions:()=>l,setTokenUsageAttributes:()=>p,shouldEnableTruncation:()=>c,wrapPromiseWithMethods:()=>m});var n=r(346),i=r(377),o=r(359),a=r(3361),s=r(3363);function l(e){const t=(0,n.getClient)()?.getDataCollectionOptions().genAI;return{...e,recordInputs:e?.recordInputs??t?.inputs??!1,recordOutputs:e?.recordOutputs??t?.outputs??!1}}function c(e){if(void 0!==e)return e;const t=(0,n.getClient)();return!t||!(0,i.hasSpanStreamingEnabled)(t)&&!1===t.getOptions().streamGenAiSpans}function u(e,t){return e?`${e}.${t}`:t}function p(e,t,r,n,i){if(void 0!==t&&e.setAttributes({[a.GEN_AI_USAGE_INPUT_TOKENS_ATTRIBUTE]:t}),void 0!==r&&e.setAttributes({[a.GEN_AI_USAGE_OUTPUT_TOKENS_ATTRIBUTE]:r}),void 0!==t||void 0!==r||void 0!==n||void 0!==i){const o=(t??0)+(r??0)+(n??0)+(i??0);e.setAttributes({[a.GEN_AI_USAGE_TOTAL_TOKENS_ATTRIBUTE]:o})}}function d(e,t,r){if(!e.isRecording())return;const n={[a.GEN_AI_RESPONSE_STREAMING_ATTRIBUTE]:!0};t.responseId&&(n[a.GEN_AI_RESPONSE_ID_ATTRIBUTE]=t.responseId),t.responseModel&&(n[a.GEN_AI_RESPONSE_MODEL_ATTRIBUTE]=t.responseModel),void 0!==t.promptTokens&&(n[a.GEN_AI_USAGE_INPUT_TOKENS_ATTRIBUTE]=t.promptTokens),void 0!==t.completionTokens&&(n[a.GEN_AI_USAGE_OUTPUT_TOKENS_ATTRIBUTE]=t.completionTokens),void 0!==t.totalTokens?n[a.GEN_AI_USAGE_TOTAL_TOKENS_ATTRIBUTE]=t.totalTokens:void 0===t.promptTokens&&void 0===t.completionTokens&&void 0===t.cacheCreationInputTokens&&void 0===t.cacheReadInputTokens||(n[a.GEN_AI_USAGE_TOTAL_TOKENS_ATTRIBUTE]=(t.promptTokens??0)+(t.completionTokens??0)+(t.cacheCreationInputTokens??0)+(t.cacheReadInputTokens??0)),t.finishReasons.length&&(n[a.GEN_AI_RESPONSE_FINISH_REASONS_ATTRIBUTE]=JSON.stringify(t.finishReasons)),r&&t.responseTexts.length&&(n[a.GEN_AI_RESPONSE_TEXT_ATTRIBUTE]=t.responseTexts.join("")),r&&t.toolCalls.length&&(n[a.GEN_AI_RESPONSE_TOOL_CALLS_ATTRIBUTE]=JSON.stringify(t.toolCalls)),e.setAttributes(n),e.end()}function h(e){if("string"==typeof e)return(0,s.truncateGenAiStringInput)(e);try{return JSON.stringify(Array.isArray(e)?(0,s.truncateGenAiMessages)(e):e)}catch{return"[unserializable]"}}function f(e){if(!Array.isArray(e))return{systemInstructions:void 0,filteredMessages:e};const t=e.findIndex(e=>e&&"object"==typeof e&&"role"in e&&"system"===e.role);if(-1===t)return{systemInstructions:void 0,filteredMessages:e};const r=e[t],n="string"==typeof r.content?r.content:void 0!==r.content?JSON.stringify(r.content):void 0;if(!n)return{systemInstructions:void 0,filteredMessages:e};return{systemInstructions:JSON.stringify([{type:"text",content:n}]),filteredMessages:[...e.slice(0,t),...e.slice(t+1)]}}function m(e,t){return(0,o.isThenable)(e)?new Proxy(e,{get(e,r){const n=r in Promise.prototype||r===Symbol.toStringTag?t:e,i=Reflect.get(n,r);return"withResponse"===r&&"function"==typeof i?function(){return async function(e,t){const[r,n]=await Promise.all([t,e]);return n&&"object"==typeof n&&"data"in n?{...n,data:r}:r}
50(i.call(e),t)}:"function"==typeof i?i.bind(n):i}}):t}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{DEFAULT_GEN_AI_MESSAGES_BYTE_LIMIT:()=>i,truncateGenAiMessages:()=>g,truncateGenAiStringInput:()=>y});var n=r(3364);const i=2e4,o=e=>(new TextEncoder).encode(e).length,a=e=>o(JSON.stringify(e));function s(e,t){if(o(e)<=t)return e;let r=0,n=e.length,i="";for(;r<=n;){const a=Math.floor((r+n)/2),s=e.slice(0,a);o(s)<=t?(i=s,r=a+1):n=a-1}return i}function l(e){return"string"==typeof e?e:"text"in e&&"string"==typeof e.text?e.text:""}function c(e,t){return"string"==typeof e?t:{...e,text:t}}function u(e){return null!==e&&"object"==typeof e&&"content"in e&&Array.isArray(e.content)}function p(e){return null!==e&&"object"==typeof e&&"parts"in e&&Array.isArray(e.parts)&&e.parts.length>0}function d(e,t){const{key:r,items:n}=function(e){return"parts"in e&&Array.isArray(e.parts)?{key:"parts",items:e.parts}:"content"in e&&Array.isArray(e.content)?{key:"content",items:e.content}:{key:null,items:[]}}(e);if(null===r||0===n.length)return[];const i=n.map(e=>c(e,""));let u=t-a({...e,[r]:i});if(u<=0)return[];const p=[];for(const e of n){const t=l(e),r=o(t);if(!(r<=u)){if(0===p.length){const r=s(t,u);r&&p.push(c(e,r));break}break}p.push(e),u-=r}return p.length<=0?[]:[{...e,[r]:p}]}function h(e,t){if(!e)return[];if("string"==typeof e){const r=s(e,t);return r?[r]:[]}return"object"!=typeof e?[]:function(e){return null!==e&&"object"==typeof e&&"content"in e&&"string"==typeof e.content}(e)?function(e,t){const r={...e,content:""},n=t-a(r);if(n<=0)return[];const i=s(e.content,n);return[{...e,content:i}]}(e,t):u(e)||p(e)?d(e,t):[]}function f(e){return e.map(e=>{let t;return e&&"object"==typeof e&&(u(e)?t={...e,content:f(e.content)}:"content"in e&&(0,n.isContentMedia)(e.content)&&(t={...e,content:(0,n.stripInlineMediaFromSingleMessage)(e.content)}),p(e)&&(t={...t??e,parts:f(e.parts)}),(0,n.isContentMedia)(t)?t=(0,n.stripInlineMediaFromSingleMessage)(t):(0,n.isContentMedia)(e)&&(t=(0,n.stripInlineMediaFromSingleMessage)(e))),t??e})}function m(e,t){if(!Array.isArray(e)||0===e.length)return e;const r=t-2,n=f([e[e.length-1]]),i=n[0];return a(i)<=r?n:h(i,r)}function g(e){return m(e,i)}function y(e){return s(e,i)}},(e,t,r)=>{"use strict";function n(e){return!(!e||"object"!=typeof e)&&(function(e){return"type"in e&&"string"==typeof e.type&&"source"in e&&n(e.source)}(e)||o(e)||function(e){return"image_url"in e&&("string"==typeof e.image_url?e.image_url.startsWith("data:"):i(e))}(e)||a(e)||s(e)||function(e){return"media_type"in e&&"string"==typeof e.media_type&&"data"in e}(e)||function(e){return"type"in e&&"file"===e.type&&"mediaType"in e&&"string"==typeof e.mediaType&&"data"in e&&"string"==typeof e.data&&!e.data.startsWith("http://")&&!e.data.startsWith("https://")}(e)||function(e){return"type"in e&&"image"===e.type&&"image"in e&&"string"==typeof e.image&&!e.image.startsWith("http://")&&!e.image.startsWith("https://")}(e)||function(e){return"type"in e&&("blob"===e.type||"base64"===e.type)}(e)||function(e){return"b64_json"in e}(e)||function(e){return"type"in e&&"result"in e&&"image_generation"===e.type}(e)||function(e){return"uri"in e&&"string"==typeof e.uri&&e.uri.startsWith("data:")}(e))}function i(e){return"image_url"in e&&!!e.image_url&&"object"==typeof e.image_url&&"url"in e.image_url&&"string"==typeof e.image_url.url&&e.image_url.url.startsWith("data:")}function o(e){return"inlineData"in e&&!!e.inlineData&&"object"==typeof e.inlineData&&"data"in e.inlineData&&"string"==typeof e.inlineData.data}function a(e){return"type"in e&&"input_audio"===e.type&&"input_audio"in e&&!!e.input_audio&&"object"==typeof e.input_audio&&"data"in e.input_audio&&"string"==typeof e.input_audio.data}function s(e){return"type"in e&&"file"===e.type&&"file"in e&&!!e.file&&"object"==typeof e.file&&"file_data"in e.file&&"string"==typeof e.file.file_data}r.r(t),r.d(t,{isContentMedia:()=>n,stripInlineMediaFromSingleMessage:()=>u});const l="[Blob substitute]",c=["image_url","data","content","b64_json","result","uri","image"];function u(e){const t={...e};n(t.source)&&(t.source=u(t.source)),o(e)&&(t.inlineData={...e.inlineData,data:l}),i(e)&&(t.image_url={...e.image_url,url:l}),a(e)&&(t.input_audio={...e.input_audio,data:l}),s(e)&&(t.file={...e.file,file_data:l});for(const e of c)"string"==typeof t[e]&&(t[e]=l);return t}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{OPENAI_INTEGRATION_NAME:()=>n,OPENAI_METHOD_REGISTRY:()=>i,RESPONSES_TOOL_CALL_EVENT_TYPES:()=>o,RESPONSE_EVENT_TYPES:()=>a});const n="OpenAI",i={"responses.create":{operation:"chat"}
50,"chat.completions.create":{operation:"chat"},"embeddings.create":{operation:"embeddings"},"conversations.create":{operation:"chat"}},o=["response.output_item.added","response.function_call_arguments.delta","response.function_call_arguments.done","response.output_item.done"],a=["response.created","response.in_progress","response.failed","response.completed","response.incomplete","response.queued","response.output_text.delta",...o]},(e,t,r)=>{"use strict";r.r(t),r.d(t,{instrumentStream:()=>p});var n=r(345),i=r(381),o=r(3362),a=r(3365),s=r(3367);function l(e,t){for(const r of e){const e=r.index;if(void 0!==e&&r.function)if(e in t.chatCompletionToolCalls){const n=t.chatCompletionToolCalls[e];r.function.arguments&&n?.function&&(n.function.arguments+=r.function.arguments)}else t.chatCompletionToolCalls[e]={...r,function:{name:r.function.name,arguments:r.function.arguments||""}}}}function c(e,t,r){t.responseId=e.id??t.responseId,t.responseModel=e.model??t.responseModel,e.usage&&(t.promptTokens=e.usage.prompt_tokens,t.completionTokens=e.usage.completion_tokens,t.totalTokens=e.usage.total_tokens);for(const n of e.choices??[])r&&(n.delta?.content&&t.responseTexts.push(n.delta.content),n.delta?.tool_calls&&l(n.delta.tool_calls,t)),n.finish_reason&&t.finishReasons.push(n.finish_reason)}function u(e,t,r,o){if(!e||"object"!=typeof e)return void t.eventTypes.push("unknown:non-object");if(e instanceof Error)return o.setStatus({code:i.SPAN_STATUS_ERROR,message:"internal_error"}),void(0,n.captureException)(e,{mechanism:{handled:!1,type:"auto.ai.openai.stream-response"}});if(!("type"in e))return;const s=e;if(a.RESPONSE_EVENT_TYPES.includes(s.type)){if(r&&("response.output_item.done"===s.type&&"item"in s&&t.responsesApiToolCalls.push(s.item),"response.output_text.delta"===s.type&&"delta"in s&&s.delta))t.responseTexts.push(s.delta);else if("response"in s){const{response:e}=s;t.responseId=e.id??t.responseId,t.responseModel=e.model??t.responseModel,e.usage&&(t.promptTokens=e.usage.input_tokens,t.completionTokens=e.usage.output_tokens,t.totalTokens=e.usage.total_tokens),e.status&&t.finishReasons.push(e.status),r&&e.output_text&&t.responseTexts.push(e.output_text)}}else t.eventTypes.push(s.type)}async function*p(e,t,r){const n={eventTypes:[],responseTexts:[],finishReasons:[],responseId:"",responseModel:"",promptTokens:void 0,completionTokens:void 0,totalTokens:void 0,chatCompletionToolCalls:{},responsesApiToolCalls:[]};try{for await(const i of e)(0,s.isChatCompletionChunk)(i)?c(i,n,r):(0,s.isResponsesApiStreamEvent)(i)&&u(i,n,r,t),yield i}finally{const e=[...Object.values(n.chatCompletionToolCalls),...n.responsesApiToolCalls];(0,o.endStreamSpan)(t,{...n,toolCalls:e},r)}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{addResponseAttributes:()=>a,extractRequestParameters:()=>s,isChatCompletionChunk:()=>o,isResponsesApiStreamEvent:()=>i});var n=r(3361);function i(e){return null!==e&&"object"==typeof e&&"type"in e&&"string"==typeof e.type&&e.type.startsWith("response.")}function o(e){return null!==e&&"object"==typeof e&&"object"in e&&"chat.completion.chunk"===e.object}function a(e,t,r){if(!t||"object"!=typeof t)return;const i=t,o={};if("string"==typeof i.id&&(o[n.GEN_AI_RESPONSE_ID_ATTRIBUTE]=i.id),"string"==typeof i.model&&(o[n.GEN_AI_RESPONSE_MODEL_ATTRIBUTE]=i.model),"conversation"===i.object&&"string"==typeof i.id&&(o[n.GEN_AI_CONVERSATION_ID_ATTRIBUTE]=i.id),i.usage&&"object"==typeof i.usage){const e=i.usage,t=e.prompt_tokens??e.input_tokens;"number"==typeof t&&(o[n.GEN_AI_USAGE_INPUT_TOKENS_ATTRIBUTE]=t);const r=e.completion_tokens??e.output_tokens;"number"==typeof r&&(o[n.GEN_AI_USAGE_OUTPUT_TOKENS_ATTRIBUTE]=r),"number"==typeof e.total_tokens&&(o[n.GEN_AI_USAGE_TOTAL_TOKENS_ATTRIBUTE]=e.total_tokens)}if(Array.isArray(i.choices)){const e=i.choices,t=e.map(e=>e.finish_reason).filter(e=>"string"==typeof e);if(t.length>0&&(o[n.GEN_AI_RESPONSE_FINISH_REASONS_ATTRIBUTE]=JSON.stringify(t)),r){const t=e.map(e=>{const t=e.message;return t?.content||""});o[n.GEN_AI_RESPONSE_TEXT_ATTRIBUTE]=JSON.stringify(t);const r=e.map(e=>{const t=e.message;return t?.tool_calls}).filter(e=>Array.isArray(e)&&e.length>0).flat();r.length>0&&(o[n.GEN_AI_RESPONSE_TOOL_CALLS_ATTRIBUTE]=JSON.stringify(r))}}if("string"==typeof i.status&&(o[n.GEN_AI_RESPONSE_FINISH_REASONS_ATTRIBUTE]||(o[n.GEN_AI_RESPONSE_FINISH_REASONS_ATTRIBUTE]=JSON.stringify([i.status]))),r&&("string"!=typeof i.output_text||o[n.GEN_AI_RESPONSE_TEXT_ATTRIBUTE]||(o[n.GEN_AI_RESPONSE_TEXT_ATTRIBUTE]=i.output_text),Array.isArray(i.output)&&i.output.length>0&&!o[n.GEN_AI_RESPONSE_TOOL_CALLS_ATTRIBUTE])){const e=i.output.f
50ilter(e=>"function_call"===e?.type);e.length>0&&(o[n.GEN_AI_RESPONSE_TOOL_CALLS_ATTRIBUTE]=JSON.stringify(e))}e.setAttributes(o)}function s(e){const t={[n.GEN_AI_REQUEST_MODEL_ATTRIBUTE]:e.model??"unknown"};"temperature"in e&&(t[n.GEN_AI_REQUEST_TEMPERATURE_ATTRIBUTE]=e.temperature),"top_p"in e&&(t[n.GEN_AI_REQUEST_TOP_P_ATTRIBUTE]=e.top_p),"frequency_penalty"in e&&(t[n.GEN_AI_REQUEST_FREQUENCY_PENALTY_ATTRIBUTE]=e.frequency_penalty),"presence_penalty"in e&&(t[n.GEN_AI_REQUEST_PRESENCE_PENALTY_ATTRIBUTE]=e.presence_penalty),"stream"in e&&(t[n.GEN_AI_REQUEST_STREAM_ATTRIBUTE]=e.stream),"encoding_format"in e&&(t[n.GEN_AI_REQUEST_ENCODING_FORMAT_ATTRIBUTE]=e.encoding_format),"dimensions"in e&&(t[n.GEN_AI_REQUEST_DIMENSIONS_ATTRIBUTE]=e.dimensions);const r=function(e){return"conversation"in e&&"string"==typeof e.conversation?e.conversation:"previous_response_id"in e&&"string"==typeof e.previous_response_id?e.previous_response_id:void 0}(e);return r&&(t[n.GEN_AI_CONVERSATION_ID_ATTRIBUTE]=r),t}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{addPrivateRequestAttributes:()=>f,addResponseAttributes:()=>m,extractRequestAttributes:()=>h,instrumentAnthropicAiClient:()=>b});var n=r(372),i=r(381),o=r(371),a=r(3361),s=r(3362),l=r(3369),c=r(3370),u=r(3371);let p=!1;const d=new WeakSet;function h(e,t,r){const i={[a.GEN_AI_SYSTEM_ATTRIBUTE]:"anthropic",[a.GEN_AI_OPERATION_NAME_ATTRIBUTE]:r,[n.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.ai.anthropic"};if(e.length>0&&"object"==typeof e[0]&&null!==e[0]){const t=e[0];t.tools&&Array.isArray(t.tools)&&(i[a.GEN_AI_REQUEST_AVAILABLE_TOOLS_ATTRIBUTE]=JSON.stringify(t.tools)),i[a.GEN_AI_REQUEST_MODEL_ATTRIBUTE]=t.model??"unknown","temperature"in t&&(i[a.GEN_AI_REQUEST_TEMPERATURE_ATTRIBUTE]=t.temperature),"top_p"in t&&(i[a.GEN_AI_REQUEST_TOP_P_ATTRIBUTE]=t.top_p),"stream"in t&&(i[a.GEN_AI_REQUEST_STREAM_ATTRIBUTE]=t.stream),"top_k"in t&&(i[a.GEN_AI_REQUEST_TOP_K_ATTRIBUTE]=t.top_k),"frequency_penalty"in t&&(i[a.GEN_AI_REQUEST_FREQUENCY_PENA
50LTY_ATTRIBUTE]=t.frequency_penalty),"max_tokens"in t&&(i[a.GEN_AI_REQUEST_MAX_TOKENS_ATTRIBUTE]=t.max_tokens)}else i[a.GEN_AI_REQUEST_MODEL_ATTRIBUTE]="models.retrieve"===t||"models.get"===t?e[0]:"unknown";return i}function f(e,t,r){const n=(0,u.messagesFromParams)(t);(0,u.setMessagesAttribute)(e,n,r),"prompt"in t&&e.setAttributes({[a.GEN_AI_PROMPT_ATTRIBUTE]:JSON.stringify(t.prompt)})}function m(e,t,r){t&&"object"==typeof t&&("type"in t&&"error"===t.type?(0,u.handleResponseError)(e,t):(r&&function(e,t){if("content"in t&&Array.isArray(t.content)){e.setAttributes({[a.GEN_AI_RESPONSE_TEXT_ATTRIBUTE]:t.content.map(e=>e.text).filter(e=>!!e).join("")});const r=[];for(const e of t.content)"tool_use"!==e.type&&"server_tool_use"!==e.type||r.push(e);r.length>0&&e.setAttributes({[a.GEN_AI_RESPONSE_TOOL_CALLS_ATTRIBUTE]:JSON.stringify(r)})}"completion"in t&&e.setAttributes({[a.GEN_AI_RESPONSE_TEXT_ATTRIBUTE]:t.completion}),"input_tokens"in t&&e.setAttributes({[a.GEN_AI_RESPONSE_TEXT_ATTRIBUTE]:JSON.stringify(t.input_tokens)})}(e,t),function(e,t){"id"in t&&"model"in t&&(e.setAttributes({[a.GEN_AI_RESPONSE_ID_ATTRIBUTE]:t.id,[a.GEN_AI_RESPONSE_MODEL_ATTRIBUTE]:t.model}),"usage"in t&&t.usage&&(0,s.setTokenUsageAttributes)(e,t.usage.input_tokens,t.usage.output_tokens,t.usage.cache_creation_input_tokens,t.usage.cache_read_input_tokens))}(e,t)))}function g(e,t){throw t.isRecording()&&(t.setStatus({code:i.SPAN_STATUS_ERROR,message:"internal_error"}),t.end()),e}function y(e,t,r,n,i){return new Proxy(e,{apply(e,l,u){const d=void 0!==l?l:n,y=!0===r.streaming;if(!y&&p)return e.apply(d,u);const b=r.operation||"unknown",v=h(u,t,b),_=v[a.GEN_AI_REQUEST_MODEL_ATTRIBUTE]??"unknown",S="object"==typeof u[0]?u[0]:void 0,E=Boolean(S?.stream);if(E||y)return function(e,t,r,n,i,l,u,d,h,m){const y={name:`${i} ${n[a.GEN_AI_REQUEST_MODEL_ATTRIBUTE]??"unknown"}`,op:`gen_ai.${i}`,attributes:n};if(h&&!m){let n;const i=(0,o.startSpanManual)(y,i=>(n=e.apply(t,r),d.recordInputs&&u&&f(i,u,(0,s.shouldEnableTruncation)(d.enableTruncation)),(async()=>{try{const e=await n;return(0,c.instrumentAsyncIterableStream)(e,i,d.recordOutputs??!1)}catch(e){return g(e,i)}})()));return(0,s.wrapPromiseWithMethods)(n,i)}return(0,o.startSpanManual)(y,n=>{try{d.recordInputs&&u&&f(n,u,(0,s.shouldEnableTruncation)(d.enableTruncation)),p=!0;const i=e.apply(t,r);return p=!1,(0,c.instrumentMessageStream)(i,n,d.recordOutputs??!1)}catch(e){return p=!1,g(e,n)}})}(e,d,u,v,b,0,S,i,E,y);let T;const w=(0,o.startSpan)({name:`${b} ${_}`,op:`gen_ai.${b}`,attributes:v},t=>(T=e.apply(d,u),i.recordInputs&&S&&f(t,S,(0,s.shouldEnableTruncation)(i.enableTruncation)),T.then(e=>(m(t,e,i.recordOutputs),e))));return(0,s.wrapPromiseWithMethods)(T,w)}})}function b(e,t){return function(e,t){for(const r of Object.keys(l.ANTHROPIC_METHOD_REGISTRY)){const n=r.split("."),i=n.pop();let o=e;for(const e of n)o=o?.[e];if(!o||"function"!=typeof o[i])continue;const a=o[i];if(d.has(a))continue;const s=y(a,r,l.ANTHROPIC_METHOD_REGISTRY[r],o,t);d.add(s),o[i]=s}return e}(e,(0,s.resolveAIRecordingOptions)(t))}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{ANTHROPIC_AI_INTEGRATION_NAME:()=>n,ANTHROPIC_METHOD_REGISTRY:()=>i});const n="Anthropic_AI",i={"messages.create":{operation:"chat"},"messages.stream":{operation:"chat",streaming:!0},"messages.countTokens":{operation:"chat"},"models.get":{operation:"models"},"completions.create":{operation:"chat"},"models.retrieve":{operation:"models"},"beta.messages.create":{operation:"chat"}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{instrumentAsyncIterableStream:()=>l,instrumentMessageStream:()=>c});var n=r(345),i=r(381),o=r(3362),a=r(3371);function s(e,t,r,n){if(!e||"object"!=typeof e)return;const o=function(e,t){return"type"in e&&"string"==typeof e.type&&"error"===e.type&&(t.setStatus({code:i.SPAN_STATUS_ERROR,message:(0,a.mapAnthropicErrorToStatusMessage)(e.error?.type)}),!0)}(e,n);o||(function(e,t){if("message_delta"===e.type&&(e.usage&&"number"==typeof e.usage.output_tokens&&(t.completionTokens=e.usage.output_tokens),e.delta?.stop_reason&&t.finishReasons.push(e.delta.stop_reason)),e.message){const r=e.message;r.id&&(t.responseId=r.id),r.model&&(t.responseModel=r.model),r.usage&&("number"==typeof r.usage.input_tokens&&(t.promptTokens=r.usage.input_tokens),"number"==typeof r.usage.cache_creation_input_tokens&&(t.cacheCreationInputTokens=r.usage.cache_creation_input_tokens),"number"==typeof r.usage.cache_read_input_tokens&&(t.cacheReadInputTokens=r.usage.cache_read_input_tokens))}}(e,t),function(e,t){"content_block_start"===e.type&&"number"==typeof e.index&&e.content_block&&("tool_use"!==e.content_block.type&&"server_tool_use"!==e.content_block.type||(t.activeToolBlocks[e.index]={id:e.content_block.id,name:e.content_block.name,inputJsonParts:[]}))}(e,t),function(e,t,r){if("content_block_delta"===e.type&&e.delta){if("number"==typeof e.index&&"partial_json"in e.delta&&"string"==typeof e.delta.partial_json){const r=t.activeToolBlocks[e.index];r&&r.inputJsonParts.push(e.delta.partial_json)}r&&"string"==typeof e.delta.text&&t.responseTexts.push(e.delta.text)}}(e,t,r),function(e,t){if("content_block_stop"!==e.type||"number"!=typeof e.index)return;const r=t.activeToolBlocks[e.index];if(!r)return;const n=r.inputJsonParts.join("");let i;try{i=n?JSON.parse(n):{}}catch{i={__unparsed:n}}t.toolCalls.push({type:"tool_use",id:r.id,name:r.name,input:i}),delete t.activeToolBlocks[e.index]}(e,t))}async function*l(e,t,r){const n={responseTexts:[],finishReasons:[],responseId:"",responseModel:"",promptTokens:void 0,completionTokens:void 0,cacheCreationInputTokens:void 0,cacheReadInputTokens:void 0,toolCalls:[],activeToolBlocks:{}};try{for await(const i of e)s(i,n,r,t),yield i}finally{(0,o.endStreamSpan)(t,n,r)}}function c(e,t,r){const a={responseTexts:[],finishReasons:[],responseId:"",responseModel:"",promptTokens:void 0,completionTokens:void 0,cacheCreationInputTokens:void 0,cacheReadInputTokens:void 0,toolCalls:[],activeToolBlocks:{}};return e.on("streamEvent",e=>{s(e,a,r,t)}),e.on("message",()=>{(0,o.endStreamSpan)(t,a,r)}),e.on("error",e=>{(0,n.captureException)(e,{mechanism:{handled:!1,type:"auto.ai.anthropic.stream_error"}}),t.isRecording()&&(t.setStatus({code:i.SPAN_STATUS_ERROR,message:"internal_error"}),t.end())}),e}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{handleResponseError:()=>p,mapAnthropicErrorToStatusMessage:()=>u,messagesFromParams:()=>d,setMessagesAttribute:()=>l});var n=r(345),i=r(361),o=r(381),a=r(3361),s=r(3362);function l(e,t,r){if(Array.isArray(t)&&0===t.length)return;const{systemInstructions:n,filteredMessages:o}=(0,s.extractSystemInstructions)(t);n&&e.setAttributes({[a.GEN_AI_SYSTEM_INSTRUCTIONS_ATTRIBUTE]:n});const l=Array.isArray(o)?o.length:1;
50e.setAttributes({[a.GEN_AI_INPUT_MESSAGES_ATTRIBUTE]:r?(0,s.getTruncatedJsonString)(o):(0,i.stringify)(o),[a.GEN_AI_INPUT_MESSAGES_ORIGINAL_LENGTH_ATTRIBUTE]:l})}const c={invalid_request_error:"invalid_argument",authentication_error:"unauthenticated",permission_error:"permission_denied",not_found_error:"not_found",request_too_large:"failed_precondition",rate_limit_error:"resource_exhausted",api_error:"internal_error",overloaded_error:"unavailable"};function u(e){return e&&c[e]||"internal_error"}function p(e,t){t.error&&(e.setStatus({code:o.SPAN_STATUS_ERROR,message:u(t.error.type)}),(0,n.captureException)(t.error,{mechanism:{handled:!1,type:"auto.ai.anthropic.anthropic_error"}}))}function d(e){const{system:t,messages:r,input:n}=e,i="string"==typeof t?[{role:"system",content:e.system}]:[],o=Array.isArray(n)?n:null!=n?[n]:void 0,a=Array.isArray(r)?r:null!=r?[r]:[];return[...i,...o??a]}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{addPrivateRequestAttributes:()=>m,addResponseAttributes:()=>g,extractModel:()=>h,extractRequestAttributes:()=>f,instrumentGoogleGenAIClient:()=>b});var n=r(372),i=r(361),o=r(381),a=r(371),s=r(374),l=r(3361),c=r(3362),u=r(3373),p=r(3374),d=r(3375);function h(e,t){if("model"in e&&"string"==typeof e.model)return e.model;if(t&&"object"==typeof t){const e=t;if("model"in e&&"string"==typeof e.model)return e.model;if("modelVersion"in e&&"string"==typeof e.modelVersion)return e.modelVersion}return"unknown"}function f(e,t,r){const i={[l.GEN_AI_SYSTEM_ATTRIBUTE]:u.GOOGLE_GENAI_SYSTEM_NAME,[l.GEN_AI_OPERATION_NAME_ATTRIBUTE]:e,[n.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.ai.google_genai"};if(t){if(i[l.GEN_AI_REQUEST_MODEL_ATTRIBUTE]=h(t,r),"config"in t&&"object"==typeof t.config&&t.config){const e=t.config;if(Object.assign(i,function(e){const t={};return"temperature"in e&&"number"==typeof e.temperature&&(t[l.GEN_AI_REQUEST_TEMPERATURE_ATTRIBUTE]=e.temperature),"topP"in e&&"number"==typeof e.topP&&(t[l.GEN_AI_REQUEST_TOP_P_ATTRIBUTE]=e.topP),"topK"in e&&"number"==typeof e.topK&&(t[l.GEN_AI_REQUEST_TOP_K_ATTRIBUTE]=e.topK),"maxOutputTokens"in e&&"number"==typeof e.maxOutputTokens&&(t[l.GEN_AI_REQUEST_MAX_TOKENS_ATTRIBUTE]=e.maxOutputTokens),"frequencyPenalty"in e&&"number"==typeof e.frequencyPenalty&&(t[l.GEN_AI_REQUEST_FREQUENCY_PENA
50LTY_ATTRIBUTE]=e.frequencyPenalty),"presencePenalty"in e&&"number"==typeof e.presencePenalty&&(t[l.GEN_AI_REQUEST_PRESENCE_PENALTY_ATTRIBUTE]=e.presencePenalty),t}(e)),"tools"in e&&Array.isArray(e.tools)){const t=e.tools.flatMap(e=>e.functionDeclarations);i[l.GEN_AI_REQUEST_AVAILABLE_TOOLS_ATTRIBUTE]=JSON.stringify(t)}}}else i[l.GEN_AI_REQUEST_MODEL_ATTRIBUTE]=h({},r);return i}function m(e,t,r,n){if("embeddings"===r){const r=t.contents;return void(null!=r&&e.setAttribute(l.GEN_AI_EMBEDDINGS_INPUT_ATTRIBUTE,"string"==typeof r?r:JSON.stringify(r)))}const o=[];if("config"in t&&t.config&&"object"==typeof t.config&&"systemInstruction"in t.config&&t.config.systemInstruction&&o.push(...(0,d.contentUnionToMessages)(t.config.systemInstruction,"system")),"history"in t&&o.push(...(0,d.contentUnionToMessages)(t.history,"user")),"contents"in t&&o.push(...(0,d.contentUnionToMessages)(t.contents,"user")),"message"in t&&o.push(...(0,d.contentUnionToMessages)(t.message,"user")),Array.isArray(o)&&o.length){const{systemInstructions:t,filteredMessages:r}=(0,c.extractSystemInstructions)(o);t&&e.setAttribute(l.GEN_AI_SYSTEM_INSTRUCTIONS_ATTRIBUTE,t);const a=Array.isArray(r)?r.length:0;e.setAttributes({[l.GEN_AI_INPUT_MESSAGES_ORIGINAL_LENGTH_ATTRIBUTE]:a,[l.GEN_AI_INPUT_MESSAGES_ATTRIBUTE]:n?(0,c.getTruncatedJsonString)(r):(0,i.stringify)(r)})}}function g(e,t,r){if(t&&"object"==typeof t){if(t.modelVersion&&e.setAttribute(l.GEN_AI_RESPONSE_MODEL_ATTRIBUTE,t.modelVersion),t.usageMetadata&&"object"==typeof t.usageMetadata){const r=t.usageMetadata;"number"==typeof r.promptTokenCount&&e.setAttributes({[l.GEN_AI_USAGE_INPUT_TOKENS_ATTRIBUTE]:r.promptTokenCount}),"number"==typeof r.candidatesTokenCount&&e.setAttributes({[l.GEN_AI_USAGE_OUTPUT_TOKENS_ATTRIBUTE]:r.candidatesTokenCount}),"number"==typeof r.totalTokenCount&&e.setAttributes({[l.GEN_AI_USAGE_TOTAL_TOKENS_ATTRIBUTE]:r.totalTokenCount})}if(r&&Array.isArray(t.candidates)&&t.candidates.length>0){const r=t.candidates.map(e=>e.content?.parts&&Array.isArray(e.content.parts)?e.content.parts.map(e=>"string"==typeof e.text?e.text:"").filter(e=>e.length>0).join(""):"").filter(e=>e.length>0);r.length>0&&e.setAttributes({[l.GEN_AI_RESPONSE_TEXT_ATTRIBUTE]:r.join("")})}if(r&&t.functionCalls){const r=t.functionCalls;Array.isArray(r)&&r.length>0&&e.setAttributes({[l.GEN_AI_RESPONSE_TOOL_CALLS_ATTRIBUTE]:JSON.stringify(r)})}}}function y(e,t="",r){return new Proxy(e,{get:(e,n,i)=>{const d=Reflect.get(e,n,i),h=(0,c.buildMethodPath)(t,String(n)),b=u.GOOGLE_GENAI_METHOD_REGISTRY[h];if("function"==typeof d&&b){const t=b.operation?function(e,t,r,n,i){const u="embeddings"===r.operation;return new Proxy(e,{apply(e,t,d){const h=r.operation||"unknown",y=d[0],b=f(h,y,n),v=b[l.GEN_AI_REQUEST_MODEL_ATTRIBUTE]??"unknown";return r.streaming?(0,a.startSpanManual)({name:`${h} ${v}`,op:`gen_ai.${h}`,attributes:b},async t=>{try{i.recordInputs&&y&&m(t,y,h,(0,c.shouldEnableTruncation)(i.enableTruncation));const r=await e.apply(n,d);return(0,p.instrumentStream)(r,t,Boolean(i.recordOutputs))}catch(e){throw t.setStatus({code:o.SPAN_STATUS_ERROR,message:"internal_error"}),t.end(),e}}):(0,a.startSpan)({name:`${h} ${v}`,op:`gen_ai.${h}`,attributes:b},t=>(i.recordInputs&&y&&m(t,y,h,(0,c.shouldEnableTruncation)(i.enableTruncation)),(0,s.handleCallbackErrors)(()=>e.apply(n,d),()=>{},()=>{},e=>{u||g(t,e,i.recordOutputs)})))}})}(d,0,b,e,r):d.bind(e);return b.proxyResultPath?function(...e){const n=t(...e);return n&&"object"==typeof n?y(n,b.proxyResultPath,r):n}:t}return"function"==typeof d?d.bind(e):d&&"object"==typeof d?y(d,h,r):d}})}function b(e,t){return y(e,"",(0,c.resolveAIRecordingOptions)(t))}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{GOOGLE_GENAI_INTEGRATION_NAME:()=>n,GOOGLE_GENAI_METHOD_REGISTRY:()=>i,GOOGLE_GENAI_SYSTEM_NAME:()=>o});const n="Google_GenAI",i={"models.generateContent":{operation:"generate_content"},"models.generateContentStream":{operation:"generate_content",streaming:!0},"models.embedContent":{operation:"embeddings"},"chats.create":{proxyResultPath:"chat"},"chat.sendMessage":{operation:"chat"},"chat.sendMessageStream":{operation:"chat",streaming:!0}},o="google_genai"},(e,t,r)=>{"use strict";r.r(t),r.d(t,{instrumentStream:()=>s});var n=r(345),i=r(381),o=r(3362);function a(e,t,r,o){e&&!function(e,t){const r=e?.promptFeedback;if(r?.blockReason){const e=r.blockReasonMessage??r.blockReason;return t.setStatus({code:i.SPAN_STATUS_ERROR,message:"internal_error"}),(0,n.captureException)(`Content blocked: ${e}`,{mechanism:{handled:!1,type:"auto.ai.google_genai"}}),!0}return!1}(e,o)&&(function(e,t){"string"==typeof e.responseId&&(t.responseId=e.responseId),"string"==typeof e.modelVersion&&(t.responseModel=e.modelVersion);const r=e.usageMetadata;r&&("number"==typeof r.promptTokenCount&&(t.promptTokens=r.promptTokenCount),"number"==typeof r.candidatesTokenCount&&(t.completionTokens=r.candidatesTokenCount),"number"==typeof r.totalTokenCount&&(t.totalTokens=r.totalTokenCount))}(e,t),function(e,t,r){Array.isArray(e.functionCalls)&&t.toolCalls.push(...e.functionCalls);for(const n of e.candidates??[]){n?.finishReason&&!t.finishReasons.includes(n.finishReason)&&t.finishReasons.push(n.finishReason);for(const e of n?.content?.parts??[])r&&e.text&&t.responseTexts.push(e.text),e.functionCall&&t.toolCalls.push({type:"function",id:e.functionCall.id,name:e.functionCall.name,arguments:e.functionCall.args})}}(e,t,r))}async function*s(e,t,r){const n={responseTexts:[],finishReasons:[],toolCalls:[]};try{for await(const i of e)a(i,n,r,t),yield i}finally{(0,o.endStreamSpan)(t,n,r)}}},(e,t,r)=>{"use strict";function n(e,t="user"){return"string"==typeof e?[{role:t,content:e}]:Array.isArray(e)?e.flatMap(e=>n(e,t)):"object"==typeof e&&e?"role"in e&&"string"==typeof e.role?[e]:"parts"in e?[{...e,role:t}]:[{role:t,content:e}]:[]}r.r(t),r.d(t,{contentUnionToMessages:()=>n})},(e,t,r)=>{"use strict";r.r(t),r.d(t,{createLangChainCallbackHandler:()=>u});var n=r(372),i=r(381),o=r(371),a=r(3361),s=r(3362),l=r(3377),c=r(3378);function u(e={}){const{recordInputs:t,recordOutputs:r}=(0,s.resolveAIRecordingOptions)(e),u=(0,s.shouldEnableTruncation)(e.enableTruncation),p=new Map,d=e=>{const t=p.get(e);t?.isRecording()&&(t.end(),p.delete(e))}
50,h={lc_serializable:!1,lc_namespace:["langchain_core","callbacks","sentry"],lc_secrets:void 0,lc_attributes:void 0,lc_aliases:void 0,lc_serializable_keys:void 0,lc_id:["langchain_core","callbacks","sentry"],lc_kwargs:{},name:"SentryCallbackHandler",ignoreLLM:!1,ignoreChain:!1,ignoreAgent:!1,ignoreRetriever:!1,ignoreCustomEvent:!1,raiseError:!1,awaitHandlers:!0,handleLLMStart(e,r,i,s,l,d,h,f){const m=(0,c.getInvocationParams)(d),g=(0,c.extractLLMRequestAttributes)(e,r,t,u,m,h),y=g[a.GEN_AI_REQUEST_MODEL_ATTRIBUTE],b=g[a.GEN_AI_OPERATION_NAME_ATTRIBUTE];(0,o.startSpanManual)({name:`${b} ${y}`,op:"gen_ai.chat",attributes:{...(0,c.getAgentNameFromMetadata)(h),...g,[n.SEMANTIC_ATTRIBUTE_SENTRY_OP]:"gen_ai.chat"}},e=>(p.set(i,e),e))},handleChatModelStart(e,r,i,s,l,d,h,f){const m=(0,c.getInvocationParams)(d),g=(0,c.extractChatModelRequestAttributes)(e,r,t,u,m,h),y=(0,c.extractToolDefinitions)(l);y&&(g[a.GEN_AI_REQUEST_AVAILABLE_TOOLS_ATTRIBUTE]=y);const b=g[a.GEN_AI_REQUEST_MODEL_ATTRIBUTE],v=g[a.GEN_AI_OPERATION_NAME_ATTRIBUTE];(0,o.startSpanManual)({name:`${v} ${b}`,op:"gen_ai.chat",attributes:{...(0,c.getAgentNameFromMetadata)(h),...g,[n.SEMANTIC_ATTRIBUTE_SENTRY_OP]:"gen_ai.chat"}},e=>(p.set(i,e),e))},handleLLMEnd(e,t,n,i,o){const a=p.get(t);if(a?.isRecording()){const n=(0,c.extractLlmResponseAttributes)(e,r);n&&a.setAttributes(n),d(t)}},handleLLMError(e,t){const r=p.get(t);r?.isRecording()&&(r.setStatus({code:i.SPAN_STATUS_ERROR,message:"internal_error"}),d(t))},handleChainStart(e,r,i,a,s,l,c,u){if(l?.__sentry_langgraph__)return;const d=u||e.name||"unknown_chain",h={[n.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.ai.langchain","langchain.chain.name":d};t&&(h["langchain.chain.inputs"]=JSON.stringify(r)),(0,o.startSpanManual)({name:`chain ${d}`,op:"gen_ai.invoke_agent",attributes:{...h,[n.SEMANTIC_ATTRIBUTE_SENTRY_OP]:"gen_ai.invoke_agent"}},e=>(p.set(i,e),e))},handleChainEnd(e,t){const n=p.get(t);n?.isRecording()&&(r&&n.setAttributes({"langchain.chain.outputs":JSON.stringify(e)}),d(t))},handleChainError(e,t){const r=p.get(t);r?.isRecording()&&(r.setStatus({code:i.SPAN_STATUS_ERROR,message:"internal_error"}),d(t))},handleToolStart(e,r,i,s,u,d,h){if(d?.__sentry_langgraph__)return;const f=h||e.name||"unknown_tool",m={...(0,c.getAgentNameFromMetadata)(d),[n.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:l.LANGCHAIN_ORIGIN,[a.GEN_AI_OPERATION_NAME_ATTRIBUTE]:"execute_tool",[a.GEN_AI_TOOL_NAME_ATTRIBUTE]:f};t&&(m[a.GEN_AI_TOOL_INPUT_ATTRIBUTE]=r),(0,o.startSpanManual)({name:`execute_tool ${f}`,op:"gen_ai.execute_tool",attributes:{...m,[n.SEMANTIC_ATTRIBUTE_SENTRY_OP]:"gen_ai.execute_tool"}},e=>(p.set(i,e),e))},handleToolEnd(e,t){const n=p.get(t);if(n?.isRecording()){if(r){const t=e&&"object"==typeof e&&"content"in e?e.content:e;n.setAttributes({[a.GEN_AI_TOOL_OUTPUT_ATTRIBUTE]:"string"==typeof t?t:JSON.stringify(t)})}d(t)}},handleToolError(e,t){const r=p.get(t);r?.isRecording()&&(r.setStatus({code:i.SPAN_STATUS_ERROR,message:"internal_error"}),d(t))},copy:()=>h,toJSON:()=>({lc:1,type:"not_implemented",id:h.lc_id}),toJSONNotImplemented:()=>({lc:1,type:"not_implemented",id:h.lc_id})};return h}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{LANGCHAIN_INTEGRATION_NAME:()=>n,LANGCHAIN_ORIGIN:()=>i,ROLE_MAP:()=>o});const n="LangChain",i="auto.ai.langchain",o={human:"user",ai:"assistant",assistant:"assistant",system:"system",function:"function",tool:"tool"}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{_INTERNAL_mergeLangChainCallbackHandler:()=>x,extractChatModelRequestAttributes:()=>v,extractLLMRequestAttributes:()=>b,extractLlmResponseAttributes:()=>_,extractToolDefinitions:()=>E,getAgentNameFromMetadata:()=>S,getInvocationParams:()=>f,normalizeLangChainMessages:()=>m});var n=r(372),i=r(361),o=r(3361),a=r(3364),s=r(3362),l=r(3377);const c=(e,t,r)=>{null!=r&&(e[t]=r)},u=(e,t,r)=>{const n=Number(r);Number.isNaN(n)||(e[t]=n)};function p(e){if(Array.isArray(e))try{const t=e.map(e=>e&&"object"==typeof e&&(0,a.isContentMedia)(e)?(0,a.stripInlineMediaFromSingleMessage)(e):e);return JSON.stringify(t)}catch{return String(e)}return(0,i.stringify)(e,String)}function d(e){const t=e.toLowerCase();return l.ROLE_MAP[t]??t}function h(e){return e.includes("System")?"system":e.includes("Human")?"user":e.includes("AI")||e.includes("Assistant")?"assistant":e.includes("Function")?"function":e.includes("Tool")?"tool":"user"}function f(e){if(e&&!Array.isArray(e))return e.invocation_params}function m(e){return e.map(e=>{const t=e._getType;if("function"==typeof t){return{role:d(t.call(e)),content:p(e.content)}}if(1===e.lc&&e.kwargs){const t=e.id,r=Array.isArray(t)&&t.length>0?t[t.length-1]:"";
50return{role:d("string"==typeof r?h(r):"user"),content:p(e.kwargs?.content)}}if(e.type){return{role:d(String(e.type).toLowerCase()),content:p(e.content)}}if(e.role)return{role:d(String(e.role)),content:p(e.content)};const r=e.constructor?.name;return r&&"Object"!==r?{role:d(h(r)),content:p(e.content)}:{role:"user",content:p(e.content)}})}function g(e,t,r){const n={},i="kwargs"in e?e.kwargs:void 0,a=t?.temperature??r?.ls_temperature??i?.temperature;u(n,o.GEN_AI_REQUEST_TEMPERATURE_ATTRIBUTE,a);const s=t?.max_tokens??r?.ls_max_tokens??i?.max_tokens;u(n,o.GEN_AI_REQUEST_MAX_TOKENS_ATTRIBUTE,s);const l=t?.top_p??i?.top_p;u(n,o.GEN_AI_REQUEST_TOP_P_ATTRIBUTE,l);const p=t?.frequency_penalty;u(n,o.GEN_AI_REQUEST_FREQUENCY_PENALTY_ATTRIBUTE,p);const d=t?.presence_penalty;return u(n,o.GEN_AI_REQUEST_PRESENCE_PENALTY_ATTRIBUTE,d),t&&"stream"in t&&c(n,o.GEN_AI_REQUEST_STREAM_ATTRIBUTE,Boolean(t.stream)),n}function y(e,t,r,a,s){return{[o.GEN_AI_SYSTEM_ATTRIBUTE]:(0,i.stringify)(e??"langchain",String),[o.GEN_AI_OPERATION_NAME_ATTRIBUTE]:"chat",[o.GEN_AI_REQUEST_MODEL_ATTRIBUTE]:(0,i.stringify)(t,String),[n.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:l.LANGCHAIN_ORIGIN,...g(r,a,s)}}function b(e,t,r,n,a,l){const u=l?.ls_provider,p=y(u,a?.model??l?.ls_model_name??"unknown",e,a,l);if(r&&Array.isArray(t)&&t.length>0){c(p,o.GEN_AI_INPUT_MESSAGES_ORIGINAL_LENGTH_ATTRIBUTE,t.length);const e=t.map(e=>({role:"user",content:e}));c(p,o.GEN_AI_INPUT_MESSAGES_ATTRIBUTE,n?(0,s.getTruncatedJsonString)(e):(0,i.stringify)(e))}return p}function v(e,t,r,n,a,l){const u=y(l?.ls_provider??e.id?.[2],a?.model??l?.ls_model_name??"unknown",e,a,l);if(r&&Array.isArray(t)&&t.length>0){const e=m(t.flat()),{systemInstructions:r,filteredMessages:a}=(0,s.extractSystemInstructions)(e);r&&c(u,o.GEN_AI_SYSTEM_INSTRUCTIONS_ATTRIBUTE,r);const l=Array.isArray(a)?a.length:0;c(u,o.GEN_AI_INPUT_MESSAGES_ORIGINAL_LENGTH_ATTRIBUTE,l),c(u,o.GEN_AI_INPUT_MESSAGES_ATTRIBUTE,n?(0,s.getTruncatedJsonString)(a):(0,i.stringify)(a))}return u}function _(e,t){if(!e)return;const r={};if(Array.isArray(e.generations)){const n=e.generations.flat().map(e=>e.generationInfo?.finish_reason?e.generationInfo.finish_reason:e.generation_info?.finish_reason?e.generation_info.finish_reason:null).filter(e=>"string"==typeof e);if(n.length>0&&c(r,o.GEN_AI_RESPONSE_FINISH_REASONS_ATTRIBUTE,(0,i.stringify)(n,String)),function(e,t){const r=[],n=e.flat();for(const e of n){const t=e.message,n=t?.tool_calls;if(Array.isArray(n)&&n.length>0)r.push(...n);else{const t=e.message?.content;if(Array.isArray(t))for(const e of t){const t=e;"tool_use"===t.type&&r.push(t)}}}r.length>0&&c(t,o.GEN_AI_RESPONSE_TOOL_CALLS_ATTRIBUTE,(0,i.stringify)(r,String))}(e.generations,r),t){const t=e.generations.flat().map(e=>e.text??e.message?.content).filter(e=>"string"==typeof e);t.length>0&&c(r,o.GEN_AI_RESPONSE_TEXT_ATTRIBUTE,(0,i.stringify)(t,String))}}!function(e,t){if(!e)return;const r=e.tokenUsage,n=e.usage;if(r)u(t,o.GEN_AI_USAGE_INPUT_TOKENS_ATTRIBUTE,r.promptTokens),u(t,o.GEN_AI_USAGE_OUTPUT_TOKENS_ATTRIBUTE,r.completionTokens),u(t,o.GEN_AI_USAGE_TOTAL_TOKENS_ATTRIBUTE,r.totalTokens);else if(n){u(t,o.GEN_AI_USAGE_INPUT_TOKENS_ATTRIBUTE,n.input_tokens),u(t,o.GEN_AI_USAGE_OUTPUT_TOKENS_ATTRIBUTE,n.output_tokens);const e=Number(n.input_tokens),r=Number(n.output_tokens),i=(Number.isNaN(e)?0:e)+(Number.isNaN(r)?0:r);i>0&&u(t,o.GEN_AI_USAGE_TOTAL_TOKENS_ATTRIBUTE,i),void 0!==n.cache_creation_input_tokens&&u(t,o.GEN_AI_USAGE_CACHE_CREATION_INPUT_TOKENS_ATTRIBUTE,n.cache_creation_input_tokens),void 0!==n.cache_read_input_tokens&&u(t,o.GEN_AI_USAGE_CACHE_READ_INPUT_TOKENS_ATTRIBUTE,n.cache_read_input_tokens)}}(e.llmOutput,r);const n=e.llmOutput,a=e.generations?.[0]?.[0],s=a?.message,l=n?.model_name??n?.model??s?.response_metadata?.model_name;l&&c(r,o.GEN_AI_RESPONSE_MODEL_ATTRIBUTE,l);const p=n?.id??s?.id;p&&c(r,o.GEN_AI_RESPONSE_ID_ATTRIBUTE,p);const d=n?.stop_reason??s?.response_metadata?.finish_reason;return d&&c(r,o.GEN_AI_RESPONSE_STOP_REASON_ATTRIBUTE,(0,i.stringify)(d,String)),r}function S(e){const t={},r=e?.lc_agent_name;return"string"==typeof r&&(t[o.GEN_AI_AGENT_NAME_ATTRIBUTE]=r),t}function E(e){const t=e?.invocation_params?.tools??e?.options?.tools;if(!Array.isArray(t)||0===t.length)return;const r=t.map(e=>{const t=e.function;return{type:"function",name:e.name??t?.name??"",description:e.description??t?.de
50scription}});return JSON.stringify(r)}function T(e){return"object"==typeof e&&"SentryCallbackHandler"===e?.name}function w(e){return e.some(T)}function x(e,t){if(!e)return[t];if(function(e){if(!e||"object"!=typeof e)return!1;const t=e;return"function"==typeof t.addHandler&&"function"==typeof t.copy}(e)){if(w(e.handlers??[]))return e;const r=e.copy();return r.addHandler(t,!0),r}const r=Array.isArray(e)?e:[e];return w(r)?e:[...r,t]}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{_INTERNAL_getLangChainEmbeddingsSpanOptions:()=>l,instrumentEmbeddingMethod:()=>c,instrumentLangChainEmbeddings:()=>u});var n=r(372),i=r(371),o=r(3361),a=r(3362),s=r(3377);function l(e,t,r={}){const{recordInputs:i}=(0,a.resolveAIRecordingOptions)(r),l=function(e){const t=e??{},r={[n.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:s.LANGCHAIN_ORIGIN,[n.SEMANTIC_ATTRIBUTE_SENTRY_OP]:o.GEN_AI_EMBEDDINGS_OPERATION_ATTRIBUTE,[o.GEN_AI_OPERATION_NAME_ATTRIBUTE]:"embeddings",[o.GEN_AI_REQUEST_MODEL_ATTRIBUTE]:t.model??"unknown"};return r[o.GEN_AI_SYSTEM_ATTRIBUTE]=function(e){const t=e.constructor?.name??"";return t.includes("OpenAI")?"openai":t.includes("Google")?"google_genai":t.includes("Mistral")?"mistralai":t.includes("Vertex")?"google_vertexai":t.includes("Bedrock")?"aws_bedrock":t.includes("Ollama")?"ollama":t.includes("Cloudflare")?"cloudflare":t.includes("Cohere")?"cohere":"langchain"}(t),"dimensions"in t&&(r[o.GEN_AI_REQUEST_DIMENSIONS_ATTRIBUTE]=t.dimensions),"encodingFormat"in t&&(r[o.GEN_AI_REQUEST_ENCODING_FORMAT_ATTRIBUTE]=t.encodingFormat),r}(e),c=l[o.GEN_AI_REQUEST_MODEL_ATTRIBUTE]||"unknown";return i&&null!=t&&(l[o.GEN_AI_EMBEDDINGS_INPUT_ATTRIBUTE]="string"==typeof t?t:JSON.stringify(t)),{name:`embeddings ${c}`,op:o.GEN_AI_EMBEDDINGS_OPERATION_ATTRIBUTE,attributes:l}}function c(e,t={}){return new Proxy(e,{apply:(e,r,n)=>(0,i.startSpan)(l(r,n[0],t),()=>Reflect.apply(e,r,n))})}function u(e,t){const r=e;return"function"==typeof r.embedQuery&&(r.embedQuery=c(r.embedQuery,t)),"function"==typeof r.embedDocuments&&(r.embedDocuments=c(r.embedDocuments,t)),e}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{_INTERNAL_getLangGraphCreateAgentSpanOptions:()=>m,instrumentCompiledGraphInvoke:()=>y,instrumentCreateReactAgent:()=>b,instrumentLangGraph:()=>_,instrumentStateGraph:()=>v,instrumentStateGraphCompile:()=>g});var n=r(372),i=r(361),o=r(381),a=r(371),s=r(3361),l=r(3362),c=r(3376),u=r(3378),p=r(3381),d=r(3382);let h=!1;const f="__sentry_patched__";function m(e){const t={[n.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:p.LANGGRAPH_ORIGIN,[n.SEMANTIC_ATTRIBUTE_SENTRY_OP]:"gen_ai.create_agent",[s.GEN_AI_OPERATION_NAME_ATTRIBUTE]:"create_agent"};return e&&(t[s.GEN_AI_AGENT_NAME_ATTRIBUTE]=e),{op:"gen_ai.create_agent",name:e?`create_agent ${e}`:"create_agent",attributes:t}}function g(e,t){if(Object.prototype.hasOwnProperty.call(e,f))return e;const r=(0,c.createLangChainCallbackHandler)(t),n=new Proxy(e,{apply:(e,n,i)=>h?Reflect.apply(e,n,i):(0,a.startSpan)(m(),a=>{try{const o=Reflect.apply(e,n,i),l=i.length>0?i[0]:{};l?.name&&"string"==typeof l.name&&(a.setAttribute(s.GEN_AI_AGENT_NAME_ATTRIBUTE,l.name),a.updateName(`create_agent ${l.name}`));const c=o.invoke;return c&&"function"==typeof c&&(o.invoke=y(c.bind(o),o,l,t,void 0,r)),o}catch(e){throw a.setStatus({code:o.SPAN_STATUS_ERROR,message:"internal_error"}),e}})});return Object.defineProperty(n,f,{value:!0,enumerable:!1}),n}function y(e,t,r,c,h,f){return new Proxy(e,{apply(e,m,g){const y=h?.modelName??h?.model;return(0,a.startSpan)({op:"gen_ai.invoke_agent",name:"invoke_agent",attributes:{[n.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:p.LANGGRAPH_ORIGIN,[n.SEMANTIC_ATTRIBUTE_SENTRY_OP]:s.GEN_AI_INVOKE_AGENT_OPERATION_ATTRIBUTE,[s.GEN_AI_OPERATION_NAME_ATTRIBUTE]:"invoke_agent"}},async n=>{try{const o=r?.name;o&&"string"==typeof o&&(n.setAttribute(s.GEN_AI_PIPELINE_NAME_ATTRIBUTE,o),n.setAttribute(s.GEN_AI_AGENT_NAME_ATTRIBUTE,o),n.updateName(`invoke_agent ${o}`)),y&&n.setAttribute(s.GEN_AI_REQUEST_MODEL_ATTRIBUTE,y);const a=g.length>1?g[1]:void 0,p=a?.configurable,h=p?.thread_id;if(h&&"string"==typeof h&&n.setAttribute(s.GEN_AI_CONVERSATION_ID_ATTRIBUTE,h),f){const e=g[1]??{};g[1]=e;const t=e.metadata??{};e.metadata={...t,__sentry_langgraph__:!0,..."string"==typeof o?{lc_agent_name:o}:{}},e.callbacks=(0,u._INTERNAL_mergeLangChainCallbackHandler)(e.callbacks,f)}const b=(0,d.extractToolsFromCompiledGraph)(t);b&&n.setAttribute(s.GEN_AI_REQUEST_AVAILABLE_TOOLS_ATTRIBUTE,JSON.stringify(b));const v=c.recordInputs,_=c.recordOutputs,S=g.length>0?g[0]?.messages??[]:[];if(S&&v){const e=(0,u.normalizeLangChainMessages)(S),{systemInstructions:t,filteredMessages:r}=(0,l.extractSystemInstructions)(e);t&&n.setAttribute(s.GEN_AI_SYSTEM_INSTRUCTIONS_ATTRIBUTE,t);const o=(0,l.shouldEnableTruncation)(c.enableTruncation),a=Array.isArray(r)?r.length:0;n.setAttributes({[s.GEN_AI_INPUT_MESSAGES_ATTRIBUTE]:o?(0,l.getTruncatedJsonString)(r):(0,i.stringify)(r),[s.GEN_AI_INPUT_MESSAGES_ORIGINAL_LENGTH_ATTRIBUTE]:a})}const E=await Reflect.apply(e,m,g);return _&&(0,d.setResponseAttributes)(n,S??null,E),E}catch(e){throw n.setStatus({code:o.SPAN_STATUS_ERROR,message:"internal_error"}),e}})}})}function b(e,t){if(Object.prototype.hasOwnProperty.call(e,f))return e;const r=(0,l.resolveAIRecordingOptions)(t),n=(0,c.createLangChainCallbackHandler)(r),i=new Proxy(e,{apply(e,t,i){const o=(0,d.extractLLMFromParams)(i),a=(0,d.extractAgentNameFromParams)(i),s=i[0];let l;s&&Array.isArray(s.tools)&&s.tools.length>0&&(0,d.wrapToolsWithSpans)(s.tools,r,a??void 0),h=!0;try{l=Reflect.apply(e,t,i)}finally{h=!1}const c=l.invoke;if(c&&"function"==typeof c){const e={};
50a&&(e.name=a),l.invoke=y(c.bind(l),l,e,r,o,n)}return l}});return Object.defineProperty(i,f,{value:!0,enumerable:!1}),i}function v(e,t){return e.compile=g(e.compile,(0,l.resolveAIRecordingOptions)(t)),e}const _=v},(e,t,r)=>{"use strict";r.r(t),r.d(t,{LANGGRAPH_INTEGRATION_NAME:()=>n,LANGGRAPH_ORIGIN:()=>i});const n="LangGraph",i="auto.ai.langgraph"},(e,t,r)=>{"use strict";r.r(t),r.d(t,{extractAgentNameFromParams:()=>u,extractLLMFromParams:()=>c,extractModelMetadata:()=>f,extractTokenUsageFromMessage:()=>h,extractToolCalls:()=>d,extractToolsFromCompiledGraph:()=>m,setResponseAttributes:()=>g,wrapToolsWithSpans:()=>p});var n=r(372),i=r(381),o=r(371),a=r(3361),s=r(3378),l=r(3381);function c(e){const t=e[0];if("object"!=typeof t||!t||!("llm"in t)||!t.llm||"object"!=typeof t.llm)return null;const r=t.llm;return"string"!=typeof r.modelName&&"string"!=typeof r.model?null:r}function u(e){const t=e[0];return"object"==typeof t&&t&&"name"in t&&"string"==typeof t.name?t.name:null}function p(e,t,r){const s="__sentry_tool_wrapped__";for(const c of e){if(!c||"object"!=typeof c)continue;const e=c,u=e.invoke;if("function"!=typeof u||Object.prototype.hasOwnProperty.call(e,s))continue;const p="string"==typeof e.name?e.name:"unknown_tool",d="string"==typeof e.description?e.description:void 0,h=new Proxy(u,{apply(e,s,c){const u={[n.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:l.LANGGRAPH_ORIGIN,[n.SEMANTIC_ATTRIBUTE_SENTRY_OP]:a.GEN_AI_EXECUTE_TOOL_OPERATION_ATTRIBUTE,[a.GEN_AI_OPERATION_NAME_ATTRIBUTE]:"execute_tool",[a.GEN_AI_TOOL_NAME_ATTRIBUTE]:p,[a.GEN_AI_TOOL_TYPE_ATTRIBUTE]:"function"},h=c[1],f=h?.metadata?.lc_agent_name??r;"string"==typeof f&&(u[a.GEN_AI_AGENT_NAME_ATTRIBUTE]=f),d&&(u[a.GEN_AI_TOOL_DESCRIPTION_ATTRIBUTE]=d);const m=c[0];if("object"==typeof m&&m&&("id"in m&&"string"==typeof m.id&&(u[a.GEN_AI_TOOL_CALL_ID_ATTRIBUTE]=m.id),t.recordInputs)){const e="args"in m&&"object"==typeof m.args?m.args:m;try{u[a.GEN_AI_TOOL_INPUT_ATTRIBUTE]=JSON.stringify(e)}catch{}}return(0,o.startSpan)({op:a.GEN_AI_EXECUTE_TOOL_OPERATION_ATTRIBUTE,name:`execute_tool ${p}`,attributes:u},async r=>{try{const n=await Reflect.apply(e,s,c);if(t.recordOutputs)try{const e=n&&"object"==typeof n&&"content"in n?n.content:n;r.setAttribute(a.GEN_AI_TOOL_OUTPUT_ATTRIBUTE,"string"==typeof e?e:JSON.stringify(e))}catch{}return n}catch(e){throw r.setStatus({code:i.SPAN_STATUS_ERROR,message:"internal_error"}),e}})}});e.invoke=h,Object.defineProperty(e,s,{value:!0,enumerable:!1})}return e}function d(e){if(!e||0===e.length)return null;const t=[];for(const r of e)if(r&&"object"==typeof r){const e=r.tool_calls;e&&Array.isArray(e)&&t.push(...e)}return t.length>0?t:null}function h(e){const t=e;let r=0,n=0,i=0;if(t.usage_metadata&&"object"==typeof t.usage_metadata){const e=t.usage_metadata;return"number"==typeof e.input_tokens&&(r=e.input_tokens),"number"==typeof e.output_tokens&&(n=e.output_tokens),"number"==typeof e.total_tokens&&(i=e.total_tokens),{inputTokens:r,outputTokens:n,totalTokens:i}}if(t.response_metadata&&"object"==typeof t.response_metadata){const e=t.response_metadata;if(e.tokenUsage&&"object"==typeof e.tokenUsage){const t=e.tokenUsage;"number"==typeof t.promptTokens&&(r=t.promptTokens),"number"==typeof t.completionTokens&&(n=t.completionTokens),"number"==typeof t.totalTokens&&(i=t.totalTokens)}}return{inputTokens:r,outputTokens:n,totalTokens:i}}function f(e,t){const r=t;if(r.response_metadata&&"object"==typeof r.response_metadata){const t=r.response_metadata;t.model_name&&"string"==typeof t.model_name&&e.setAttribute(a.GEN_AI_RESPONSE_MODEL_ATTRIBUTE,t.model_name),t.finish_reason&&"string"==typeof t.finish_reason&&e.setAttribute(a.GEN_AI_RESPONSE_FINISH_REASONS_ATTRIBUTE,[t.finish_reason])}}function m(e){if(!e.builder?.nodes?.tools?.runnable?.tools)return null;const t=e.builder?.nodes?.tools?.runnable?.tools;return t&&Array.isArray(t)&&0!==t.length?t.map(e=>({name:e.lc_kwargs?.name,description:e.lc_kwargs?.description,schema:e.lc_kwargs?.schema})):null}function g(e,t,r){const n=r,i=n?.messages;if(!i||!Array.isArray(i))return;const o=t?.length??0,l=i.length>o?i.slice(o):[];if(0===l.length)return;const c=d(l);c&&e.setAttribute(a.GEN_AI_RESPONSE_TOOL_CALLS_ATTRIBUTE,JSON.stringify(c));const u=(0,s.normalizeLangChainMessages)(l);e.setAttribute(a.GEN_AI_RESPONSE_TEXT_ATTRIBUTE,JSON.stringify(u));let p=0,m=0,g=0;for(const t of l){const r=h(t);p+=r.inputTokens,m+=r.outputTokens,g+=r.totalTokens,f(e,t)}p>0&&e.setAttribute(a.GEN_AI_USAGE_INPUT_TOKENS_ATTRIBUTE,p),m>0&&e.setAttribute(a.GEN_AI_USAGE_OUTPUT_TOKENS_ATTRIBUTE,m),g>0&&e.setAttribute(a.GEN_AI_USAGE_TOTAL_TOKENS_ATTRIBUTE,g)}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{uiProfiler:()=>a});var n=r(346),i=r(358),o=r(1518);const a={startProfiler:function(){const e=(0,n.getClient)();if(!e)return void(o.DEBUG_BUILD&&i.debug.warn("No Sentry client available, profiling is not started"));e.getIntegrationByName("BrowserProfiling")?e.emit("startUIProfiler"):o.DEBUG_BUILD&&i.debug.warn("BrowserProfiling integration is not available")},stopProfiler:function(){const e=(0,n.getClient)();if(!e)return void(o.DEBUG_BUILD&&i.debug.warn("No Sentry client available, profiling is not started"));e.getIntegrationByName("BrowserProfiling")?e.emit("stopUIProfiler"):o.DEBUG_BUILD&&i.debug.warn("ProfilingIntegration is not available")}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{createUserFeedbackEnvelope:()=>o});var n=r(384),i=r(393);function o(e,{metadata:t,tunnel:r,dsn:o}){const a={event_id:e.event_id,sent_at:(new Date).toISOString(),...t?.sdk&&{sdk:{name:t.sdk.name,version:t.sdk.version}},...!!r&&!!o&&{dsn:(0,n.dsnToString)(o)}},s=function(e){return[{type:"user_report"},e]}(e);return(0,i.createEnvelope)(a,[s])}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{showReportDialog:()=>c});var n=r(345),i=r(346),o=r(1476),a=r(358),s=r(1518),l=r(1502);function c(e={}){const t=l.WINDOW.document,r=t?.head||t?.body;if(!r)return void(s.DEBUG_BUILD&&a.debug.error("[showReportDialog] Global document not defined"));const c=(0,i.getCurrentScope)(),u=(0,i.getClient)(),p=u?.getDsn();if(!p)return void(s.DEBUG_BUILD&&a.debug.error("[showReportDialog] DSN not configured"));const d={...e,user:{...c.getUser(),...e.user},eventId:e.eventId||(0,n.lastEventId)()},h=l.WINDOW.document.createElement("script");h.async=!0,h.crossOrigin="anonymous",h.src=(0,o.getReportDialogEndpoint)(p,d);const{onLoad:f,onClose:m}=d;if(f&&(h.onload=f),m){const e=t=>{if("__sentry_reportdialog_closed__"===t.data)try{m()}finally{l.WINDOW.removeEventListener("message",e)}};l.WINDOW.addEventListener("message",e)}r.appendChild(h)}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{reportingObserverIntegration:()=>u});var n=r(345),i=r(346),o=r(1468),a=r(350),s=r(1509);const l=a.GLOBAL_OBJ,c=new WeakMap,u=(0,o.defineIntegration)((e={})=>{const t=e.types||["crash","deprecation","intervention"];function r(e){if(c.has((0,i.getClient)()))for(const t of e)(0,i.withScope)(e=>{e.setExtra("url",t.url);const r=`ReportingObserver [${t.type}]`;let i="No details available";if(t.body){const r={};for(const e in t.body)r[e]=t.body[e];if(e.setExtra("body",r),"crash"===t.type){const e=t.body;i=[e.crashId||"",e.reason||""].join(" ").trim()||i}else{i=t.body.message||i}}(0,n.captureMessage)(`${r}: ${i}`)})}return{name:"ReportingObserver",setupOnce(){if(!(0,s.supportsReportingObserver)())return;new l.ReportingObserver(r,{buffered:!0,types:t}).observe()},setup(e){c.set(e,!0)}}})},(e,t,r)=>{"use strict";r.r(t),r.d(t,{httpClientIntegration:()=>g});var n=r(345),i=r(346),o=r(1468),a=r(3388),s=r(3389),l=r(3391),c=r(350),u=r(1508),p=r(358),d=r(356),h=r(1509),f=r(1516),m=r(1518);const g=(0,o.defineIntegration)((e={})=>{const t={failedRequestStatusCodes:[[500,599]],failedRequestTargets:[/.*/],...e};return{name:"HttpClient",setup(e){!function(e,t){if(!(0,h.supportsNativeFetch)())return;(0,u.addFetchInstrumentationHandler)(r=>{if((0,i.getClient)()!==e)return;const{response:o,args:l,error:c,virtualError:u}=r,[p,d]=l;o&&function(e,t,r,i,o){if(v(e,r.status,r.url)){const e=function(e,t){if(!t&&e instanceof Request)return e;if(e instanceof Request&&e.bodyUsed)return e;
50return new Request(e,t)}(t,i);let l,c,u,p;const d=S();if(!1!==d.requestHeaders&&(l=(0,a.filterKeyValueData)(b(e.headers),d.requestHeaders)),!1!==d.responseHeaders&&(c=(0,a.filterKeyValueData)(b(r.headers),d.responseHeaders)),!1!==d.cookies){const t=e.headers.get("Cookie")||void 0;if(t){const e=(0,s.filterCookies)(t,d.cookies);"object"==typeof e&&(u=e)}const n=r.headers.get("Set-Cookie")||void 0;if(n){const e=(0,s.filterCookies)(n,d.cookies);"object"==typeof e&&(p=e)}}const h=_({url:e.url,method:e.method,status:r.status,requestHeaders:l,responseHeaders:c,requestCookies:u,responseCookies:p,error:o,type:"fetch"});(0,n.captureEvent)(h)}}(t,p,o,d,c||u)},!1)}(e,t),function(e,t){if(!("XMLHttpRequest"in c.GLOBAL_OBJ))return;(0,f.addXhrInstrumentationHandler)(r=>{if((0,i.getClient)()!==e)return;const{error:o,virtualError:l}=r,c=r.xhr,u=c[f.SENTRY_XHR_DATA_KEY];if(!u)return;const{method:d,request_headers:h}=u;try{!function(e,t,r,i,o){if(v(e,t.status,t.responseURL)){let e,l,c;const u=S();if(!1!==u.cookies)try{const e=t.getResponseHeader("Set-Cookie")||t.getResponseHeader("set-cookie")||void 0;if(e){const t=(0,s.filterCookies)(e,u.cookies);"object"==typeof t&&(l=t)}}catch{}if(!1!==u.responseHeaders)try{c=(0,a.filterKeyValueData)(function(e){const t=e.getAllResponseHeaders();if(!t)return{};return t.split("\r\n").reduce((e,t)=>{const[r,n]=t.split(": ");return r&&n&&(e[r]=n),e},{})}(t),u.responseHeaders)}catch{}!1!==u.requestHeaders&&(e=(0,a.filterKeyValueData)(i,u.requestHeaders));const p=_({url:t.responseURL,method:r,status:t.status,requestHeaders:e,responseHeaders:c,responseCookies:l,error:o,type:"xhr"});(0,n.captureEvent)(p)}}(t,c,d,h,o||l)}catch(e){m.DEBUG_BUILD&&p.debug.warn("Error while extracting response event form XHR response",e)}})}(e,t)}}});function y(e){if(e){const t=e["Content-Length"]||e["content-length"];if(t)return parseInt(t,10)}}function b(e){const t={};return e.forEach((e,r)=>{t[r]=e}),t}function v(e,t,r){return function(e,t){return e.some(e=>"number"==typeof e?e===t:t>=e[0]&&t<=e[1])}(e.failedRequestStatusCodes,t)&&(n=e.failedRequestTargets,o=r,n.some(e=>"string"==typeof e?o.includes(e):e.test(o)))&&!(0,l.isSentryRequestUrl)(r,(0,i.getClient)());var n,o}function _(e){const t=(0,i.getClient)(),r=t&&e.error&&e.error instanceof Error?e.error.stack:void 0,n=r&&t?t.getOptions().stackParser(r,0,1):void 0,o=`HTTP Client Error with status code: ${e.status}`,a={message:o,exception:{values:[{type:"Error",value:o,stacktrace:n?{frames:n}:void 0}]},request:{url:e.url,method:e.method,headers:e.requestHeaders,cookies:e.requestCookies},contexts:{response:{status_code:e.status,headers:e.responseHeaders,cookies:e.responseCookies,body_size:y(e.responseHeaders)}}};return(0,d.addExceptionMechanism)(a,{type:`auto.http.client.${e.type}`,handled:!1}),a}function S(){const e=(0,i.getClient)();if(!e)return{cookies:!1,requestHeaders:!1,responseHeaders:!1};const t=e.getOptions();if(null==t.dataCollection){const e=Boolean(t.sendDefaultPii);return{cookies:e,requestHeaders:e,responseHeaders:e}}const{cookies:r,httpHeaders:n}=e.getDataCollectionOptions();return{cookies:r,requestHeaders:n.request,responseHeaders:n.response}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{filterKeyValueData:()=>o});var n=r(1497);function i(e,t){return t.some(t=>e.includes(t))}function o(e,t,r){if(!1===t)return{};const o=null!=r?[...n.SENSITIVE_KEY_SNIPPETS,...r]:n.SENSITIVE_KEY_SNIPPETS,a={};if(!0===t){for(const t of Object.keys(e))a[t]=i(t.toLowerCase(),o)?n.FILTERED_VALUE:e[t];return a}if("deny"in t){const r=t.deny.map(e=>e.toLowerCase());for(const t of Object.keys(e)){const s=t.toLowerCase(),l=i(s,o)||r.some(e=>s.includes(e));a[t]=l?n.FILTERED_VALUE:e[t]}return a}const s=t.allow.map(e=>e.toLowerCase());for(const t of Object.keys(e)){const r=t.toLowerCase();if(i(r,o))a[t]=n.FILTERED_VALUE;else{const i=s.some(e=>r.includes(e));a[t]=i?e[t]:n.FILTERED_VALUE}}return a}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{filterCookies:()=>a});var n=r(3390),i=r(1497),o=r(3388);function a(e,t){if(!1===t)return{};try{const r=(0,n.parseCookie)(e);return 0===Object.keys(r).length?{}:(0,o.filterKeyValueData)(r,t,i.SENSITIVE_COOKIE_NAME_SNIPPETS)}catch{return i.FILTERED_VALUE}}},(e,t,r)=>{"use strict";function n(e){const t={};let r=0;for(;r<e.length;){const n=e.indexOf("=",r);
50if(-1===n)break;let i=e.indexOf(";",r);if(-1===i)i=e.length;else if(i<n){r=e.lastIndexOf(";",n-1)+1;continue}const o=e.slice(r,n).trim();if(void 0===t[o]){let r=e.slice(n+1,i).trim();34===r.charCodeAt(0)&&(r=r.slice(1,-1));try{t[o]=-1!==r.indexOf("%")?decodeURIComponent(r):r}catch{t[o]=r}}r=i+1}return t}r.r(t),r.d(t,{parseCookie:()=>n})},(e,t,r)=>{"use strict";r.r(t),r.d(t,{isSentryRequestUrl:()=>i});var n=r(1511);function i(e,t){const r=t?.getDsn(),i=t?.getOptions().tunnel;return function(e,t){const r=(0,n.parseStringToURLObject)(e);if(!r||(0,n.isURLObjectRelative)(r))return!1;if(!t)return!1;return i=r.hostname,o=t.host,(i===o||o.length>0&&i.endsWith(`.${o}`))&&/(^|&|\?)sentry_key=/.test(r.search);var i,o}(e,r)||function(e,t){if(!t)return!1;return o(e)===o(t)}(e,i)}function o(e){return"/"===e[e.length-1]?e.slice(0,-1):e}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{applySourceContextToFrame:()=>c,contextLinesIntegration:()=>l});var n=r(1468),i=r(350),o=r(356),a=r(1511);const s=i.GLOBAL_OBJ,l=(0,n.defineIntegration)((e={})=>({name:"ContextLines",processEvent:(t,r,n)=>function(e,t){const r=s.document,n=s.location&&(0,a.stripUrlQueryAndFragment)(s.location.href);if(!r||!n)return e;const i=e.exception?.values;if(!i?.length)return e;const o=r.documentElement.innerHTML;if(!o)return e;const l=["<!DOCTYPE html>","<html>",...o.split("\n"),"</html>"];return i.forEach(e=>{const r=e.stacktrace;r?.frames&&(r.frames=r.frames.map(e=>c(e,l,n,t)))}),e}(t,e.frameContextLines??n?.getDataCollectionOptions().frameContextLines??7)}));function c(e,t,r,n){return e.filename===r&&e.lineno&&t.length?((0,o.addContextToFrame)(t,e,n),e):e}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{_getGraphQLOperation:()=>p,getGraphQLRequestPayload:()=>g,getRequestPayloadXhrOrFetch:()=>d,graphqlClientIntegration:()=>y,parseGraphQLQuery:()=>h});var n=r(372),i=r(1468),o=r(379),a=r(359),s=r(361),l=r(1516),c=r(1577),u=r(1512);function p(e){if(m(e))return`persisted ${e.operationName}`;if(f(e)){const{query:t,operationName:r}=e,{operationName:n=r,operationType:i}=h(t);return n?`${i} ${n}`:`${i}`}return"unknown"}function d(e){let t;if("xhr"in e){const r=e.xhr[l.SENTRY_XHR_DATA_KEY];t=r&&(0,c.getBodyString)(r.body)[0]}else{const r=(0,c.getFetchRequestArgBody)(e.input);t=(0,c.getBodyString)(r)[0]}return t}function h(e){const t=e.match(/^(?:\s*)(query|mutation|subscription)(?:\s*)(\w+)(?:\s*)[{(]/);if(t)return{operationType:t[1],operationName:t[2]};const r=e.match(/^(?:\s*)(query|mutation|subscription)(?:\s*)[{(]/);return r?{operationType:r[1],operationName:void 0}:{operationType:void 0,operationName:void 0}}function f(e){return(0,a.isObjectLike)(e)&&"string"==typeof e.query}function m(e){return(0,a.isObjectLike)(e)&&"string"==typeof e.operationName&&(0,a.isObjectLike)(e.extensions)&&(0,a.isObjectLike)(e.extensions.persistedQuery)&&"string"==typeof e.extensions.persistedQuery.sha256Hash&&"number"==typeof e.extensions.persistedQuery.version}function g(e){try{const t=JSON.parse(e);return f(t)||m(t)?t:void 0}catch{return}}const y=(0,i.defineIntegration)(e=>({name:"GraphQLClient",setup(t){!function(e,t){e.on("beforeOutgoingRequestSpan",(r,i)=>{const l=(0,o.spanToJSON)(r).data||{};if(!("http.client"===l[n.SEMANTIC_ATTRIBUTE_SENTRY_OP]))return;const c=l[u.URL_FULL]||l["http.url"]||l.url,h=l[n.SEMANTIC_ATTRIBUTE_HTTP_REQUEST_METHOD]||l["http.method"];if(!(0,a.isString)(c)||!(0,a.isString)(h))return;const{endpoints:y}=t,b=(0,s.stringMatchesSomePattern)(c,y),v=d(i);if(b&&v){const t=g(v);if(t){const n=p(t);r.updateName(`${h} ${c} (${n})`),f(t)&&!0===e.getDataCollectionOptions().graphQL.document&&r.setAttribute(u.GRAPHQL_DOCUMENT,t.query),m(t)&&(r.setAttribute("graphql.persisted_query.hash.sha256",t.extensions.persistedQuery.sha256Hash),r.setAttribute("graphql.persisted_query.version",t.extensions.persistedQuery.version))}}})}(t,e),function(e,t){e.on("beforeOutgoingRequestBreadcrumb",(r,n)=>{const{category:i,type:o,data:a}=r;if("http"===o&&("fetch"===i||"xhr"===i)){const r=a?.url,{endpoints:i}=t,o=(0,s.stringMatchesSomePattern)(r,i),l=d(n);if(o&&a&&l){const t=g(l);if(!a.graphql&&t){const r=p(t);a["graphql.operation"]=r,f(t)&&!0===e.getDataCollectionOptions().graphQL.document&&(a[u.GRAPHQL_DOCUMENT]=t.query),m(t)&&(a["graphql.persisted_query.hash.sha256"]=t.extensions.persistedQuery.sha256Hash,a["graphql.persisted_query.version"]=t.extensions.persistedQuery.version)}}}})}(t,e)}}))},(e,t,r)=>{"use strict";r.r(t),r.d(t,{viewHierarchyIntegration:()=>a});var n=r(1468),i=r(1503),o=r(1502);const a=(0,n.defineIntegration)((e={})=>{const t=["script"];function r(n,o,a=0){if(!n)return;const s="shadowRoot"in n&&n.shadowRoot?n.shadowRoot.children:n.children;for(const n of s){if(!(n instanceof HTMLElement))continue;const s=(0,i.getComponentName)(n,1)||void 0,l=n.tagName.toLowerCase();if(t.includes(l))continue;const c=e.onElement?.({element:n,componentName:s,tagName:l,depth:a})||{};if("skip"===c)continue;if("children"===c){r(n,o,a+1);continue}const{x:u,y:p,width:d,height:h}=n.getBoundingClientRect(),f={identifier:n.id||void 0,type:s||l,visible:!0,alpha:1,height:h,width:d,x:u,y:p,...c},m=[];f.children=m,r(n,f.children,a+1),o.push(f)}}return{name:"ViewHierarchy",processEvent:(t,n)=>{if(void 0!==t.type||!1===e.shouldAttach?.(t,n))return t;const i={rendering_system:"DOM",positioning:"absolute",windows:[]};r(e.rootElement?.()||o.WINDOW.document.body,i.windows);const a={filename:"view-hierarchy.json",attachmentType:"event.view_hierarchy",contentType:"application/json",data:JSON.stringify(i)};return n.attachments=n.attachments||[],n.attachments.push(a),t}}})},(e,t,r)=>{"use strict";r.r(t),r.d(t,{getReplay:()=>Kn,replayIntegration:()=>$n});var n=r(385),i=r(1525),o=r(372),a=r(345),s=r(346),l=r(396),c=r(3391),u=r(379),p=r(378),d=r(3396),h=r(697),f=r(350),m=r(359),g=r(1482),y=r(358),b=r(356),v=r(362),_=r(357),S=r(1510),E=r(361),T=r(365),w=r(393),x=r(1492),O=r(1503),I=r(1545),A=r(1513),k=r(1515),R=r(1535),C=r(1516),P=r(1577),D=r(1517);const M=f.GLOBAL_OBJ,N="sentryReplaySession",L="Unable to send Replay",F=15e4,B=5e3,U=2e7,j=36e5;var H=Object.defineProperty,V=(e,t,r)=>((e,t,r)=>t in e?H(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r)(e,"symbol"!=typeof t?t+"":t,r),z=(e=>(e[e.Document=0]="Document",e[e.DocumentType=1]="DocumentType",e[e.Element=2]="Element",e[e.Text=3]="Text",e[e.CDATA=4]="CDATA",e[e.Comment=5]="Comment",e))(z||{});function G(e){const t=e?.host;return Boolean(t?.shadowRoot===e)}function q(e){return"[object ShadowRoot]"===Object.prototype.toString.call(e)}function $(e){try{const r=e.rules||e.cssRules;return r?((t=Array.from(r,W).join("")).includes(" background-clip: text;")&&!t.includes(" -webkit-background-clip: text;")&&(t=t.replace(/\sbackground-clip:\s*text;/g," -webkit-background-clip: text; background-clip: text;")),t):null}catch(e){return null}var t}function W(e){let t;if(function(e){return"styleSheet"in e}(e))try{t=$(e.styleSheet)||function(e){const{cssText:t}=e;if(t.split('"').length<3)return t;const r=["@import",`url(${JSON.stringify(e.href)})`];return""===e.layerName?r.push("layer"):e.layerName&&r.push(`layer(${e.layerName})`),e.supportsText&&r.push(`supports(${e.supportsText})`),e.media.length&&r.push(e.media.mediaText),r.join(" ")+";"}(e)}catch(e){}else if(function(e){return"selectorText"in e}(e)){let t=e.cssText;const r=e.selectorText.includes(":"),n="string"==typeof e.style.all&&e.style.all;if(n&&(t=function(e){let t="";for(let r=0;r<e.style.length;r++){const n=e.style,i=n[r],o=n.getPropertyPriority(i);t+=`${i}:${n.getPropertyValue(i)}${o?" !important":""};`}return`${e.selectorText} { ${t} }`}(e)),r&&(t=function(e){const t=/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm;return e.replace(t,"$1\\$2")}(t)),r||n)return t}return t||e.cssText}class Y{constructor(){V(this,"idNodeMap",new Map),V(this,"nodeMetaMap",new WeakMap)}getId(e){if(!e)return-1;const t=this.getMeta(e)?.id;return t??-1}getNode(e){return this.idNodeMap.get(e)||null}getIds(){return Array.from(this.idNodeMap.keys())}getMeta(e){return this.nodeMetaMap.get(e)||null}removeNodeFromMap(e){const t=this.getId(e);
50this.idNodeMap.delete(t),e.childNodes&&e.childNodes.forEach(e=>this.removeNodeFromMap(e))}has(e){return this.idNodeMap.has(e)}hasNode(e){return this.nodeMetaMap.has(e)}add(e,t){const r=t.id;this.idNodeMap.set(r,e),this.nodeMetaMap.set(e,t)}replace(e,t){const r=this.getNode(e);if(r){const e=this.nodeMetaMap.get(r);e&&this.nodeMetaMap.set(t,e)}this.idNodeMap.set(e,t)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}}function K({maskInputOptions:e,tagName:t,type:r}){return"OPTION"===t&&(t="SELECT"),Boolean(e[t.toLowerCase()]||r&&e[r]||"password"===r||"INPUT"===t&&!r&&e.text)}function J({isMasked:e,element:t,value:r,maskInputFn:n}){let i=r||"";return e?(n&&(i=n(i,t)),"*".repeat(i.length)):i}function Q(e){return e.toLowerCase()}function X(e){return e.toUpperCase()}const Z="__rrweb_original__";function ee(e){const t=e.type;return e.hasAttribute("data-rr-is-password")?"password":t?Q(t):null}function te(e,t,r){return"INPUT"!==t||"radio"!==r&&"checkbox"!==r?e.value:e.getAttribute("value")||""}function re(e,t){let r;try{r=new URL(e,t??window.location.href)}catch(e){return null}const n=r.pathname.match(/\.([0-9a-z]+)(?:$)/i);return n?.[1]??null}const ne={};function ie(e){const t=ne[e];
50if(t)return t;const r=window.document;let n=window[e];if(r&&"function"==typeof r.createElement)try{const t=r.createElement("iframe");t.hidden=!0,r.head.appendChild(t);const i=t.contentWindow;i&&i[e]&&(n=i[e]),r.head.removeChild(t)}catch(e){}return ne[e]=n.bind(window)}function oe(...e){return ie("setTimeout")(...e)}function ae(...e){return ie("clearTimeout")(...e)}function se(e){try{return e.contentDocument}catch{}}let le=1;const ce=new RegExp("[^a-z0-9-_:]");function ue(){return le++}let pe,de;const he=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,fe=/^(?:[a-z+]+:)?\/\//i,me=/^www\..*/i,ge=/^(data:)([^,]*),(.*)/i;function ye(e,t){return(e||"").replace(he,(e,r,n,i,o,a)=>{const s=n||o||a,l=r||i||"";if(!s)return e;if(fe.test(s)||me.test(s))return`url(${l}${s}${l})`;if(ge.test(s))return`url(${l}${s}${l})`;if("/"===s[0])return`url(${l}${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}${l})`;const c=t.split("/"),u=s.split("/");c.pop();for(const e of u)"."!==e&&(".."===e?c.pop():c.push(e));return`url(${l}${c.join("/")}${l})`})}const be=/^[^ \t\n\r\u000c]+/,ve=/^[, \t\n\r\u000c]+/;const _e=new WeakMap;function Se(e,t){return t&&""!==t.trim()?Te(e,t):t}function Ee(e){return Boolean("svg"===e.tagName||e.ownerSVGElement)}function Te(e,t){let r=_e.get(e);if(r||(r=e.createElement("a"),_e.set(e,r)),t){if(t.startsWith("blob:")||t.startsWith("data:"))return t}else t="";return r.setAttribute("href",t),r.href}function we(e,t,r,n,i,o,a){if(!n)return n;if("src"===r||"href"===r&&("use"!==t||"#"!==n[0]))return Se(e,n);if("xlink:href"===r&&"#"!==n[0])return Se(e,n);if("background"===r&&("table"===t||"td"===t||"th"===t))return Se(e,n);if("srcset"===r)return function(e,t){if(""===t.trim())return t;let r=0;function n(e){let n;const i=e.exec(t.substring(r));return i?(n=i[0],r+=n.length,n):""}const i=[];for(;n(ve),!(r>=t.length);){let o=n(be);if(","===o.slice(-1))o=Se(e,o.substring(0,o.length-1)),i.push(o);else{let n="";o=Se(e,o);let a=!1;for(;;){const e=t.charAt(r);if(""===e){i.push((o+n).trim());break}if(a)")"===e&&(a=!1);else{if(","===e){r+=1,i.push((o+n).trim());break}"("===e&&(a=!0)}n+=e,r+=1}}}return i.join(", ")}(e,n);if("style"===r){let t=ye(n,Te(e));return a&&a.size>0&&(t=function(e,t){if(!e||0===t.size)return e;try{const r=e.split(";"),n=[];for(let e of r){if(e=e.trim(),!e)continue;const r=e.indexOf(":");if(-1===r){n.push(e);continue}const i=e.slice(0,r).trim();t.has(i)||n.push(e)}return n.join("; ")+(n.length>0&&e.endsWith(";")?";":"")}catch(t){return console.warn("Error filtering CSS properties:",t),e}}(t,a)),t}return"object"===t&&"data"===r?Se(e,n):"function"==typeof o?o(r,n,i):n}function xe(e,t,r){return("video"===e||"audio"===e)&&"autoplay"===t}function Oe(e,t,r=1/0,n=0){return e?e.nodeType!==e.ELEMENT_NODE||n>r?-1:t(e)?n:Oe(e.parentNode,t,r,n+1):-1}function Ie(e,t){return r=>{const n=r;if(null===n)return!1;try{if(e)if("string"==typeof e){if(n.matches(`.${e}`))return!0}else if(function(e,t){for(let r=e.classList.length;r--;){const n=e.classList[r];if(t.test(n))return!0}return!1}(n,e))return!0;return!(!t||!n.matches(t))}catch{return!1}}}function Ae(e,t,r,n,i,o){try{const a=e.nodeType===e.ELEMENT_NODE?e:e.parentElement;if(null===a)return!1;if("INPUT"===a.tagName){const e=a.getAttribute("autocomplete");if(["current-password","new-password","cc-number","cc-exp","cc-exp-month","cc-exp-year","cc-csc"].includes(e))return!0}let s=-1,l=-1;if(o){if(l=Oe(a,Ie(n,i)),l<0)return!0;s=Oe(a,Ie(t,r),l>=0?l:1/0)}else{if(s=Oe(a,Ie(t,r)),s<0)return!1;l=Oe(a,Ie(n,i),s>=0?s:1/0)}return s>=0?!(l>=0)||s<=l:!(l>=0)&&!!o}catch(e){}return!!o}function ke(e,t){const{doc:r,mirror:n,blockClass:i,blockSelector:o,unblockSelector:a,maskAllText:s,maskAttributeFn:l,maskTextClass:c,unmaskTextClass:u,maskTextSelector:p,unmaskTextSelector:d,inlineStylesheet:h,maskInputOptions:f={},maskTextFn:m,maskInputFn:g,dataURLOptions:y={},inlineImages:b,recordCanvas:v,keepIframeSrcFn:_,newlyAddedElement:S=!1,ignoreCSSAttributes:E}=t,T=function(e,t){if(!t.hasNode(e))return;const r=t.getId(e);return 1===r?void 0:r}(r,n);switch(e.nodeType){case e.DOCUMENT_NODE:return"CSS1Compat"!==e.compatMode?{type:z.Document,childNodes:[],compatMode:e.compatMode}:{type:z.Document,childNodes:[]};case e.DOCUMENT_TYPE_NODE:return{type:z.DocumentType,name:e.name,publicId:e.publicId,systemId:e.systemId,rootId:T};case e.ELEMENT_NODE:return function(e,t){const{doc:r,blockClass:n,blockSelector:i,unblockSelector:o,inlineStylesheet:a,maskInputOptions:s={},maskAttributeFn:l,maskInputFn:c,dataURLOptions:u={},inlineImages:p,recordCanvas:d,keepIframeSrcFn:h,newlyAddedElement:f=!1,rootId:m,maskTextClass:g,unmaskTextClass:y,maskTextSelector:b,unmaskTextSelector:v,ignoreCSSAttributes:_}=t,S=function(e,t,r,n){try{if(n&&e.matches(n))return!1;if("string"==typeof t){if(e.classList.contains(t))return!0}else for(let r=e.classList.length;r--;){const n=e.classList[r];if(t.test(n))return!0}if(r)return e.matches(r)}catch(e){}return!1}(e,n,i,o),E=function(e){if(e instanceof HTMLFormElement)return"form";const t=Q(e.tagName);return ce.test(t)?"div":t}(e);let T={};const w=e.attributes.length;for(let t=0;t<w;t++){const n=e.attributes[t];n.name&&!xe(E,n.name,n.value)&&(T[n.name]=we(r,E,Q(n.name),n.value,e,l,_))}if("link"===E&&a){const t=Array.from(r.styleSheets).find(t=>t.href===e.href);let n=null;t&&(n=$(t)),n&&(T.rel=null,T.href=null,T.crossorigin=null,T._cssText=ye(n,t.href))}if("style"===E&&e.sheet&&!(e.innerText||e.textContent||"").trim().length){const t=$(e.sheet);t&&(T._cssText=ye(t,Te(r)))}if("input"===E||"textarea"===E||"select"===E||"option"===E){const t=e,r=ee(t),n=te(t,X(E),r),i=t.checked;if("submit"!==r&&"button"!==r&&n){const e=Ae(t,g,b,y,v,K({type:r,tagName:X(E),maskInputOptions:s}));T.value=J({isMasked:e,element:t,value:n,maskInputFn:c})}i&&(T.checked=i)}"option"===E&&(e.selected&&!s.select?T.selected=!0:delete T.selected);if("canvas"===E&&d)if("2d"===e.__context)(function(e){const t=e.getContext("2d");if(!t)return!0;for(let r=0;r<e.width;r+=50)for(let n=0;n<e.height;n+=50){const i=t.getImageData,o=Z in i?i[Z]:i;
50if(new Uint32Array(o.call(t,r,n,Math.min(50,e.width-r),Math.min(50,e.height-n)).data.buffer).some(e=>0!==e))return!1}return!0})(e)||(T.rr_dataURL=e.toDataURL(u.type,u.quality));else if(!("__context"in e)){const t=e.toDataURL(u.type,u.quality),n=r.createElement("canvas");n.width=e.width,n.height=e.height;t!==n.toDataURL(u.type,u.quality)&&(T.rr_dataURL=t)}if("img"===E&&p){pe||(pe=r.createElement("canvas"),de=pe.getContext("2d"));const t=e,n=t.currentSrc||t.getAttribute("src")||"<unknown-src>",i=t.crossOrigin,o=()=>{t.removeEventListener("load",o);try{pe.width=t.naturalWidth,pe.height=t.naturalHeight,de.drawImage(t,0,0),T.rr_dataURL=pe.toDataURL(u.type,u.quality)}catch(e){if("anonymous"!==t.crossOrigin)return t.crossOrigin="anonymous",void(t.complete&&0!==t.naturalWidth?o():t.addEventListener("load",o));console.warn(`Cannot inline img src=${n}! Error: ${e}`)}"anonymous"===t.crossOrigin&&(i?T.crossOrigin=i:t.removeAttribute("crossorigin"))};t.complete&&0!==t.naturalWidth?o():t.addEventListener("load",o)}"audio"!==E&&"video"!==E||(T.rr_mediaState=e.paused?"paused":"played",T.rr_mediaCurrentTime=e.currentTime);f||(e.scrollLeft&&(T.rr_scrollLeft=e.scrollLeft),e.scrollTop&&(T.rr_scrollTop=e.scrollTop));if(S){const{width:t,height:r}=e.getBoundingClientRect();T={class:T.class,rr_width:`${t}px`,rr_height:`${r}px`}}"iframe"!==E||h(T.src)||(S||se(e)||(T.rr_src=T.src),delete T.src);let x;try{customElements.get(E)&&(x=!0)}catch(e){}return{type:z.Element,tagName:E,attributes:T,childNodes:[],isSVG:Ee(e)||void 0,needBlock:S,rootId:m,isCustom:x}}(e,{doc:r,blockClass:i,blockSelector:o,unblockSelector:a,inlineStylesheet:h,maskAttributeFn:l,maskInputOptions:f,maskInputFn:g,dataURLOptions:y,inlineImages:b,recordCanvas:v,keepIframeSrcFn:_,newlyAddedElement:S,rootId:T,maskTextClass:c,unmaskTextClass:u,maskTextSelector:p,unmaskTextSelector:d,ignoreCSSAttributes:E});case e.TEXT_NODE:return function(e,t){const{maskAllText:r,maskTextClass:n,unmaskTextClass:i,maskTextSelector:o,unmaskTextSelector:a,maskTextFn:s,maskInputOptions:l,maskInputFn:c,rootId:u}=t,p=e.parentNode&&e.parentNode.tagName;let d=e.textContent;const h="STYLE"===p||void 0,f="SCRIPT"===p||void 0,m="TEXTAREA"===p||void 0;if(h&&d){try{e.nextSibling||e.previousSibling||e.parentNode.sheet?.cssRules&&(d=$(e.parentNode.sheet))}catch(t){console.warn(`Cannot get CSS styles from text's parentNode. Error: ${t}`,e)}d=ye(d,Te(t.doc))}f&&(d="SCRIPT_PLACEHOLDER");const g=Ae(e,n,o,i,a,r);h||f||m||!d||!g||(d=s?s(d,e.parentElement):d.replace(/[\S]/g,"*"));m&&d&&(l.textarea||g)&&(d=c?c(d,e.parentNode):d.replace(/[\S]/g,"*"));
vendor: 4,341 bytes, line 50
50if("OPTION"===p&&d){d=J({isMasked:Ae(e,n,o,i,a,K({type:null,tagName:p,maskInputOptions:l})),element:e,value:d,maskInputFn:c})}return{type:z.Text,textContent:d||"",isStyle:h,rootId:u}}(e,{doc:r,maskAllText:s,maskTextClass:c,unmaskTextClass:u,maskTextSelector:p,unmaskTextSelector:d,maskTextFn:m,maskInputOptions:f,maskInputFn:g,rootId:T});case e.CDATA_SECTION_NODE:return{type:z.CDATA,textContent:"",rootId:T};case e.COMMENT_NODE:return{type:z.Comment,textContent:e.textContent||"",rootId:T};default:return!1}}function Re(e){return null==e?"":e.toLowerCase()}function Ce(e,t){const{doc:r,mirror:n,blockClass:i,blockSelector:o,unblockSelector:a,maskAllText:s,maskTextClass:l,unmaskTextClass:c,maskTextSelector:u,unmaskTextSelector:p,skipChild:d=!1,inlineStylesheet:h=!0,maskInputOptions:f={},maskAttributeFn:m,maskTextFn:g,maskInputFn:y,slimDOMOptions:b,dataURLOptions:v={},inlineImages:_=!1,recordCanvas:S=!1,onSerialize:E,onIframeLoad:T,iframeLoadTimeout:w=5e3,onBlockedImageLoad:x,onStylesheetLoad:O,stylesheetLoadTimeout:I=5e3,keepIframeSrcFn:A=()=>!1,newlyAddedElement:k=!1,ignoreCSSAttributes:R}=t;let{preserveWhiteSpace:C=!0}=t;const P=ke(e,{doc:r,mirror:n,blockClass:i,blockSelector:o,maskAllText:s,unblockSelector:a,maskTextClass:l,unmaskTextClass:c,maskTextSelector:u,unmaskTextSelector:p,inlineStylesheet:h,maskInputOptions:f,maskAttributeFn:m,maskTextFn:g,maskInputFn:y,dataURLOptions:v,inlineImages:_,recordCanvas:S,keepIframeSrcFn:A,newlyAddedElement:k,ignoreCSSAttributes:R});if(!P)return console.warn(e,"not serialized"),null;let D;D=n.hasNode(e)?n.getId(e):!function(e,t){if(t.comment&&e.type===z.Comment)return!0;if(e.type===z.Element){if(t.script&&("script"===e.tagName||"link"===e.tagName&&("preload"===e.attributes.rel||"modulepreload"===e.attributes.rel)||"link"===e.tagName&&"prefetch"===e.attributes.rel&&"string"==typeof e.attributes.href&&"js"===re(e.attributes.href)))return!0;if(t.headFavicon&&("link"===e.tagName&&"shortcut icon"===e.attributes.rel||"meta"===e.tagName&&(Re(e.attributes.name).match(/^msapplication-tile(image|color)$/)||"application-name"===Re(e.attributes.name)||"icon"===Re(e.attributes.rel)||"apple-touch-icon"===Re(e.attributes.rel)||"shortcut icon"===Re(e.attributes.rel))))return!0;if("meta"===e.tagName){if(t.headMetaDescKeywords&&Re(e.attributes.name).match(/^description|keywords$/))return!0;if(t.headMetaSocial&&(Re(e.attributes.property).match(/^(og|twitter|fb):/)||Re(e.attributes.name).match(/^(og|twitter):/)||"pinterest"===Re(e.attributes.name)))return!0;if(t.headMetaRobots&&("robots"===Re(e.attributes.name)||"googlebot"===Re(e.attributes.name)||"bingbot"===Re(e.attributes.name)))return!0;if(t.headMetaHttpEquiv&&void 0!==e.attributes["http-equiv"])return!0;if(t.headMetaAuthorship&&("author"===Re(e.attributes.name)||"generator"===Re(e.attributes.name)||"framework"===Re(e.attributes.name)||"publisher"===Re(e.attributes.name)||"progid"===Re(e.attributes.name)||Re(e.attributes.property).match(/^article:/)||Re(e.attributes.property).match(/^product:/)))return!0;if(t.headMetaVerification&&("google-site-verification"===Re(e.attributes.name)||"yandex-verification"===Re(e.attributes.name)||"csrf-token"===Re(e.attributes.name)||"p:domain_verify"===Re(e.attributes.name)||"verify-v1"===Re(e.attributes.name)||"verification"===Re(e.attributes.name)||"shopify-checkout-api-token"===Re(e.attributes.name)))return!0}}return!1}(P,b)&&(C||P.type!==z.Text||P.isStyle||P.textContent.trim().length)?ue():-2;const M=Object.assign(P,{id:D});if(n.add(e,M),-2===D)return null;E&&E(e);let N=!d;if(M.type===z.Element){N=N&&!M.needBlock;const t=e.shadowRoot;t&&q(t)&&(M.isShadowHost=!0)}if((M.type===z.Document||M.type===z.Element)&&N){b.headWhitespace&&M.type===z.Element&&"head"===M.tagName&&(C=!1);const t={doc:r,mirror:n,blockClass:i,blockSelector:o,maskAllText:s,unblockSelector:a,maskTextClass:l,unmaskTextClass:c,maskTextSelector:u,unmaskTextSelector:p,skipChild:d,inlineStylesheet:h,maskInputOptions:f,maskAttributeFn:m,maskTextFn:g,maskInputFn:y,slimDOMOptions:b,dataURLOptions:v,inlineImages:_,recordCanvas:S,preserveWhiteSpace:C,onSerialize:E,onIframeLoad:T,iframeLoadTimeout:w,onBlockedImageLoad:x,onStylesheetLoad:O,stylesheetLoadTimeout:I,keepIframeSrcFn:A,ignoreCSSAttributes:R},k=e.childNodes?Array.from(e.childNodes):[];for(const e of k){const r=Ce(e,t);r&&M.childNodes.push(r)}
50if(function(e){return e.nodeType===e.ELEMENT_NODE}(e)&&e.shadowRoot)for(const r of Array.from(e.shadowRoot.childNodes)){const n=Ce(r,t);n&&(q(e.shadowRoot)&&(n.isShadow=!0),M.childNodes.push(n))}}if(e.parentNode&&G(e.parentNode)&&q(e.parentNode)&&(M.isShadow=!0),M.type!==z.Element||"iframe"!==M.tagName||M.needBlock||function(e,t,r){const n=function(e){try{return e.contentWindow}catch{}}(e);if(!n)return;let i,o=!1;try{i=n.document.readyState}catch(e){return}if("complete"!==i){const n=oe(()=>{o||(t(),o=!0)},r);return void e.addEventListener("load",()=>{ae(n),o=!0,t()})}const a="about:blank";if(n.location.href!==a||e.src===a||""===e.src)return oe(t,0),e.addEventListener("load",t);e.addEventListener("load",t)}(e,()=>{const t=se(e);if(t&&T){const r=Ce(t,{doc:t,mirror:n,blockClass:i,blockSelector:o,unblockSelector:a,maskAllText:s,maskTextClass:l,unmaskTextClass:c,maskTextSelector:u,unmaskTextSelector:p,skipChild:!1,inlineStylesheet:h,maskInputOptions:f,maskAttributeFn:m,maskTextFn:g,maskInputFn:y,slimDOMOptions:b,dataURLOptions:v,inlineImages:_,recordCanvas:S,preserveWhiteSpace:C,onSerialize:E,onIframeLoad:T,iframeLoadTimeout:w,onStylesheetLoad:O,stylesheetLoadTimeout:I,keepIframeSrcFn:A,ignoreCSSAttributes:R});r&&T(e,r)}},w),M.type===z.Element&&"img"===M.tagName&&!e.complete&&M.needBlock){const t=e,r=()=>{if(t.isConnected&&!t.complete&&x)try{const e=t.getBoundingClientRect();e.width>0&&e.height>0&&x(t,M,e)}catch(e){}t.removeEventListener("load",r)};t.isConnected&&t.addEventListener("load",r)}return M.type===z.Element&&"link"===M.tagName&&"string"==typeof M.attributes.rel&&("stylesheet"===M.attributes.rel||"preload"===M.attributes.rel&&"string"==typeof M.attributes.href&&"css"===re(M.attributes.href))&&function(e,t,r){let n,i=!1;try{n=e.sheet}catch(e){n=null}if(n)return;const o=oe(()=>{i||(t(),i=!0)},r);e.addEventListener("load",()=>{ae(o),i=!0,t()})}(e,()=>{if(O){const t=Ce(e,{doc:r,mirror:n,blockClass:i,blockSelector:o,unblockSelector:a,maskAllText:s,maskTextClass:l,unmaskTextClass:c,maskTextSelector:u,unmaskTextSelector:p,skipChild:!1,inlineStylesheet:h,maskInputOptions:f,maskAttributeFn:m,maskTextFn:g,maskInputFn:y,slimDOMOptions:b,dataURLOptions:v,inlineImages:_,recordCanvas:S,preserveWhiteSpace:C,onSerialize:E,onIframeLoad:T,iframeLoadTimeout:w,onStylesheetLoad:O,stylesheetLoadTimeout:I,keepIframeSrcFn:A,ignoreCSSAttributes:R});t&&O(e,t)}},I),M.type===z.Element&&delete M.needBlock,M}function Pe(e,t,r=document){const n={capture:!0,passive:!0};return r.addEventListener(e,t,n),()=>r.removeEventListener(e,t,n)}const De="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 Me={map:{},getId:()=>(console.error(De),-1),getNode:()=>(console.error(De),null),removeNodeFromMap(){console.error(De)},has:()=>(console.error(De),!1),reset(){console.error(De)}};function Ne(e,t,r={}){let n=null,i=0;return function(...o){const a=Date.now();i||!1!==r.leading||(i=a);const s=t-(a-i),l=this;s<=0||s>t?(n&&(!function(...e){tt("clearTimeout")(...e)}(n),n=null),i=a,e.apply(l,o)):n||!1===r.trailing||(n=rt(()=>{i=!1===r.leading?0:Date.now(),n=null,e.apply(l,o)},s))}}function Le(e,t,r,n,i=window){const o=i.Object.getOwnPropertyDescriptor(e,t);return i.Object.defineProperty(e,t,n?r:{set(e){rt(()=>{r.set.call(this,e)},0),o&&o.set&&o.set.call(this,e)}}),()=>Le(e,t,o||{},!0)}function Fe(e,t,r){try{if(!(t in e))return()=>{};const n=e[t],i=r(n);return"function"==typeof i&&(i.prototype=i.prototype||{},Object.defineProperties(i,{__rrweb_original__:{enumerable:!1,value:n}})),e[t]=i,()=>{e[t]=n}}catch{return()=>{}}}"undefined"!=typeof window&&window.Proxy&&window.Reflect&&(Me=new Proxy(Me,{get:(e,t,r)=>("map"===t&&console.error(De),Reflect.get(e,t,r))}));let Be=Date.now;function Ue(e){const t=e.document;return{left:t.scrollingElement?t.scrollingElement.scrollLeft:void 0!==e.pageXOffset?e.pageXOffset:t?.documentElement.scrollLeft||t?.body?.parentElement?.scrollLeft||t?.body?.scrollLeft||0,top:t.scrollingElement?t.scrollingElement.scrollTop:void 0!==e.pageYOffset?e.pageYOffset:t?.documentElement.scrollTop||t?.body?.parentElement?.scrollTop||t?.body?.scrollTop||0}}function je(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight}function He(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}function Ve(e){if(!e)return null;
50try{return e.nodeType===e.ELEMENT_NODE?e:e.parentElement}catch(e){return null}}function ze(e,t,r,n,i){if(!e)return!1;const o=Ve(e);if(!o)return!1;const a=Ie(t,r);if(!i){const e=n&&o.matches(n);return a(o)&&!e}const s=Oe(o,a);let l=-1;return!(s<0)&&(n&&(l=Oe(o,Ie(null,n))),s>-1&&l<0||s<l)}function Ge(e,t){return-2===t.getId(e)}function qe(e,t){if(G(e))return!1;const r=t.getId(e);return!t.has(r)||(!e.parentNode||e.parentNode.nodeType!==e.DOCUMENT_NODE)&&(!e.parentNode||qe(e.parentNode,t))}function $e(e){return Boolean(e.changedTouches)}function We(e,t){return Boolean("IFRAME"===e.nodeName&&t.getMeta(e))}function Ye(e,t){return Boolean("LINK"===e.nodeName&&e.nodeType===e.ELEMENT_NODE&&e.getAttribute&&"stylesheet"===e.getAttribute("rel")&&t.getMeta(e))}function Ke(e){return Boolean(e?.shadowRoot)}/[1-9][0-9]{12}/.test(Date.now().toString())||(Be=()=>(new Date).getTime());class Je{constructor(){this.id=1,this.styleIDMap=new WeakMap,this.idStyleMap=new Map}getId(e){return this.styleIDMap.get(e)??-1}has(e){return this.styleIDMap.has(e)}add(e,t){if(this.has(e))return this.getId(e);let r;return r=void 0===t?this.id++:t,this.styleIDMap.set(e,r),this.idStyleMap.set(r,e),r}getStyle(e){return this.idStyleMap.get(e)||null}reset(){this.styleIDMap=new WeakMap,this.idStyleMap=new Map,this.id=1}generateId(){return this.id++}}function Qe(e){let t=null;return e.getRootNode?.()?.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&e.getRootNode().host&&(t=e.getRootNode().host),t}function Xe(e){const t=e.ownerDocument;if(!t)return!1;const r=function(e){let t,r=e;for(;t=Qe(r);)r=t;return r}(e);return t.contains(r)}function Ze(e){const t=e.ownerDocument;return!!t&&(t.contains(e)||Xe(e))}const et={};function tt(e){const t=et[e];if(t)return t;const r=window.document;let n=window[e];if(r&&"function"==typeof r.createElement)try{const t=r.createElement("iframe");t.hidden=!0,r.head.appendChild(t);const i=t.contentWindow;i&&i[e]&&(n=i[e]),r.head.removeChild(t)}catch(e){}return et[e]=n.bind(window)}function rt(...e){return tt("setTimeout")(...e)}var nt=(e=>(e[e.DomContentLoaded=0]="DomContentLoaded",e[e.Load=1]="Load",e[e.FullSnapshot=2]="FullSnapshot",e[e.IncrementalSnapshot=3]="IncrementalSnapshot",e[e.Meta=4]="Meta",e[e.Custom=5]="Custom",e[e.Plugin=6]="Plugin",e))(nt||{}),it=(e=>(e[e.Mutation=0]="Mutation",e[e.MouseMove=1]="MouseMove",e[e.MouseInteraction=2]="MouseInteraction",e[e.Scroll=3]="Scroll",e[e.ViewportResize=4]="ViewportResize",e[e.Input=5]="Input",e[e.TouchMove=6]="TouchMove",e[e.MediaInteraction=7]="MediaInteraction",e[e.StyleSheetRule=8]="StyleSheetRule",e[e.CanvasMutation=9]="CanvasMutation",e[e.Font=10]="Font",e[e.Log=11]="Log",e[e.Drag=12]="Drag",e[e.StyleDeclaration=13]="StyleDeclaration",e[e.Selection=14]="Selection",e[e.AdoptedStyleSheet=15]="AdoptedStyleSheet",e[e.CustomElement=16]="CustomElement",e))(it||{}),ot=(e=>(e[e.MouseUp=0]="MouseUp",e[e.MouseDown=1]="MouseDown",e[e.Click=2]="Click",e[e.ContextMenu=3]="ContextMenu",e[e.DblClick=4]="DblClick",e[e.Focus=5]="Focus",e[e.Blur=6]="Blur",e[e.TouchStart=7]="TouchStart",e[e.TouchMove_Departed=8]="TouchMove_Departed",e[e.TouchEnd=9]="TouchEnd",e[e.TouchCancel=10]="TouchCancel",e))(ot||{}),at=(e=>(e[e.Mouse=0]="Mouse",e[e.Pen=1]="Pen",e[e.Touch=2]="Touch",e))(at||{}),st=(e=>(e[e.Play=0]="Play",e[e.Pause=1]="Pause",e[e.Seeked=2]="Seeked",e[e.VolumeChange=3]="VolumeChange",e[e.RateChange=4]="RateChange",e))(st||{});let lt;function ct(e){lt=e}function ut(){lt=void 0}const pt=e=>{if(!lt)return e;return(...t)=>{try{return e(...t)}catch(e){if(lt&&!0===lt(e))return()=>{};throw e}}};for(var dt="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",ht="undefined"==typeof Uint8Array?[]:new Uint8Array(256),ft=0;ft<64;ft++)ht[dt.charCodeAt(ft)]=ft;class mt{reset(){}freeze(){}unfreeze(){}lock(){}unlock(){}snapshot(){}addWindow(){}addShadowRoot(){}resetShadowRoots(){}}function gt(e){try{return e.contentDocument}catch(e){}}function yt(e){try{return e.contentWindow}catch(e){}}class bt{constructor(e){this.doc=e,this.unattachedDoc=null}parse(e){return this.parseWithConstructableStylesheet(e)||this.parseWithDetachedElement(e)}parseWithConstructableStylesheet(e){if("undefined"==typeof CSSStyleSheet||"function"!=typeof CSSStyleSheet.prototype.replaceSync)return null;try{const t=new CSSStyleSheet;t.replaceSync(`x { ${e} }`);const r=t.cssRules[0];return r&&r.type===CSSRule.STYLE_RULE?r.style:null}catch{return null}}parseWithDetachedElement(e){const t=this.getUnattachedDoc().createElement("span");return t.setAttribute("style",e),t.style}getUnattachedDoc(){if(!this.unattachedDoc)try{this.unattachedDoc=document.implementation.createHTMLDocument()}catch{this.unattachedDoc=this.doc}return this.unattachedDoc}}function vt(e){return"__ln"in e}class _t{constructor(){this.length=0,this.head=null,this.tail=null}get(e){if(e>=this.length)throw new Error("Position outside of list range");let t=this.head;for(let r=0;r<e;r++)t=t?.next||null;return t}addNode(e){const t={value:e,previous:null,next:null};if(e.__ln=t,e.previousSibling&&vt(e.previousSibling)){const r=e.previousSibling.__ln.next;t.next=r,t.previous=e.previousSibling.__ln,e.previousSibling.__ln.next=t,r&&(r.previous=t)}else if(e.nextSibling&&vt(e.nextSibling)&&e.nextSibling.__ln.previous){const r=e.nextSibling.__ln.previous;t.previous=r,t.next=e.nextSibling.__ln,e.nextSibling.__ln.previous=t,r&&(r.next=t)}else this.head&&(this.head.previous=t),t.next=this.head,this.head=t;null===t.next&&(this.tail=t),this.length++}removeNode(e){const t=e.__ln;
vendor: 4,976 bytes, line 50
50this.head&&(t.previous?(t.previous.next=t.next,t.next?t.next.previous=t.previous:this.tail=t.previous):(this.head=t.next,this.head?this.head.previous=null:this.tail=null),e.__ln&&delete e.__ln,this.length--)}}const St=(e,t)=>`${e}@${t}`;class Et{constructor(){this.frozen=!1,this.locked=!1,this.texts=[],this.attributes=[],this.attributeMap=new WeakMap,this.removes=[],this.mapRemoves=[],this.movedMap={},this.addedSet=new Set,this.movedSet=new Set,this.droppedSet=new Set,this.processMutations=e=>{e.forEach(this.processMutation),this.emit()},this.emit=()=>{if(this.frozen||this.locked)return;const e=[],t=new Set,r=new _t,n=e=>{let t=e,r=-2;for(;-2===r;)t=t&&t.nextSibling,r=t&&this.mirror.getId(t);return r},i=i=>{if(!i.parentNode||!Ze(i))return;const o=G(i.parentNode)?this.mirror.getId(Qe(i)):this.mirror.getId(i.parentNode),a=n(i);if(-1===o||-1===a)return r.addNode(i);const s=Ce(i,{doc:this.doc,mirror:this.mirror,blockClass:this.blockClass,blockSelector:this.blockSelector,maskAllText:this.maskAllText,unblockSelector:this.unblockSelector,maskTextClass:this.maskTextClass,unmaskTextClass:this.unmaskTextClass,maskTextSelector:this.maskTextSelector,unmaskTextSelector:this.unmaskTextSelector,skipChild:!0,newlyAddedElement:!0,inlineStylesheet:this.inlineStylesheet,maskInputOptions:this.maskInputOptions,maskAttributeFn:this.maskAttributeFn,maskTextFn:this.maskTextFn,maskInputFn:this.maskInputFn,slimDOMOptions:this.slimDOMOptions,dataURLOptions:this.dataURLOptions,recordCanvas:this.recordCanvas,inlineImages:this.inlineImages,onSerialize:e=>{We(e,this.mirror)&&!ze(e,this.blockClass,this.blockSelector,this.unblockSelector,!1)&&this.iframeManager.addIframe(e),Ye(e,this.mirror)&&this.stylesheetManager.trackLinkElement(e),Ke(i)&&this.shadowDomManager.addShadowRoot(i.shadowRoot,this.doc)},onIframeLoad:(e,t)=>{if(ze(e,this.blockClass,this.blockSelector,this.unblockSelector,!1))return;this.iframeManager.attachIframe(e,t);const r=yt(e);r&&this.canvasManager.addWindow(r),this.shadowDomManager.observeAttachShadow(e)},onStylesheetLoad:(e,t)=>{this.stylesheetManager.attachLinkElement(e,t)},onBlockedImageLoad:(e,t,{width:r,height:n})=>{this.mutationCb({adds:[],removes:[],texts:[],attributes:[{id:t.id,attributes:{style:{width:`${r}px`,height:`${n}px`}}}]})},ignoreCSSAttributes:this.ignoreCSSAttributes});s&&(e.push({parentId:o,nextId:a,node:s}),t.add(s.id))};for(;this.mapRemoves.length;)this.mirror.removeNodeFromMap(this.mapRemoves.shift());for(const e of this.movedSet)wt(this.removes,e,this.mirror)&&!this.movedSet.has(e.parentNode)||i(e);for(const e of this.addedSet)xt(this.droppedSet,e)||wt(this.removes,e,this.mirror)?xt(this.movedSet,e)?i(e):this.droppedSet.add(e):i(e);let o=null;for(;r.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){let t=r.tail;for(;t;){const r=t;if(t=t.previous,r){const t=this.mirror.getId(r.value.parentNode);if(-1===n(r.value))continue;if(-1!==t){e=r;break}{const t=r.value;if(t.parentNode&&t.parentNode.nodeType===Node.DOCUMENT_FRAGMENT_NODE){const n=t.parentNode.host;if(-1!==this.mirror.getId(n)){e=r;break}}}}}}if(!e){for(;r.head;)r.removeNode(r.head.value);break}o=e.previous,r.removeNode(e.value),i(e.value)}const a={texts:this.texts.map(e=>({id:this.mirror.getId(e.node),value:e.value})).filter(e=>!t.has(e.id)).filter(e=>this.mirror.has(e.id)),attributes:this.attributes.map(e=>{const{attributes:t}=e;if("string"==typeof t.style){const r=JSON.stringify(e.styleDiff),n=JSON.stringify(e._unchangedStyles);r.length<t.style.length&&(r+n).split("var(").length===t.style.split("var(").length&&(t.style=e.styleDiff)}return{id:this.mirror.getId(e.node),attributes:t}}).filter(e=>!t.has(e.id)).filter(e=>this.mirror.has(e.id)),removes:this.removes,adds:e};(a.texts.length||a.attributes.length||a.removes.length||a.adds.length)&&(this.texts=[],this.attributes=[],this.attributeMap=new WeakMap,this.removes=[],this.addedSet=new Set,this.movedSet=new Set,this.droppedSet=new Set,this.movedMap={},this.mutationCb(a))},this.processMutation=e=>{if(!Ge(e.target,this.mirror))switch(e.type){case"characterData":{const t=e.target.textContent;ze(e.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||t===e.oldValue||this.texts.push({value:Ae(e.target,this.maskTextClass,this.maskTextSelector,this.unmaskTextClass,this.unmaskTextSelector,this.maskAllText)&&t?this.maskTextFn?this.maskTextFn(t,Ve(e.target)):t.replace(/[\S]/g,"*"):t,node:e.target});break}case"attributes":{const t=e.target;let r=e.attributeName,n=e.target.getAttribute(r);if("value"===r){const r=ee(t),i=t.tagName;n=te(t,i,r);const o=K({maskInputOptions:this.maskInputOptions,tagName:i,type:r});n=J({isMasked:Ae(e.target,this.maskTextClass,this.maskTextSelector,this.unmaskTextClass,this.unmaskTextSelector,o),element:t,value:n,maskInputFn:this.maskInputFn})}if(ze(e.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||n===e.oldValue)return;let i=this.attributeMap.get(e.target);
50if("IFRAME"===t.tagName&&"src"===r&&!this.keepIframeSrcFn(n)){if(gt(t))return;r="rr_src"}if(i||(i={node:e.target,attributes:{},styleDiff:{},_unchangedStyles:{}},this.attributes.push(i),this.attributeMap.set(e.target,i)),"type"===r&&"INPUT"===t.tagName&&"password"===(e.oldValue||"").toLowerCase()&&t.setAttribute("data-rr-is-password","true"),!xe(t.tagName,r)&&(i.attributes[r]=we(this.doc,Q(t.tagName),Q(r),n,t,this.maskAttributeFn),"style"===r)){const r=e.oldValue?this.styleDeclarationParser.parse(e.oldValue):null;for(const e of Array.from(t.style)){const n=t.style.getPropertyValue(e),o=t.style.getPropertyPriority(e);n!==(r?.getPropertyValue(e)||"")||o!==(r?.getPropertyPriority(e)||"")?i.styleDiff[e]=""===o?n:[n,o]:i._unchangedStyles[e]=[n,o]}if(r)for(const e of Array.from(r))""===t.style.getPropertyValue(e)&&(i.styleDiff[e]=!1)}break}case"childList":if(ze(e.target,this.blockClass,this.blockSelector,this.unblockSelector,!0))return;e.addedNodes.forEach(t=>this.genAdds(t,e.target)),e.removedNodes.forEach(t=>{const r=this.mirror.getId(t),n=G(e.target)?this.mirror.getId(e.target.host):this.mirror.getId(e.target);ze(e.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||Ge(t,this.mirror)||!function(e,t){return-1!==t.getId(e)}(t,this.mirror)||(this.addedSet.has(t)?(Tt(this.addedSet,t),this.droppedSet.add(t)):this.addedSet.has(e.target)&&-1===r||qe(e.target,this.mirror)||(this.movedSet.has(t)&&this.movedMap[St(r,n)]?Tt(this.movedSet,t):this.removes.push({parentId:n,id:r,isShadow:!(!G(e.target)||!q(e.target))||void 0})),this.mapRemoves.push(t))})}},this.genAdds=(e,t)=>{if(!this.processedNodeManager.inOtherBuffer(e,this)&&!this.addedSet.has(e)&&!this.movedSet.has(e)){if(this.mirror.hasNode(e)){if(Ge(e,this.mirror))return;this.movedSet.add(e);let r=null;t&&this.mirror.hasNode(t)&&(r=this.mirror.getId(t)),r&&-1!==r&&(this.movedMap[St(this.mirror.getId(e),r)]=!0)}else this.addedSet.add(e),this.droppedSet.delete(e);ze(e,this.blockClass,this.blockSelector,this.unblockSelector,!1)||(e.childNodes&&e.childNodes.forEach(e=>this.genAdds(e)),Ke(e)&&e.shadowRoot.childNodes.forEach(t=>{this.processedNodeManager.add(t,this),this.genAdds(t,e)}))}}}init(e){["mutationCb","blockClass","blockSelector","unblockSelector","maskAllText","maskTextClass","unmaskTextClass","maskTextSelector","unmaskTextSelector","inlineStylesheet","maskInputOptions","maskAttributeFn","maskTextFn","maskInputFn","keepIframeSrcFn","recordCanvas","inlineImages","slimDOMOptions","dataURLOptions","doc","mirror","iframeManager","stylesheetManager","shadowDomManager","canvasManager","processedNodeManager","ignoreCSSAttributes"].forEach(t=>{this[t]=e[t]}),this.styleDeclarationParser=new bt(this.doc)}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 Tt(e,t){e.delete(t),t.childNodes?.forEach(t=>Tt(e,t))}function wt(e,t,r){return 0!==e.length&&function(e,t,r){let n=t.parentNode;for(;n;){const t=r.getId(n);if(e.some(e=>e.id===t))return!0;n=n.parentNode}return!1}(e,t,r)}function xt(e,t){return 0!==e.size&&Ot(e,t)}function Ot(e,t){const{parentNode:r}=t;return!!r&&(!!e.has(r)||Ot(e,r))}const It=[];function At(e){try{if("composedPath"in e){const t=e.composedPath();if(t.length)return t[0]}else if("path"in e&&e.path.length)return e.path[0]}catch{}return e&&e.target}function kt(e,t){const r=new Et;It.push(r),r.init(e);let n=window.MutationObserver||window.__rrMutationObserver;const i=window?.Zone?.__symbol__?.("MutationObserver");i&&window[i]&&(n=window[i]);const o=new n(pt(t=>{e.onMutation&&!1===e.onMutation(t)||r.processMutations.bind(r)(t)}));return o.observe(t,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),o}function Rt({mouseInteractionCb:e,doc:t,mirror:r,blockClass:n,blockSelector:i,unblockSelector:o,sampling:a}){if(!1===a.mouseInteraction)return()=>{};const s=!0===a.mouseInteraction||void 0===a.mouseInteraction?{}:a.mouseInteraction,l=[];let c=null;return Object.keys(ot).filter(e=>Number.isNaN(Number(e))&&!e.endsWith("_Departed")&&!1!==s[e]).forEac
vendor: 9,599 bytes, line 50
50h(a=>{let s=Q(a);const u=(t=>a=>{const s=At(a);if(ze(s,n,i,o,!0))return;let l=null,u=t;if("pointerType"in a){switch(a.pointerType){case"mouse":l=at.Mouse;break;case"touch":l=at.Touch;break;case"pen":l=at.Pen}l===at.Touch?ot[t]===ot.MouseDown?u="TouchStart":ot[t]===ot.MouseUp&&(u="TouchEnd"):at.Pen}else $e(a)&&(l=at.Touch);null!==l?(c=l,(u.startsWith("Touch")&&l===at.Touch||u.startsWith("Mouse")&&l===at.Mouse)&&(l=null)):ot[t]===ot.Click&&(l=c,c=null);const p=$e(a)?a.changedTouches[0]:a;if(!p)return;const d=r.getId(s),{clientX:h,clientY:f}=p;pt(e)({type:ot[u],id:d,x:h,y:f,...null!==l&&{pointerType:l}})})(a);if(window.PointerEvent)switch(ot[a]){case ot.MouseDown:case ot.MouseUp:s=s.replace("mouse","pointer");break;case ot.TouchStart:case ot.TouchEnd:return}l.push(Pe(s,u,t))}),pt(()=>{l.forEach(e=>e())})}function Ct({scrollCb:e,doc:t,mirror:r,blockClass:n,blockSelector:i,unblockSelector:o,sampling:a}){return Pe("scroll",pt(Ne(pt(a=>{const s=At(a);if(!s||ze(s,n,i,o,!0))return;const l=r.getId(s);if(s===t&&t.defaultView){const r=Ue(t.defaultView);e({id:l,x:r.left,y:r.top})}else e({id:l,x:s.scrollLeft,y:s.scrollTop})}),a.scroll||100)),t)}const Pt=["INPUT","TEXTAREA","SELECT"],Dt=new WeakMap;function Mt({inputCb:e,doc:t,mirror:r,blockClass:n,blockSelector:i,unblockSelector:o,ignoreClass:a,ignoreSelector:s,maskInputOptions:l,maskInputFn:c,sampling:u,userTriggeredOnInput:p,maskTextClass:d,unmaskTextClass:h,maskTextSelector:f,unmaskTextSelector:m}){function g(e){let r=At(e);const u=e.isTrusted,g=r&&X(r.tagName);if("OPTION"===g&&(r=r.parentElement),!r||!g||Pt.indexOf(g)<0||ze(r,n,i,o,!0))return;const b=r;if(b.classList.contains(a)||s&&b.matches(s))return;const v=ee(r);let _=te(b,g,v),S=!1;const E=K({maskInputOptions:l,tagName:g,type:v}),T=Ae(r,d,f,h,m,E);"radio"!==v&&"checkbox"!==v||(S=r.checked),_=J({isMasked:T,element:r,value:_,maskInputFn:c}),y(r,p?{text:_,isChecked:S,userTriggered:u}:{text:_,isChecked:S});const w=r.name;"radio"===v&&w&&S&&t.querySelectorAll(`input[type="radio"][name="${w}"]`).forEach(e=>{if(e!==r){const t=J({isMasked:T,element:e,value:te(e,g,v),maskInputFn:c});y(e,p?{text:t,isChecked:!S,userTriggered:!1}:{text:t,isChecked:!S})}})}function y(t,n){const i=Dt.get(t);if(!i||i.text!==n.text||i.isChecked!==n.isChecked){Dt.set(t,n);const i=r.getId(t);pt(e)({...n,id:i})}}const b=("last"===u.input?["change"]:["input","change"]).map(e=>Pe(e,pt(g),t)),v=t.defaultView;if(!v)return()=>{b.forEach(e=>e())};const _=v.Object.getOwnPropertyDescriptor(v.HTMLInputElement.prototype,"value"),S=[[v.HTMLInputElement.prototype,"value"],[v.HTMLInputElement.prototype,"checked"],[v.HTMLSelectElement.prototype,"value"],[v.HTMLTextAreaElement.prototype,"value"],[v.HTMLSelectElement.prototype,"selectedIndex"],[v.HTMLOptionElement.prototype,"selected"]];return _&&_.set&&b.push(...S.map(e=>Le(e[0],e[1],{set(){pt(g)({target:this,isTrusted:!1})}},!1,v))),pt(()=>{b.forEach(e=>e())})}function Nt(e){return function(e,t){if(Ut("CSSGroupingRule")&&e.parentRule instanceof CSSGroupingRule||Ut("CSSMediaRule")&&e.parentRule instanceof CSSMediaRule||Ut("CSSSupportsRule")&&e.parentRule instanceof CSSSupportsRule||Ut("CSSConditionRule")&&e.parentRule instanceof CSSConditionRule){const r=Array.from(e.parentRule.cssRules).indexOf(e);t.unshift(r)}else if(e.parentStyleSheet){const r=Array.from(e.parentStyleSheet.cssRules).indexOf(e);t.unshift(r)}return t}(e,[])}function Lt(e,t,r){let n,i;return e?(e.ownerNode?n=t.getId(e.ownerNode):i=r.getId(e),{styleId:i,id:n}):{}}function Ft({mirror:e,stylesheetManager:t},r){let n=null;n="#document"===r.nodeName?e.getId(r):e.getId(r.host);const i="#document"===r.nodeName?r.defaultView?.Document:r.ownerDocument?.defaultView?.ShadowRoot,o=i?.prototype?Object.getOwnPropertyDescriptor(i?.prototype,"adoptedStyleSheets"):void 0;return null!==n&&-1!==n&&i&&o?(Object.defineProperty(r,"adoptedStyleSheets",{configurable:o.configurable,enumerable:o.enumerable,get(){return o.get?.call(this)},set(e){const r=o.set?.call(this,e);if(null!==n&&-1!==n)try{t.adoptStyleSheets(e,n)}catch(e){}return r}}),pt(()=>{Object.defineProperty(r,"adoptedStyleSheets",{configurable:o.configurable,enumerable:o.enumerable,get:o.get,set:o.set})})):()=>{}}function Bt(e,t={}){const r=e.doc.defaultView;if(!r)return()=>{};let n;e.recordDOM&&(n=kt(e,e.doc));const i=function({mousemoveCb:e,sampling:t,doc:r,mirror:n}){if(!1===t.mousemove)return()=>{};const i="number"==typeof t.mousemove?t.mousemove:50,o="number"==typeof t.mousemoveCallback?t.mousemoveCallback:500;let a,s=[];const l=Ne(pt(t=>{const r=Date.now()-a;e(s.map(e=>(e.timeOffset-=r,e)),t),s=[],a=null}),o),c=pt(Ne(pt(e=>{const t=At(e),{clientX:r,clientY:i}=$e(e)?e.changedTouches[0]:e;a||(a=Be()),s.push({x:r,y:i,id:n.getId(t),timeOffset:Be()-a}),l("undefined"!=typeof DragEvent&&e instanceof DragEvent?it.Drag:e instanceof MouseEvent?it.MouseMove:it.TouchMove)}),i,{trailing:!1})),u=[Pe("mousemove",c,r),Pe("touchmove",c,r),Pe("drag",c,r)];return pt(()=>{u.forEach(e=>e())})}(e),o=Rt(e),a=Ct(e),s=function({viewportResizeCb:e},{win:t}){let r=-1,n=-1;return Pe("resize",pt(Ne(pt(()=>{const t=je(),i=He();r===t&&n===i||(e({width:Number(i),height:Number(t)}),r=t,n=i)}),200)),t)}(e,{win:r}),l=Mt(e),c=function({mediaInteractionCb:e,blockClass:t,blockSelector:r,unblockSelector:n,mirror:i,sampling:o,doc:a}){const s=pt(a=>Ne(pt(o=>{const s=At(o);if(!s||ze(s,t,r,n,!0))return;const{currentTime:l,volume:c,muted:u,playbackRate:p}=s;e({type:a,id:i.getId(s),currentTime:l,volume:c,muted:u,playbackRate:p})}),o.media||500)),l=[Pe("play",s(st.Play),a),Pe("pause",s(st.Pause),a),Pe("seeked",s(st.Seeked),a),Pe("volumechange",s(st.VolumeChange),a),Pe("ratechange",s(st.RateChange),a)];return pt(()=>{l.forEach(e=>e())})}(e);let u=()=>{},p=()=>{},d=()=>{},h=()=>{};e.recordDOM&&(u=function({styleSheetRuleCb:e,mirror:t,stylesheetManager:r},{win:n}){if(!n.CSSStyleSheet||!n.CSSStyleSheet.prototype)return()=>{};const i=n.CSSStyleSheet.prototype.insertRule;n.CSSStyleSheet.prototype.insertRule=new Proxy(i,{apply:pt((n,i,o)=>{const[a,s]=o,{id:l,styleId:c}=Lt(i,t,r.styleMirror);return(l&&-1!==l||c&&-1!==c)&&e({id:l,styleId:c,adds:[{rule:a,index:s}]}),n.apply(i,o)})});const o=n.CSSStyleSheet.prototype.deleteRule;let a,s;n.CSSStyleSheet.prototype.deleteRule=new Proxy(o,{apply:pt((n,i,o)=>{const[a]=o,{id:s,styleId:l}=Lt(i,t,r.styleMirror);return(s&&-1!==s||l&&-1!==l)&&e({id:s,styleId:l,removes:[{index:a}]}),n.apply(i,o)})}),n.CSSStyleSheet.prototype.replace&&(a=n.CSSStyleSheet.prototype.replace,n.CSSStyleSheet.prototype.replace=new Proxy(a,{apply:pt((n,i,o)=>{const[a]=o,{id:s,styleId:l}=Lt(i,t,r.styleMirror);return(s&&-1!==s||l&&-1!==l)&&e({id:s,styleId:l,replace:a}),n.apply(i,o)})})),n.CSSStyleSheet.prototype.replaceSync&&(s=n.CSSStyleSheet.prototype.replaceSync,n.CSSStyleSheet.prototype.replaceSync=new Proxy(s,{apply:pt((n,i,o)=>{const[a]=o,{id:s,styleId:l}=Lt(i,t,r.styleMirror);return(s&&-1!==s||l&&-1!==l)&&e({id:s,styleId:l,replaceSync:a}),n.apply(i,o)})}));const l={};jt("CSSGroupingRule")?l.CSSGroupingRule=n.CSSGroupingRule:(jt("CSSMediaRule")&&(l.CSSMediaRule=n.CSSMediaRule),jt("CSSConditionRule")&&(l.CSSConditionRule=n.CSSConditionRule),jt("CSSSupportsRule")&&(l.CSSSupportsRule=n.CSSSupportsRule));const c={};return Object.entries(l).forEach(([n,i])=>{c[n]={insertRule:i.prototype.insertRule,deleteRule:i.prototype.deleteRule},i.prototype.insertRule=new Proxy(c[n].insertRule,{apply:pt((n,i,o)=>{const[a,s]=o,{id:l,styleId:c}=Lt(i.parentStyleSheet,t,r.styleMirror);return(l&&-1!==l||c&&-1!==c)&&e({id:l,styleId:c,adds:[{rule:a,index:[...Nt(i),s||0]}]}),n.apply(i,o)})}),i.prototype.deleteRule=new Proxy(c[n].deleteRule,{apply:pt((n,i,o)=>{const[a]=o,{id:s,styleId:l}=Lt(i.parentStyleSheet,t,r.styleMirror);return(s&&-1!==s||l&&-1!==l)&&e({id:s,styleId:l,removes:[{index:[...Nt(i),a]}]}),n.apply(i,o)})})}),pt(()=>{n.CSSStyleSheet.prototype.insertRule=i,n.CSSStyleSheet.prototype.deleteRule=o,a&&(n.CSSStyleSheet.prototype.replace=a),s&&(n.CSSStyleSheet.prototype.replaceSync=s),Object.entries(l).forEach(([e,t])=>{t.prototype.insertRule=c[e].insertRule,t.prototype.deleteRule=c[e].deleteRule})})}(e,{win:r}),p=Ft(e,e.doc),d=function({styleDeclarationCb:e,mirror:t,ignoreCSSAttributes:r,stylesheetManager:n},{win:i}){const o=i.CSSStyleDeclaration.prototype.setProperty;i.CSSStyleDeclaration.prototype.setProperty=new Proxy(o,{apply:pt((i,a,s)=>{const[l,c,u]=s;if(r.has(l))return o.apply(a,[l,c,u]);const{id:p,styleId:d}=Lt(a.parentRule?.parentStyleSheet,t,n.styleMirror);return(p&&-1!==p||d&&-1!==d)&&e({id:p,styleId:d,set:{property:l,value:c,priority:u},index:Nt(a.parentRule)}),i.apply(a,s)})});const a=i.CSSStyleDeclaration.prototype.removeProperty;return i.CSSStyleDeclaration.prototype.removeProperty=new Proxy(a,{apply:pt((i,o,s)=>{const[l]=s;if(r.has(l))return a.apply(o,[l]);const{id:c,styleId:u}=Lt(o.parentRule?.parentStyleSheet,t,n.styleMirror);return(c&&-1!==c||u&&-1!==u)&&e({id:c,styleId:u,remove:{property:l},index:Nt(o.parentRule)}),i.apply(o,s)})}),pt(()=>{i.CSSStyleDeclaration.prototype.setProperty=o,i.CSSStyleDeclaration.prototype.removeProperty=a})}(e,{win:r}),e.collectFonts&&(h=function({fontCb:e,doc:t}){const r=t.defaultView;if(!r)return()=>{};const n=[],i=new WeakMap,o=r.FontFace;r.FontFace=function(e,t,r){const n=new o(e,t,r);return i.set(n,{family:e,buffer:"string"!=typeof t,descriptors:r,fontSource:"string"==typeof t?t:JSON.stringify(Array.from(new Uint8Array(t)))}),n};const a=Fe(t.fonts,"add",function(t){return function(r){return rt(pt(()=>{const t=i.get(r);t&&(e(t),i.delete(r))}),0),t.apply(this,[r])}});return n.push(()=>{r.FontFace=o}),n.push(a),pt(()=>
vendor: 4,198 bytes, line 50
50{n.forEach(e=>e())})}(e)));const f=function(e){const{doc:t,mirror:r,blockClass:n,blockSelector:i,unblockSelector:o,selectionCb:a}=e;let s=!0;const l=pt(()=>{const e=t.getSelection();if(!e||s&&e?.isCollapsed)return;s=e.isCollapsed||!1;const l=[],c=e.rangeCount||0;for(let t=0;t<c;t++){const a=e.getRangeAt(t),{startContainer:s,startOffset:c,endContainer:u,endOffset:p}=a;ze(s,n,i,o,!0)||ze(u,n,i,o,!0)||l.push({start:r.getId(s),startOffset:c,end:r.getId(u),endOffset:p})}a({ranges:l})});return l(),Pe("selectionchange",l)}(e),m=function({doc:e,customElementCb:t}){const r=e.defaultView;return r&&r.customElements?Fe(r.customElements,"define",function(e){return function(r,n,i){try{t({define:{name:r}})}catch(e){}return e.apply(this,[r,n,i])}}):()=>{}}(e),g=[];for(const t of e.plugins)g.push(t.observer(t.callback,r,t.options));return pt(()=>{It.forEach(e=>e.reset()),n?.disconnect(),i(),o(),a(),s(),l(),c(),u(),p(),d(),h(),f(),m(),g.forEach(e=>e())})}function Ut(e){return void 0!==window[e]}function jt(e){return Boolean(void 0!==window[e]&&window[e].prototype&&"insertRule"in window[e].prototype&&"deleteRule"in window[e].prototype)}class Ht{constructor(e){this.generateIdFn=e,this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap}getId(e,t,r,n){const i=r||this.getIdToRemoteIdMap(e),o=n||this.getRemoteIdToIdMap(e);let a=i.get(t);return a||(a=this.generateIdFn(),i.set(t,a),o.set(a,t)),a}getIds(e,t){const r=this.getIdToRemoteIdMap(e),n=this.getRemoteIdToIdMap(e);return t.map(t=>this.getId(e,t,r,n))}getRemoteId(e,t,r){const n=r||this.getRemoteIdToIdMap(e);if("number"!=typeof t)return t;const i=n.get(t);return i||-1}getRemoteIds(e,t){const r=this.getRemoteIdToIdMap(e);return t.map(t=>this.getRemoteId(e,t,r))}reset(e){if(!e)return this.iframeIdToRemoteIdMap=new WeakMap,void(this.iframeRemoteIdToIdMap=new WeakMap);this.iframeIdToRemoteIdMap.delete(e),this.iframeRemoteIdToIdMap.delete(e)}getIdToRemoteIdMap(e){let t=this.iframeIdToRemoteIdMap.get(e);return t||(t=new Map,this.iframeIdToRemoteIdMap.set(e,t)),t}getRemoteIdToIdMap(e){let t=this.iframeRemoteIdToIdMap.get(e);return t||(t=new Map,this.iframeRemoteIdToIdMap.set(e,t)),t}}class Vt{constructor(){this.crossOriginIframeMirror=new Ht(ue),this.crossOriginIframeRootIdMap=new WeakMap}addIframe(){}addLoadListener(){}attachIframe(){}}class zt{constructor(e){this.iframes=new WeakMap,this.crossOriginIframeMap=new WeakMap,this.crossOriginIframeMirror=new Ht(ue),this.crossOriginIframeRootIdMap=new WeakMap,this.mutationCb=e.mutationCb,this.wrappedEmit=e.wrappedEmit,this.stylesheetManager=e.stylesheetManager,this.recordCrossOriginIframes=e.recordCrossOriginIframes,this.crossOriginIframeStyleMirror=new Ht(this.stylesheetManager.styleMirror.generateId.bind(this.stylesheetManager.styleMirror)),this.mirror=e.mirror,this.recordCrossOriginIframes&&window.addEventListener("message",this.handleMessage.bind(this))}addIframe(e){this.iframes.set(e,!0);const t=yt(e);t&&this.crossOriginIframeMap.set(t,e)}addLoadListener(e){this.loadListener=e}attachIframe(e,t){this.mutationCb({adds:[{parentId:this.mirror.getId(e),nextId:null,node:t}],removes:[],texts:[],attributes:[],isAttachIframe:!0}),this.recordCrossOriginIframes&&yt(e)?.addEventListener("message",this.handleMessage.bind(this)),this.loadListener?.(e);const r=gt(e);r&&r.adoptedStyleSheets&&r.adoptedStyleSheets.length>0&&this.stylesheetManager.adoptStyleSheets(r.adoptedStyleSheets,this.mirror.getId(r))}handleMessage(e){const t=e;if("rrweb"!==t.data.type||t.origin!==t.data.origin)return;if(!e.source)return;const r=this.crossOriginIframeMap.get(e.source);if(!r)return;const n=this.transformCrossOriginEvent(r,t.data.event);n&&this.wrappedEmit(n,t.data.isCheckout)}transformCrossOriginEvent(e,t){switch(t.type){case nt.FullSnapshot:{this.crossOriginIframeMirror.reset(e),this.crossOriginIframeStyleMirror.reset(e),this.replaceIdOnNode(t.data.node,e);const r=t.data.node.id;return this.crossOriginIframeRootIdMap.set(e,r),this.patchRootIdOnNode(t.data.node,r),{timestamp:t.timestamp,type:nt.IncrementalSnapshot,data:{source:it.Mutation,adds:[{parentId:this.mirror.getId(e),nextId:null,node:t.data.node}],removes:[],texts:[],attributes:[],isAttachIframe:!0}}}
vendor: 4,558 bytes, line 50
50case nt.Meta:case nt.Load:case nt.DomContentLoaded:return!1;case nt.Plugin:return t;case nt.Custom:return this.replaceIds(t.data.payload,e,["id","parentId","previousId","nextId"]),t;case nt.IncrementalSnapshot:switch(t.data.source){case it.Mutation:return t.data.adds.forEach(t=>{this.replaceIds(t,e,["parentId","nextId","previousId"]),this.replaceIdOnNode(t.node,e);const r=this.crossOriginIframeRootIdMap.get(e);r&&this.patchRootIdOnNode(t.node,r)}),t.data.removes.forEach(t=>{this.replaceIds(t,e,["parentId","id"])}),t.data.attributes.forEach(t=>{this.replaceIds(t,e,["id"])}),t.data.texts.forEach(t=>{this.replaceIds(t,e,["id"])}),t;case it.Drag:case it.TouchMove:case it.MouseMove:return t.data.positions.forEach(t=>{this.replaceIds(t,e,["id"])}),t;case it.ViewportResize:return!1;case it.MediaInteraction:case it.MouseInteraction:case it.Scroll:case it.CanvasMutation:case it.Input:return this.replaceIds(t.data,e,["id"]),t;case it.StyleSheetRule:case it.StyleDeclaration:return this.replaceIds(t.data,e,["id"]),this.replaceStyleIds(t.data,e,["styleId"]),t;case it.Font:return t;case it.Selection:return t.data.ranges.forEach(t=>{this.replaceIds(t,e,["start","end"])}),t;case it.AdoptedStyleSheet:return this.replaceIds(t.data,e,["id"]),this.replaceStyleIds(t.data,e,["styleIds"]),t.data.styles?.forEach(t=>{this.replaceStyleIds(t,e,["styleId"])}),t}}return!1}replace(e,t,r,n){for(const i of n)(Array.isArray(t[i])||"number"==typeof t[i])&&(Array.isArray(t[i])?t[i]=e.getIds(r,t[i]):t[i]=e.getId(r,t[i]));return t}replaceIds(e,t,r){return this.replace(this.crossOriginIframeMirror,e,t,r)}replaceStyleIds(e,t,r){return this.replace(this.crossOriginIframeStyleMirror,e,t,r)}replaceIdOnNode(e,t){this.replaceIds(e,t,["id","rootId"]),"childNodes"in e&&e.childNodes.forEach(e=>{this.replaceIdOnNode(e,t)})}patchRootIdOnNode(e,t){e.type===z.Document||e.rootId||(e.rootId=t),"childNodes"in e&&e.childNodes.forEach(e=>{this.patchRootIdOnNode(e,t)})}}class Gt{init(){}addShadowRoot(){}observeAttachShadow(){}reset(){}}class qt{constructor(e){this.shadowDoms=new WeakSet,this.restoreHandlers=[],this.mutationCb=e.mutationCb,this.scrollCb=e.scrollCb,this.bypassOptions=e.bypassOptions,this.mirror=e.mirror,this.init()}init(){this.reset(),this.patchAttachShadow(Element,document)}addShadowRoot(e,t){if(!q(e))return;if(this.shadowDoms.has(e))return;this.shadowDoms.add(e),this.bypassOptions.canvasManager.addShadowRoot(e);const r=kt({...this.bypassOptions,doc:t,mutationCb:this.mutationCb,mirror:this.mirror,shadowDomManager:this},e);this.restoreHandlers.push(()=>r.disconnect()),this.restoreHandlers.push(Ct({...this.bypassOptions,scrollCb:this.scrollCb,doc:e,mirror:this.mirror})),rt(()=>{e.adoptedStyleSheets&&e.adoptedStyleSheets.length>0&&this.bypassOptions.stylesheetManager.adoptStyleSheets(e.adoptedStyleSheets,this.mirror.getId(e.host)),this.restoreHandlers.push(Ft({mirror:this.mirror,stylesheetManager:this.bypassOptions.stylesheetManager},e))},0)}observeAttachShadow(e){const t=gt(e),r=yt(e);t&&r&&this.patchAttachShadow(r.Element,t)}patchAttachShadow(e,t){const r=this;this.restoreHandlers.push(Fe(e.prototype,"attachShadow",function(e){return function(n){const i=e.call(this,n);return this.shadowRoot&&Ze(this)&&r.addShadowRoot(this.shadowRoot,t),i}}))}reset(){this.restoreHandlers.forEach(e=>{try{e()}catch(e){}}),this.restoreHandlers=[],this.shadowDoms=new WeakSet,this.bypassOptions.canvasManager.resetShadowRoots()}}class $t{constructor(e){this.trackedLinkElements=new WeakSet,this.styleMirror=new Je,this.mutationCb=e.mutationCb,this.adoptedStyleSheetCb=e.adoptedStyleSheetCb}attachLinkElement(e,t){"_cssText"in t.attributes&&this.mutationCb({adds:[],removes:[],texts:[],attributes:[{id:t.id,attributes:t.attributes}]}),this.trackLinkElement(e)}trackLinkElement(e){this.trackedLinkElements.has(e)||(this.trackedLinkElements.add(e),this.trackStylesheetInLinkElement(e))}adoptStyleSheets(e,t){if(0===e.length)return;const r={id:t,styleIds:[]},n=[];for(const t of e){let e;this.styleMirror.has(t)?e=this.styleMirror.getId(t):(e=this.styleMirror.add(t),n.push({styleId:e,rules:Array.from(t.rules||CSSRule,(e,t)=>({rule:W(e),index:t}))})),r.styleIds.push(e)}n.length>0&&(r.styles=n),this.adoptedStyleSheetCb(r)}reset(){this.styleMirror.reset(),this.trackedLinkElements=new WeakSet}trackStylesheetInLinkElement(e){}}class Wt{constructor(){this.nodeMap=new WeakMap,this.active=!1}inOtherBuffer(e,t){const r=this.nodeMap.get(e);return r&&Array.from(r).some(e=>e!==t)}add(e,t){this.active||(this.active=!0,function(...e){tt("requestAnimationFrame")(...e)}
50(()=>{this.nodeMap=new WeakMap,this.active=!1})),this.nodeMap.set(e,(this.nodeMap.get(e)||new Set).add(t))}destroy(){}}let Yt,Kt;try{if(2!==Array.from([1],e=>2*e)[0]){const e=document.createElement("iframe");document.body.appendChild(e),Array.from=e.contentWindow?.Array.from||Array.from,document.body.removeChild(e)}}catch(e){console.debug("Unable to override Array.from",e)}const Jt=new Y;function Qt(e={}){const{emit:t,checkoutEveryNms:r,checkoutEveryNth:n,blockClass:i="rr-block",blockSelector:o=null,unblockSelector:a=null,ignoreClass:s="rr-ignore",ignoreSelector:l=null,maskAllText:c=!1,maskTextClass:u="rr-mask",unmaskTextClass:p=null,maskTextSelector:d=null,unmaskTextSelector:h=null,inlineStylesheet:f=!0,maskAllInputs:m,maskInputOptions:g,slimDOMOptions:y,maskAttributeFn:b,maskInputFn:v,maskTextFn:_,maxCanvasSize:S=null,packFn:E,sampling:T={},dataURLOptions:w={},mousemoveWait:x,recordDOM:O=!0,recordCanvas:I=!1,recordCrossOriginIframes:A=!1,recordAfter:k=("DOMContentLoaded"===e.recordAfter?e.recordAfter:"load"),userTriggeredOnInput:R=!1,collectFonts:C=!1,inlineImages:P=!1,plugins:D,keepIframeSrcFn:M=()=>!1,ignoreCSSAttributes:N=new Set([]),errorHandler:L,onMutation:F,getCanvasManager:B}=e;ct(L);const U=!A||window.parent===window;let j=!1;if(!U)try{window.parent.document&&(j=!1)}catch(e){j=!0}if(U&&!t)throw new Error("emit function is required");if(!U&&!j)return()=>{};void 0!==x&&void 0===T.mousemove&&(T.mousemove=x),Jt.reset();const H=!0===m?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0,radio:!0,checkbox:!0}:void 0!==g?g:{},V=!0===y||"all"===y?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:"all"===y,headMetaDescKeywords:"all"===y}:y||{};let z;!function(e=window){"NodeList"in e&&!e.NodeList.prototype.forEach&&(e.NodeList.prototype.forEach=Array.prototype.forEach),"DOMTokenList"in e&&!e.DOMTokenList.prototype.forEach&&(e.DOMTokenList.prototype.forEach=Array.prototype.forEach),Node.prototype.contains||(Node.prototype.contains=(...e)=>{let t=e[0];if(!(0 in e))throw new TypeError("1 argument is required");do{if(this===t)return!0}while(t=t&&t.parentNode);return!1})}();let G=0;const q=e=>{for(const t of D||[])t.eventProcessor&&(e=t.eventProcessor(e));return E&&!j&&(e=E(e)),e};Yt=(e,i)=>{const o=e;if(o.timestamp=Be(),!It[0]?.isFrozen()||o.type===nt.FullSnapshot||o.type===nt.IncrementalSnapshot&&o.data.source===it.Mutation||It.forEach(e=>e.unfreeze()),U)t?.(q(o),i);else if(j){const e={type:"rrweb",event:q(o),origin:window.location.origin,isCheckout:i};window.parent.postMessage(e,"*")}if(o.type===nt.FullSnapshot)z=o,G=0;else if(o.type===nt.IncrementalSnapshot){if(o.data.source===it.Mutation&&o.data.isAttachIframe)return;G++;const e=n&&G>=n,t=r&&z&&o.timestamp-z.timestamp>r;(e||t)&&te(!0)}};const $=e=>{Yt({type:nt.IncrementalSnapshot,data:{source:it.Mutation,...e}})},W=e=>Yt({type:nt.IncrementalSnapshot,data:{source:it.Scroll,...e}}),K=e=>Yt({type:nt.IncrementalSnapshot,data:{source:it.CanvasMutation,...e}}),J=new $t({mutationCb:$,adoptedStyleSheetCb:e=>Yt({type:nt.IncrementalSnapshot,data:{source:it.AdoptedStyleSheet,...e}})}),Q="boolean"==typeof __RRWEB_EXCLUDE_IFRAME__&&__RRWEB_EXCLUDE_IFRAME__?new Vt:new zt({mirror:Jt,mutationCb:$,stylesheetManager:J,recordCrossOriginIframes:A,wrappedEmit:Yt});for(const e of D||[])e.getMirror&&e.getMirror({nodeMirror:Jt,crossOriginIframeMirror:Q.crossOriginIframeMirror,crossOriginIframeStyleMirror:Q.crossOriginIframeStyleMirror});const X=new Wt,Z=function(e,t){try{return e?e(t):new mt}catch{return console.warn("Unable to initialize CanvasManager"),new mt}}(B,{mirror:Jt,win:window,mutationCb:e=>Yt({type:nt.IncrementalSnapshot,data:{source:it.CanvasMutation,...e}}),recordCanvas:I,blockClass:i,blockSelector:o,unblockSelector:a,maxCanvasSize:S,sampling:T.canvas,dataURLOptions:w,errorHandler:L}),ee="boolean"==typeof __RRWEB_EXCLUDE_SHADOW_DOM__&&__RRWEB_EXCLUDE_SHADOW_DOM__?new Gt:new qt({mutationCb:$,scrollCb:W,bypassOptions:{onMutation:F,blockClass:i,blockSelector:o,unblockSelector:a,maskAllText:c,maskTextClass:u,unmaskTextClass:p,maskTextSelector:d,unmaskTextSelector:h,inlineStylesheet:f,maskInputOptions:H,dataURLOptions:w,maskAttributeFn:b,maskTextFn:_,maskInputFn:v,recordCanvas:I,inlineImages:P,sampling:T,slimDOMOptions:V,iframeManager:Q,stylesheetManager:J,canvasManager:Z,keepIframeSrcFn:M,processedNodeManager:X,ignoreCSSAttributes:N},mirror:Jt}),te=(e=!1)=>
50{if(!O)return;Yt({type:nt.Meta,data:{href:window.location.href,width:He(),height:je()}},e),J.reset(),ee.init(),It.forEach(e=>e.lock());const t=function(e,t){const{mirror:r=new Y,blockClass:n="rr-block",blockSelector:i=null,unblockSelector:o=null,maskAllText:a=!1,maskTextClass:s="rr-mask",unmaskTextClass:l=null,maskTextSelector:c=null,unmaskTextSelector:u=null,inlineStylesheet:p=!0,inlineImages:d=!1,recordCanvas:h=!1,maskAllInputs:f=!1,maskAttributeFn:m,maskTextFn:g,maskInputFn:y,slimDOM:b=!1,dataURLOptions:v,preserveWhiteSpace:_,onSerialize:S,onIframeLoad:E,iframeLoadTimeout:T,onBlockedImageLoad:w,onStylesheetLoad:x,stylesheetLoadTimeout:O,keepIframeSrcFn:I=()=>!1,ignoreCSSAttributes:A=new Set([])}=t||{};return Ce(e,{doc:e,mirror:r,blockClass:n,blockSelector:i,unblockSelector:o,maskAllText:a,maskTextClass:s,unmaskTextClass:l,maskTextSelector:c,unmaskTextSelector:u,skipChild:!1,inlineStylesheet:p,maskInputOptions:!0===f?{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===f?{}:f,maskAttributeFn:m,maskTextFn:g,maskInputFn:y,slimDOMOptions:!0===b||"all"===b?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaDescKeywords:"all"===b,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaAuthorship:!0,headMetaVerification:!0}:!1===b?{}:b,dataURLOptions:v,inlineImages:d,recordCanvas:h,preserveWhiteSpace:_,onSerialize:S,onIframeLoad:E,iframeLoadTimeout:T,onBlockedImageLoad:w,onStylesheetLoad:x,stylesheetLoadTimeout:O,keepIframeSrcFn:I,newlyAddedElement:!1,ignoreCSSAttributes:A})}(document,{mirror:Jt,blockClass:i,blockSelector:o,unblockSelector:a,maskAllText:c,maskTextClass:u,unmaskTextClass:p,maskTextSelector:d,unmaskTextSelector:h,inlineStylesheet:f,maskAllInputs:H,maskAttributeFn:b,maskInputFn:v,maskTextFn:_,slimDOM:V,dataURLOptions:w,recordCanvas:I,inlineImages:P,onSerialize:e=>{We(e,Jt)&&Q.addIframe(e),Ye(e,Jt)&&J.trackLinkElement(e),Ke(e)&&ee.addShadowRoot(e.shadowRoot,document)},onIframeLoad:(e,t)=>{Q.attachIframe(e,t);const r=yt(e);r&&Z.addWindow(r),ee.observeAttachShadow(e)},onStylesheetLoad:(e,t)=>{J.attachLinkElement(e,t)},onBlockedImageLoad:(e,t,{width:r,height:n})=>{$({adds:[],removes:[],texts:[],attributes:[{id:t.id,attributes:{style:{width:`${r}px`,height:`${n}px`}}}]})},keepIframeSrcFn:M,ignoreCSSAttributes:N});if(!t)return console.warn("Failed to snapshot the document");Yt({type:nt.FullSnapshot,data:{node:t,initialOffset:Ue(window)}}),It.forEach(e=>e.unlock()),document.adoptedStyleSheets&&document.adoptedStyleSheets.length>0&&J.adoptStyleSheets(document.adoptedStyleSheets,Jt.getId(document))};Kt=te;try{const e=[],t=e=>pt(Bt)({onMutation:F,mutationCb:$,mousemoveCb:(e,t)=>Yt({type:nt.IncrementalSnapshot,data:{source:t,positions:e}}),mouseInteractionCb:e=>Yt({type:nt.IncrementalSnapshot,data:{source:it.MouseInteraction,...e}}),scrollCb:W,viewportResizeCb:e=>Yt({type:nt.IncrementalSnapshot,data:{source:it.ViewportResize,...e}}),inputCb:e=>Yt({type:nt.IncrementalSnapshot,data:{source:it.Input,...e}}),mediaInteractionCb:e=>Yt({type:nt.IncrementalSnapshot,data:{source:it.MediaInteraction,...e}}),styleSheetRuleCb:e=>Yt({type:nt.IncrementalSnapshot,data:{source:it.StyleSheetRule,...e}}),styleDeclarationCb:e=>Yt({type:nt.IncrementalSnapshot,data:{source:it.StyleDeclaration,...e}}),canvasMutationCb:K,fontCb:e=>Yt({type:nt.IncrementalSnapshot,data:{source:it.Font,...e}}),selectionCb:e=>{Yt({type:nt.IncrementalSnapshot,data:{source:it.Selection,...e}})},customElementCb:e=>{Yt({type:nt.IncrementalSnapshot,data:{source:it.CustomElement,...e}})},blockClass:i,ignoreClass:s,ignoreSelector:l,maskAllText:c,maskTextClass:u,unmaskTextClass:p,maskTextSelector:d,unmaskTextSelector:h,maskInputOptions:H,inlineStylesheet:f,sampling:T,recordDOM:O,recordCanvas:I,inlineImages:P,userTriggeredOnInput:R,collectFonts:C,doc:e,maskAttributeFn:b,maskInputFn:v,maskTextFn:_,keepIframeSrcFn:M,blockSelector:o,unblockSelector:a,slimDOMOptions:V,dataURLOptions:w,mirror:Jt,iframeManager:Q,stylesheetManager:J,shadowDomManager:ee,processedNodeManager:X,canvasManager:Z,ignoreCSSAttributes:N,plugins:D?.filter(e=>e.observer)?.map(e=>({observer:e.observer,options:e.options,callback:t=>Yt({type:nt.Plugin,data:{plugin:e.name,payload:t}}
50)}))||[]},{});Q.addLoadListener(r=>{try{e.push(t(r.contentDocument))}catch(e){console.warn(e)}});const r=()=>{te(),e.push(t(document))};return"interactive"===document.readyState||"complete"===document.readyState?r():(e.push(Pe("DOMContentLoaded",()=>{Yt({type:nt.DomContentLoaded,data:{}}),"DOMContentLoaded"===k&&r()})),e.push(Pe("load",()=>{Yt({type:nt.Load,data:{}}),"load"===k&&r()},window))),()=>{e.forEach(e=>e()),X.destroy(),Kt=void 0,ut()}}catch(e){console.warn(e)}}var Xt,Zt;Qt.mirror=Jt,Qt.takeFullSnapshot=function(e){if(!Kt)throw new Error("please take full snapshot after start recording");Kt(e)},(Zt=Xt||(Xt={}))[Zt.NotStarted=0]="NotStarted",Zt[Zt.Running=1]="Running",Zt[Zt.Stopped=2]="Stopped";function er(e){return e>9999999999?e:1e3*e}function tr(e){return e>9999999999?e/1e3:e}function rr(e,t){"sentry.transaction"!==t.category&&(["ui.click","ui.input"].includes(t.category)?e.triggerUserActivity():e.checkAndHandleExpiredSession(),e.addUpdate(()=>(e.throttledAddEvent({type:nt.Custom,timestamp:1e3*(t.timestamp||0),data:{tag:"breadcrumb",payload:(0,v.normalize)(t,10,1e3)}}),"console"===t.category)))}function nr(e){return e.closest("button,a")||e}function ir(e){const t=or(e);return t&&t instanceof Element?nr(t):t}function or(e){return function(e){return(0,m.isObjectLike)(e)&&"target"in e}(e)?e.target:e}let ar;function sr(e){return ar||(ar=[],(0,_.fill)(M,"open",function(e){return function(...t){if(ar)try{ar.forEach(e=>e())}catch{}return e.apply(M,t)}})),ar.push(e),()=>{const t=ar?ar.indexOf(e):-1;t>-1&&ar.splice(t,1)}}const lr=new Set([it.Mutation,it.StyleSheetRule,it.StyleDeclaration,it.AdoptedStyleSheet,it.CanvasMutation,it.Selection,it.MediaInteraction]);class cr{constructor(e,t,r=rr){this._lastMutation=0,this._lastScroll=0,this._clicks=[],this._timeout=t.timeout/1e3,this._threshold=t.threshold/1e3,this._scrollTimeout=t.scrollTimeout/1e3,this._replay=e,this._ignoreSelector=t.ignoreSelector,this._addBreadcrumbEvent=r}addListeners(){const e=sr(()=>{this._lastMutation=pr()});this._teardown=()=>{e(),this._clicks=[],this._lastMutation=0,this._lastScroll=0}}removeListeners(){this._teardown&&this._teardown(),this._checkClickTimeout&&clearTimeout(this._checkClickTimeout)}handleClick(e,t){if(function(e,t){if(!ur.includes(e.tagName))return!0;if("INPUT"===e.tagName&&!["submit","button"].includes(e.getAttribute("type")||""))return!0;if("A"===e.tagName&&(e.hasAttribute("download")||e.hasAttribute("target")&&"_self"!==e.getAttribute("target")))return!0;if(t&&e.matches(t))return!0;return!1}(t,this._ignoreSelector)||!function(e){return!(!e.data||"number"!=typeof e.data.nodeId||!e.timestamp)}(e))return;const r={timestamp:tr(e.timestamp),clickBreadcrumb:e,clickCount:0,node:t};this._clicks.some(e=>e.node===r.node&&Math.abs(e.timestamp-r.timestamp)<1)||(this._clicks.push(r),1===this._clicks.length&&this._scheduleCheckClicks())}registerMutation(e=Date.now()){this._lastMutation=tr(e)}registerScroll(e=Date.now()){this._lastScroll=tr(e)}registerClick(e){const t=nr(e);this._handleMultiClick(t)}_handleMultiClick(e){this._getClicks(e).forEach(e=>{e.clickCount++})}_getClicks(e){return this._clicks.filter(t=>t.node===e)}_checkClicks(){const e=[],t=pr();this._clicks.forEach(r=>{!r.mutationAfter&&this._lastMutation&&(r.mutationAfter=r.timestamp<=this._lastMutation?this._lastMutation-r.timestamp:void 0),!r.scrollAfter&&this._lastScroll&&(r.scrollAfter=r.timestamp<=this._lastScroll?this._lastScroll-r.timestamp:void 0),r.timestamp+this._timeout<=t&&e.push(r)});for(const t of e){const e=this._clicks.indexOf(t);e>-1&&(this._generateBreadcrumbs(t),this._clicks.splice(e,1))}this._clicks.length&&this._scheduleCheckClicks()}_generateBreadcrumbs(e){const t=this._replay,r=e.scrollAfter&&e.scrollAfter<=this._scrollTimeout,n=e.mutationAfter&&e.mutationAfter<=this._threshold,i=!r&&!n,{clickCount:o,clickBreadcrumb:a}=e;if(i){const r=1e3*Math.min(e.mutationAfter||this._timeout,this._timeout),n=r<1e3*this._timeout?"mutation":"timeout",i={type:"default",message:a.message,timestamp:a.timestamp,category:"ui.slowClickDetected",data:{...a.data,url:M.location.href,route:t.getCurrentRoute(),timeAfterClickMs:r,endReason:n,clickCount:o||1}};return void this._addBreadcrumbEvent(t,i)}if(o>1){const e={type:"default",message:a.message,timestamp:a.timestamp,category:"ui.multiClick",data:{...a.data,url:M.location.href,route:t.getCurrentRoute(),clickCount:o,metric:!0}};this._addBreadcrumbEvent(t,e)}}_scheduleCheckClicks(){this._checkClickTimeout&&clearTimeout(this._checkClickTimeout),this._checkClickTimeout=(0,R.setTimeout)(()=>this._checkClicks(),1e3)}}const ur=["A","BUTTON","INPUT"];function pr(){return Date.now()/1e3}function dr(e,t){try{if(!function(e){return 3===e.type}(t))return;const{source:r}=t.data;if(lr.has(r)&&e.registerMutation(t.timestamp),r===it.Scroll&&e.registerScroll(t.timestamp),function(e){return e.data.source===it.MouseInteraction}(t)){const{type:r,id:n}=t.data,i=Qt.mirror.getNode(n);i instanceof HTMLElement&&r===ot.Click&&e.registerClick(i)}}catch{}}function hr(e){return{timestamp:Date.now()/1e3,type:"default",...e}}var fr=(e=>(e[e.Document=0]="Document",e[e.DocumentType=1]="DocumentType",e[e.Element=2]="Element",e[e.Text=3]="Text",e[e.CDATA=4]="CDATA",e[e.Comment=5]="Comment",e))(fr||{});const mr=new Set(["id","class","aria-label","role","name","alt","title","data-test-id","data-testid","disabled","aria-disabled","data-sentry-component"]);function gr(e){const t={};!e["data-sentry-component"]&&e["data-sentry-element"]&&(e["data-sentry-component"]=e["data-sentry-element"]);for(const r in e)if(mr.has(r)){let n=r;"data-testid"!==r&&"data-test-id"!==r||(n="testId"),t[n]=e[r]}return t}const yr=e=>t=>{if(!e.isEnabled())return;const r=function(e){const{target:t,message:r}=function(e){const t="click"===e.name;let r,n=null;try{n=t?ir(e.event):or(e.event),r=(0,D.htmlTreeAsString)(n,{maxStringLength:200})||"<unknown>"}catch{r="<unknown>"}return{target:n,message:r}}(e);return hr({category:`ui.${e.name}`,...br(t,r)})}(t);if(!r)return;const n="click"===t.name,i=n?t.event:void 0;var o,a,s;!(n&&e.clickDetector&&i?.target)||i.altKey||i.metaKey||i.ctrlKey||i.shiftKey||(o=e.clickDetector,a=r,s=ir(t.event),o.handleClick(a,s)),rr(e,r)};function br(e,t){const r=Qt.mirror.getId(e),n=r&&Qt.mirror.getNode(r),i=n&&Qt.mirror.getMeta(n),o=i&&function(e){return e.type===fr.Element}(i)?i:null;return{message:t,data:o?{nodeId:r,node:{id:r,tagName:o.tagName,textContent:Array.from(o.childNodes).map(e=>
50e.type===fr.Text&&e.textContent).filter(Boolean).map(e=>e.trim()).join(""),attributes:gr(o.attributes)}}:{}}}function vr(e,t){if(!e.isEnabled())return;e.updateUserActivity();const r=function(e){const{metaKey:t,shiftKey:r,ctrlKey:n,altKey:i,key:o,target:a}=e;if(!a||function(e){return"INPUT"===e.tagName||"TEXTAREA"===e.tagName||e.isContentEditable}(a)||!o)return null;const s=t||n||i,l=1===o.length;if(!s&&l)return null;const c=(0,D.htmlTreeAsString)(a,{maxStringLength:200})||"<unknown>",u=br(a,c);return hr({category:"ui.keyDown",message:c,data:{...u.data,metaKey:t,shiftKey:r,ctrlKey:n,altKey:i,key:o}})}(t);r&&rr(e,r)}const _r={resource:function(e){const{entryType:t,initiatorType:r,name:n,responseEnd:i,startTime:o,decodedBodySize:a,encodedBodySize:s,responseStatus:l,transferSize:c}=e;if(["fetch","xmlhttprequest"].includes(r))return null;return{type:`${t}.${r}`,start:Tr(o),end:Tr(i),name:n,data:{size:c,statusCode:l,decodedBodySize:a,encodedBodySize:s}}},paint:function(e){const{duration:t,entryType:r,name:n,startTime:i}=e,o=Tr(i);return{type:r,name:n,start:o,end:o+t,data:void 0}},navigation:function(e){const{entryType:t,name:r,decodedBodySize:n,duration:i,domComplete:o,encodedBodySize:a,domContentLoadedEventStart:s,domContentLoadedEventEnd:l,domInteractive:c,loadEventStart:u,loadEventEnd:p,redirectCount:d,startTime:h,transferSize:f,type:m}=e;if(0===i)return null;return{type:`${t}.${m}`,start:Tr(h),end:Tr(o),name:r,data:{size:f,decodedBodySize:n,encodedBodySize:a,duration:i,domInteractive:c,domContentLoadedEventStart:s,domContentLoadedEventEnd:l,loadEventStart:u,loadEventEnd:p,domComplete:o,redirectCount:d}}}};function Sr(e,t){return({metric:r})=>{t.replayPerformanceEntries.push(e(r))}}function Er(e){const t=_r[e.entryType];return t?t(e):null}function Tr(e){return(((0,T.browserPerformanceTimeOrigin)()||M.performance.timeOrigin)+e)/1e3}function wr(e){const t=e.entries[e.entries.length-1];return Ar(e,"largest-contentful-paint",t?.element?[t.element]:void 0)}function xr(e){return void 0!==e.sources}function Or(e){const t=[],r=[];for(const n of e.entries)if(xr(n)){const e=[];for(const t of n.sources)if(t.node){r.push(t.node);const n=Qt.mirror.getId(t.node);n&&e.push(n)}t.push({value:n.value,nodeIds:e.length?e:void 0})}return Ar(e,"cumulative-layout-shift",r,t)}function Ir(e){const t=e.entries[e.entries.length-1];return Ar(e,"interaction-to-next-paint",t?.target?[t.target]:void 0)}function Ar(e,t,r,n){const i=e.value,o=e.rating,a=Tr(i);return{type:"web-vital",name:t,start:a,end:a,data:{value:i,size:i,rating:o,nodeIds:r?r.map(e=>Qt.mirror.getId(e)):void 0,attributions:n}}}const kr="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__;const Rr=["log","warn","error"],Cr="[Replay] ";function Pr(e,t="info"){(0,h.addBreadcrumb)({category:"console",data:{logger:"replay"},level:t,message:`${Cr}${e}`},{level:t})}const Dr=function(){let e=!1,t=!1;const r={exception:()=>{},infoTick:()=>{},setConfig:r=>{e=!!r.captureExceptions,t=!!r.traceInternals}};return kr?(Rr.forEach(e=>{r[e]=(...r)=>{y.debug[e](Cr,...r),t&&Pr(r.join(""),(0,S.severityLevelFromString)(e))}}),r.exception=(n,...i)=>{i.length&&r.error&&r.error(...i),y.debug.error(Cr,n),e?(0,a.captureException)(n,{mechanism:{handled:!0,type:"auto.function.replay.debug"}}):t&&Pr(n,"error")},r.infoTick=(...e)=>{y.debug.log(Cr,...e),t&&setTimeout(()=>Pr(e[0]),0)}):Rr.forEach(e=>{r[e]=()=>{}}),r}();class Mr extends Error{constructor(){super("Event buffer exceeded maximum size of 20000000.")}}class Nr extends Error{constructor(){super("Worker destroyed")}}class Lr{constructor(){this.events=[],this._totalSize=0,this.hasCheckout=!1,this.waitForCheckout=!1}get hasEvents(){return this.events.length>0}get type(){return"sync"}destroy(){this.events=[]}async addEvent(e){const t=JSON.stringify(e).length;if(this._totalSize+=t,this._totalSize>U)throw new Mr;this.events.push(e)}finish(){return new Promise(e=>{const t=this.events;this.clear(),e(JSON.stringify(t))})}clear(){this.events=[],this._totalSize=0,this.hasCheckout=!1}getEarliestTimestamp(){let e=null;for(const{timestamp:t}of this.events)(null===e||t<e)&&(e=t);return null===e?e:er(e)}}class Fr{constructor(e){this._onMessage=({data:e})=>{const t=e;if("number"!=typeof t.id)return;
50const r=this._pending.get(t.id);if(r&&r.method===t.method){if(this._pending.delete(t.id),!t.success)return kr&&Dr.error("Error in compression worker: ",t.response),void r.reject(new Error("Error in compression worker"));r.resolve(t.response)}},this._worker=e,this._id=0,this._pending=new Map,this._worker.addEventListener("message",this._onMessage)}ensureReady(){return this._ensureReadyPromise||(this._ensureReadyPromise=new Promise((e,t)=>{this._worker.addEventListener("message",({data:r})=>{r.success?e():(kr&&Dr.warn("Received worker message with unsuccessful status",r),t(new Error("Received worker message with unsuccessful status")))},{once:!0}),this._worker.addEventListener("error",e=>{kr&&Dr.warn("Failed to load Replay compression worker",e),t(new Error(`Failed to load Replay compression worker: ${e instanceof ErrorEvent&&e.message?e.message:"Unknown error. This can happen due to CSP policy restrictions, network issues, or the worker script failing to load."}`))},{once:!0})})),this._ensureReadyPromise}destroy(){kr&&Dr.log("Destroying compression worker"),this._worker.removeEventListener("message",this._onMessage),this._pending.forEach(e=>e.reject(new Nr)),this._pending.clear(),this._worker.terminate()}postMessage(e,t){const r=this._getAndIncrementId();return new Promise((n,i)=>{this._pending.set(r,{method:e,resolve:n,reject:i});try{this._worker.postMessage({id:r,method:e,arg:t})}catch(e){this._pending.delete(r),i(e)}})}_getAndIncrementId(){return this._id++}}class Br{constructor(e){this._worker=new Fr(e),this._earliestTimestamp=null,this._totalSize=0,this.hasCheckout=!1,this.waitForCheckout=!1}get hasEvents(){return!!this._earliestTimestamp}get type(){return"worker"}ensureReady(){return this._worker.ensureReady()}destroy(){this._worker.destroy()}addEvent(e){const t=er(e.timestamp);(!this._earliestTimestamp||t<this._earliestTimestamp)&&(this._earliestTimestamp=t);const r=JSON.stringify(e);return this._totalSize+=r.length,this._totalSize>U?Promise.reject(new Mr):this._sendEventToWorker(r)}finish(){return this._finishRequest()}clear(){this._earliestTimestamp=null,this._totalSize=0,this.hasCheckout=!1,this._worker.postMessage("clear").then(null,e=>{kr&&Dr.exception(e,'Sending "clear" message to worker failed',e)})}getEarliestTimestamp(){return this._earliestTimestamp}_sendEventToWorker(e){return this._worker.postMessage("addEvent",e)}async _finishRequest(){const e=await this._worker.postMessage("finish");return this._earliestTimestamp=null,this._totalSize=0,e}}class Ur{constructor(e){this._fallback=new Lr,this._compression=new Br(e),this._used=this._fallback,this._ensureWorkerIsLoadedPromise=this._ensureWorkerIsLoaded()}get waitForCheckout(){return this._used.waitForCheckout}get type(){return this._used.type}get hasEvents(){return this._used.hasEvents}get hasCheckout(){return this._used.hasCheckout}set hasCheckout(e){this._used.hasCheckout=e}set waitForCheckout(e){this._used.waitForCheckout=e}destroy(){this._fallback.destroy(),this._compression.destroy()}clear(){return this._used.clear()}getEarliestTimestamp(){return this._used.getEarliestTimestamp()}addEvent(e){return this._used.addEvent(e)}async finish(){return await this.ensureWorkerIsLoaded(),this._used.finish()}ensureWorkerIsLoaded(){return this._ensureWorkerIsLoadedPromise}async _ensureWorkerIsLoaded(){try{await this._compression.ensureReady()}catch(e){return void(kr&&Dr.exception(e,"Failed to load the compression worker, falling back to simple buffer"))}await this._switchToCompressionWorker()}async _switchToCompressionWorker(){const{events:e,hasCheckout:t,waitForCheckout:r}=this._fallback,n=[];for(const t of e)n.push(this._compression.addEvent(t));this._compression.hasCheckout=t,this._compression.waitForCheckout=r,this._used=this._compression;try{await Promise.all(n),this._fallback.clear()}catch(e){if(e instanceof Nr)return;kr&&Dr.exception(e,"Failed to add events when switching buffers.")}}}function jr({useCompression:e,workerUrl:t}){if(e&&window.Worker){const e=function(e){try{const t=e||function(){if("undefined"==typeof __SENTRY_EXCLUDE_REPLAY_WORKER__||!__SENTRY_EXCLUDE_REPLAY_WORKER__)return function(){const e=new Blob(['
vendor: 10,329 bytes, line 50
50var t=Uint8Array,n=Uint16Array,r=Int32Array,e=new t([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),i=new t([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),s=new t([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),a=function(t,e){for(var i=new n(31),s=0;s<31;++s)i[s]=e+=1<<t[s-1];var a=new r(i[30]);for(s=1;s<30;++s)for(var o=i[s];o<i[s+1];++o)a[o]=o-i[s]<<5|s;return{b:i,r:a}},o=a(e,2),h=o.b,f=o.r;h[28]=258,f[258]=28;for(var l=a(i,0).r,u=new n(32768),c=0;c<32768;++c){var v=(43690&c)>>1|(21845&c)<<1;v=(61680&(v=(52428&v)>>2|(13107&v)<<2))>>4|(3855&v)<<4,u[c]=((65280&v)>>8|(255&v)<<8)>>1}var d=function(t,r,e){for(var i=t.length,s=0,a=new n(r);s<i;++s)t[s]&&++a[t[s]-1];var o,h=new n(r);for(s=1;s<r;++s)h[s]=h[s-1]+a[s-1]<<1;if(e){o=new n(1<<r);var f=15-r;for(s=0;s<i;++s)if(t[s])for(var l=s<<4|t[s],c=r-t[s],v=h[t[s]-1]++<<c,d=v|(1<<c)-1;v<=d;++v)o[u[v]>>f]=l}else for(o=new n(i),s=0;s<i;++s)t[s]&&(o[s]=u[h[t[s]-1]++]>>15-t[s]);return o},p=new t(288);for(c=0;c<144;++c)p[c]=8;for(c=144;c<256;++c)p[c]=9;for(c=256;c<280;++c)p[c]=7;for(c=280;c<288;++c)p[c]=8;var g=new t(32);for(c=0;c<32;++c)g[c]=5;var w=d(p,9,0),y=d(g,5,0),m=function(t){return(t+7)/8|0},b=function(n,r,e){return(null==e||e>n.length)&&(e=n.length),new t(n.subarray(r,e))},M=["unexpected EOF","invalid block type","invalid length/literal","invalid distance","stream finished","no stream handler",,"no callback","invalid UTF-8 data","extra field too long","date not in range 1980-2099","filename too long","stream finishing","invalid zip data"],E=function(t,n,r){var e=new Error(n||M[t]);if(e.code=t,Error.captureStackTrace&&Error.captureStackTrace(e,E),!r)throw e;return e},z=function(t,n,r){r<<=7&n;var e=n/8|0;t[e]|=r,t[e+1]|=r>>8},_=function(t,n,r){r<<=7&n;var e=n/8|0;t[e]|=r,t[e+1]|=r>>8,t[e+2]|=r>>16},x=function(r,e){for(var i=[],s=0;s<r.length;++s)r[s]&&i.push({s:s,f:r[s]});var a=i.length,o=i.slice();if(!a)return{t:F,l:0};if(1==a){var h=new t(i[0].s+1);return h[i[0].s]=1,{t:h,l:1}}i.sort(function(t,n){return t.f-n.f}),i.push({s:-1,f:25001});var f=i[0],l=i[1],u=0,c=1,v=2;for(i[0]={s:-1,f:f.f+l.f,l:f,r:l};c!=a-1;)f=i[i[u].f<i[v].f?u++:v++],l=i[u!=c&&i[u].f<i[v].f?u++:v++],i[c++]={s:-1,f:f.f+l.f,l:f,r:l};var d=o[0].s;for(s=1;s<a;++s)o[s].s>d&&(d=o[s].s);var p=new n(d+1),g=A(i[c-1],p,0);if(g>e){s=0;var w=0,y=g-e,m=1<<y;for(o.sort(function(t,n){return p[n.s]-p[t.s]||t.f-n.f});s<a;++s){var b=o[s].s;if(!(p[b]>e))break;w+=m-(1<<g-p[b]),p[b]=e}for(w>>=y;w>0;){var M=o[s].s;p[M]<e?w-=1<<e-p[M]++-1:++s}for(;s>=0&&w;--s){var E=o[s].s;p[E]==e&&(--p[E],++w)}g=e}return{t:new t(p),l:g}},A=function(t,n,r){return-1==t.s?Math.max(A(t.l,n,r+1),A(t.r,n,r+1)):n[t.s]=r},D=function(t){for(var r=t.length;r&&!t[--r];);for(var e=new n(++r),i=0,s=t[0],a=1,o=function(t){e[i++]=t},h=1;h<=r;++h)if(t[h]==s&&h!=r)++a;else{if(!s&&a>2){for(;a>138;a-=138)o(32754);a>2&&(o(a>10?a-11<<5|28690:a-3<<5|12305),a=0)}else if(a>3){for(o(s),--a;a>6;a-=6)o(8304);a>2&&(o(a-3<<5|8208),a=0)}for(;a--;)o(s);a=1,s=t[h]}return{c:e.subarray(0,i),n:r}},T=function(t,n){for(var r=0,e=0;e<n.length;++e)r+=t[e]*n[e];return r},k=function(t,n,r){var e=r.length,i=m(n+2);t[i]=255&e,t[i+1]=e>>8,t[i+2]=255^t[i],t[i+3]=255^t[i+1];for(var s=0;s<e;++s)t[i+s+4]=r[s];return 8*(i+4+e)},U=function(t,r,a,o,h,f,l,u,c,v,m){z(r,m++,a),++h[256];for(var b=x(h,15),M=b.t,E=b.l,A=x(f,15),U=A.t,C=A.l,F=D(M),I=F.c,S=F.n,L=D(U),O=L.c,j=L.n,q=new n(19),B=0;B<I.length;++B)++q[31&I[B]];for(B=0;B<O.length;++B)++q[31&O[B]];for(var G=x(q,7),H=G.t,J=G.l,K=19;K>4&&!H[s[K-1]];--K);var N,P,Q,R,V=v+5<<3,W=T(h,p)+T(f,g)+l,X=T(h,M)+T(f,U)+l+14+3*K+T(q,H)+2*q[16]+3*q[17]+7*q[18];if(c>=0&&V<=W&&V<=X)return k(r,m,t.subarray(c,c+v));if(z(r,m,1+(X<W)),m+=2,X<W){N=d(M,E,0),P=M,Q=d(U,C,0),R=U;var Y=d(H,J,0);z(r,m,S-257),z(r,m+5,j-1),z(r,m+10,K-4),m+=14;for(B=0;B<K;++B)z(r,m+3*B,H[s[B]]);m+=3*K;for(var Z=[I,O],$=0;$<2;++$){var tt=Z[$];for(B=0;B<tt.length;++B){var nt=31&tt[B];z(r,m,Y[nt]),m+=H[nt],nt>15&&(z(r,m,tt[B]>>5&127),m+=tt[B]>>12)}}}else N=w,P=p,Q=y,R=g;for(B=0;B<u;++B){var rt=o[B];if(rt>255){_(r,m,N[(nt=rt>>18&31)+257]),m+=P[nt+257],nt>7&&(z(r,m,rt>>23&31),m+=e[nt]);var et=31&rt;_(r,m,Q[et]),m+=R[et],et>3&&(_(r,m,rt>>5&8191),m+=i[et])}else _(r,m,N[rt]),m+=P[rt]}return _(r,m,N[256]),m+P[256]},C=new r([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),F=new t(0),I=function(){for(var t=new Int32Array(256),n=0;n<256;++n){for(var r=n,e=9;--e;)r=(1&r&&-306674912)^r>>>1;t[n]=r}return t}(),S=function(){var t=1,n=0;return{p:function(r){for(var e=t,i=n,s=0|r.length,a=0;a!=s;){for(var o=Math.min(a+2655,s);a<o;++a)i+=e+=r[a];e=(65535&e)+15*(e>>16),i=(65535&i)+15*(i>>16)}t=e,n=i},d:function(){return(255&(t%=65521))<<24|(65280&t)<<8|(255&(n%=65521))<<8|n>>8}}},L=function(s,a,o,h,u){if(!u&&(u={l:1},a.dictionary)){var c=a.dictionary.subarray(-32768),v=new t(c.length+s.length);v.set(c),v.set(s,c.length),s=v,u.w=c.length}return function(s,a,o,h,u,c){var v=c.z||s.length,d=new t(h+v+5*(1+Math.ceil(v/7e3))+u),p=d.subarray(h,d.length-u),g=c.l,w=7&(c.r||0);if(a){w&&(p[0]=c.r>>3);for(var y=C[a-1],M=y>>13,E=8191&y,z=(1<<o)-1,_=c.p||new n(32768),x=c.h||new n(z+1),A=Math.ceil(o/3),D=2*A,T=function(t){return(s[t]^s[t+1]<<A^s[t+2]<<D)&z},F=new r(25e3),I=new n(288),S=new n(32),L=0,O=0,j=c.i||0,q=0,B=c.w||0,G=0;j+2<v;++j){var H=T(j),J=32767&j,K=x[H];if(_[J]=K,x[H]=J,B<=j){var N=v-j;if((L>7e3||q>24576)&&(N>423||!g)){w=U(s,p,0,F,I,S,O,q,G,j-G,w),q=L=O=0,G=j;for(var P=0;P<286;++P)I[P]=0;for(P=0;P<30;++P)S[P]=0}var Q=2,R=0,V=E,W=J-K&32767;if(N>2&&H==T(j-W))for(var X=Math.min(M,N)-1,Y=Math.min(32767,j),Z=Math.min(258,N);W<=Y&&--V&&J!=K;){if(s[j+Q]==s[j+Q-W]){for(var $=0;$<Z&&s[j+$]==s[j+$-W];++$);if($>Q){if(Q=$,R=W,$>X)break;var tt=Math.min(W,$-2),nt=0;for(P=0;P<tt;++P){var rt=j-W+P&32767,et=rt-_[rt]&32767;et>nt&&(nt=et,K=rt)}}}W+=(J=K)-(K=_[J])&32767}if(R){F[q++]=268435456|f[Q]<<18|l[R];var it=31&f[Q],st=31&l[R];O+=e[it]+i[st],++I[257+it],++S[st],B=j+Q,++L}else F[q++]=s[j],++I[s[j]]}}for(j=Math.max(j,B);j<v;++j)F[q++]=s[j],++I[s[j]];w=U(s,p,g,F,I,S,O,q,G,j-G,w),g||(c.r=7&w|p[w/8|0]<<3,w-=7,c.h=x,c.p=_,c.i=j,c.w=B)}else{for(j=c.w||0;j<v+g;j+=65535){var at=j+65535;at>=v&&(p[w/8|0]=g,at=v),w=k(p,w+1,s.subarray(j,at))}c.i=v}return b(d,0,h+m(w)+u)}(s,null==a.level?6:a.level,null==a.mem?u.l?Math.ceil(1.5*Math.max(8,Math.min(13,Math.log(s.length)))):20:12+a.mem,o,h,u)},O=function(t,n,r){for(;r;++n)t[n]=r,r>>>=8},j=function(){function n(n,r){if("function"==typeof n&&(r=n,n={}),this.ondata=r,this.o=n||{},this.s={l:0,i:32768,w:32768,z:32768},this.b=new t(98304),this.o.dictionary){var e=this.o.dictionary.subarray(-32768);this.b.set(e,32768-e.length),this.s.i=32768-e.length}}return n.prototype.p=function(t,n){this.ondata(L(t,this.o,0,0,this.s),n)},n.prototype.push=function(n,r){this.ondata||E(5),this.s.l&&E(4);var e=n.length+this.s.z;if(e>this.b.length){if(e>2*this.b.length-32768){var i=new t(-32768&e);i.set(this.b.subarray(0,this.s.z)),this.b=i}var s=this.b.length-this.s.z;this.b.set(n.subarray(0,s),this.s.z),this.s.z=this.b.length,this.p(this.b,!1),this.b.set(this.b.subarray(-32768)),this.b.set(n.subarray(s),32768),this.s.z=n.length-s+32768,this.s.i=32766,this.s.w=32768}else this.b.set(n,this.s.z),this.s.z+=n.length;this.s.l=1&r,(this.s.z>this.s.w+8191||r)&&(this.p(this.b,r||!1),this.s.w=this.s.i,this.s.i-=2)},n.prototype.flush=function(){this.ondata||E(5),this.s.l&&E(4),this.p(this.b,!1),this.s.w=this.s.i,this.s.i-=2},n}();function q(t,n){n||(n={});var r=function(){var t=-1;return{p:function(n){for(var r=t,e=0;e<n.length;++e)r=I[255&r^n[e]]^r>>>8;t=r},d:function(){return~t}}}(),e=t.length;r.p(t);var i,s=L(t,n,10+((i=n).filename?i.filename.length+1:0),8),a=s.length;return function(t,n){var r=n.filename;if(t[0]=31,t[1]=139,t[2]=8,t[8]=n.level<2?4:9==n.level?2:0,t[9]=3,0!=n.mtime&&O(t,4,Math.floor(new Date(n.mtime||Date.now())/1e3)),r){t[3]=8;for(var e=0;e<=r.length;++e)t[e+10]=r.charCodeAt(e)}}(s,n),O(s,a-8,r.d()),O(s,a-4,e),s}var B=function(){function t(t,n){this.c=S(),this.v=1,j.call(this,t,n)}return t.prototype.push=function(t,n){this.c.p(t),j.prototype.push.call(this,t,n)},t.prototype.p=function(t,n){var r=L(t,this.o,this.v&&(this.o.dictionary?6:2),n&&4,this.s);this.v&&(function(t,n){var r=n.level,e=0==r?0:r<6?1:9==r?3:2;if(t[0]=120,t[1]=e<<6|(n.dictionary&&32),t[1]|=31-(t[0]<<8|t[1])%31,n.dictionary){var i=S();i.p(n.dictionary),O(t,2,i.d())}}(r,this.o),this.v=0),n&&O(r,r.length-4,this.c.d()),this.ondata(r,n)},t.prototype.flush=function(){j.prototype.flush.call(this)},t}(),G="undefined"!=typeof TextEncoder&&new TextEncoder,H="undefined"!=typeof TextDecoder&&new TextDecoder;try{H.decode(F,{stream:!0})}catch(t){}var J=function(){function t(t){this.ondata=t}return t.prototype.push=function(t,n){this.ondata||E(5),this.d&&E(4),this.ondata(K(t),this.d=n||!1)},t}();function K(n,r){if(G)return G.encode(n);for(var e=n.length,i=new t(n.length+(n.length>>1)),s=0,a=function(t){i[s++]=t},o=0;o<e;++o){if(s+5>i.length){var h=new t(s+8+(e-o<<1));h.set(i),i=h}var f=n.charCodeAt(o);f<128||r?a(f):f<2048?(a(192|f>>6),a(128|63&f)):f>55295&&f<57344?(a(240|(f=65536+(1047552&f)|1023&n.charCodeAt(++o))>>18),a(128|f>>12&63),a(128|f>>6&63),a(128|63&f)):(a(224|f>>12),a(128|f>>6&63),a(128|63&f))}return b(i,0,s)}const N=new class{constructor(){this._init()}clear(){this._init()}addEvent(t){if(!t)throw new Error("Adding invalid event");const n=this._hasEvents?",":"";this.stream.push(n+t),this._hasEvents=!0}finish(){this.stream.push("]",!0);const t=function(t){let n=0;for(const r of t)n+=r.length;const r=new Uint8Array(n);for(let n=0,e=0,i=t.length;n<i;n++){const i=t[n];r.set(i,e),e+=i.length}return r}(this._deflatedData);return this._init(),t}_init(){this._hasEvents=!1,this._deflatedData=[],this.deflate=new B,this.deflate.ondata=(t,n)=>{this._deflatedData.push(t)},this.stream=new J((t,n)=>{this.deflate.push(t,n)}),this.stream.push("[")}},P={clear:()=>{N.clear()},addEvent:t=>N.addEvent(t),finish:()=>N.finish(),compress:t=>function(t){return q(K(t))}(t)};addEventListener("message",function(t){const n=t.data.method,r=t.data.id,e=t.data.arg;if(n in P&&"function"==typeof P[n])try{const t=P[n](e);postMessage({id:r,method:n,success:!0,response:t})}catch(t){postMessage({id:r,method:n,success:!1,response:t.message}),console.error(t)}}),postMessage({id:void 0,method:"init",success:!0,response:void 0});
50'],{type:"text/javascript"});return URL.createObjectURL(e)}();return""}();if(!t)return;kr&&Dr.log("Using compression worker"+(e?` from ${e}`:""));const r=new Worker(t);return new Ur(r)}catch(e){kr&&Dr.exception(e,"Failed to create compression worker")}}(t);if(e)return e}return kr&&Dr.log("Using simple buffer"),new Lr}function Hr(){try{return"sessionStorage"in M&&!!M.sessionStorage}catch{return!1}}function Vr(e){!function(){if(!Hr())return;try{M.sessionStorage.removeItem(N)}catch{}}(),e.session=void 0}function zr(e){return void 0!==e&&Math.random()<e}function Gr(e){if(Hr())try{M.sessionStorage.setItem(N,JSON.stringify(e))}catch{}}function qr(e){const t=Date.now();return{id:e.id||(0,b.uuid4)(),started:e.started||t,lastActivity:e.lastActivity||t,segmentId:e.segmentId||0,sampled:e.sampled,previousSessionId:e.previousSessionId,dirty:e.dirty||!1}}function $r({sessionSampleRate:e,allowBuffering:t,stickySession:r=!1},{previousSessionId:n}={}){const i=function(e,t){return zr(e)?"session":!!t&&"buffer"}(e,t),o=qr({sampled:i,previousSessionId:n});return r&&Gr(o),o}function Wr(e,t,r=+new Date){return null===e||void 0===t||t<0||0!==t&&e+t<=r}function Yr(e,{sessionIdleExpire:t,maxReplayDuration:r}){return!!function(e,{maxReplayDuration:t,sessionIdleExpire:r,targetTime:n=Date.now()}){return Wr(e.started,t,n)||Wr(e.lastActivity,r,n)}(e,{sessionIdleExpire:t,maxReplayDuration:r})&&("buffer"!==e.sampled||0!==e.segmentId)}function Kr({sessionIdleExpire:e,maxReplayDuration:t,previousSessionId:r},n){const i=n.stickySession&&function(){if(!Hr())return null;try{const e=M.sessionStorage.getItem(N);if(!e)return null;const t=JSON.parse(e);return kr&&Dr.infoTick("Loading existing session"),qr(t)}catch{return null}}();return i?Yr(i,{sessionIdleExpire:e,maxReplayDuration:t})?(kr&&Dr.infoTick("Session in sessionStorage is expired, creating new one..."),$r(n,{previousSessionId:i.id})):i:(kr&&Dr.infoTick("Creating new session"),$r(n,{previousSessionId:r}))}function Jr(e,t,r){return!!Xr(e,t)&&(Qr(e,t,r),!0)}async function Qr(e,t,r){const{eventBuffer:n}=e;if(!n||n.waitForCheckout&&!r)return null;const i="buffer"===e.recordingMode;try{r&&i&&n.clear(),r&&(n.hasCheckout=!0,n.waitForCheckout=!1);const o=function(e,t){try{if("function"==typeof t&&function(e){return e.type===nt.Custom}(e))return t(e)}catch(e){return kr&&Dr.exception(e,"An error occurred in the `beforeAddRecordingEvent` callback, skipping the event..."),null}return e}(t,e.getOptions().beforeAddRecordingEvent);if(!o)return;return await n.addEvent(o)}catch(t){if(!e.isEnabled())return e.handleException(t),null;const r=t&&t instanceof Mr,o=r?"eventBufferOverflow":"eventBufferError",a=(0,s.getClient)();if(a){const e=r?"buffer_overflow":"internal_sdk_error";a.recordDroppedEvent(e,"replay")}if(r&&i)return n.clear(),n.waitForCheckout=!0,null;e.handleException(t),await e.stop({reason:o})}}function Xr(e,t){if(!e.eventBuffer||e.isPaused()||!e.isEnabled())return!1;const r=er(t.timestamp);return!(r+e.timeouts.sessionIdlePause<Date.now())&&(!(r>e.getContext().initialTimestamp+e.getOptions().maxReplayDuration)||(kr&&Dr.infoTick(`Skipping event with timestamp ${r} because it is after maxReplayDuration`),!1))}function Zr(e,t,r){const n=e.getContext();t&&n.traceIds.size<100&&n.traceIds.add(t),r&&n.segmentNames.size<100&&n.segmentNames.add(r)}function en(e){return!e.type}function tn(e){return"transaction"===e.type}function rn(e){return"feedback"===e.type}function nn(e){return(t,r)=>{if(!e.isEnabled()||!en(t)&&!tn(t))return;const n=r.statusCode;!n||n<200||n>=300||(tn(t)?function(e,t){Zr(e,t.contexts?.trace?.trace_id,t.transaction)}(e,t):function(e,t){const r=e.getContext();t.event_id&&r.errorIds.size<100&&r.errorIds.add(t.event_id);if("buffer"!==e.recordingMode||!t.tags?.replayId)return;const{beforeErrorSampling:n}=e.getOptions();if("function"==typeof n&&!n(t))return;(0,R.setTimeout)(async()=>{try{await e.sendBufferedReplayOrFlush()}catch(t){e.handleException(t)}})}(e,t))}}function on(e){return t=>{e.isEnabled()&&en(t)&&function(e,t){const r=t.exception?.values?.[0]?.value;if("string"!=typeof r)return;if(r.match(/(reactjs\.org\/docs\/error-decoder\.html\?invariant=|react\.dev\/errors\/)(418|419|422|423|425)/)||r.match(/(does not match server-rendered HTML|Hydration failed because)/i)){rr(e,hr({category:"replay.hydrate-error",data:{url:(0,O.getLocationHref)()}}))}}(e,t)}}function an(e){const t=(0,s.getClient)();t&&t.on("beforeAddBreadcrumb",t=>function(e,t){if(!e.isEnabled()||!sn(t))return;const r=function(e){if(!sn(e)||["fetch","xhr","sentry.event","sentry.transaction"].includes(e.category)||e.category.startsWith("ui."))return null;if("console"===e.category)return function(e){const t=e.data?.arguments;if(!Array.isArray(t)||0===t.length)return hr(e);let r=!1;const n=t.map(e=>{if(!e)return e;if("string"==typeof e)return e.length>B?(r=!0,`${e.slice(0,B)}…`):e;if("object"==typeof e)try{const t=(0,v.normalize)(e,7);return JSON.stringify(t).length>B?(r=!0,`${JSON.stringify(t,null,2).slice(0,B)}…`):t}catch{}return e});return hr({...e,data:{...e.data,arguments:n,...r?{_meta:{warnings:["CONSOLE_ARG_TRUNCATED"]}}:{}}})}(e);return hr(e)}(t);r&&rr(e,r)}(e,t))}function sn(e){return!!e.category}function ln(){const e=(0,s.getCurrentScope)().getPropagationContext().dsc;e&&delete e.replay_id;const t=(0,u.getActiveSpan)();if(t){delete(0,n.getDynamicSamplingContextFromSpan)(t).replay_id}}function cn(e){const t=(0,s.getCurrentScope)().getPropagationContext().dsc;t&&(t.replay_id=e);const r=(0,u.getActiveSpan)();if(r){(0,n.getDynamicSamplingContextFromSpan)(r).replay_id=e}}function un(e){return Object.assign((t,r)=>{if(e.session&&Yr(e.session,{maxReplayDuration:e.getOptions().maxReplayDuration,sessionIdleExpire:e.timeouts.sessionIdleExpire}
50)&&ln(),!e.isEnabled()||e.isPaused())return t;if(function(e){return"replay_event"===e.type}(t))return delete t.breadcrumbs,t;if(!en(t)&&!tn(t)&&!rn(t))return t;if(!e.checkAndHandleExpiredSession())return ln(),t;if(rn(t))return e.flush(),t.contexts.feedback.replay_id=e.getSessionId(),function(e,t){e.triggerUserActivity(),e.addUpdate(()=>!t.timestamp||(e.throttledAddEvent({type:nt.Custom,timestamp:1e3*t.timestamp,data:{tag:"breadcrumb",payload:{timestamp:t.timestamp,type:"default",category:"sentry.feedback",data:{feedbackId:t.event_id}}}}),!1))}(e,t),t;if(function(e,t){return!(e.type||!e.exception?.values?.length||!t.originalException?.__rrweb__)}(t,r)&&!e.getOptions()._experiments.captureExceptions)return kr&&Dr.log("Ignoring error from rrweb internals",t),null;const n=function(e,t){return"buffer"===e.recordingMode&&t.message!==L&&!(!t.exception||t.type)&&zr(e.getOptions().errorSampleRate)}(e,t);if((n||"session"===e.recordingMode)&&(t.tags={...t.tags,replayId:e.getSessionId()}),n&&"buffer"===e.recordingMode&&"buffer"===e.session?.sampled){const t=e.session;t.dirty=!0,e.getOptions().stickySession&&Gr(t)}return t},{id:"Replay"})}function pn(e,t){return t.map(({type:t,start:r,end:n,name:i,data:o})=>{const a=e.throttledAddEvent({type:nt.Custom,timestamp:r,data:{tag:"performanceSpan",payload:{op:t,description:i,startTimestamp:r,endTimestamp:n,data:o}}});return"string"==typeof a?Promise.resolve(null):a})}function dn(e){return t=>{if(!e.isEnabled())return;const r=function(e){const{from:t,to:r}=e,n=Date.now()/1e3;return{type:"navigation.push",start:n,end:n,name:r,data:{previous:t}}}(t);null!==r&&(e.getContext().urls.push(r.name),e.triggerUserActivity(),e.addUpdate(()=>(pn(e,[r]),!1)))}}function hn(e,t){e.isEnabled()&&null!==t&&(function(e,t){return(!kr||!e.getOptions()._experiments.traceInternals)&&(0,c.isSentryRequestUrl)(t,(0,s.getClient)())}(e,t.name)||e.addUpdate(()=>(pn(e,[t]),!0)))}function fn(e){if(!e)return;const t=new TextEncoder;try{if("string"==typeof e)return t.encode(e).length;if(e instanceof URLSearchParams)return t.encode(e.toString()).length;if(e instanceof FormData){const r=(0,P.serializeFormData)(e);return t.encode(r).length}if(e instanceof Blob)return e.size;if(e instanceof ArrayBuffer)return e.byteLength}catch{}}function mn(e){if(!e)return;const t=parseInt(e,10);return isNaN(t)?void 0:t}function gn(e,t){if(!e)return{headers:{},size:void 0,_meta:{warnings:[t]}};const r={...e._meta},n=r.warnings||[];return r.warnings=[...n,t],e._meta=r,e}function yn(e,t){if(!t)return null;const{startTimestamp:r,endTimestamp:n,url:i,method:o,statusCode:a,request:s,response:l}=t;return{type:e,start:r/1e3,end:n/1e3,name:i,data:{method:o,statusCode:a,request:s,response:l}}}function bn(e){return{headers:{},size:e,_meta:{warnings:["URL_SKIPPED"]}}}function vn(e,t,r){if(!t&&0===Object.keys(e).length)return;if(!t)return{headers:e};if(!r)return{headers:e,size:t};const n={headers:e,size:t},{body:i,warnings:o}=function(e){if(!e||"string"!=typeof e)return{body:e};const t=e.length>F,r=function(e){const t=e[0],r=e[e.length-1];return"["===t&&"]"===r||"{"===t&&"}"===r}(e);if(t){const t=e.slice(0,F);return r?{body:t,warnings:["MAYBE_JSON_TRUNCATED"]}:{body:`${t}…`,warnings:["TEXT_TRUNCATED"]}}if(r)try{return{body:JSON.parse(e)}}catch{}return{body:e}}(r);return n.body=i,o?.length&&(n._meta={warnings:o}),n}function _n(e,t){return Object.entries(e).reduce((r,[n,i])=>{const o=n.toLowerCase();return t.includes(o)&&e[n]&&(r[o]=i),r},{})}function Sn(e,t){const r=function(e,t=M.document.baseURI){if(e.startsWith("http://")||e.startsWith("https://")||e.startsWith(M.location.origin))return e;const r=new URL(e,t);if(r.origin!==new URL(t).origin)return e;const n=r.href;if(!e.endsWith("/")&&n.endsWith("/"))return n.slice(0,-1);return n}(e);return(0,E.stringMatchesSomePattern)(r,t)}async function En(e,t,r){try{const n=await async function(e,t,r){const n=Date.now(),{startTimestamp:i=n,endTimestamp:o=n}=t,{url:a,method:s,status_code:l=0,request_body_size:c,response_body_size:u}=e.data,p=Sn(a,r.networkDetailAllowUrls)&&!Sn(a,r.networkDetailDenyUrls),d=p?function({networkCaptureBodies:e,networkRequestHeaders:t},r,n){const i=r?function(e,t){if(1===e.length&&"string"!=typeof e[0])return wn(e[0],t);
50if(2===e.length)return wn(e[1],t);return{}}(r,t):{};if(!e)return vn(i,n,void 0);const o=(0,P.getFetchRequestArgBody)(r),[a,s]=(0,P.getBodyString)(o,Dr),l=vn(i,n,a);if(s)return gn(l,s);return l}(r,t.input,c):bn(c),h=await async function(e,{networkCaptureBodies:t,networkResponseHeaders:r},n,i){if(!e&&void 0!==i)return bn(i);const o=n?Tn(n.headers,r):{};if(!n||!t&&void 0!==i)return vn(o,i,void 0);const[a,s]=await async function(e){const t=function(e){try{return e.clone()}catch(e){kr&&Dr.exception(e,"Failed to clone response body")}}(e);if(!t)return[void 0,"BODY_PARSE_ERROR"];try{const e=await function(e){return new Promise((t,r)=>{const n=(0,R.setTimeout)(()=>r(new Error("Timeout while trying to read response body")),500);(async function(e){return await e.text()})(e).then(e=>t(e),e=>r(e)).finally(()=>clearTimeout(n))})}(t);return[e]}catch(e){return e instanceof Error&&e.message.indexOf("Timeout")>-1?(kr&&Dr.warn("Parsing text body from response timed out"),[void 0,"BODY_PARSE_TIMEOUT"]):(kr&&Dr.exception(e,"Failed to get text body from response"),[void 0,"BODY_PARSE_ERROR"])}}(n),l=function(e,{networkCaptureBodies:t,responseBodySize:r,captureDetails:n,headers:i}){try{const o=e?.length&&void 0===r?fn(e):r;return n?vn(i,o,t?e:void 0):bn(o)}catch(e){return kr&&Dr.exception(e,"Failed to serialize response body"),vn(i,r,void 0)}}(a,{networkCaptureBodies:t,responseBodySize:i,captureDetails:e,headers:o});if(s)return gn(l,s);return l}(p,r,t.response,u);return{startTimestamp:i,endTimestamp:o,url:a,method:s,statusCode:l,request:d,response:h}}(e,t,r),i=yn("resource.fetch",n);hn(r.replay,i)}catch(e){kr&&Dr.exception(e,"Failed to capture fetch breadcrumb")}}function Tn(e,t){const r={};return t.forEach(t=>{e.get(t)&&(r[t]=e.get(t))}),r}function wn(e,t){if(!e)return{};const r=e.headers;return r?r instanceof Headers?Tn(r,t):Array.isArray(r)?{}:_n(r,t):{}}async function xn(e,t,r){try{const n=function(e,t,r){const n=Date.now(),{startTimestamp:i=n,endTimestamp:o=n,input:a,xhr:s}=t,{url:l,method:c,status_code:u=0,request_body_size:p,response_body_size:d}=e.data;if(!l)return null;if(!s||!Sn(l,r.networkDetailAllowUrls)||Sn(l,r.networkDetailDenyUrls)){return{startTimestamp:i,endTimestamp:o,url:l,method:c,statusCode:u,request:bn(p),response:bn(d)}}const h=s[C.SENTRY_XHR_DATA_KEY],f=h?_n(h.request_headers,r.networkRequestHeaders):{},g=_n((0,P.parseXhrResponseHeaders)(s),r.networkResponseHeaders),[y,b]=r.networkCaptureBodies?(0,P.getBodyString)(a,Dr):[void 0],[v,_]=r.networkCaptureBodies?function(e){const t=[];try{return[e.responseText]}catch(e){t.push(e)}try{return function(e,t){try{if("string"==typeof e)return[e];if(e instanceof Document)return[e.body.outerHTML];if("json"===t&&(0,m.isObjectLike)(e))return[JSON.stringify(e)];if(!e)return[void 0]}catch(t){return kr&&Dr.exception(t,"Failed to serialize body",e),[void 0,"BODY_PARSE_ERROR"]}return kr&&Dr.log("Skipping network body because of body type",e),[void 0,"UNPARSEABLE_BODY_TYPE"]}(e.response,e.responseType)}catch(e){t.push(e)}return kr&&Dr.warn("Failed to get xhr response body",...t),[void 0]}(s):[void 0],S=vn(f,p,y),E=vn(g,d,v);return{startTimestamp:i,endTimestamp:o,url:l,method:c,statusCode:u,request:b?gn(S,b):S,response:_?gn(E,_):E}}(e,t,r),i=yn("resource.xhr",n);hn(r.replay,i)}catch(e){kr&&Dr.exception(e,"Failed to capture xhr breadcrumb")}}function On(e,t){const{xhr:r,input:n}=t;if(!r)return;const i=fn(n),o=r.getResponseHeader("content-length")?mn(r.getResponseHeader("content-length")):function(e,t){try{return fn("json"===t&&(0,m.isObjectLike)(e)?JSON.stringify(e):e)}catch{return}}(r.response,r.responseType);void 0!==i&&(e.data.request_body_size=i),void 0!==o&&(e.data.response_body_size=o)}function In(e){const t=(0,s.getClient)();try{const{networkDetailAllowUrls:r,networkDetailDenyUrls:n,networkCaptureBodies:i,networkRequestHeaders:o,networkResponseHeaders:a}=e.getOptions(),s={replay:e,networkDetailAllowUrls:r,networkDetailDenyUrls:n,networkCaptureBodies:i,networkRequestHeaders:o,networkResponseHeaders:a};t&&t.on("beforeAddBreadcrumb",(e,t)=>function(e,t,r){if(!t.data)return;try{(function(e){return"xhr"===e.category})(t)&&function(e){return e?.xhr}(r)&&(On(t,r),xn(t,r,e)),function(e){return"fetch"===e.category}(t)&&function(e){return void 0!==e?.input}(r)&&(!function(e,t){const{input:r,response:n}=t,i=fn(r?(0,P.getFetchRequestArgBody)(r):void 0),o=n?mn(n.headers.get("content-length")):void 0;void 0!==i&&(e.data.request_body_size=i),void 0!==o&&(e.data.response_body_size=o)}(t,r),En(t,r,e))}
50catch(e){kr&&Dr.exception(e,"Error when enriching network breadcrumb")}}(s,e,t))}catch{}}function An(e){const t=(0,s.getClient)();(0,A.addClickKeypressInstrumentationHandler)(yr(e)),(0,k.addHistoryInstrumentationHandler)(dn(e)),an(e),In(e);const r=un(e);(0,a.addEventProcessor)(r),t&&(t.on("beforeSendEvent",on(e)),t.on("afterSendEvent",nn(e)),t.on("createDsc",t=>{const r=e.getSessionId();if(r&&e.isEnabled()&&"session"===e.recordingMode){e.checkAndHandleExpiredSession()&&(t.replay_id=r)}}),t.on("processSegmentSpan",function(e){return t=>{e.isEnabled()&&Zr(e,t.trace_id,t.name||void 0)}}(e)),t.on("spanStart",t=>{e.lastActiveSpan=t}),t.on("spanEnd",t=>{e.lastActiveSpan=t}),t.on("beforeSendFeedback",async(t,r)=>{const n=e.getSessionId();r?.includeReplay&&e.isEnabled()&&n&&t.contexts?.feedback&&("api"===t.contexts.feedback.source&&await e.sendBufferedReplayOrFlush(),t.contexts.feedback.replay_id=n)}),t.on("openFeedbackWidget",async()=>{await e.sendBufferedReplayOrFlush()}))}function kn(e){const{jsHeapSizeLimit:t,totalJSHeapSize:r,usedJSHeapSize:n}=e,i=Date.now()/1e3;return{type:"memory",name:"memory",start:i,end:i,data:{memory:{jsHeapSizeLimit:t,totalJSHeapSize:r,usedJSHeapSize:n}}}}const Rn=f.GLOBAL_OBJ.navigator;function Cn(e){let t=!1;return(r,n)=>{try{if(!e.checkAndHandleExpiredSession())return void(kr&&Dr.warn("Received replay event after session expired."));const i=n||!t;t=!0,function(e){const t=e.data;if(!(e.type===nt.IncrementalSnapshot&&t&&"object"==typeof t&&"source"in t&&t.source===it.Mutation&&"attributes"in t&&Array.isArray(t.attributes)))return;for(const e of t.attributes){const t=Qt.mirror.getNode(e.id),r=t&&Qt.mirror.getMeta(t);if(r?.type===fr.Element)for(const[t,n]of Object.entries(e.attributes))null===n?delete r.attributes[t]:r.attributes[t]=n}}(r),e.clickDetector&&dr(e.clickDetector,r),e.addUpdate(()=>{if("buffer"===e.recordingMode&&i&&e.setInitialState(),!Jr(e,r,i))return!0;if(!i)return!1;const t=e.session;if(function(e,t){if(!t||0!==e.session?.segmentId)return;Jr(e,function(e){const t=e.getOptions();return{type:nt.Custom,timestamp:Date.now(),data:{tag:"options",payload:{shouldRecordCanvas:e.isRecordingCanvas(),sessionSampleRate:t.sessionSampleRate,errorSampleRate:t.errorSampleRate,useCompressionOption:t.useCompression,blockAllMedia:t.blockAllMedia,maskAllText:t.maskAllText,maskAllInputs:t.maskAllInputs,useCompression:!!e.eventBuffer&&"worker"===e.eventBuffer.type,networkDetailHasUrls:t.networkDetailAllowUrls.length>0,networkCaptureBodies:t.networkCaptureBodies,networkRequestHasHeaders:t.networkRequestHeaders.length>0,networkResponseHasHeaders:t.networkResponseHeaders.length>0}}}}(e),!1)}(e,i),"buffer"===e.recordingMode&&t&&e.eventBuffer&&!t.dirty){const r=e.eventBuffer.getEarliestTimestamp();r&&(kr&&Dr.log(`Updating session start time to earliest event in buffer to ${new Date(r)}`),t.started=r,e.getOptions().stickySession&&Gr(t))}return t?.previousSessionId||"session"===e.recordingMode&&e.flush(),!0})}catch(t){e.handleException(t)}}}async function Pn({recordingData:e,replayId:t,segmentId:r,eventContext:n,timestamp:i,session:o}){const a=function({recordingData:e,headers:t}){let r;const n=`${JSON.stringify(t)}\n`;if("string"==typeof e)r=`${n}${e}`;else{const t=(new TextEncoder).encode(n);r=new Uint8Array(t.length+e.length),r.set(t),r.set(e,t.length)}return r}({recordingData:e,headers:{segment_id:r}}),{urls:c,errorIds:u,traceIds:p,segmentNames:d,initialTimestamp:h}=n,f=(0,s.getClient)(),m=(0,s.getCurrentScope)(),g=f?.getTransport(),y=f?.getDsn();if(!(f&&g&&y&&o.sampled))return Promise.resolve({});const b={type:"replay_event",replay_start_timestamp:h/1e3,timestamp:i/1e3,error_ids:u,trace_ids:p,segment_names:d,urls:c,replay_id:t,segment_id:r,replay_type:o.sampled},v=await async function({client:e,scope:t,replayId:r,event:n}){const i={event_id:r,integrations:"object"!=typeof e._integrations||null===e._integrations||Array.isArray(e._integrations)?void 0:Object.keys(e._integrations)};e.emit("preprocessEvent",n,i);const o=await(0,l.prepareEvent)(e.getOptions(),n,i,t,e,(0,s.getIsolationScope)());if(!o)return null;e.emit("postprocessEvent",o,i),o.platform=o.platform||"javascript";
50const a=e.getSdkMetadata(),{name:c,version:u,settings:p}=a?.sdk||{};return o.sdk={...o.sdk,name:c||"sentry.javascript.unknown",version:u||"0.0.0",settings:p},o}({scope:m,client:f,replayId:t,event:b});if(!v)return f.recordDroppedEvent("event_processor","replay"),kr&&Dr.log("An event processor returned `null`, will not send event."),Promise.resolve({});delete v.sdkProcessingMetadata;const _=function(e,t,r,n){return(0,w.createEnvelope)((0,w.createEventEnvelopeHeaders)(e,(0,w.getSdkMetadataForEnvelopeHeader)(e),n,r),[[{type:"replay_event"},e],[{type:"replay_recording",length:"string"==typeof t?(new TextEncoder).encode(t).length:t.length},t]])}(v,a,y,f.getOptions().tunnel);let S;try{S=await g.send(_)}catch(e){const t=new Error(L);try{t.cause=e}catch{}throw t}const E=(0,x.updateRateLimits)({},S);if((0,x.isRateLimited)(E,"replay"))throw new Mn(E);if("number"==typeof S.statusCode&&(S.statusCode<200||S.statusCode>=300))throw new Dn(S.statusCode);return S}class Dn extends Error{constructor(e){super(`Transport returned status code ${e}`)}}class Mn extends Error{constructor(e){super("Rate limit hit"),this.rateLimits=e}}
50class Nn extends Error{constructor(){super("Session is too long, not sending replay")}}async function Ln(e,t={count:0,interval:5e3}){const{recordingData:r,onError:n}=e;if(r.length)try{return await Pn(e),!0}catch(r){if(r instanceof Dn||r instanceof Mn)throw r;if((0,a.setContext)("Replays",{_retryCount:t.count}),n&&n(r),t.count>=3){const e=new Error(`${L} - max retries exceeded`);try{e.cause=r}catch{}throw e}return t.interval*=++t.count,new Promise((r,n)=>{(0,R.setTimeout)(async()=>{try{await Ln(e,t),r(!0)}catch(e){n(e)}},t.interval)})}}const Fn="__THROTTLED";function Bn(e,t,r){const n=new Map;let i=!1;return(...o)=>{const a=Math.floor(Date.now()/1e3);if((e=>{const t=e-r;n.forEach((e,r)=>{r<t&&n.delete(r)})})(a),[...n.values()].reduce((e,t)=>e+t,0)>=t){const e=i;return i=!0,e?"__SKIPPED":Fn}i=!1;const s=n.get(a)||0;return n.set(a,s+1),e(...o)}}class Un{constructor({options:e,recordingOptions:t}){this.eventBuffer=null,this.performanceEntries=[],this.replayPerformanceEntries=[],this.recordingMode="session",this.timeouts={sessionIdlePause:3e5,sessionIdleExpire:9e5},this._lastActivity=Date.now(),this._isEnabled=!1,this._isPaused=!1,this._requiresManualStart=!1,this._hasInitializedCoreListeners=!1,this._context={errorIds:new Set,traceIds:new Set,segmentNames:new Set,urls:[],initialTimestamp:Date.now(),initialUrl:""},this._recordingOptions=t,this._options=e,this._debouncedFlush=function(e,t,r){return(0,d.debounce)(e,t,{...r,setTimeoutImpl:R.setTimeout})}(()=>this._flush(),this._options.flushMinDelay,{maxWait:this._options.flushMaxDelay}),this._throttledAddEvent=Bn((e,t)=>function(e,t,r){return Xr(e,t)?Qr(e,t,r):Promise.resolve(null)}(this,e,t),300,5);const{slowClickTimeout:r,slowClickIgnoreSelectors:n}=this.getOptions(),i=r?{threshold:Math.min(3e3,r),timeout:r,scrollTimeout:300,ignoreSelector:n?n.join(","):""}:void 0;if(i&&(this.clickDetector=new cr(this,i)),kr){const t=e._experiments;Dr.setConfig({captureExceptions:!!t.captureExceptions,traceInternals:!!t.traceInternals})}this._handleVisibilityChange=()=>{"visible"===M.document.visibilityState?this._doChangeToForegroundTasks():this._doChangeToBackgroundTasks()},this._handleWindowBlur=()=>{const e=hr({category:"ui.blur"});this._doChangeToBackgroundTasks(e)},this._handleWindowFocus=()=>{const e=hr({category:"ui.focus"});this._doChangeToForegroundTasks(e)},this._handleKeyboardEvent=e=>{vr(this,e)}}getContext(){return this._context}isEnabled(){return this._isEnabled}isPaused(){return this._isPaused}isRecordingCanvas(){return Boolean(this._canvas)}getOptions(){return this._options}handleException(e){kr&&Dr.exception(e),this._options.onError&&this._options.onError(e)}initializeSampling(e){const{errorSampleRate:t,sessionSampleRate:r}=this._options,n=t<=0&&r<=0;this._requiresManualStart=n,n||(this._initializeSessionForSampling(e),this.session?!1!==this.session.sampled&&(this.recordingMode="buffer"===this.session.sampled&&0===this.session.segmentId?"buffer":"session",kr&&Dr.infoTick(`Starting replay in ${this.recordingMode} mode`),this._initializeRecording()):kr&&Dr.exception(new Error("Unable to initialize and create session")))}start(){if(this._isEnabled&&"session"===this.recordingMode)return void(kr&&Dr.log("Recording is already in progress"));if(this._isEnabled&&"buffer"===this.recordingMode)return void(kr&&Dr.log("Buffering is in progress, call `flush()` to save the replay"));kr&&Dr.infoTick("Starting replay in session mode"),this._updateUserActivity();const e=Kr({maxReplayDuration:this._options.maxReplayDuration,sessionIdleExpire:this.timeouts.sessionIdleExpire},{stickySession:this._options.stickySession,sessionSampleRate:1,allowBuffering:!1});this.session=e,this.recordingMode="session",this._initializeRecording()}startBuffering(){if(this._isEnabled)return void(kr&&Dr.log("Buffering is in progress, call `flush()` to save the replay"));kr&&Dr.infoTick("Starting replay in buffer mode");const e=Kr({sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration},{stickySession:this._options.stickySession,sessionSampleRate:0,allowBuffering:!0});this.session=e,this.recordingMode="buffer",this._initializeRecording()}startRecording(){try{const e=this._canvas;this._stopRecording=Qt({...this._recordingOptions,..."buffer"===this.recordingMode?{checkoutEveryNms:6e4}:this._options._experiments.continuousCheckout&&{checkoutEveryNms:Math.max(36e4,this._options._experiments.continuousCheckout)},emit:Cn(this),.../iPhone|iPad|iPod/i.test(Rn?.userAgent??"")||/Macintosh/i.test(Rn?.userAgent??"")&&Rn?.maxTouchPoints&&Rn?.maxTouchPoints>1?{sampling:{mousemove:!1}}:{},onMutation:this._onMutationHandler.bind(this),...e?{recordCanvas:e.recordCanvas,getCanvasManager:e.getCanvasManager,sampling:e.sampling,dataURLOptions:e.dataURLOptions}:{}})}catch(e){this.handleException(e)}}stopRecording(){try{return this._stopRecording&&(this._stopRecording(),this._stopRecording=void 0),!0}catch(e){return this.handleException(e),!1}}async stop({forceFlush:e=!1,reason:t}={}){if(!this._isEnabled)return;this._isEnabled=!1,this.recordingMode="buffer";const r=t??"manual";(0,s.getClient)()?.emit("replayEnd",{sessionId:this.session?.id,reason:r});try{kr&&Dr.log(`Stopping Replay triggered by ${r}`),ln(),this._removeListeners(),this.stopRecording(),this._debouncedFlush.cancel(),e&&await this._flush({force:!0}),this.eventBuffer?.destroy(),this.eventBuffer=null,Vr(this)}catch(e){this.handleException(e)}}pause(){this._isPaused||(this._isPaused=!0,this.stopRecording(),kr&&Dr.log("Pausing replay"))}resume(){this._isPaused&&this._checkSession()&&(this._isPaused=!1,this.startRecording(),kr&&Dr.log("Resuming replay"))}async sendBufferedReplayOrFlush({continueRecording:e=!0}={}){if("session"===this.recordingMode)return this.flushImmediate();const t=Date.now();kr&&Dr.log("Converting buffer to session"),await this.flushImmediate();const r=this.stopRecording();e&&r&&"session"!==this.recordingMode&&(this.recordingMode="session",this.session&&(this.session.dirty=!1,this._updateUserActivity(t),this._updateSessionActivity(t),this._maybeSaveSession(),cn(this.session.id)),this.startRecording())}addUpdate(e){const t=e();"buffer"!==this.recordingMode&&this._isEnabled&&!0!==t&&this._debouncedFlush()}triggerUserActivity(){if(this._updateUserActivity(),this._stopRecording)this.checkAndHandleExpiredSession(),this._updateSessionActivity();else{if(!this._checkSession())return;this.resume()}}updateUserActivity(){this._updateUserActivity(),this._updateSessionActivity()}conditionalFlush(){return"buffer"===this.recordingMode?Promise.resolve():this.flushImmediate()}flush(){return this._debouncedFlush()}flushImmediate(){return this._debouncedFlush(),this._debouncedFlush.flush()}cancelFlush(){this._debouncedFlush.cancel()}getSessionId(e){if(!e||!1!==this.session?.sampled)return this.session?.id}
50checkAndHandleExpiredSession(){if(!this._lastActivity||!Wr(this._lastActivity,this.timeouts.sessionIdlePause)||"session"!==this.session?.sampled)return!!this._checkSession();this.pause()}setInitialState(){const e=`${M.location.pathname}${M.location.hash}${M.location.search}`,t=`${M.location.origin}${e}`;this.performanceEntries=[],this.replayPerformanceEntries=[],this._clearContext(),this._context.initialUrl=t,this._context.initialTimestamp=Date.now(),this._context.urls.push(t)}throttledAddEvent(e,t){const r=this._throttledAddEvent(e,t);if(r===Fn){const e=hr({category:"replay.throttled"});this.addUpdate(()=>!Jr(this,{type:5,timestamp:e.timestamp||0,data:{tag:"breadcrumb",payload:e,metric:!0}}))}return r}getCurrentRoute(){const e=this.lastActiveSpan||(0,u.getActiveSpan)(),t=e&&(0,u.getRootSpan)(e),r=(t&&(0,u.spanToJSON)(t).data||{})[o.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE];if(t&&r&&["route","custom"].includes(r))return(0,u.spanToJSON)(t).description}_initializeRecording(){this.setInitialState(),this._updateSessionActivity(),this.eventBuffer=jr({useCompression:this._options.useCompression,workerUrl:this._options.workerUrl}),this._removeListeners(),this._addListeners(),this._isEnabled=!0,this._isPaused=!1,this.session&&(0,s.getClient)()?.emit("replayStart",{sessionId:this.session.id,recordingMode:this.recordingMode}),this.startRecording(),"session"===this.recordingMode&&this.session&&cn(this.session.id)}_initializeSessionForSampling(e){const t=this._options.errorSampleRate>0,r=Kr({sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration,previousSessionId:e},{stickySession:this._options.stickySession,sessionSampleRate:this._options.sessionSampleRate,allowBuffering:t});this.session=r}_checkSession(){if(!this.session)return!1;const e=this.session;return!Yr(e,{sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration})||(this._refreshSession(e),!1)}async _refreshSession(e){this._isEnabled&&(await this.stop({reason:"sessionExpired"}),this.initializeSampling(e.id))}_addListeners(){try{M.document.addEventListener("visibilitychange",this._handleVisibilityChange),M.addEventListener("blur",this._handleWindowBlur),M.addEventListener("focus",this._handleWindowFocus),M.addEventListener("keydown",this._handleKeyboardEvent),this.clickDetector&&this.clickDetector.addListeners(),this._hasInitializedCoreListeners||(An(this),this._hasInitializedCoreListeners=!0)}catch(e){this.handleException(e)}this._performanceCleanupCallback=function(e){function t(t){e.performanceEntries.includes(t)||e.performanceEntries.push(t)}function r({entries:e}){e.forEach(t)}const n=[];return["navigation","paint","resource"].forEach(e=>{n.push((0,I.addPerformanceInstrumentationHandler)(e,r))}),n.push((0,I.addLcpInstrumentationHandler)(Sr(wr,e)),(0,I.addClsInstrumentationHandler)(Sr(Or,e)),(0,I.addInpInstrumentationHandler)(Sr(Ir,e))),()=>{n.forEach(e=>e())}}(this)}_removeListeners(){try{M.document.removeEventListener("visibilitychange",this._handleVisibilityChange),M.removeEventListener("blur",this._handleWindowBlur),M.removeEventListener("focus",this._handleWindowFocus),M.removeEventListener("keydown",this._handleKeyboardEvent),this.clickDetector&&this.clickDetector.removeListeners(),this._performanceCleanupCallback&&this._performanceCleanupCallback()}catch(e){this.handleException(e)}}_doChangeToBackgroundTasks(e){if(!this.session)return;Yr(this.session,{maxReplayDuration:this._options.maxReplayDuration,sessionIdleExpire:this.timeouts.sessionIdleExpire})?ln():(e&&this._createCustomBreadcrumb(e),this.conditionalFlush())}_doChangeToForegroundTasks(e){if(!this.session)return;this.checkAndHandleExpiredSession()?e&&this._createCustomBreadcrumb(e):kr&&Dr.log("Document has become active, but session has expired")}_updateUserActivity(e=Date.now()){this._lastActivity=e}_updateSessionActivity(e=Date.now()){this.session&&(this.session.lastActivity=e,this._maybeSaveSession())}_createCustomBreadcrumb(e){this.addUpdate(()=>{this.throttledAddEvent({type:nt.Custom,timestamp:e.timestamp||0,data:{tag:"breadcrumb",payload:e}})})}_addPerformanceEntries(){let e=(t=this.performanceEntries,t.map(Er).filter(
50Boolean)).concat(this.replayPerformanceEntries);var t;if(this.performanceEntries=[],this.replayPerformanceEntries=[],this._requiresManualStart){const t=this._context.initialTimestamp/1e3;e=e.filter(e=>e.start>=t)}return Promise.all(pn(this,e))}_clearContext(){this._context.errorIds.clear(),this._context.traceIds.clear(),this._context.segmentNames.clear(),this._context.urls=[]}_updateInitialTimestampFromEventBuffer(){const{session:e,eventBuffer:t}=this;if(!e||!t||this._requiresManualStart)return;if(e.segmentId)return;const r=t.getEarliestTimestamp();r&&r<this._context.initialTimestamp&&(this._context.initialTimestamp=r)}_popEventContext(){const e={initialTimestamp:this._context.initialTimestamp,initialUrl:this._context.initialUrl,errorIds:Array.from(this._context.errorIds),traceIds:Array.from(this._context.traceIds),segmentNames:Array.from(this._context.segmentNames),urls:this._context.urls};return this._clearContext(),e}async _runFlush(){const e=this.getSessionId();if(this.session&&this.eventBuffer&&e){if(await this._addPerformanceEntries(),this.eventBuffer?.hasEvents&&(await async function(e){try{return Promise.all(pn(e,[kn(M.performance.memory)]))}catch{return[]}}(this),this.eventBuffer&&e===this.getSessionId()))try{this._updateInitialTimestampFromEventBuffer();const t=Date.now();if(t-this._context.initialTimestamp>this._options.maxReplayDuration+3e4)throw new Nn;const r=this._popEventContext(),n=this.session.segmentId++;this._maybeSaveSession();const i=await this.eventBuffer.finish();await Ln({replayId:e,recordingData:i,segmentId:n,eventContext:r,session:this.session,timestamp:t,onError:e=>this.handleException(e)})}catch(e){this.handleException(e),this.stop({reason:"sendError"});const t=(0,s.getClient)();if(t){let r;r=e instanceof Mn?"ratelimit_backoff":e instanceof Nn?"invalid":"send_error",t.recordDroppedEvent(r,"replay")}}}else kr&&Dr.error("No session or eventBuffer found to flush.")}async _flush({force:e=!1}={}){if(!this._isEnabled&&!e)return;if(!this.checkAndHandleExpiredSession())return void(kr&&Dr.error("Attempting to finish replay event after session expired."));if(!this.session)return;const t=this.session.started,r=Date.now()-t;this._debouncedFlush.cancel();const n=r<this._options.minReplayDuration,i=r>this._options.maxReplayDuration+5e3;if(n||i)return kr&&Dr.log(`Session duration (${Math.floor(r/1e3)}s) is too ${n?"short":"long"}, not sending replay.`),void(n&&this._debouncedFlush());const o=this.eventBuffer;o&&0===this.session.segmentId&&!o.hasCheckout&&kr&&Dr.log("Flushing initial segment without checkout.");const a=!!this._flushLock;this._flushLock||(this._flushLock=this._runFlush());try{await this._flushLock}catch(e){this.handleException(e)}finally{this._flushLock=void 0,a&&this._debouncedFlush()}}_maybeSaveSession(){this.session&&this._options.stickySession&&Gr(this.session)}_onMutationHandler(e){const{ignoreMutations:t}=this._options._experiments;if(t?.length&&e.some(e=>{const r=function(e){if(!e)return null;try{return e.nodeType===e.ELEMENT_NODE?e:e.parentElement}catch{return null}}(e.target),n=t.join(",");return r?.matches(n)}))return!1;const r=e.length,n=this._options.mutationLimit,i=n&&r>n;if(r>this._options.mutationBreadcrumbLimit||i){const e=hr({category:"replay.mutations",data:{count:r,limit:i}});this._createCustomBreadcrumb(e)}return!i||(this.stop({reason:"mutationLimit",forceFlush:"session"===this.recordingMode}),!1)}}function jn(e,t){return[...e,...t].join(",")}const Hn='img,image,svg,video,object,picture,embed,map,audio,link[rel="icon"],link[rel="apple-touch-icon"]',Vn=["content-length","content-type","accept"],zn=Symbol.for("sentry__originalRequestBody");let Gn=!1,qn=!1;const $n=e=>new Wn(e);class Wn{constructor({flushMinDelay:e=5e3,flushMaxDelay:t=5500,minReplayDuration:r=4999,maxReplayDuration:n=36e5,stickySession:i=!0,useCompression:o=!0,workerUrl:a,_experiments:s={},maskAllText:l=!0,maskAllInputs:c=!0,blockAllMedia:u=!0,mutationBreadcrumbLimit:p=750,mutationLimit:d=1e4,slowClickTimeout:h=7e3,slowClickIgnoreSelectors:f=[],networkDetailAllowUrls:m=[],networkDetailDenyUrls:y=[],networkCaptureBodies:b=!0,networkRequestHeaders:v=[],networkResponseHeaders:_=[],mask:S=[],maskAttributes:E=["title","placeholder","aria-label"],unmask:T=[],block:w=[],unblock:x=[],ignore:O=[],maskFn:I,beforeAddRecordingEvent:A,beforeErrorSampling:k,onError:R,attachRawBodyFromRequest:C=!1}
50={}){this.name="Replay";const P=function({mask:e,unmask:t,block:r,unblock:n,ignore:i}){return{maskTextSelector:jn(e,[".sentry-mask","[data-sentry-mask]"]),unmaskTextSelector:jn(t,[]),blockSelector:jn(r,[".sentry-block","[data-sentry-block]","base","iframe[srcdoc]:not([src])"]),unblockSelector:jn(n,[]),ignoreSelector:jn(i,[".sentry-ignore","[data-sentry-ignore]",'input[type="file"]'])}}({mask:S,unmask:T,block:w,unblock:x,ignore:O});if(this._recordingOptions={maskAllInputs:c,maskAllText:l,maskInputOptions:{password:!0},maskTextFn:I,maskInputFn:I,maskAttributeFn:(e,t,r)=>function({el:e,key:t,maskAttributes:r,maskAllText:n,privacyOptions:i,value:o}){if(i.unmaskTextSelector&&e.matches(i.unmaskTextSelector))return o;const a=r.includes(t),s=n&&"value"===t&&"INPUT"===e.tagName&&["submit","button"].includes(e.getAttribute("type")||"");return a||s?o.replace(/[\S]/g,"*"):o}({maskAttributes:E,maskAllText:l,privacyOptions:P,key:e,value:t,el:r}),...P,slimDOMOptions:"all",inlineStylesheet:!0,inlineImages:!1,collectFonts:!0,errorHandler:e=>{try{e.__rrweb__=!0}catch{}},recordCrossOriginIframes:Boolean(s.recordCrossOriginIframes)},this._initialOptions={flushMinDelay:e,flushMaxDelay:t,minReplayDuration:Math.min(r,5e4),maxReplayDuration:Math.min(n,j),stickySession:i,useCompression:o,workerUrl:a,blockAllMedia:u,maskAllInputs:c,maskAllText:l,mutationBreadcrumbLimit:p,mutationLimit:d,slowClickTimeout:h,slowClickIgnoreSelectors:f,networkDetailAllowUrls:m,networkDetailDenyUrls:y,networkCaptureBodies:b,networkRequestHeaders:Yn(v),networkResponseHeaders:Yn(_),beforeAddRecordingEvent:A,beforeErrorSampling:k,onError:R,attachRawBodyFromRequest:C,_experiments:s},this._initialOptions.blockAllMedia&&(this._recordingOptions.blockSelector=this._recordingOptions.blockSelector?`${this._recordingOptions.blockSelector},${Hn}`:Hn,this._recordingOptions.ignoreCSSAttributes=new Set(["background-image"])),this._isInitialized&&(0,g.isBrowser)())throw new Error("Multiple Sentry Session Replay instances are not supported");this._isInitialized=!0}get _isInitialized(){return Gn}set _isInitialized(e){Gn=e}afterAllSetup(e){(0,g.isBrowser)()&&!this._replay&&(this._initialOptions.attachRawBodyFromRequest&&function(){if("undefined"==typeof Request||qn)return;const e=Request;try{const t=function(t,r){const n=new e(t,r);return null!=r?.body&&(n[zn]=r.body),n};t.prototype=e.prototype,f.GLOBAL_OBJ.Request=t,qn=!0}catch{}}(),this._setup(e),this._initialize(e))}start(){this._replay&&this._replay.start()}startBuffering(){this._replay&&this._replay.startBuffering()}stop(e){return this._replay?this._replay.stop({forceFlush:e?.flush??"session"===this._replay.recordingMode,reason:"manual"}):Promise.resolve()}flush(e){return this._replay?this._replay.isEnabled()?this._replay.sendBufferedReplayOrFlush(e):(this._replay.start(),Promise.resolve()):Promise.resolve()}getReplayId(e){if(this._replay?.isEnabled())return this._replay.getSessionId(e)}getRecordingMode(){if(this._replay?.isEnabled())return this._replay.recordingMode}processSpan(e){const t=this.getReplayId(!0);t&&((0,i.safeSetSpanJSONAttributes)(e,{"sentry.replay_id":t}),"buffer"===this.getRecordingMode()&&(0,i.safeSetSpanJSONAttributes)(e,{"sentry._internal.replay_is_buffering":!0}))}_initialize(e){this._replay&&(this._maybeLoadFromReplayCanvasIntegration(e),this._replay.initializeSampling())}_setup(e){const t=function(e,t){const r=t.getOptions(),n={sessionSampleRate:0,errorSampleRate:0,...e},i=(0,p.parseSampleRate)(r.replaysSessionSampleRate),o=(0,p.parseSampleRate)(r.replaysOnErrorSampleRate);null==i&&null==o&&(0,y.consoleSandbox)(()=>{console.warn("Replay is disabled because neither `replaysSessionSampleRate` nor `replaysOnErrorSampleRate` are set.")});null!=i&&(n.sessionSampleRate=i);null!=o&&(n.errorSampleRate=o);return n}(this._initialOptions,e);this._replay=new Un({options:t,recordingOptions:this._recordingOptions})}_maybeLoadFromReplayCanvasIntegration(e){try{const t=e.getIntegrationByName("ReplayCanvas");if(!t)return;this._replay._canvas=t.getOptions()}catch{}}}function Yn(e){return[...Vn,...e.map(e=>e.toLowerCase())]}function Kn(){const e=(0,s.getClient)();return e?.getIntegrationByName("Replay")}},(e,t,r)=>{"use strict";function n(e,t,r){let n,i,o;const a=r?.maxWait?Math.max(r.maxWait,t):0,s=r?.setTimeoutImpl||setTimeout;function l(){return c(),n=e(),n}function c(){void 0!==i&&clearTimeout(i),void 0!==o&&clearTimeout(o),i=o=void 0}function u(){return i&&clearTimeout(i),i=s(l,t),a&&void 0===o&&(o=s(l,a)),n}return u.cancel=c,u.flush=function(){return void 0!==i||void 0!==o?l():n},u}r.r(t),r.d(t,{debounce:()=>n})},(e,t,r)=>{"use strict";r.r(t),r.d(t,{replayCanvasIntegration:()=>L});var n=r(1468),i=Object.defineProperty,o=(e,t,r)=>((e,t,r)=>t in e?i(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r)(e,"symbol"!=typeof t?t+"":t,r);class a{constructor(){o(this,"idNodeMap",new Map),o(this,"nodeMetaMap",new WeakMap)}getId(e){if(!e)return-1;const t=this.getMeta(e)?.id;return t??-1}getNode(e){return this.idNodeMap.get(e)||null}getIds(){return Array.from(this.idNodeMap.keys())}getMeta(e){return this.nodeMetaMap.get(e)||null}removeNodeFromMap(e){const t=this.getId(e);
50this.idNodeMap.delete(t),e.childNodes&&e.childNodes.forEach(e=>this.removeNodeFromMap(e))}has(e){return this.idNodeMap.has(e)}hasNode(e){return this.nodeMetaMap.has(e)}add(e,t){const r=t.id;this.idNodeMap.set(r,e),this.nodeMetaMap.set(e,t)}replace(e,t){const r=this.getNode(e);if(r){const e=this.nodeMetaMap.get(r);e&&this.nodeMetaMap.set(t,e)}this.idNodeMap.set(e,t)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}}function s(e,t,r=1/0,n=0){return e?e.nodeType!==e.ELEMENT_NODE||n>r?-1:t(e)?n:s(e.parentNode,t,r,n+1):-1}function l(e,t){return r=>{const n=r;if(null===n)return!1;try{if(e)if("string"==typeof e){if(n.matches(`.${e}`))return!0}else if(function(e,t){for(let r=e.classList.length;r--;){const n=e.classList[r];if(t.test(n))return!0}return!1}(n,e))return!0;return!(!t||!n.matches(t))}catch{return!1}}}const c="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 u={map:{},getId:()=>(console.error(c),-1),getNode:()=>(console.error(c),null),removeNodeFromMap(){console.error(c)},has:()=>(console.error(c),!1),reset(){console.error(c)}};function p(e,t,r,n,i=window){const o=i.Object.getOwnPropertyDescriptor(e,t);return i.Object.defineProperty(e,t,n?r:{set(e){y(()=>{r.set.call(this,e)},0),o&&o.set&&o.set.call(this,e)}}),()=>p(e,t,o||{},!0)}function d(e,t,r){try{if(!(t in e))return()=>{};const n=e[t],i=r(n);return"function"==typeof i&&(i.prototype=i.prototype||{},Object.defineProperties(i,{__rrweb_original__:{enumerable:!1,value:n}})),e[t]=i,()=>{e[t]=n}}catch{return()=>{}}}function h(e,t,r,n,i){if(!e)return!1;const o=function(e){if(!e)return null;try{return e.nodeType===e.ELEMENT_NODE?e:e.parentElement}catch(e){return null}}(e);if(!o)return!1;const a=l(t,r);if(!i){const e=n&&o.matches(n);return a(o)&&!e}const c=s(o,a);let u=-1;return!(c<0)&&(n&&(u=s(o,l(null,n))),c>-1&&u<0||c<u)}"undefined"!=typeof window&&window.Proxy&&window.Reflect&&(u=new Proxy(u,{get:(e,t,r)=>("map"===t&&console.error(c),Reflect.get(e,t,r))})),Date.now().toString();const f={};function m(e){const t=f[e];if(t)return t;const r=window.document;let n=window[e];if(r&&"function"==typeof r.createElement)try{const t=r.createElement("iframe");t.hidden=!0,r.head.appendChild(t);const i=t.contentWindow;i&&i[e]&&(n=i[e]),r.head.removeChild(t)}catch(e){}return f[e]=n.bind(window)}function g(...e){return m("requestAnimationFrame")(...e)}function y(...e){return m("setTimeout")(...e)}var b=(e=>(e[e["2D"]=0]="2D",e[e.WebGL=1]="WebGL",e[e.WebGL2=2]="WebGL2",e))(b||{});let v;const _=e=>{if(!v)return e;return(...t)=>{try{return e(...t)}catch(e){if(v&&!0===v(e))return()=>{};throw e}}};for(var S="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",E="undefined"==typeof Uint8Array?[]:new Uint8Array(256),T=0;T<64;T++)E[S.charCodeAt(T)]=T;const w=new Map;const x=(e,t,r)=>{if(!e||!A(e,t)&&"object"!=typeof e)return;const n=function(e,t){let r=w.get(e);return r||(r=new Map,w.set(e,r)),r.has(t)||r.set(t,[]),r.get(t)}(r,e.constructor.name);let i=n.indexOf(e);return-1===i&&(i=n.length,n.push(e)),i};function O(e,t,r){if(e instanceof Array)return e.map(e=>O(e,t,r));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){return{rr_type:e.constructor.name,base64:function(e){var t,r=new Uint8Array(e),n=r.length,i="";for(t=0;t<n;t+=3)i+=S[r[t]>>2],i+=S[(3&r[t])<<4|r[t+1]>>4],i+=S[(15&r[t+1])<<2|r[t+2]>>6],i+=S[63&r[t+2]];return n%3==2?i=i.substring(0,i.length-1)+"=":n%3==1&&(i=i.substring(0,i.length-2)+"=="),i}(e)}}if(e instanceof DataView){return{rr_type:e.constructor.name,args:[O(e.buffer,t,r),e.byteOffset,e.byteLength]}}if(e instanceof HTMLImageElement){const t=e.constructor.name,{src:r}=e;return{rr_type:t,src:r}}if(e instanceof HTMLCanvasElement){return{rr_type:"HTMLImageElement",src:e.toDataURL()}}if(e instanceof ImageData){return{rr_type:e.constructor.name,args:[O(e.data,t,r),e.width,e.height]}}if(A(e,t)||"object"==typeof e){return{rr_type:e.constructor.name,index:x(e,t,r)}}return e}const I=(e,t,r)=>e.map(e=>O(e,t,r)),A=(e,t)=>
50{const r=["WebGLActiveInfo","WebGLBuffer","WebGLFramebuffer","WebGLProgram","WebGLRenderbuffer","WebGLShader","WebGLShaderPrecisionFormat","WebGLTexture","WebGLUniformLocation","WebGLVertexArrayObject","WebGLVertexArrayObjectOES"].filter(e=>"function"==typeof t[e]);return Boolean(r.find(r=>e instanceof t[r]))};function k(e,t,r,n,i){const o=[];try{const a=d(e.HTMLCanvasElement.prototype,"getContext",function(e){return function(o,...a){if(!h(this,t,r,n,!0)){const e=function(e){return"experimental-webgl"===e?"webgl":e}(o);if("__context"in this||(this.__context=e),i&&["webgl","webgl2"].includes(e))if(a[0]&&"object"==typeof a[0]){const e=a[0];e.preserveDrawingBuffer||(e.preserveDrawingBuffer=!0)}else a.splice(0,1,{preserveDrawingBuffer:!0})}return e.apply(this,[o,...a])}});o.push(a)}catch{console.error("failed to patch HTMLCanvasElement.prototype.getContext")}return()=>{o.forEach(e=>e())}}function R(e,t,r,n,i,o,a,s){const l=[],c=Object.getOwnPropertyNames(e);for(const a of c)if(!["isContextLost","canvas","drawingBufferWidth","drawingBufferHeight"].includes(a))try{if("function"!=typeof e[a])continue;const c=d(e,a,function(e){return function(...l){const c=e.apply(this,l);if(x(c,s,this),"tagName"in this.canvas&&!h(this.canvas,n,i,o,!0)){const e=I(l,s,this),n={type:t,property:a,args:e};r(this.canvas,n)}return c}});l.push(c)}catch{const n=p(e,a,{set(e){r(this.canvas,{type:t,property:a,args:[e],setter:!0})}});l.push(n)}return l}class C{constructor(e){this.pendingCanvasMutations=new Map,this.rafStamps={latestId:0,invokeId:null},this.shadowDoms=new Set,this.windowsSet=new WeakSet,this.windows=[],this.restoreHandlers=[],this.frozen=!1,this.locked=!1,this.snapshotInProgressMap=new Map,this.worker=null,this.lastSnapshotTime=0,this.processMutation=(e,t)=>{!(this.rafStamps.invokeId&&this.rafStamps.latestId!==this.rafStamps.invokeId)&&this.rafStamps.invokeId||(this.rafStamps.invokeId=this.rafStamps.latestId),this.pendingCanvasMutations.has(e)||this.pendingCanvasMutations.set(e,[]),this.pendingCanvasMutations.get(e).push(t)};const{enableManualSnapshot:t,sampling:r="all",win:n,recordCanvas:i,errorHandler:o}=e;e.sampling=r,this.mutationCb=e.mutationCb,this.mirror=e.mirror,this.options=e,o&&(v=o),(i&&"number"==typeof r||t)&&(this.worker=this.initFPSWorker()),this.addWindow(n),t||_(()=>{i&&"all"===r&&(this.startRAFTimestamping(),this.startPendingCanvasMutationFlusher()),i&&"number"==typeof r&&this.initCanvasFPSObserver()})()}reset(){this.pendingCanvasMutations.clear(),this.restoreHandlers.forEach(e=>{try{e()}catch(e){}}),this.restoreHandlers=[],this.windowsSet=new WeakSet,this.windows=[],this.shadowDoms=new Set,this.worker?.terminate(),this.worker=null,this.snapshotInProgressMap=new Map}freeze(){this.frozen=!0}unfreeze(){this.frozen=!1}lock(){this.locked=!0}unlock(){this.locked=!1}addWindow(e){const{sampling:t="all",blockClass:r,blockSelector:n,unblockSelector:i,recordCanvas:o,enableManualSnapshot:a}=this.options;if(!this.windowsSet.has(e)){if(a)return this.windowsSet.add(e),void this.windows.push(new WeakRef(e));_(()=>{if(o&&"all"===t&&this.initCanvasMutationObserver(e,r,n,i),o&&"number"==typeof t){const t=k(e,r,n,i,!0);this.restoreHandlers.push(()=>{t()})}})(),this.windowsSet.add(e),this.windows.push(new WeakRef(e))}}addShadowRoot(e){this.shadowDoms.add(new WeakRef(e))}resetShadowRoots(){this.shadowDoms=new Set}snapshot(e,t){t?.skipRequestAnimationFrame?this.takeSnapshot(performance.now(),!0,e):g(t=>this.takeSnapshot(t,!0,e))}initFPSWorker(){const e=new Worker(function(){const e=new Blob(['for(var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",t="undefined"==typeof Uint8Array?[]:new Uint8Array(256),a=0;a<64;a++)t[e.charCodeAt(a)]=a;var n=function(t){var a,n=new Uint8Array(t),r=n.length,s="";for(a=0;a<r;a+=3)s+=e[n[a]>>2],s+=e[(3&n[a])<<4|n[a+1]>>4],s+=e[(15&n[a+1])<<2|n[a+2]>>6],s+=e[63&n[a+2]];return r%3==2?s=s.substring(0,s.length-1)+"=":r%3==1&&(s=s.substring(0,s.length-2)+"=="),s};const r=new Map,s=new Map;const i=self;i.onmessage=async function(e){if(!("OffscreenCanvas"in globalThis))return i.postMessage({id:e.data.id});{const{id:t,bitmap:a,width:o,height:f,maxCanvasSize:c,dataURLOptions:g}=e.data,u=async function(e,t,a){const r=e+"-"+t;
50if("OffscreenCanvas"in globalThis){if(s.has(r))return s.get(r);const i=new OffscreenCanvas(e,t);i.getContext("2d");const o=await i.convertToBlob(a),f=await o.arrayBuffer(),c=n(f);return s.set(r,c),c}return""}(o,f,g),[h,d]=function(e,t,a){if(!a)return[e,t];const[n,r]=a;if(e<=n&&t<=r)return[e,t];let s=e,i=t;return s>n&&(i=Math.floor(n*t/e),s=n),i>r&&(s=Math.floor(r*e/t),i=r),[s,i]}(o,f,c),l=new OffscreenCanvas(h,d),w=l.getContext("bitmaprenderer"),p=h===o&&d===f?a:await createImageBitmap(a,{resizeWidth:h,resizeHeight:d,resizeQuality:"low"});w?.transferFromImageBitmap(p),a.close();const y=await l.convertToBlob(g),v=y.type,b=await y.arrayBuffer(),m=n(b);if(p.close(),!r.has(t)&&await u===m)return r.set(t,m),i.postMessage({id:t});if(r.get(t)===m)return i.postMessage({id:t});i.postMessage({id:t,type:v,base64:m,width:o,height:f}),r.set(t,m)}};']);return URL.createObjectURL(e)}());return e.onmessage=e=>{const t=e.data,{id:r}=t;if(this.snapshotInProgressMap.set(r,!1),!("base64"in t))return;const{base64:n,type:i,width:o,height:a}=t;this.mutationCb({id:r,type:b["2D"],commands:[{property:"clearRect",args:[0,0,o,a]},{property:"drawImage",args:[{rr_type:"ImageBitmap",args:[{rr_type:"Blob",data:[{rr_type:"ArrayBuffer",base64:n}],type:i}]},0,0,o,a]}]})},e}initCanvasFPSObserver(){let e;if(!this.windows.length&&!this.shadowDoms.size)return;const t=r=>{this.takeSnapshot(r,!1),e=g(t)};e=g(t),this.restoreHandlers.push(()=>{e&&cancelAnimationFrame(e)})}initCanvasMutationObserver(e,t,r,n){const i=k(e,t,r,n,!1),o=function(e,t,r,n,i){const o=[],a=Object.getOwnPropertyNames(t.CanvasRenderingContext2D.prototype);for(const s of a)try{if("function"!=typeof t.CanvasRenderingContext2D.prototype[s])continue;const a=d(t.CanvasRenderingContext2D.prototype,s,function(o){return function(...a){return h(this.canvas,r,n,i,!0)||y(()=>{const r=I(a,t,this);e(this.canvas,{type:b["2D"],property:s,args:r})},0),o.apply(this,a)}});o.push(a)}catch{const r=p(t.CanvasRenderingContext2D.prototype,s,{set(t){e(this.canvas,{type:b["2D"],property:s,args:[t],setter:!0})}});o.push(r)}return()=>{o.forEach(e=>e())}}(this.processMutation.bind(this),e,t,r,n),a=function(e,t,r,n,i){const o=[];return o.push(...R(t.WebGLRenderingContext.prototype,b.WebGL,e,r,n,i,0,t)),void 0!==t.WebGL2RenderingContext&&o.push(...R(t.WebGL2RenderingContext.prototype,b.WebGL2,e,r,n,i,0,t)),()=>{o.forEach(e=>e())}}(this.processMutation.bind(this),e,t,r,n,this.mirror);this.restoreHandlers.push(()=>{i(),o(),a()})}getCanvasElements(e,t,r){const n=[],i=i=>{i.querySelectorAll("canvas").forEach(i=>{h(i,e,t,r,!0)||n.push(i)})};for(const e of this.windows){const t=e.deref();let r;try{r=t&&t.document}catch{}r&&i(r)}for(const e of this.shadowDoms){const t=e.deref();t&&i(t)}return n}takeSnapshot(e,t,r){const{sampling:n,blockClass:i,blockSelector:o,unblockSelector:a,dataURLOptions:s,maxCanvasSize:l}=this.options,c=1e3/("all"===n?2:n||2);if(this.lastSnapshotTime&&e-this.lastSnapshotTime<c)return!1;this.lastSnapshotTime=e;return(r?[r]:this.getCanvasElements(i,o,a)).forEach(e=>{const r=this.mirror.getId(e);if(this.mirror.hasNode(e)&&e.width&&e.height&&!this.snapshotInProgressMap.get(r)){if(this.snapshotInProgressMap.set(r,!0),!t&&["webgl","webgl2"].includes(e.__context)){const t=e.getContext(e.__context);!1===t?.getContextAttributes()?.preserveDrawingBuffer&&t.clear(t.COLOR_BUFFER_BIT)}createImageBitmap(e).then(t=>{this.worker?.postMessage({id:r,bitmap:t,width:e.width,height:e.height,dataURLOptions:s,maxCanvasSize:l},[t])}).catch(e=>{_(()=>{throw this.snapshotInProgressMap.delete(r),e})()})}}),!0}startPendingCanvasMutationFlusher(){g(()=>this.flushPendingCanvasMutations())}startRAFTimestamping(){const e=t=>{this.rafStamps.latestId=t,g(e)};g(e)}flushPendingCanvasMutations(){this.pendingCanvasMutations.forEach((e,t)=>{const r=this.mirror.getId(t);this.flushPendingCanvasMutationFor(t,r)}),g(()=>this.flushPendingCanvasMutations())}flushPendingCanvasMutationFor(e,t){if(this.frozen||this.locked)return;const r=this.pendingCanvasMutations.get(e);if(!r||-1===t)return;const n=r.map(e=>{const{type:t,...r}=e;return r}),{type:i}=r[0];this.mutationCb({id:t,type:i,commands:n}),this.pendingCanvasMutations.delete(e)}}try{if(2!==Array.from([1],e=>2*e)[0]){const e=document.createElement("iframe");document.body.appendChild(e),Array.from=e.contentWindow?.Array.from||Array.from,document.body.removeChild(e)}}catch(e){console.debug("Unable to override Array.from",e)}var P,D;new a,(D=P||(P={}))[D.NotStarted=0]="NotStarted",D[D.Running=1]="Running",D[D.Stopped=2]="Stopped";const M={low:{sampling:{canvas:1},dataURLOptions:{type:"image/webp",quality:.25}},medium:{sampling:{canvas:2},dataURLOptions:{type:"image/webp",quality:.4}},high:{sampling:{canvas:4},dataURLOptions:{type:"image/webp",quality:.5}}},N=1280,L=(0,n.defineIntegration)((e={})=>{const[t,r]=e.maxCanvasSize||[],n={quality:e.quality||"medium",enableManualSnapshot:e.enableManualSnapshot,maxCanvasSize:[t?Math.min(t,N):N,r?Math.min(r,N):N]};let i,o;const a=new Promise(e=>o=e);return{name:"ReplayCanvas",getOptions(){const{quality:e,enableManualSnapshot:t,maxCanvasSize:r}=n;return{enableManualSnapshot:t,recordCanvas:!0,getCanvasManager:e=>{const n=new C({...e,enableManualSnapshot:t,maxCanvasSize:r,errorHandler:e=>{try{"object"==typeof e&&(e.__rrweb__=!0)}catch{}}});return i=n,o(n),n},...M[e]||M.medium}},async snapshot(e,t){(i||await a).snapshot(e,t)}}})},(e,t,r)=>{"use strict";r.r(t),r.d(t,{elementTimingIntegration:()=>l,startTrackingElementTiming:()=>c});var n=r(1468),i=r(3358),o=r(365),a=r(1545),s=r(1564);const l=(0,n.defineIntegration)(()=>({name:"ElementTiming",setup(){(0,s.getBrowserPerformanceAPI)()&&(0,o.browserPerformanceTimeOrigin)()&&(0,a.addPerformanceInstrumentationHandler)("element",({entries:e})=>{for(const t of e){const e=t;if(!e.identifier)continue;const r=e.identifier,n=e.name,o=e.renderTime,a=e.loadTime,s={"sentry.origin":"auto.ui.browser.element_timing","ui.element.i
50dentifier":r};n&&(s["ui.element.paint_type"]=n),e.id&&(s["ui.element.id"]=e.id),e.element&&(s["ui.element.type"]=e.element.tagName.toLowerCase()),e.url&&(s["ui.element.url"]=e.url),e.naturalWidth&&(s["ui.element.width"]=e.naturalWidth),e.naturalHeight&&(s["ui.element.height"]=e.naturalHeight),o>0&&i.distribution("ui.element.render_time",o,{unit:"millisecond",attributes:s}),a>0&&i.distribution("ui.element.load_time",a,{unit:"millisecond",attributes:s})}})}}));function c(){return()=>{}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{getAbsoluteUrl:()=>i});var n=r(1514);function i(e){try{return new URL(e,n.WINDOW.location.origin).toString()}catch{return e}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{reportPageLoaded:()=>i});var n=r(346);function i(e=(0,n.getClient)()){e?.emit("endPageloadSpan")}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{setActiveSpanInBrowser:()=>a});var n=r(346),i=r(379),o=r(368);function a(e){const t=(0,i.getActiveSpan)();if(t===e)return;const r=(0,n.getCurrentScope)();e.end=new Proxy(e.end,{apply:(e,n,i)=>((0,o._setSpanForScope)(r,t),Reflect.apply(e,n,i))}),(0,o._setSpanForScope)(r,e)}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{spanStreamingIntegration:()=>p});var n=r(1525),i=r(1468),o=r(392),a=r(379),s=r(3403),l=r(377),c=r(358),u=r(1518);const p=(0,i.defineIntegration)(()=>({name:"SpanStreaming",beforeSetup(e){const t=e.getOptions();t.traceLifecycle||(u.DEBUG_BUILD&&c.debug.log('[SpanStreaming] setting `traceLifecycle` to "stream"'),t.traceLifecycle="stream")},setup(e){const t="SpanStreaming integration requires",r="Falling back to static trace lifecycle.",i=e.getOptions();if(!(0,l.hasSpanStreamingEnabled)(e))return i.traceLifecycle="static",void(u.DEBUG_BUILD&&c.debug.warn(`${t} \`traceLifecycle\` to be set to "stream"! ${r}`));const p=i.beforeSendSpan;if(p&&!(0,o.isStreamedBeforeSendSpanCallback)(p))return i.traceLifecycle="static",void(u.DEBUG_BUILD&&c.debug.warn(`${t} a beforeSendSpan callback using \`withStreamedSpan\`! ${r}`));const d=new s.SpanBuffer(e);e.on("afterSpanEnd",t=>{(0,a.spanIsSampled)(t)&&d.add((0,n.captureSpan)(t,e))}),e.on("afterSegmentSpanEnd",e=>{const t=e.spanContext().traceId;setTimeout(()=>{d.flush(t)},500)})}}))},(e,t,r)=>{"use strict";r.r(t),r.d(t,{SpanBuffer:()=>c});var n=r(354),i=r(358),o=r(1491),a=r(385),s=r(3404),l=r(3405);class c{constructor(e,t){this._traceBuckets=new Map,this._client=e;const{maxSpanLimit:r,flushInterval:n,maxTraceWeightInBytes:i}=t??{};this._maxSpanLimit=r&&r>0&&r<=1e3?r:1e3,this._flushInterval=n&&n>0?n:5e3,this._maxTraceWeight=i&&i>0?i:5e6,this._client.on("flush",()=>{this.drain()}),this._client.on("close",()=>{this._traceBuckets.forEach(e=>{clearTimeout(e.timeout)}),this._traceBuckets.clear()})}add(e){const t=e.trace_id;let r=this._traceBuckets.get(t);r||(r={spans:new Set,size:0,timeout:(0,o.safeUnref)(setTimeout(()=>{this.flush(t)},this._flushInterval))},this._traceBuckets.set(t,r)),r.spans.add(e),r.size+=(0,l.estimateSerializedSpanSizeInBytes)(e),(r.spans.size>=this._maxSpanLimit||r.size>=this._maxTraceWeight)&&this.flush(t)}drain(){this._traceBuckets.size&&(n.DEBUG_BUILD&&i.debug.log(`Flushing span tree map with ${this._traceBuckets.size} traces`),this._traceBuckets.forEach((e,t)=>{this.flush(t)}))}flush(e){const t=this._traceBuckets.get(e);if(!t)return;if(!t.spans.size)return void this._removeTrace(e);const r=Array.from(t.spans),o=r[0]?._segmentSpan;if(!o)return n.DEBUG_BUILD&&i.debug.warn("No segment span reference found on span JSON, cannot compute DSC"),void this._removeTrace(e);const l=(0,a.getDynamicSamplingContextFromSpan)(o),c=r.map(e=>{const{_segmentSpan:t,...r}=e;return r}),u=(0,s.createStreamedSpanEnvelope)(c,l,this._client);n.DEBUG_BUILD&&i.debug.log(`Sending span envelope for trace ${e} with ${c.length} spans`),this._client.sendEnvelope(u).then(null,e=>{n.DEBUG_BUILD&&i.debug.error("Error while sending streamed span envelope:",e)}),this._removeTrace(e)}_removeTrace(e){const t=this._traceBuckets.get(e);t&&clearTimeout(t.timeout),this._traceBuckets.delete(e)}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{createStreamedSpanEnvelope:()=>s});var n=r(384),i=r(393),o=r(1482),a=r(360);function s(e,t,r){const s=r.getOptions(),c=r.getDsn(),u=s.tunnel,p=(0,i.getSdkMetadataForEnvelopeHeader)(s._metadata),d={sent_at:new Date((0,a.safeDateNow)()).toISOString(),...l(t)&&{trace:t},...p&&{sdk:p},...!!u&&c&&{dsn:(0,n.dsnToString)(c)}},h=r.getDataCollectionOptions().userInfo?"auto":"never",f=[{type:"span",item_count:e.length,content_type:"application/vnd.sentry.items.span.v2+json"},{version:2,...(0,o.isBrowser)()&&{ingest_settings:{infer_ip:h,infer_user_agent:h}},items:e}];return(0,i.createEnvelope)(d,[f])}function l(e){return!!e.trace_id&&!!e.public_key}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{estimateSerializedSpanSizeInBytes:()=>i});var n=r(380);function i(e){let t=156;if(t+=2*e.name.length,t+=(0,n.estimateTypedAttributesSizeInBytes)(e.attributes),e.links&&e.links.length>0){const r=e.links[0],i=r?.attributes;t+=(100+(i?(0,n.estimateTypedAttributesSizeInBytes)(i):0))*e.links.length}return t}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{createStore:()=>l,makeBrowserOfflineTransport:()=>f,push:()=>u,shift:()=>d,unshift:()=>p});
50var n=r(3407),i=r(393),o=r(1502),a=r(1534);function s(e){return new Promise((t,r)=>{e.oncomplete=e.onsuccess=()=>t(e.result),e.onabort=e.onerror=()=>r(e.error)})}function l(e,t){const r=indexedDB.open(e);r.onupgradeneeded=()=>r.result.createObjectStore(t);const n=s(r);return e=>n.then(r=>e(r.transaction(t,"readwrite").objectStore(t)))}function c(e){return s(e.getAllKeys())}function u(e,t,r){return e(e=>c(e).then(n=>{if(!(n.length>=r))return e.put(t,Math.max(...n,0)+1),s(e.transaction)}))}function p(e,t,r){return e(e=>c(e).then(n=>{if(!(n.length>=r))return e.put(t,Math.min(...n,0)-1),s(e.transaction)}))}function d(e){return e(e=>c(e).then(t=>{const r=t[0];if(null!=r)return s(e.get(r)).then(t=>(e.delete(r),s(e.transaction).then(()=>t)))}))}function h(e){let t;function r(){return null==t&&(t=l(e.dbName||"sentry-offline",e.storeName||"queue")),t}return{push:async t=>{try{const n=(0,i.serializeEnvelope)(t);await u(r(),n,e.maxQueueSize||30)}catch{}},unshift:async t=>{try{const n=(0,i.serializeEnvelope)(t);await p(r(),n,e.maxQueueSize||30)}catch{}},shift:async()=>{try{const e=await d(r());if(e)return(0,i.parseEnvelope)(e)}catch{}}}}function f(e=a.makeFetchTransport){return function(e){return t=>{const r=e({...t,createStore:h});return o.WINDOW.addEventListener("online",async e=>{await r.flush()}),r}}((0,n.makeOfflineTransport)(e))}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{MIN_DELAY:()=>c,START_DELAY:()=>u,makeOfflineTransport:()=>d});var n=r(354),i=r(358),o=r(393),a=r(360),s=r(1492),l=r(1491);const c=100,u=5e3,p=36e5;function d(e){function t(...e){n.DEBUG_BUILD&&i.debug.log("[Offline]:",...e)}return r=>{const n=e(r);if(!r.createStore)throw new Error("No `createStore` function was provided");const i=r.createStore(r);let d,h=u;function f(e){d&&clearTimeout(d),d=(0,l.safeUnref)(setTimeout(async()=>{d=void 0;const e=await i.shift();e&&(t("Attempting to send previously queued event"),e[0].sent_at=new Date((0,a.safeDateNow)()).toISOString(),g(e,!0).catch(e=>{t("Failed to retry sending",e)}))},e))}function m(){d||(f(h),h=Math.min(2*h,p))}async function g(e,a=!1){if(!a&&(0,o.envelopeContainsItemType)(e,["replay_event","replay_recording"]))return await i.push(e),f(c),{};
50try{if(r.shouldSend&&!1===await r.shouldSend(e))throw new Error("Envelope not sent because `shouldSend` callback returned false");const t=await n.send(e);let i=c;if(t)if(t.headers?.["retry-after"])i=(0,s.parseRetryAfterHeader)(t.headers["retry-after"]);else if(t.headers?.["x-sentry-rate-limits"])i=6e4;else if((t.statusCode||0)>=400)return t;return f(i),h=u,t}catch(n){if(await(l=e,p=n,d=h,!(0,o.envelopeContainsItemType)(l,["client_report"])&&(!r.shouldStore||r.shouldStore(l,p,d))))return a?await i.unshift(e):await i.push(e),m(),t("Error sending. Event queued.",n),{};throw n}var l,p,d}return r.flushAtStartup&&m(),{send:g,flush:e=>(void 0===e&&(h=u,f(c)),n.flush(e))}}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{browserProfilingIntegration:()=>d});var n=r(1468),i=r(375),o=r(379),a=r(358),s=r(1518),l=r(1502),c=r(3409),u=r(3411),p=r(3410);const d=(0,n.defineIntegration)(()=>({name:"BrowserProfiling",setup(e){const t=e.getOptions(),r=new u.UIProfiler;if((0,p.hasLegacyProfiling)(t)||t.profileLifecycle||(t.profileLifecycle="manual"),(0,p.hasLegacyProfiling)(t)&&!t.profilesSampleRate)return void(s.DEBUG_BUILD&&a.debug.log("[Profiling] Profiling disabled, no profiling options found."));const n=(0,o.getActiveSpan)(),d=n&&(0,o.getRootSpan)(n);if((0,p.hasLegacyProfiling)(t)&&void 0!==t.profileSessionSampleRate&&s.DEBUG_BUILD&&a.debug.warn("[Profiling] Both legacy profiling (`profilesSampleRate`) and UI profiling settings are defined. `profileSessionSampleRate` has no effect when legacy profiling is enabled."),(0,p.hasLegacyProfiling)(t))d&&(0,p.isAutomatedPageLoadSpan)(d)&&(0,p.shouldProfileSpanLegacy)(d)&&(0,c.startProfileForSpan)(d),e.on("spanStart",e=>{const t=(0,o.getRootSpan)(e);e===t?(0,p.shouldProfileSpanLegacy)(e)&&(0,c.startProfileForSpan)(e):p.PROFILED_ROOT_SPANS.has(t)&&(0,p.setThreadAttributes)(e)}),e.on("beforeEnvelope",e=>{if(!(0,p.getActiveProfilesCount)())return;const t=(0,p.findProfiledTransactionsFromEnvelope)(e);if(!t.length)return;const r=[];for(const e of t){const t=e?.contexts,n=t?.profile?.profile_id,i=t?.profile?.start_timestamp;if("string"!=typeof n){s.DEBUG_BUILD&&a.debug.log("[Profiling] cannot find profile for a span without a profile context");continue}if(!n){s.DEBUG_BUILD&&a.debug.log("[Profiling] cannot find profile for a span without a profile context");continue}t?.profile&&delete t.profile;const o=(0,p.takeProfileFromGlobalCache)(n);if(!o){s.DEBUG_BUILD&&a.debug.log(`[Profiling] Could not retrieve profile for span: ${n}`);continue}const l=(0,p.createProfilingEvent)(n,i,o,e);l&&r.push(l)}(0,p.addProfilesToEnvelope)(e,r)});else{const n=t.profileLifecycle;if(e.on("startUIProfiler",()=>r.start()),e.on("stopUIProfiler",()=>r.stop()),"manual"===n)r.initialize(e);else if("trace"===n){if(!(0,i.hasSpansEnabled)(t))return void(s.DEBUG_BUILD&&a.debug.warn("[Profiling] `profileLifecycle` is 'trace' but tracing is disabled. Set a `tracesSampleRate` or `tracesSampler` to enable span tracing."));r.initialize(e),d&&r.notifyRootSpanActive(d),l.WINDOW.setTimeout(()=>{const e=(0,o.getActiveSpan)(),t=e&&(0,o.getRootSpan)(e);t&&r.notifyRootSpanActive(t)},0)}}}}))},(e,t,r)=>{"use strict";r.r(t),r.d(t,{startProfileForSpan:()=>p});var n=r(346),i=r(379),o=r(358),a=r(356),s=r(365),l=r(1518),c=r(1502),u=r(3410);function p(e){let t;(0,u.isAutomatedPageLoadSpan)(e)&&(t=1e3*(0,s.timestampInSeconds)());const r=(0,u.startJSSelfProfile)();if(!r)return;l.DEBUG_BUILD&&o.debug.log(`[Profiling] started profiling span: ${(0,i.spanToJSON)(e).description}`);const p=(0,a.uuid4)();let d=null;async function h(){if(e&&r){if(!d)return r.stop().then(t=>{f&&(c.WINDOW.clearTimeout(f),f=void 0),l.DEBUG_BUILD&&o.debug.log(`[Profiling] stopped profiling of span: ${(0,i.spanToJSON)(e).description}`),t?(d=t,(0,u.addProfileToGlobalCache)(p,t)):l.DEBUG_BUILD&&o.debug.log(`[Profiling] profiler returned null profile for: ${(0,i.spanToJSON)(e).description}`,"this may indicate an overlapping span or a call to stopProfiling with a profile title that was never started")}).catch(e=>{l.DEBUG_BUILD&&o.debug.log("[Profiling] error while stopping profiler:",e)});l.DEBUG_BUILD&&o.debug.log("[Profiling] profile for:",(0,i.spanToJSON)(e).description,"already exists, returning early")}}(0,n.getCurrentScope)().setContext("profile",{profile_id:p,start_timestamp:t}),u.PROFILED_ROOT_SPANS.add(e),(0,u.setThreadAttributes)(e);let f=c.WINDOW.setTimeout(()=>{l.DEBUG_BUILD&&o.debug.log("[Profiling] max profile duration elapsed, stopping profiling for:",(0,i.spanToJSON)(e).description),h()},u.MAX_PROFILE_DURATION_MS);const m=e.end.bind(e);e.end=function(){return e?(h().then(()=>{m()},()=>{m()}),e):m()}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{MAX_PROFILE_DURATION_MS:()=>B,PROFILED_ROOT_SPANS:()=>Y,PROFILER_THREAD_ID_STRING:()=>g,PROFILER_THREAD_NAME:()=>y,addProfileToGlobalCache:()=>W,addProfilesToEnvelope:()=>D,applyDebugMetadata:()=>N,convertJSSelfProfileToSampledFormat:()=>P,createProfileChunkPayload:()=>k,createProfilePayload:()=>A,createProfilingEvent:()=>z,enrichWithThreadInformation:()=>I,findProfiledTransactionsFromEnvelope:()=>M,getActiveProfilesCount:()=>q,hasLegacyProfiling:()=>V,isAutomatedPageLoadSpan:()=>C,isValidSampleRate:()=>L,setThreadAttributes:()=>K,shouldProfileSession:()=>H,shouldProfileSpanLegacy:()=>j,startJSSelfProfile:()=>U,takeProfileFromGlobalCache:()=>$,validateProfileChunk:()=>R});var n=r(346),i=r(379),o=r(386),a=r(350),s=r(358),l=r(356),c=r(365),u=r(393),p=r(399),d=r(1518),h=r(1502);const f=1e6,m="window"in a.GLOBAL_OBJ&&a.GLOBAL_OBJ.window===a.GLOBAL_OBJ&&"undefined"==typeof importScripts,g=String(0),y=m?"main":"worker",b=h.WINDOW.navigator;let v="",_="",S="",E=b?.userAgent||"",T="";const w=b?.language||b?.languages?.[0]||"";const x=b?.userAgentData;var O;function I(e){return function(e){return!("thread_metadata"in e)}(e)?P(e):e}function A(e,t,r,n){if("transaction"!==n.type)throw new TypeError("Profiling events may only be attached to transactions, this should never occur.");if(null==r)throw new TypeError(`Cannot construct profiling event envelope without a valid profile. Got ${r} instead.`);const i=function(e){const t=e.contexts?.trace?.trace_id;return"string"==typeof t&&32!==t.length&&d.DEBUG_BUILD&&s.debug.log(`[Profiling] Invalid traceId: ${t} on profiled event`),"string"!=typeof t?"":t}(n),a=I(r),u=t||("number"==typeof n.start_timestamp?1e3*n.start_timestamp:1e3*(0,c.timestampInSeconds)()),p="number"==typeof n.timestamp?1e3*n.timestamp:1e3*(0,c.timestampInSeconds)();return{event_id:e,timestamp:new Date(u).toISOString(),platform:"javascript",version:"1",release:n.release||"",environment:n.environment||o.DEFAULT_ENVIRONMENT,runtime:{name:"javascript",version:h.WINDOW.navigator.userAgent},os:{name:v,version:_,build_number:E},device:{locale:w,model:T,manufacturer:E,architecture:S,is_emulator:!1},debug_meta:{images:N(r.resources)},profile:a,transactions:[{name:n.transaction||"",id:n.event_id||
50(0,l.uuid4)(),trace_id:i,active_thread_id:g,relative_start_ns:"0",relative_end_ns:(1e6*(p-u)).toFixed(0)}]}}function k(e,t,r){if(null==e)throw new TypeError(`Cannot construct profiling event envelope without a valid profile. Got ${e} instead.`);const n=function(e){const t=[];for(let r=0;r<e.frames.length;r++){const n=e.frames[r];n&&(t[r]={function:n.name,abs_path:"number"==typeof n.resourceId?e.resources[n.resourceId]:void 0,lineno:n.line,colno:n.column})}const r=[];for(let t=0;t<e.stacks.length;t++){const n=e.stacks[t];if(!n)continue;const i=[];let o=n;for(;o;)i.push(o.frameId),o=void 0===o.parentId?void 0:e.stacks[o.parentId];r[t]=i}const n=(0,c.browserPerformanceTimeOrigin)(),i="number"==typeof performance.timeOrigin?performance.timeOrigin:n||0,o=i-(n||i),a=[];for(let t=0;t<e.samples.length;t++){const r=e.samples[t];if(!r)continue;const n=(i+(r.timestamp-o))/1e3;a[t]={stack_id:r.stackId??0,thread_id:g,timestamp:n}}return{frames:t,stacks:r,samples:a,thread_metadata:{[g]:{name:y}}}}(e),i=t.getOptions(),o=t.getSdkMetadata?.()?.sdk;return{chunk_id:(0,l.uuid4)(),client_sdk:{name:o?.name??"sentry.javascript.browser",version:o?.version??"0.0.0"},profiler_id:r||(0,l.uuid4)(),platform:"javascript",version:"2",release:i.release??"",environment:i.environment??"production",debug_meta:{images:N(e.resources)},profile:n}}function R(e){try{if(!e||"object"!=typeof e)return{reason:"chunk is not an object"};const t=e=>"string"==typeof e&&/^[a-f0-9]{32}$/.test(e);if(!t(e.profiler_id))return{reason:"missing or invalid profiler_id"};if(!t(e.chunk_id))return{reason:"missing or invalid chunk_id"};if(!e.client_sdk)return{reason:"missing client_sdk metadata"};const r=e.profile;return r?Array.isArray(r.frames)&&r.frames.length?Array.isArray(r.stacks)&&r.stacks.length?Array.isArray(r.samples)&&r.samples.length?{valid:!0}:{reason:"profile has no samples"}:{reason:"profile has no stacks"}:{reason:"profile has no frames"}:{reason:"missing profile data"}}catch(e){return{reason:`unknown validation error: ${e}`}}}function C(e){return"pageload"===(0,i.spanToJSON)(e).op}function P(e){let t,r=0;const n={samples:[],stacks:[],frames:[],thread_metadata:{[g]:{name:y}}},i=e.samples[0];if(!i)return n;const o=i.timestamp,a=(0,c.browserPerformanceTimeOrigin)(),s="number"==typeof performance.timeOrigin?performance.timeOrigin:a||0,l=s-(a||s);return e.samples.forEach((i,a)=>{if(void 0===i.stackId)return void 0===t&&(t=r,n.stacks[t]=[],r++),void(n.samples[a]={elapsed_since_start_ns:((i.timestamp+l-o)*f).toFixed(0),stack_id:t,thread_id:g});let s=e.stacks[i.stackId];const c=[];for(;s;){c.push(s.frameId);const t=e.frames[s.frameId];t&&void 0===n.frames[s.frameId]&&(n.frames[s.frameId]={function:t.name,abs_path:"number"==typeof t.resourceId?e.resources[t.resourceId]:void 0,lineno:t.line,colno:t.column}),s=void 0===s.parentId?void 0:e.stacks[s.parentId]}const u={elapsed_since_start_ns:((i.timestamp+l-o)*f).toFixed(0),stack_id:r,thread_id:g};n.stacks[r]=c,n.samples[a]=u,r++}),n}function D(e,t){if(!t.length)return e;for(const r of t)e[1].push([{type:"profile"},r]);return e}function M(e){const t=[];return(0,u.forEachEnvelopeItem)(e,(e,r)=>{if("transaction"===r)for(let r=1;r<e.length;r++){const n=e[r];n?.contexts?.profile?.profile_id&&t.push(e[r])}}),t}function N(e){const t=(0,n.getClient)(),r=t?.getOptions(),i=r?.stackParser;return i?(0,p.getDebugImagesForResources)(i,e):[]}function L(e){return"number"!=typeof e&&"boolean"!=typeof e||"number"==typeof e&&isNaN(e)?(d.DEBUG_BUILD&&s.debug.warn(`[Profiling] Invalid sample rate. Sample rate must be a boolean or a number between 0 and 1. Got ${JSON.stringify(e)} of type ${JSON.stringify(typeof e)}.`),!1):!0===e||!1===e||(!(e<0||e>1)||(d.DEBUG_BUILD&&s.debug.warn(`[Profiling] Invalid sample rate. Sample rate must be between 0 and 1. Got ${e}.`),!1))}"object"==typeof(O=x)&&null!==O&&"getHighEntropyValues"in O&&x.getHighEntropyValues(["architecture","model","platform","platformVersion","fullVersionList"]).then(e=>{if(v=e.platform||"",S=e.architecture||"",T=e.model||"",_=e.platformVersion||"",e.fullVersionList?.length){const t=e.fullVersionList[e.fullVersionList.length-1];E=`${t.brand} ${t.version}`}}).catch(e=>{});let F=!1;const B=3e4;function U(){const e=h.WINDOW.Profiler;if("function"!=typeof e)return void(d.DEBUG_BUILD&&s.debug.log("[Profiling] Profiling is not supported by this browser, Profiler interface missing on window object."));const t=Math.floor(B/10);try{return new e({sampleInterval:10,maxBufferSize:t})}catch(e){d.DEBUG_BUILD&&(s.debug.log("[Profiling] Failed to initialize the Profiling constructor, this is likely due to a missing 'Document-Policy': 'js-profiling' header."),s.debug.log("[Profiling] Disabling profiling for current user session.")),F=!0}}function j(e){if(F)return d.DEBUG_BUILD&&s.debug.log("[Profiling] Profiling has been disabled for the duration of the current user session."),!1;if(!e.isRecording())return d.DEBUG_BUILD&&s.debug.log("[Profiling] Discarding profile because root span was not sampled."),!1;const t=(0,n.getClient)(),r=t?.getOptions();if(!r)return d.DEBUG_BUILD&&s.debug.log("[Profiling] Profiling disabled, no options foun
50d."),!1;const i=r.profilesSampleRate;if(!L(i))return d.DEBUG_BUILD&&s.debug.warn("[Profiling] Discarding profile because of invalid sample rate."),!1;if(!i)return d.DEBUG_BUILD&&s.debug.log("[Profiling] Discarding profile because a negative sampling decision was inherited or profileSampleRate is set to 0"),!1;return!!(!0===i||Math.random()<i)||(d.DEBUG_BUILD&&s.debug.log(`[Profiling] Discarding profile because it's not included in the random sample (sampling rate = ${Number(i)})`),!1)}function H(e){if(F)return d.DEBUG_BUILD&&s.debug.log("[Profiling] Profiling has been disabled for the duration of the current user session as the JS Profiler could not be started."),!1;if("trace"!==e.profileLifecycle&&"manual"!==e.profileLifecycle)return d.DEBUG_BUILD&&s.debug.warn("[Profiling] Session not sampled. Invalid `profileLifecycle` option."),!1;const t=e.profileSessionSampleRate;return L(t)?t?Math.random()<=t:(d.DEBUG_BUILD&&s.debug.log("[Profiling] Discarding profile because profileSessionSampleRate is not defined or set to 0"),!1):(d.DEBUG_BUILD&&s.debug.warn("[Profiling] Discarding profile because of invalid profileSessionSampleRate."),!1)}function V(e){return void 0!==e.profilesSampleRate}function z(e,t,r,n){return function(e){return e.samples.length<2?(d.DEBUG_BUILD&&s.debug.log("[Profiling] Discarding profile because it contains less than 2 samples"),!1):!!e.frames.length||(d.DEBUG_BUILD&&s.debug.log("[Profiling] Discarding profile because it contains no frames"),!1)}(r)?A(e,t,r,n):null}const G=new Map;function q(){return G.size}function $(e){const t=G.get(e);return t&&G.delete(e),t}function W(e,t){if(G.set(e,t),G.size>30){const e=G.keys().next().value;void 0!==e&&G.delete(e)}}const Y=new WeakSet;function K(e){e.setAttribute("thread.id",g),e.setAttribute("thread.name",y)}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{UIProfiler:()=>p});var n=r(346),i=r(379),o=r(384),a=r(358),s=r(356),l=r(393),c=r(1518),u=r(3410);class p{constructor(){this._client=void 0,this._profiler=void 0,this._chunkTimer=void 0,this._profilerId=void 0,this._isRunning=!1,this._sessionSampled=!1,this._lifecycleMode=void 0,this._activeRootSpanIds=new Set,this._rootSpanTimeouts=new Map}initialize(e){const t=e.getOptions().profileLifecycle,r=(0,u.shouldProfileSession)(e.getOptions());c.DEBUG_BUILD&&a.debug.log(`[Profiling] Initializing profiler (lifecycle='${t}').`),r||c.DEBUG_BUILD&&a.debug.log("[Profiling] Session not sampled. Skipping lifecycle profiler initialization."),this._profilerId=(0,s.uuid4)(),this._client=e,this._sessionSampled=r,this._lifecycleMode=t,"trace"===t&&this._setupTraceLifecycleListeners(e),e.on("spanStart",e=>{this._isRunning&&(0,u.setThreadAttributes)(e)})}start(){"trace"!==this._lifecycleMode?this._isRunning?c.DEBUG_BUILD&&a.debug.warn("[Profiling] Profile session is already running, `uiProfiler.start()` is a no-op."):this._sessionSampled?this._beginProfiling():c.DEBUG_BUILD&&a.debug.warn("[Profiling] Session is not sampled, `uiProfiler.start()` is a no-op."):c.DEBUG_BUILD&&a.debug.warn('[Profiling] `profileLifecycle` is set to "trace". Calls to `uiProfiler.start()` are ignored in trace mode.')}stop(){"trace"!==this._lifecycleMode?this._isRunning?this._endProfiling():c.DEBUG_BUILD&&a.debug.warn("[Profiling] Profiler is not running, `uiProfiler.stop()` is a no-op."):c.DEBUG_BUILD&&a.debug.warn('[Profiling] `profileLifecycle` is set to "trace". Calls to `uiProfiler.stop()` are ignored in trace mode.')}notifyRootSpanActive(e){if("trace"!==this._lifecycleMode||!this._sessionSampled)return;const t=e.spanContext().spanId;if(!t||this._activeRootSpanIds.has(t))return;this._registerTraceRootSpan(t);const r=this._activeRootSpanIds.size;1===r&&(c.DEBUG_BUILD&&a.debug.log("[Profiling] Detected already active root span during setup. Active root spans now:",r),this._beginProfiling()),this._isRunning&&(0,u.setThreadAttributes)(e)}_beginProfiling(){if(!this._isRunning){if(this._isRunning=!0,c.DEBUG_BUILD&&a.debug.log("[Profiling] Started profiling with profiler ID:",this._profilerId),(0,n.getGlobalScope)().setContext("profile",{profiler_id:this._profilerId}),this._startProfilerInstance(),!this._profiler)return c.DEBUG_BUILD&&a.debug.log("[Profiling] Failed to start JS Profiler; stopping."),void this._resetProfilerInfo();this._startPeriodicChunking()}}_endProfiling(){this._isRunning&&(this._isRunning=!1,this._chunkTimer&&(clearTimeout(this._chunkTimer),this._chunkTimer=void 0),this._clearAllRootSpanTimeouts(),this._collectCurrentChunk().catch(e=>{c.DEBUG_BUILD&&a.debug.error("[Profiling] Failed to collect current profile chunk on `stop()`:",e)}),"manual"===this._lifecycleMode&&(0,n.getGlobalScope)().setContext("profile",{}))}_setupTraceLifecycleListeners(e){e.on("spanStart",e=>{if(!this._sessionSampled)return void(c.DEBUG_BUILD&&a.debug.log("[Profiling] Span not profiled because of negative sampling decision for user session."));if(e!==(0,i.getRootSpan)(e))return;if(!e.isRecording())return void(c.DEBUG_BUILD&&a.debug.log("[Profiling] Discarding profile because root span was not sampled."));const t=e.spanContext().spanId;if(!t||this._activeRootSpanIds.has(t))return;this._registerTraceRootSpan(t);const r=this._activeRootSpanIds.size;1===r&&(c.DEBUG_BUILD&&a.debug.log(`[Profiling] Root span ${t} started. Profiling active while there are active root spans (count=${r}).`),this._beginProfiling())}),e.on("spanEnd",e=>{if(!this._sessionSampled)return;const t=e.spanContext().spanId;if(!t||!this._activeRootSpanIds.has(t))return;this._activeRootSpanIds.delete(t);const r=this._activeRootSpanIds.size;c.DEBUG_BUILD&&a.debug.log(`[Profiling] Root span with ID ${t} ended. Will continue profiling for as long as there are active root spans (currently: ${r}).`),0===r&&(this._collectCurrentChunk().catch(e=>{c.DEBUG_BUILD&&a.debug.error("[Profiling] Failed to collect current profile chunk on last `spanEnd`:",e)}),this._endProfiling())})}_resetProfilerInfo(){this._isRunning=!1,(0,n.getGlobalScope)().setContext("profile",{})}
50_clearAllRootSpanTimeouts(){this._rootSpanTimeouts.forEach(e=>clearTimeout(e)),this._rootSpanTimeouts.clear()}_registerTraceRootSpan(e){this._activeRootSpanIds.add(e);const t=setTimeout(()=>this._onRootSpanTimeout(e),3e5);this._rootSpanTimeouts.set(e,t)}_startProfilerInstance(){if(!1===this._profiler?.stopped)return;const e=(0,u.startJSSelfProfile)();e?this._profiler=e:c.DEBUG_BUILD&&a.debug.log("[Profiling] Failed to start JS Profiler.")}_startPeriodicChunking(){this._isRunning&&(this._chunkTimer=setTimeout(()=>{if(this._collectCurrentChunk().catch(e=>{c.DEBUG_BUILD&&a.debug.error("[Profiling] Failed to collect current profile chunk during periodic chunking:",e)}),this._isRunning){if(this._startProfilerInstance(),!this._profiler)return void this._resetProfilerInfo();this._startPeriodicChunking()}},6e4))}_onRootSpanTimeout(e){this._rootSpanTimeouts.has(e)&&(this._rootSpanTimeouts.delete(e),this._activeRootSpanIds.has(e)&&(c.DEBUG_BUILD&&a.debug.log(`[Profiling] Reached 5-minute timeout for root span ${e}. You likely started a manual root span that never called \`.end()\`.`),this._activeRootSpanIds.delete(e),0===this._activeRootSpanIds.size&&this._endProfiling()))}async _collectCurrentChunk(){const e=this._profiler;if(this._profiler=void 0,e)try{const t=await e.stop(),r=(0,u.createProfileChunkPayload)(t,this._client,this._profilerId),n=(0,u.validateProfileChunk)(r);if("reason"in n)return void(c.DEBUG_BUILD&&a.debug.log("[Profiling] Discarding invalid profile chunk (this is probably a bug in the SDK):",n.reason));this._sendProfileChunk(r),c.DEBUG_BUILD&&a.debug.log("[Profiling] Collected browser profile chunk.")}catch(e){c.DEBUG_BUILD&&a.debug.log("[Profiling] Error while stopping JS Profiler for chunk:",e)}}_sendProfileChunk(e){const t=this._client,r=(0,l.getSdkMetadataForEnvelopeHeader)(t.getSdkMetadata?.()),n=t.getDsn(),i=t.getOptions().tunnel,u=(0,l.createEnvelope)({event_id:(0,s.uuid4)(),sent_at:(new Date).toISOString(),...r&&{sdk:r},...!!i&&n&&{dsn:(0,o.dsnToString)(n)}},[[{type:"profile_chunk",platform:"javascript"},e]]);t.sendEnvelope(u).then(null,e=>{c.DEBUG_BUILD&&a.debug.error("Error while sending profile chunk envelope:",e)})}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{INTEGRATION_NAME:()=>l,SPOTLIGHT_IGNORE_SPANS:()=>c,spotlightBrowserIntegration:()=>u});var n=r(1468),i=r(358),o=r(393),a=r(1535),s=r(1518);const l="SpotlightBrowser",c=[{op:"ui.interaction.click",name:"#sentry-spotlight"}];const u=(0,n.defineIntegration)((e={})=>{const t=e.sidecarUrl||"http://localhost:8969/stream";return{name:l,setup:()=>{s.DEBUG_BUILD&&i.debug.log("Using Sidecar URL",t)},beforeSetup(e){const t=e.getOptions();t.ignoreSpans=[...t.ignoreSpans||[],...c]},afterAllSetup:e=>{!function(e,t){const r=(0,a.getNativeImplementation)("fetch");let n=0;e.on("beforeEnvelope",e=>{n>3?i.debug.warn("[Spotlight] Disabled Sentry -> Spotlight integration due to too many failed requests:",n):r(t,{method:"POST",body:(0,o.seri
50alizeEnvelope)(e),headers:{"Content-Type":"application/x-sentry-envelope"},mode:"cors"}).then(e=>{e.status>=200&&e.status<400&&(n=0)},e=>{n++,i.debug.error("Sentry SDK can't connect to Sidecar is it running? See: https://spotlightjs.com/sidecar/npx/",e)})})}(e,t)}}})},(e,t,r)=>{"use strict";r.r(t),r.d(t,{buildLaunchDarklyFlagUsedHandler:()=>a,launchDarklyIntegration:()=>o});var n=r(1468),i=r(3354);const o=(0,n.defineIntegration)(()=>({name:"LaunchDarkly",processEvent:(e,t,r)=>(0,i._INTERNAL_copyFlagsFromScopeToEvent)(e)}));function a(){return{name:"sentry-flag-auditor",type:"flag-used",synchronous:!0,method:(e,t,r)=>{(0,i._INTERNAL_insertFlagToScope)(e,t.value),(0,i._INTERNAL_addFeatureFlagToActiveSpan)(e,t.value)}}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{OpenFeatureIntegrationHook:()=>a,openFeatureIntegration:()=>o});var n=r(1468),i=r(3354);const o=(0,n.defineIntegration)(()=>({name:"OpenFeature",processEvent:(e,t,r)=>(0,i._INTERNAL_copyFlagsFromScopeToEvent)(e)}));class a{after(e,t){(0,i._INTERNAL_insertFlagToScope)(t.flagKey,t.value),(0,i._INTERNAL_addFeatureFlagToActiveSpan)(t.flagKey,t.value)}error(e,t,r){(0,i._INTERNAL_insertFlagToScope)(e.flagKey,e.defaultValue),(0,i._INTERNAL_addFeatureFlagToActiveSpan)(e.flagKey,e.defaultValue)}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{unleashIntegration:()=>l});var n=r(1468),i=r(3354),o=r(358),a=r(357),s=r(1518);const l=(0,n.defineIntegration)(({featureFlagClientClass:e})=>({name:"Unleash",setupOnce(){const t=e.prototype;(0,a.fill)(t,"isEnabled",c)},processEvent:(e,t,r)=>(0,i._INTERNAL_copyFlagsFromScopeToEvent)(e)}));function c(e){return function(...t){const r=t[0],n=e.apply(this,t);return"string"==typeof r&&"boolean"==typeof n?((0,i._INTERNAL_insertFlagToScope)(r,n),(0,i._INTERNAL_addFeatureFlagToActiveSpan)(r,n)):s.DEBUG_BUILD&&o.debug.error(`[Feature Flags] UnleashClient.isEnabled does not match expected signature. arg0: ${r} (${typeof r}), result: ${n} (${typeof n})`),n}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{growthbookIntegration:()=>i});var n=r(3417);const i=({growthbookClass:e})=>(0,n.growthbookIntegration)({growthbookClass:e})},(e,t,r)=>{"use strict";r.r(t),r.d(t,{growthbookIntegration:()=>a});var n=r(1468),i=r(3354),o=r(357);const a=(0,n.defineIntegration)(({growthbookClass:e})=>({name:"GrowthBook",setupOnce(){const t=e.prototype;"function"==typeof t.isOn&&(0,o.fill)(t,"isOn",s),"function"==typeof t.getFeatureValue&&(0,o.fill)(t,"getFeatureValue",s)},processEvent:(e,t,r)=>(0,i._INTERNAL_copyFlagsFromScopeToEvent)(e)}));function s(e){return function(...t){const r=t[0],n=e.apply(this,t);return"string"==typeof r&&"boolean"==typeof n&&((0,i._INTERNAL_insertFlagToScope)(r,n),(0,i._INTERNAL_addFeatureFlagToActiveSpan)(r,n)),n}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{statsigIntegration:()=>o});var n=r(1468),i=r(3354);const o=(0,n.defineIntegration)(({featureFlagClient:e})=>({name:"Statsig",setup(t){e.on("gate_evaluation",e=>{(0,i._INTERNAL_insertFlagToScope)(e.gate.name,e.gate.value),(0,i._INTERNAL_addFeatureFlagToActiveSpan)(e.gate.name,e.gate.value)})},processEvent:(e,t,r)=>(0,i._INTERNAL_copyFlagsFromScopeToEvent)(e)}))},(e,t,r)=>{"use strict";r.r(t),r.d(t,{diagnoseSdkConnectivity:()=>o});var n=r(371),i=r(346);async function o(){const e=(0,i.getClient)();if(!e)return"no-client-active";if(!e.getDsn())return"no-dsn-configured";const t=e.getOptions().tunnel||"https://o447951.ingest.sentry.io/api/4509632503087104/envelope/?sentry_version=7&sentry_key=c1dfb07d783ad5325c245c1fd3725390&sentry_client=sentry.javascript.browser%2F1.33.7";try{await(0,n.suppressTracing)(()=>fetch(t,{body:"{}",method:"POST",mode:"cors",credentials:"omit"}))}catch{return"sentry-unreachable"}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{INTEGRATION_NAME:()=>d,registerWebWorker:()=>m,webWorkerIntegration:()=>h});var n=r(345),i=r(346),o=r(1468),a=r(359),s=r(358),l=r(1518),c=r(1500),u=r(1502),p=r(1527);const d="WebWorker",h=(0,o.defineIntegration)(({worker:e})=>({name:d,setupOnce:()=>{(Array.isArray(e)?e:[e]).forEach(e=>f(e))},addWorker:e=>f(e)}));function f(e){e.addEventListener("message",e=>{if(function(e){if(!(0,a.isPlainObject)(e)||!0!==e._sentryMessage)return!1;const t="_sentryDebugIds"in e,r="_sentryModuleMetadata"in e,n="_sentryWorkerError"in e,i="_sentryWasmImages"in e;if(!(t||r||n||i))return!1;if(t&&!(0,a.isPlainObject)(e._sentryDebugIds)&&void 0!==e._sentryDebugIds)return!1;if(r&&!(0,a.isPlainObject)(e._sentryModuleMetadata)&&void 0!==e._sentryModuleMetadata)return!1;if(n&&!(0,a.isPlainObject)(e._sentryWorkerError))return!1;if(i&&(!Array.isArray(e._sentryWasmImages)||!e._sentryWasmImages.every(e=>(0,a.isPlainObject)(e)&&"string"==typeof e.code_file)))return!1;return!0}
50(e.data)){if(e.stopImmediatePropagation(),e.data._sentryDebugIds&&(l.DEBUG_BUILD&&s.debug.log("Sentry debugId web worker message received",e.data),u.WINDOW._sentryDebugIds={...e.data._sentryDebugIds,...u.WINDOW._sentryDebugIds}),e.data._sentryModuleMetadata&&(l.DEBUG_BUILD&&s.debug.log("Sentry module metadata web worker message received",e.data),u.WINDOW._sentryModuleMetadata={...e.data._sentryModuleMetadata,...u.WINDOW._sentryModuleMetadata}),e.data._sentryWasmImages){l.DEBUG_BUILD&&s.debug.log("Sentry WASM images web worker message received",e.data);const t=u.WINDOW._sentryWasmImages||[],r=e.data._sentryWasmImages.filter(e=>(0,a.isPlainObject)(e)&&"string"==typeof e.code_file&&!t.some(t=>t.code_file===e.code_file));u.WINDOW._sentryWasmImages=[...t,...r]}e.data._sentryWorkerError&&(l.DEBUG_BUILD&&s.debug.log("Sentry worker rejection message received",e.data._sentryWorkerError),function(e){const t=(0,i.getClient)();if(!t)return;const r=t.getOptions().stackParser,o=t.getOptions().attachStacktrace,u=e.reason,d=(0,a.isPrimitive)(u)?(0,p._eventFromRejectionWithPrimitive)(u):(0,c.eventFromUnknownInput)(r,u,void 0,o,!0);d.level="error",e.filename&&(d.contexts={...d.contexts,worker:{filename:e.filename}});(0,n.captureEvent)(d,{originalException:u,mechanism:{handled:!1,type:"auto.browser.web_worker.onunhandledrejection"}}),l.DEBUG_BUILD&&s.debug.log("Captured worker unhandled rejection",u)}(e.data._sentryWorkerError))}})}function m({self:e}){e.postMessage({_sentryMessage:!0,_sentryDebugIds:e._sentryDebugIds??void 0,_sentryModuleMetadata:e._sentryModuleMetadata??void 0}),e.addEventListener("unhandledrejection",t=>{const r={reason:(0,p._getUnhandledRejectionError)(t),filename:e.location?.href};e.postMessage({_sentryMessage:!0,_sentryWorkerError:r}),l.DEBUG_BUILD&&s.debug.log("[Sentry Worker] Forwarding unhandled rejection to parent",r)}),l.DEBUG_BUILD&&s.debug.log("[Sentry Worker] Registered worker with unhandled rejection handling")}},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,e=>{"use strict";var t=[];function r(e){for(var r=-1,n=0;n<t.length;n++)if(t[n].identifier===e){r=n;break}return r}function n(e,n){for(var o={},a=[],s=0;s<e.length;s++){var l=e[s],c=n.base?l[0]+n.base:l[0],u=o[c]||0,p="".concat(c," ").concat(u);o[c]=u+1;var d=r(p),h={css:l[1],media:l[2],sourceMap:l[3],supports:l[4],layer:l[5]};if(-1!==d)t[d].references++,t[d].updater(h);else{var f=i(h,n);n.byIndex=s,t.splice(s,0,{identifier:p,updater:f,references:1})}a.push(p)}return a}function i(e,t){var r=t.domAPI(t);r.update(e);return function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap&&t.supports===e.supports&&t.layer===e.layer)return;r.update(e=t)}else r.remove()}}e.exports=function(e,i){var o=n(e=e||[],i=i||{});return function(e){e=e||[];for(var a=0;a<o.length;a++){var s=r(o[a]);t[s].references--}for(var l=n(e,i),c=0;c<o.length;c++){var u=r(o[c]);0===t[u].references&&(t[u].updater(),t.splice(u,1))}o=l}}},e=>{"use strict";e.exports=function(e){if("undefined"==typeof document)return{update:function(){},remove:function(){}};var t=e.insertStyleElement(e);return{update:function(r){!function(e,t,r){var n="";r.supports&&(n+="@supports (".concat(r.supports,") {")),r.media&&(n+="@media ".concat(r.media," {"));var i=void 0!==r.layer;i&&(n+="@layer".concat(r.layer.length>0?" ".concat(r.layer):""," {")),n+=r.css,i&&(n+="}"),r.media&&(n+="}"),r.supports&&(n+="}");var o=r.sourceMap;o&&"undefined"!=typeof btoa&&(n+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(o))))," */")),t.styleTagTransform(n,e,t.options)}(t,e,r)},remove:function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(t)}}}},e=>{"use strict";var t={};e.exports=function(e,r){var n=function(e){if(void 0===t[e]){var r=document.querySelector(e);
50if(window.HTMLIFrameElement&&r instanceof window.HTMLIFrameElement)try{r=r.contentDocument.head}catch(e){r=null}t[e]=r}return t[e]}(e);if(!n)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");n.appendChild(r)}},(e,t,r)=>{"use strict";e.exports=function(e){var t=r.nc;t&&e.setAttribute("nonce",t)}},e=>{"use strict";e.exports=function(e){var t=document.createElement("style");return e.setAttributes(t,e.attributes),e.insert(t,e.options),t}},e=>{"use strict";e.exports=function(e,t){if(t.styleSheet)t.styleSheet.cssText=e;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(e))}}},,e=>{"use strict";e.exports=function(e){var t=e[1],r=e[3];if(!r)return t;if("function"==typeof btoa){var n=btoa(unescape(encodeURIComponent(JSON.stringify(r)))),i="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(n),o="/*# ".concat(i," */");return[t].concat([o]).join("\n")}return[t].join("\n")}},e=>{"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map(function(t){var r="",n=void 0!==t[5];return t[4]&&(r+="@supports (".concat(t[4],") {")),t[2]&&(r+="@media ".concat(t[2]," {")),n&&(r+="@layer".concat(t[5].length>0?" ".concat(t[5]):""," {")),r+=e(t),n&&(r+="}"),t[2]&&(r+="}"),t[4]&&(r+="}"),r}).join("")},t.i=function(e,r,n,i,o){"string"==typeof e&&(e=[[null,e,void 0]]);var a={};if(n)for(var s=0;s<this.length;s++){var l=this[s][0];null!=l&&(a[l]=!0)}for(var c=0;c<e.length;c++){var u=[].concat(e[c]);n&&a[u[0]]||(void 0!==o&&(void 0===u[5]||(u[1]="@layer".concat(u[5].length>0?" ".concat(u[5]):""," {").concat(u[1],"}")),u[5]=o),r&&(u[2]?(u[1]="@media ".concat(u[2]," {").concat(u[1],"}"),u[2]=r):u[2]=r),i&&(u[4]?(u[1]="@supports (".concat(u[4],") {").concat(u[1],"}"),u[4]=i):u[4]="".concat(i)),t.push(u))}},t}},,,,e=>{"use strict";e.exports=function(e,t){return t||(t={}),e?(e=String(e.__esModule?e.default:e),/^['"].*['"]$/.test(e)&&(e=e.slice(1,-1)),t.hash&&(e+=t.hash),/["'() \t\n]|(%20)/.test(e)||t.needQuotes?'"'.concat(e.replace(/"/g,'\\"').replace(/\n/g,"\\n"),'"'):e):e}},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,(e,t,r)=>{"use strict";r.r(t),r.d(t,{EmitterInstance:()=>m});var n=r(994),i=r(998),o=r(1001),a=r(1021),s=r(1045),l=r(1054),c=r(996),u=r(995),p=r(1094),d=r(1099);function h(e,t,r,n){(e.paint??=new s.Paint).fill={color:a.AnimatableColor.create(void 0,{value:t}),enable:n,opacity:r}}function f(e,t,r,n){(e.paint??=new s.Paint).stroke={color:a.AnimatableColor.create(void 0,{value:t}),opacity:r,width:n}}class m{fill;name;options;position;size;spawnFillColor;spawnFillEnabled;spawnFillOpacity;spawnStrokeColor;spawnStrokeOpacity;spawnStrokeWidth;#d;#Vt;#zt;#Gt;#O;#qt;#$t;#Wt;#Yt;#Kt;#j;#Jt;#M;#h;#Qt;#De;#Xt;#Zt;#er;#tr;constructor(e,t,r,i,a){this.#h=e,this.#d=t,this.#Qt=r,this.#Vt=0,this.#zt=0,this.#Gt=0,this.#Yt=a,i instanceof p.Emitter?this.options=i:(this.options=new p.Emitter,this.options.load(i)),this.#er=t.retina.reduceFactor?(0,c.getRangeValue)(this.options.life.delay??0)*n.millisecondsToSeconds/t.retina.reduceFactor:1/0,this.position=this.#Yt??this.#_t(),this.name=this.options.name,this.fill=this.options.fill,this.#$t=!this.options.life.wait,this.#tr=!1;const s=(0,u.deepExtend)({},this.options.particles);if(s.move??={},s.move.direction??=this.options.direction,this.options.spawn.fill?.color&&(this.spawnFillColor=(0,l.rangeColorToHsl)(this.#h,this.options.spawn.fill.color)),this.options.spawn.stroke?.color&&(this.spawnStrokeColor=(0,l.rangeColorToHsl)(this.#h,this.options.spawn.stroke.color)),this.#M=!this.options.autoPlay,this.#Jt=s,this.#Zt=this.#rr(),this.size=this.#Zt.mode===o.PixelMode.percent?{width:this.#Zt.width/n.percentDenominator*this.#d.canvas.size.width,height:this.#Zt.height/n.percentDenominator*this.#d.canvas.size.height}:{width:this.#Zt.width,height:this.#Zt.height},this.#Kt=this.options.life.count??-1,this.#Wt=this.#Kt<=0,this.options.domId){const e=(0,u.safeDocument)().getElementById(this.options.domId);e&&(this.#j=new MutationObserver(()=>{this.resize()}),this.#De=new ResizeObserver(()=>{this.resize()}),this.#j.observe(e,{attributes:!0,attributeFilter:["style","width","height"]}),this.#De.observe(e))}const d=this.options.shape,h=this.#h.emitterShapeManager?.getShapeGenerator(d.type);h&&(this.#Xt=h.generate(this.#d,this.position,this.size,this.fill,d.options)),this.#d.dispatchEvent("emitterCreated",{emitter:this}),this.play()}externalPause(){this.#M=!0,this.pause()}externalPlay(){this.#M=!1,this.play()}
vendor: 4,191 bytes, line 50
50async init(){await(this.#Xt?.init())}pause(){this.#M||(this.#qt=void 0)}play(){if(this.#M)return;if(!(this.#Kt>0||this.#Wt)&&this.options.life.count||!(this.#$t||this.#Gt>=(this.#er??0)))return;const e=this.#d;if(void 0===this.#qt){const t=(0,c.getRangeValue)(this.options.rate.delay);this.#qt=e.retina.reduceFactor?t*n.millisecondsToSeconds/e.retina.reduceFactor:1/0}(this.#Kt>0||this.#Wt)&&this.#nr()}resize(){const e=this.#Yt,t=this.#d;this.position=e&&(0,u.isPointInside)(e,t.canvas.size,i.Vector.origin)?e:this.#_t(),this.#Zt=this.#rr(),this.size=this.#Zt.mode===o.PixelMode.percent?{width:this.#Zt.width/n.percentDenominator*t.canvas.size.width,height:this.#Zt.height/n.percentDenominator*t.canvas.size.height}:{width:this.#Zt.width,height:this.#Zt.height},this.#Xt?.resize(this.position,this.size)}update(e){if(this.#M)return;const t=this.#d;this.#$t&&(this.#$t=!1,this.#Gt=this.#er??0,this.#zt=this.#qt??0),this.#tr||(this.#tr=!0,this.#ir(this.options.startCount)),void 0!==this.#O&&(this.#Vt+=e.value,this.#Vt>=this.#O&&(this.pause(),void 0!==this.#er&&(this.#er=void 0),this.#Wt||this.#Kt--,this.#Kt>0||this.#Wt?(this.position=this.#_t(),this.#Xt?.resize(this.position,this.size),this.#er=t.retina.reduceFactor?(0,c.getRangeValue)(this.options.life.delay??0)*n.millisecondsToSeconds/t.retina.reduceFactor:1/0):this.#or(),this.#Vt-=this.#O,this.#O=void 0)),void 0!==this.#er&&(this.#Gt+=e.value,this.#Gt>=this.#er&&(this.#d.dispatchEvent("emitterPlay"),this.play(),this.#Gt-=this.#er,this.#er=void 0)),void 0!==this.#qt&&(this.#zt+=e.value,this.#zt>=this.#qt&&(this.#ar(),this.#zt-=this.#qt))}#_t(){const e=this.#d;if(this.options.domId){const t=(0,u.safeDocument)().getElementById(this.options.domId);if(t){const r=t.getBoundingClientRect(),i=e.retina.pixelRatio;return{x:(r.x+r.width*n.half)*i,y:(r.y+r.height*n.half)*i}}}return(0,c.calcPositionOrRandomFromSizeRanged)({size:e.canvas.size,position:this.options.position})}#rr(){const e=this.#d;if(this.options.domId){const t=(0,u.safeDocument)().getElementById(this.options.domId);if(t){const r=t.getBoundingClientRect();return{width:r.width*e.retina.pixelRatio,height:r.height*e.retina.pixelRatio,mode:o.PixelMode.precise}}}return this.options.size??(()=>{const e=new d.EmitterSize;return e.load({height:0,mode:o.PixelMode.percent,width:0}),e})()}#or(){this.#j?.disconnect(),this.#j=void 0,this.#De?.disconnect(),this.#De=void 0,this.#Qt(this),this.#d.dispatchEvent("emitterDestroyed",{emitter:this})}#ar(){if(this.#M)return;const e=(0,c.getRangeValue)(this.options.rate.quantity);this.#ir(e)}#ir(e){const t=(0,u.itemFromSingleOrMultiple)(this.#Jt)??{},r=this.options.spawn.fill?.color?.animation,i=this.options.spawn.fill?.enable??!!this.options.spawn.fill?.color,o=void 0===this.options.spawn.fill?.opacity?n.defaultOpacity:(0,c.getRangeValue)(this.options.spawn.fill.opacity),a=this.options.spawn.stroke?.color?.animation,s=void 0===this.options.spawn.stroke?.opacity?n.defaultOpacity:(0,c.getRangeValue)(this.options.spawn.stroke.opacity),l=void 0===this.options.spawn.stroke?.width?1:(0,c.getRangeValue)(this.options.spawn.stroke.width),p=this.#d.retina.reduceFactor,d=!!r,m=!!a,g=!!this.#Xt,y=d||m,b=y||g,v=y?{h:n.hMax,s:n.sMax,l:n.lMax}:null,_=this.options.shape;for(let c=0;c<e*p;c++){const e=b?(0,u.deepExtend)({},t):t;this.spawnFillOpacity=o,this.spawnFillEnabled=i,this.spawnStrokeOpacity=s,this.spawnStrokeWidth=l,this.spawnFillColor&&(r&&v&&(this.spawnFillColor.h=this.#sr(r.h,this.spawnFillColor.h,v.h,3.6),this.spawnFillColor.s=this.#sr(r.s,this.spawnFillColor.s,v.s),this.spawnFillColor.l=this.#sr(r.l,this.spawnFillColor.l,v.l)),h(e,this.spawnFillColor,this.spawnFillOpacity,this.spawnFillEnabled)),this.spawnStrokeColor&&(a&&v&&(this.spawnStrokeColor.h=this.#sr(a.h,this.spawnStrokeColor.h,v.h,3.6),this.spawnStrokeColor.s=this.#sr(a.s,this.spawnStrokeColor.s,v.s),this.spawnStrokeColor.l=this.#sr(a.l,this.spawnStrokeColor.l,v.l)),f(e,this.spawnStrokeColor,this.spawnStrokeOpacity,this.spawnStrokeWidth));let c=this.position;if(this.#Xt){const t=this.#Xt.randomPosition();if(t){c=t.position;const r=_.replace;r.color&&t.color&&h(e,t.color,r.opacity?t.opacity??n.defaultOpacity:n.defaultOpacity,!0)}else c=null}
50c&&this.#d.particles.addParticle(c,e)}}#nr(){if(this.#M)return;const e=void 0!==this.options.life.duration?(0,c.getRangeValue)(this.options.life.duration):void 0;(this.#Kt>0||this.#Wt)&&void 0!==e&&e>0&&(this.#O=e*n.millisecondsToSeconds)}#sr(e,t,r,i=1){const o=this.#d;if(!e.enable)return t;const a=(0,c.randomInRangeValue)(e.offset),s=(0,c.getRangeValue)(this.options.rate.delay),l=o.retina.reduceFactor?s*n.millisecondsToSeconds/o.retina.reduceFactor:1/0;return(t+(0,c.getRangeValue)(e.speed)*o.fpsLimit/l+a*i)%r}}}]]);
51//# sourceMappingURL=vendors.js.map

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